* i386.md (simple LEA peephole2): Add missing mode to zero_extend
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Dec 2013 21:19:20 +0000 (21:19 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Dec 2013 21:19:20 +0000 (21:19 +0000)
for zero-extended MULT simple LEA pattern.

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

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

index b98e0d3..545eb76 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-12  Jeff Law  <law@redhat.com>
+
+       * i386.md (simple LEA peephole2): Add missing mode to zero_extend
+       for zero-extended MULT simple LEA pattern.
+
 2013-12-12  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR middle-end/59470
index 6ac2802..ab5b33f 100644 (file)
    && REGNO (operands[0]) == REGNO (operands[1])
    && peep2_regno_dead_p (0, FLAGS_REG)"
   [(parallel [(set (match_dup 0)
-                  (zero_extend (ashift:SI (match_dup 1) (match_dup 2))))
+                  (zero_extend:DI (ashift:SI (match_dup 1) (match_dup 2))))
              (clobber (reg:CC FLAGS_REG))])]
   "operands[2] = GEN_INT (exact_log2 (INTVAL (operands[2])));")