]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT usage on 64-bit hosts, return...
authorMarek Michalkiewicz <marekm@amelek.gda.pl>
Fri, 12 Jul 2002 11:27:55 +0000 (13:27 +0200)
committerMarek Michalkiewicz <marekm@gcc.gnu.org>
Fri, 12 Jul 2002 11:27:55 +0000 (11:27 +0000)
* 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

gcc/ChangeLog
gcc/config/avr/avr.c

index 648b8bd2afb320b91a9766414aa15db42b183562..12db766216a025079f85905d8600e9f21d93539d 100644 (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.
index 01948c41702b9cfb9d740b842ac66132fd181e32..acfa6f1b389898902b37c83b00907fd2a3c9e213 100644 (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