arm.c (arm_gen_constant): Set can_negate correctly when code is SET.

2011-08-30  Andrew Stubbs  <ams@codesourcery.com>

	gcc/
	* config/arm/arm.c (arm_gen_constant): Set can_negate correctly
	when code is SET.

From-SVN: r178319
This commit is contained in:
Andrew Stubbs 2011-08-30 14:28:17 +00:00 committed by Andrew Stubbs
parent bd34109a28
commit f8dd28d62d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-08-30 Andrew Stubbs <ams@codesourcery.com>
* config/arm/arm.c (arm_gen_constant): Set can_negate correctly
when code is SET.
2011-08-30 Richard Guenther <rguenther@suse.de> 2011-08-30 Richard Guenther <rguenther@suse.de>
PR middle-end/48571 PR middle-end/48571

View File

@ -3367,8 +3367,8 @@ arm_gen_constant (enum rtx_code code, enum machine_mode mode, rtx cond,
if (code == SET) if (code == SET)
{ {
can_negate = can_invert;
can_invert = 0; can_invert = 0;
can_negate = 1;
code = PLUS; code = PLUS;
} }
else if (code == MINUS) else if (code == MINUS)