Correct test of 'remainder' and 'subtargets'.

From-SVN: r48776
This commit is contained in:
Nick Clifton 2002-01-11 16:15:36 +00:00 committed by Nick Clifton
parent 9b78058234
commit 96ae8197d2
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
* config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
and 'subtargets'.
2002-01-11 Andreas Jaeger <aj@suse.de>,
Brad Lucier <lucier@math.purdue.edu>

View File

@ -1631,15 +1631,15 @@ arm_gen_constant (code, mode, val, target, source, subtargets, generate)
if (code == SET || code == MINUS)
{
new_src = (subtargets ? gen_reg_rtx (mode) : target);
if (can_invert)
if (can_invert && code != MINUS)
temp1 = ~temp1;
}
else
{
if (remainder || !subtargets)
new_src = target;
else
if (remainder && subtargets)
new_src = gen_reg_rtx (mode);
else
new_src = target;
if (can_invert)
temp1 = ~temp1;
else if (can_negate)