* sparc.c (arith_4096_operand): Fix error in last change.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 9 Mar 2002 01:31:03 +0000 (01:31 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 9 Mar 2002 01:31:03 +0000 (01:31 +0000)
From-SVN: r50468

gcc/ChangeLog
gcc/config/sparc/sparc.c

index a8a4b23..0f5070f 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * sparc.c (arith_4096_operand): Fix error in last change.
+
 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
 
        * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
index cd48622..d678aa2 100644 (file)
@@ -964,10 +964,10 @@ arith_4096_operand (op, mode)
      rtx op;
      enum machine_mode mode ATTRIBUTE_UNUSED;
 {
-  int val;
   if (GET_CODE (op) != CONST_INT)
     return 0;
-  return val == 4096;
+  else
+    return INTVAL (op) == 4096;
 }
 
 /* Return true if OP is suitable as second operand for add/sub */