From 4c9c9a3da5efd5ae740201250428f7a48a263ac7 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 3 Oct 2002 15:15:53 +0200 Subject: [PATCH] * i386.md (lea to mul peep2): Fix condition. From-SVN: r57775 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/i386.md | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d6667ba54d..947fcccd8f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 3 15:15:00 CEST 2002 Jan Hubicka + + * i386.md (lea to mul peep2): Fix condition. + 2002-10-02 John David Anglin * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro. diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index f616ed2f4c9..a89f0259703 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))) -- 2.30.2