* config/sparc/sparc.c (input_operand): Properly test for short op.

From-SVN: r38588
This commit is contained in:
Richard Kenner 2001-01-01 13:52:04 +00:00 committed by Richard Kenner
parent fbd68e5da8
commit 4746e0fe78
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
Mon Jan 1 07:38:33 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* config/sparc/sparc.c (input_operand): Properly test for short op.
* config.gcc (sparc-*-elf): Include sparc/sol2.h.
(sparc-*-rtems*): Include sparc/sol2.h and sparc/elf.h.
(sparclite-*-elf*, sparc86x-*-elf*): Likewise.

View File

@ -1193,7 +1193,8 @@ input_operand (op, mode)
(SPARC_SIMM13_P (CONST_DOUBLE_LOW (op))
&& (((CONST_DOUBLE_LOW (op) & 0x80000000) == 0
&& CONST_DOUBLE_HIGH (op) == 0)
|| (CONST_DOUBLE_HIGH (op) == -1)))
|| (CONST_DOUBLE_HIGH (op) == -1
&& CONST_DOUBLE_LOW (op) & 0x80000000) != 0))
#endif
))))
return 1;