aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-12-08 15:03:40 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2002-12-08 14:03:40 +0000
commit37c66aa6ef3000be23ee0f2f53ffd860ab88fee8 (patch)
tree9c676bb43c236433e0f4a8e1a8346a852d762ef6 /gcc
parente598cc314109899bf0f996d4ea8993e538ff52ae (diff)
downloadgcc-37c66aa6ef3000be23ee0f2f53ffd860ab88fee8.zip
gcc-37c66aa6ef3000be23ee0f2f53ffd860ab88fee8.tar.gz
gcc-37c66aa6ef3000be23ee0f2f53ffd860ab88fee8.tar.bz2
i386.c (ix86_expand_int_movcc): Use force_operand instead of constructing insn directly.
* i386.c (ix86_expand_int_movcc): Use force_operand instead of constructing insn directly. From-SVN: r59937
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c11
2 files changed, 6 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0ad9fc1..890b4a8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Sun Dec 8 14:57:39 CET 2002 Jan Hubicka <jh@suse.cz>
+
+ * i386.c (ix86_expand_int_movcc): Use force_operand instead of constructing
+ insn directly.
+
2002-12-07 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (*iorhi_shift_8): New.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 80ee90e..7337312 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -9250,16 +9250,7 @@ ix86_expand_int_movcc (operands)
&& (GET_CODE (tmp) != SUBREG || SUBREG_REG (tmp) != out))
{
if (nops == 1)
- {
- rtx clob;
-
- clob = gen_rtx_REG (CCmode, FLAGS_REG);
- clob = gen_rtx_CLOBBER (VOIDmode, clob);
-
- tmp = gen_rtx_SET (VOIDmode, out, tmp);
- tmp = gen_rtx_PARALLEL (VOIDmode, gen_rtvec (2, tmp, clob));
- emit_insn (tmp);
- }
+ out = force_operand (tmp, out);
else
emit_insn (gen_rtx_SET (VOIDmode, out, tmp));
}