2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-02 05:30:27 +08:00

pa.c (emit_move_sequence): Check that operand1 is a CONST_INT before using INTVAL.

* config/pa/pa.c (emit_move_sequence): Check that operand1 is a
	CONST_INT before using INTVAL.

From-SVN: r76776
This commit is contained in:
Roger Sayle 2004-01-28 01:37:28 +00:00 committed by Roger Sayle
parent c4ef652567
commit 4cce9dd84a
2 changed files with 9 additions and 1 deletions
gcc
ChangeLog
config/pa

@ -1,3 +1,8 @@
2004-01-27 Roger Sayle <roger@eyesopen.com>
* config/pa/pa.c (emit_move_sequence): Check that operand1 is a
CONST_INT before using INTVAL.
2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.

@ -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