OSDN Git Service

2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Oct 2009 19:42:54 +0000 (19:42 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Oct 2009 19:42:54 +0000 (19:42 +0000)
PR target/41665
* config/i386/i386.md (addsi_1_zext): Get the proper second
operand for lea.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152647 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ba83cf9..9f7819d 100644 (file)
@@ -1,3 +1,9 @@
+2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/41665
+       * config/i386/i386.md (addsi_1_zext): Get the proper second
+       operand for lea.
+
 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
index 8f2afc4..89f075e 100644 (file)
   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: