This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[nios2, committed] remove duplicates in || expression


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);
     }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]