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]

Re: [patch] h8300: Optimize comparisons like A <= 3.


Hi Kaveh,

>  > +       || INTVAL (operands[1]) == 64
> 
> Shouldn't this one be 63?-------------^^

Oops.  Thanks for spotting this.  Fixes thus.

2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300.md (a peephole2): Fix a typo.

Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.159
diff -u -r1.159 h8300.md
--- h8300.md	11 Feb 2003 13:43:20 -0000	1.159
+++ h8300.md	11 Feb 2003 17:37:38 -0000
@@ -3498,7 +3498,7 @@
        || INTVAL (operands[1]) == 7
        || INTVAL (operands[1]) == 15
        || INTVAL (operands[1]) == 31
-       || INTVAL (operands[1]) == 64
+       || INTVAL (operands[1]) == 63
        || INTVAL (operands[1]) == 127
        || INTVAL (operands[1]) == 65535)"
   [(set (match_dup 0)


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