(arm_expand_builtin): Force second argument of the setcwx insn into a register.
authorNick Clifton <nickc@redhat.com>
Wed, 28 Jan 2004 11:41:38 +0000 (11:41 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 28 Jan 2004 11:41:38 +0000 (11:41 +0000)
From-SVN: r76787

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;