From 231f6e0927960bb95e8670e536888902116dd293 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Wed, 18 Nov 2015 14:45:47 -0500 Subject: [PATCH] re PR target/68410 (config/nios2/nios2.c: 4123: duplicates in expression) 2015-11-18 Sandra Loosemore PR target/68410 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests from || expression. From-SVN: r230563 --- gcc/ChangeLog | 6 ++++++ gcc/config/nios2/nios2.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 920ae72789c..9249f14d74a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-11-18 Sandra Loosemore + + PR target/68410 + * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests + from || expression. + 2015-11-18 Pitchumani Sivanupandi * 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 3fd2d0144a0..f9daa3fedeb 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); } -- 2.30.2