Commit dac4a0de by Kazu Hirata Committed by Kazu Hirata

i386.c (const_int_1_operand): Simplify an integer comparison.

	* config/i386/i386.c (const_int_1_operand): Simplify an
	integer comparison.

From-SVN: r70689
parent eb2a5f91
2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
* config/i386/i386.c (const_int_1_operand): Simplify an
integer comparison.
2003-08-22 Alan Modra <amodra@bigpond.net.au> 2003-08-22 Alan Modra <amodra@bigpond.net.au>
* config/fp-bit.c: Specify config/ dir for include of fp-bit.h. * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
......
...@@ -3343,7 +3343,7 @@ x86_64_zext_immediate_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) ...@@ -3343,7 +3343,7 @@ x86_64_zext_immediate_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
int int
const_int_1_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) const_int_1_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
{ {
return (GET_CODE (op) == CONST_INT && INTVAL (op) == 1); return op == const1_rtx;
} }
/* Return nonzero if OP is CONST_INT >= 1 and <= 31 (a valid operand /* Return nonzero if OP is CONST_INT >= 1 and <= 31 (a valid operand
......
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