i386.md (*movhi_1, *movqi_1): When optimizing for size, don't use the larger zero...
authorRoger Sayle <roger@eyesopen.com>
Mon, 19 Jan 2004 15:15:56 +0000 (15:15 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 19 Jan 2004 15:15:56 +0000 (15:15 +0000)
* config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
size, don't use the larger zero-extending loads.

From-SVN: r76152

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

index cec05a7..f216089 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-19  Roger Sayle  <roger@eyesopen.com>
+
+       * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
+       size, don't use the larger zero-extending loads.
+
 2004-01-19  Richard Henderson  <rth@redhat.com>
 
        * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
index 72dff86..a502f8f 100644 (file)
     }
 }
   [(set (attr "type")
-     (cond [(and (eq_attr "alternative" "0")
+     (cond [(ne (symbol_ref "optimize_size") (const_int 0))
+             (const_string "imov")
+           (and (eq_attr "alternative" "0")
                 (ior (eq (symbol_ref "TARGET_PARTIAL_REG_STALL")
                          (const_int 0))
                      (eq (symbol_ref "TARGET_HIMODE_MATH")
     }
 }
   [(set (attr "type")
-     (cond [(and (eq_attr "alternative" "3")
+     (cond [(ne (symbol_ref "optimize_size") (const_int 0))
+             (const_string "imov")
+           (and (eq_attr "alternative" "3")
                 (ior (eq (symbol_ref "TARGET_PARTIAL_REG_STALL")
                          (const_int 0))
                      (eq (symbol_ref "TARGET_QIMODE_MATH")