* i386.md (lea to mul peep2): Fix condition.
authorJan Hubicka <jh@suse.cz>
Thu, 3 Oct 2002 13:15:53 +0000 (15:15 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 3 Oct 2002 13:15:53 +0000 (13:15 +0000)
From-SVN: r57775

gcc/ChangeLog
gcc/config/i386/i386.md

index 1d6667ba54d438e430cd6bc9f1f99b89f62ec4ff..947fcccd8f65571ecd2b049e9d610bc30c0a07e8 100644 (file)
@@ -1,3 +1,7 @@
+Thu Oct  3 15:15:00 CEST 2002  Jan Hubicka  <jh@suse.cz>
+
+       * i386.md (lea to mul peep2): Fix condition.
+       
 2002-10-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
 
        * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
index f616ed2f4c9e5f77be690fe037a74e1a3c04548e..a89f025970372e5d0a1c813349b38972cd82c115 100644 (file)
                          sse,ssemov,sseadd,ssemul,ssecmp,ssecvt,ssediv")
           (const_string "sse")
         (eq_attr "type" "mmx,mmxmov,mmxadd,mmxmul,mmxcmp,mmxcvt,mmxshft")
-          (const_string "mmx")]
+          (const_string "mmx")
+        (eq_attr "type" "other")
+          (const_string "unknown")]
         (const_string "integer")))
 
 ;; The (bounding maximum) length of an instruction immediate.
   [(set (match_operand:SI 0 "register_operand" "")
        (subreg:SI (mult:DI (match_operand:DI 1 "register_operand" "")
                   (match_operand:DI 2 "const_int_operand" "")) 0))]
-  "exact_log2 (INTVAL (operands[1])) >= 0
+  "exact_log2 (INTVAL (operands[2])) >= 0
    && REGNO (operands[0]) == REGNO (operands[1])
    && peep2_regno_dead_p (0, FLAGS_REG)"
   [(parallel [(set (match_dup 0) (ashift:SI (match_dup 0) (match_dup 2)))