(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 02486c89cbc697e602c01c082dfd56065d053417..01dea5c57192769ca72a1cab6cb48f4f55b04591 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 b70e68b1e1822f57bc69f5471710a909f55913e0..22a8678a042ba1c26b1ac7f76e3f25237c51197e 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;