This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[nios2, committed] remove duplicates in || expression
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: <dcb314 at hotmail dot com>
- Date: Wed, 18 Nov 2015 12:48:37 -0700
- Subject: [nios2, committed] remove duplicates in || expression
- Authentication-results: sourceware.org; auth=none
I've checked in this patch to fix PR 68410. David, thanks for pointing
out the think-o here.
-Sandra
2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
PR target/68410
* config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
from || expression.
Index: gcc/config/nios2/nios2.c
===================================================================
--- gcc/config/nios2/nios2.c (revision 230549)
+++ gcc/config/nios2/nios2.c (working copy)
@@ -4120,8 +4120,8 @@ cdx_and_immed (rtx op)
HOST_WIDE_INT ival = INTVAL (op);
return (ival == 1 || ival == 2 || ival == 3 || ival == 4
|| ival == 8 || ival == 0xf || ival == 0x10
- || ival == 0x10 || ival == 0x1f || ival == 0x20
- || ival == 0x3f || ival == 0x3f || ival == 0x7f
+ || ival == 0x1f || ival == 0x20
+ || ival == 0x3f || ival == 0x7f
|| ival == 0x80 || ival == 0xff || ival == 0x7ff
|| ival == 0xff00 || ival == 0xffff);
}