(arm_expand_builtin): Force second argument of the setcwx insn into a register.

From-SVN: r76787
This commit is contained in:
Nick Clifton 2004-01-28 11:41:38 +00:00 committed by Nick Clifton
parent 234e0d3121
commit 1b8f817446
2 changed files with 6 additions and 1 deletions

View 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

View 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;