OSDN Git Service

2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Mar 2009 16:08:02 +0000 (16:08 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Mar 2009 16:08:02 +0000 (16:08 +0000)
PR target/38824
* config/i386/i386.md: Compare REGNO on the new peephole2
patterns.

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

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

index e59756b..92f1679 100644 (file)
@@ -1,3 +1,9 @@
+2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/38824
+       * config/i386/i386.md: Compare REGNO on the new peephole2
+       patterns.
+
 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR debug/39432
index 761a5e7..d68d0c8 100644 (file)
                      [(match_dup 0)
                       (match_operand:SI 2 "memory_operand" "")]))
               (clobber (reg:CC FLAGS_REG))])]
-  "operands[0] != operands[1]
+  "REGNO (operands[0]) != REGNO (operands[1])
    && GENERAL_REGNO_P (REGNO (operands[0]))
    && GENERAL_REGNO_P (REGNO (operands[1]))"
   [(set (match_dup 0) (match_dup 4))
                    (match_operator 3 "commutative_operator"
                      [(match_dup 0)
                       (match_operand 2 "memory_operand" "")]))]
-  "operands[0] != operands[1]
+  "REGNO (operands[0]) != REGNO (operands[1])
    && ((MMX_REG_P (operands[0]) && MMX_REG_P (operands[1])) 
        || (SSE_REG_P (operands[0]) && SSE_REG_P (operands[1])))"
   [(set (match_dup 0) (match_dup 2))