diff options
| author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-09 01:31:03 +0000 |
|---|---|---|
| committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-09 01:31:03 +0000 |
| commit | 56c1f669540b2ee7b258bcbfd035ab98069ea599 (patch) | |
| tree | 81870f2657b78e9d1911cd6ffbfc818172b6daf5 | |
| parent | e02a1a96d94105c58f2776f9835dcd1f34b9e89d (diff) | |
| download | ppe42-gcc-56c1f669540b2ee7b258bcbfd035ab98069ea599.tar.gz ppe42-gcc-56c1f669540b2ee7b258bcbfd035ab98069ea599.zip | |
* sparc.c (arith_4096_operand): Fix error in last change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50468 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/config/sparc/sparc.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8a4b23cace..0f5070fa167 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index cd486222e17..d678aa2a2f4 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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 */ |

