aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2015-11-18 14:45:47 -0500
committerSandra Loosemore <sandra@gcc.gnu.org>2015-11-18 14:45:47 -0500
commit231f6e0927960bb95e8670e536888902116dd293 (patch)
tree27a5833a8615ec93f92089c06205d799f31ea11b
parentb6ff50e362bd88e661a6992b4570a149713a2892 (diff)
downloadgcc-231f6e0927960bb95e8670e536888902116dd293.zip
gcc-231f6e0927960bb95e8670e536888902116dd293.tar.gz
gcc-231f6e0927960bb95e8670e536888902116dd293.tar.bz2
re PR target/68410 (config/nios2/nios2.c: 4123: duplicates in expression)
2015-11-18 Sandra Loosemore <sandra@codesourcery.com> PR target/68410 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests from || expression. From-SVN: r230563
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/nios2/nios2.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 920ae72..9249f14 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
+
+ PR target/68410
+ * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
+ from || expression.
+
2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
* config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c
index 3fd2d01..f9daa3f 100644
--- a/gcc/config/nios2/nios2.c
+++ b/gcc/config/nios2/nios2.c
@@ -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);
}