aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-03-16 14:23:15 -0800
committerRichard Henderson <rth@gcc.gnu.org>2003-03-16 14:23:15 -0800
commit41baa343350264bbb2cc316332edbe885234a36b (patch)
treea979fb5c8a31e64f7245eec877407f51b662b92b
parenta4807140ad755681e077c35276ebd0afa2801520 (diff)
downloadgcc-41baa343350264bbb2cc316332edbe885234a36b.zip
gcc-41baa343350264bbb2cc316332edbe885234a36b.tar.gz
gcc-41baa343350264bbb2cc316332edbe885234a36b.tar.bz2
i386.md (movstrictqi, [...]): Check optimize_size as well.
* config/i386/i386.md (movstrictqi, movstrictqi_1): Check optimize_size as well. From-SVN: r64449
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.md4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 15f667f..9d4501f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 5a4f749..d615a50 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -2113,7 +2113,7 @@
(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)
@@ -2123,7 +2123,7 @@
(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")