CONST_INT before using INTVAL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76776
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
{
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