i386.md (movstrictqi, [...]): Check optimize_size as well.
authorRichard Henderson <rth@redhat.com>
Sun, 16 Mar 2003 22:25:59 +0000 (14:25 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 16 Mar 2003 22:25:59 +0000 (14:25 -0800)
        * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
        optimize_size as well.

From-SVN: r64451

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

index 49069bdc7cb40657cfcd62bb8ddf2b3fd66f96c1..0b58247506084938d562be623ed37c9dd6fa581e 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-16  Richard Henderson  <rth@redhat.com>
+
+        * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
+        optimize_size as well.
+
 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
 
        * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
index 01fb3db2d811771f5983fe9f3f29dda2fa0289f2..39b8f6ac12c139a656d6501647cb8772e468ac13 100644 (file)
 (define_expand "movstrictqi"
   [(set (strict_low_part (match_operand:QI 0 "nonimmediate_operand" ""))
        (match_operand:QI 1 "general_operand" ""))]
-  "! TARGET_PARTIAL_REG_STALL"
+  "! TARGET_PARTIAL_REG_STALL || optimize_size"
 {
   /* Don't generate memory->memory moves, go through a register.  */
   if (GET_CODE (operands[0]) == MEM && GET_CODE (operands[1]) == MEM)
 (define_insn "*movstrictqi_1"
   [(set (strict_low_part (match_operand:QI 0 "nonimmediate_operand" "+qm,q"))
        (match_operand:QI 1 "general_operand" "*qn,m"))]
-  "! TARGET_PARTIAL_REG_STALL
+  "(! TARGET_PARTIAL_REG_STALL || optimize_size)
    && (GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM)"
   "mov{b}\t{%1, %0|%0, %1}"
   [(set_attr "type" "imov")