diff options
author | Jan Hubicka <jh@suse.cz> | 2002-10-03 15:15:53 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2002-10-03 13:15:53 +0000 |
commit | 4c9c9a3da5efd5ae740201250428f7a48a263ac7 (patch) | |
tree | fcf213f3cf690c50ff5f01d2e097dc8796cfaf35 | |
parent | cd8dbeeff36324337118fcce3d0450f84996357d (diff) | |
download | gcc-4c9c9a3da5efd5ae740201250428f7a48a263ac7.zip gcc-4c9c9a3da5efd5ae740201250428f7a48a263ac7.tar.gz gcc-4c9c9a3da5efd5ae740201250428f7a48a263ac7.tar.bz2 |
* i386.md (lea to mul peep2): Fix condition.
From-SVN: r57775
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/i386/i386.md | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d6667b..947fccc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index f616ed2..a89f025 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -163,7 +163,9 @@ 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. @@ -17327,7 +17329,7 @@ [(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))) |