From: Kazu Hirata Date: Fri, 22 Aug 2003 14:44:56 +0000 (+0000) Subject: i386.c (const_int_1_operand): Simplify an integer comparison. X-Git-Tag: releases/gcc-3.4.0~4131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dac4a0ded660fcc02eb7ba7355b58bea666ef0ff;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69ec5fd32980..754d54a6942a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-08-22 Kazu Hirata + + * config/i386/i386.c (const_int_1_operand): Simplify an + integer comparison. + 2003-08-22 Alan Modra * config/fp-bit.c: Specify config/ dir for include of fp-bit.h. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 3cba33a14b1f..aa6433aea490 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3343,7 +3343,7 @@ x86_64_zext_immediate_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) int 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