Commit 2b1c08f5 by Jan Hubicka Committed by Jan Hubicka

* i386.c (incdec_operand): Accept only 1 and -1.

From-SVN: r42527
parent 6f56d925
Thu May 24 15:56:48 CEST 2001 Jan Hubicka <jh@suse.cz>
* i386.c (incdec_operand): Accept only 1 and -1.
2001-05-23 Kelley Cook <kelley.cook@home.com> 2001-05-23 Kelley Cook <kelley.cook@home.com>
* Makefile.in: Move many of the *_H definitions eariler in the * Makefile.in: Move many of the *_H definitions eariler in the
......
...@@ -1420,17 +1420,7 @@ incdec_operand (op, mode) ...@@ -1420,17 +1420,7 @@ incdec_operand (op, mode)
registers, since carry flag is not set. */ registers, since carry flag is not set. */
if (TARGET_PENTIUM4 && !optimize_size) if (TARGET_PENTIUM4 && !optimize_size)
return 0; return 0;
if (op == const1_rtx || op == constm1_rtx) return op == const1_rtx || op == constm1_rtx;
return 1;
if (GET_CODE (op) != CONST_INT)
return 0;
if (mode == SImode && INTVAL (op) == (HOST_WIDE_INT) 0xffffffff)
return 1;
if (mode == HImode && INTVAL (op) == (HOST_WIDE_INT) 0xffff)
return 1;
if (mode == QImode && INTVAL (op) == (HOST_WIDE_INT) 0xff)
return 1;
return 0;
} }
/* Return nonzero if OP is acceptable as operand of DImode shift /* Return nonzero if OP is acceptable as operand of DImode shift
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment