summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-16 22:25:59 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-16 22:25:59 +0000
commitf09543b5e96443d8a5d9ff62c282fdb98658efbd (patch)
treed9df16ee4827df0666aaac42bb57a051a1e7b59d
parent0d4688595d39399389cbf72be2b3f418d74c5f12 (diff)
downloadppe42-gcc-f09543b5e96443d8a5d9ff62c282fdb98658efbd.tar.gz
ppe42-gcc-f09543b5e96443d8a5d9ff62c282fdb98658efbd.zip
* config/i386/i386.md (movstrictqi, movstrictqi_1): Check
optimize_size as well. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64451 138bc75d-0d04-0410-961f-82ee72b054a4
-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 49069bdc7cb..0b582475060 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 Stephane Carrez <stcarrez@nerim.fr>
* config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 01fb3db2d81..39b8f6ac12c 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -1578,7 +1578,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)
@@ -1588,7 +1588,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")
OpenPOWER on IntegriCloud