OSDN Git Service

(arm_expand_builtin): Force second argument of the setcwx insn into a register.
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jan 2004 11:41:38 +0000 (11:41 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jan 2004 11:41:38 +0000 (11:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76787 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/arm.c

index 02486c8..01dea5c 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-28  Nick Clifton  <nickc@redhat.com>
+
+       * config/arm/arm.c (arm_expand_builtin): Force second argument of
+       the setcwx insn into a register.
+
 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/fp-bit.c (pack_d): When using paired doubles to implement
index b70e68b..22a8678 100644 (file)
@@ -11266,7 +11266,7 @@ arm_expand_builtin (tree exp,
       arg0 = TREE_VALUE (arglist);
       arg1 = TREE_VALUE (TREE_CHAIN (arglist));
       op0 = expand_expr (arg0, NULL_RTX, VOIDmode, 0);
-      op1 = expand_expr (arg1, NULL_RTX, VOIDmode, 0);
+      op1 = force_reg (SImode, expand_expr (arg1, NULL_RTX, VOIDmode, 0));
       emit_insn (gen_iwmmxt_tmcr (op0, op1));
       return 0;