summaryrefslogtreecommitdiff
path: root/gcc/dojump.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-05-26 11:02:27 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-05-26 11:02:27 +0000
commitc3dc5e6654a2911c955eb9371ed7d6e5c2d1a174 (patch)
treedba2c286c477be2bf4c71b98ce3dda560e91b05a /gcc/dojump.c
parent851ee5f43c954f1831ae23ec45347ce5441ebab5 (diff)
caller-save.c (init_caller_save): Base temporary register numbers on LAST_VIRTUAL_REGISTER + 1 rather than...
gcc/ * caller-save.c (init_caller_save): Base temporary register numbers on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER. * cfgloopanal.c (init_set_costs): Likewise. * dojump.c (prefer_and_bit_test): Likewise. * expr.c (init_expr_target): Likewise. * ira.c (setup_prohibited_mode_move_regs): Likewise. * lower-subreg.c (init_lower_subreg): Likewise. * postreload.c (reload_cse_regs_1): Likewise. From-SVN: r223688
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r--gcc/dojump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c
index e5ea5895760..d788fe09056 100644
--- a/gcc/dojump.c
+++ b/gcc/dojump.c
@@ -198,7 +198,7 @@ prefer_and_bit_test (machine_mode mode, int bitnum)
{
/* Set up rtxes for the two variations. Use NULL as a placeholder
for the BITNUM-based constants. */
- and_reg = gen_rtx_REG (mode, FIRST_PSEUDO_REGISTER);
+ and_reg = gen_rtx_REG (mode, LAST_VIRTUAL_REGISTER + 1);
and_test = gen_rtx_AND (mode, and_reg, NULL);
shift_test = gen_rtx_AND (mode, gen_rtx_ASHIFTRT (mode, and_reg, NULL),
const1_rtx);