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] Optimize ((c>=1)&&(c<=127)) into ((signed char)c>0)


On Fri, May 10, 2002 at 09:14:52AM -0600, Roger Sayle wrote:
> 	* fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
> 	into the equivalent (signed char)c > 0.
> 	* gcc.c-torture/execute/20020510-1.c: New test case.

Ok.


r~


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