(const_uint32_operand): Reject negative numbers.

From-SVN: r9859
This commit is contained in:
Richard Kenner 1995-05-31 21:07:41 -04:00
parent 8131413b99
commit fd25a29a31
1 changed files with 1 additions and 1 deletions

View File

@ -2570,7 +2570,7 @@ const_uint32_operand (op, mode)
return (GET_CODE (op) == CONST_INT
&& (INTVAL (op) >= 0 && INTVAL (op) <= 0xffffffffL));
#else
return (GET_CODE (op) == CONST_INT
return ((GET_CODE (op) == CONST_INT && INTVAL (op) >= 0)
|| (GET_CODE (op) == CONST_DOUBLE && CONST_DOUBLE_HIGH (op) == 0));
#endif
}