diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-28 01:37:28 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-28 01:37:28 +0000 |
commit | 6edde44bc26ae450c218f5e6c8171c540e088278 (patch) | |
tree | f37ee05d8f3f230e770e13da4c32b29a90ffea11 /gcc/config/pa | |
parent | c7a87fc769be9909bd1f45cf5a0eac544f2785c9 (diff) | |
download | gcc-6edde44bc26ae450c218f5e6c8171c540e088278.tar.gz |
* config/pa/pa.c (emit_move_sequence): Check that operand1 is a
CONST_INT before using INTVAL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76776 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pa')
-rw-r--r-- | gcc/config/pa/pa.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 9328531447e..31883cee047 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -1990,10 +1990,13 @@ emit_move_sequence (rtx *operands, enum machine_mode mode, rtx scratch_reg) { rtx insn, temp; rtx op1 = operand1; - HOST_WIDE_INT value = INTVAL (operand1); + HOST_WIDE_INT value = 0; HOST_WIDE_INT insv = 0; int insert = 0; + if (GET_CODE (operand1) == CONST_INT) + value = INTVAL (operand1); + if (TARGET_64BIT && GET_CODE (operand1) == CONST_INT && HOST_BITS_PER_WIDE_INT > 32 |