Correct test of 'remainder' and 'subtargets'.
From-SVN: r48776
This commit is contained in:
parent
9b78058234
commit
96ae8197d2
@ -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>,
|
2002-01-11 Andreas Jaeger <aj@suse.de>,
|
||||||
Brad Lucier <lucier@math.purdue.edu>
|
Brad Lucier <lucier@math.purdue.edu>
|
||||||
|
|
||||||
|
@ -1631,15 +1631,15 @@ arm_gen_constant (code, mode, val, target, source, subtargets, generate)
|
|||||||
if (code == SET || code == MINUS)
|
if (code == SET || code == MINUS)
|
||||||
{
|
{
|
||||||
new_src = (subtargets ? gen_reg_rtx (mode) : target);
|
new_src = (subtargets ? gen_reg_rtx (mode) : target);
|
||||||
if (can_invert)
|
if (can_invert && code != MINUS)
|
||||||
temp1 = ~temp1;
|
temp1 = ~temp1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (remainder || !subtargets)
|
if (remainder && subtargets)
|
||||||
new_src = target;
|
|
||||||
else
|
|
||||||
new_src = gen_reg_rtx (mode);
|
new_src = gen_reg_rtx (mode);
|
||||||
|
else
|
||||||
|
new_src = target;
|
||||||
if (can_invert)
|
if (can_invert)
|
||||||
temp1 = ~temp1;
|
temp1 = ~temp1;
|
||||||
else if (can_negate)
|
else if (can_negate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user