From e1d4f419ea1ead6239dc56460e22518d71ea7faf Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 11 Oct 2009 19:42:54 +0000 Subject: [PATCH] re PR target/41665 (Typo in addsi_1_zext?) 2009-10-11 H.J. Lu PR target/41665 * config/i386/i386.md (addsi_1_zext): Get the proper second operand for lea. From-SVN: r152647 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba83cf992a4..9f7819d4556 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-10-11 H.J. Lu + + PR target/41665 + * config/i386/i386.md (addsi_1_zext): Get the proper second + operand for lea. + 2009-10-11 Richard Sandiford * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 8f2afc4c41c..89f075e9844 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -6305,7 +6305,7 @@ switch (get_attr_type (insn)) { case TYPE_LEA: - operands[2] = SET_SRC (XVECEXP (PATTERN (insn), 0, 0)); + operands[2] = XEXP (SET_SRC (XVECEXP (PATTERN (insn), 0, 0)), 0); return "lea{l}\t{%a2, %k0|%k0, %a2}"; case TYPE_INCDEC: -- 2.30.2