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

From-SVN: r64449

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

index 15f667f23c21c026c2b8e5650ee814f74d334712..9d4501f9c27d2e2c628eaa7fa51c7f9b8e14f6c6 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  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
 
         PR target/9164
index 5a4f749b9465466455fe7152d54676350b9ecf7a..d615a5017a8686874fab077a00abb9415ba7d9ce 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")