mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-03 05:10:26 +08:00
(add_operand): Test for exactly the constants allowed by the
constraints. From-SVN: r9445
This commit is contained in:
parent
daa6d5ffc0
commit
e6118f890d
@ -135,10 +135,9 @@ add_operand (op, mode)
|
||||
enum machine_mode mode;
|
||||
{
|
||||
if (GET_CODE (op) == CONST_INT)
|
||||
return ((unsigned HOST_WIDE_INT) (INTVAL (op) + 0x8000) < 0x10000
|
||||
|| ((INTVAL (op) & 0xffff) == 0
|
||||
&& (INTVAL (op) >> 31 == -1
|
||||
|| INTVAL (op) >> 31 == 0)));
|
||||
return (CONST_OK_FOR_LETTER_P (INTVAL (op), 'K')
|
||||
|| CONST_OK_FOR_LETTER_P (INTVAL (op), 'L')
|
||||
|| CONST_OK_FOR_LETTER_P (INTVAL (op), 'O'));
|
||||
|
||||
return register_operand (op, mode);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user