avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT usage on 64-bit hosts, return value was truncated to 32 bits.

* config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
	usage on 64-bit hosts, return value was truncated to 32 bits.

From-SVN: r55422
This commit is contained in:
Marek Michalkiewicz 2002-07-12 13:27:55 +02:00 committed by Marek Michalkiewicz
parent 4209417a70
commit 2d5b91c47f
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
* config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
usage on 64-bit hosts, return value was truncated to 32 bits.
2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa.md (adddi3): Change predicate of operand 2 to adddi3_operand.

View File

@ -5182,7 +5182,11 @@ test_hard_reg_class (class, x)
int regno = true_regnum (x);
if (regno < 0)
return 0;
return TEST_HARD_REG_CLASS (class, regno);
if (TEST_HARD_REG_CLASS (class, regno))
return 1;
return 0;
}
void