[Bug c/14259] comparison is always true due to limited range of data type
hans dot buchmann at fhso dot ch
gcc-bugzilla@gcc.gnu.org
Mon Feb 23 15:16:00 GMT 2004
------- Additional Comments From hans dot buchmann at fhso dot ch 2004-02-23 15:16 -------
the code generated for foo:
foo:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
and r0, r0, #255
cmp r0, #31
movhi r0, #0
movls r0, #1
@ lr needed for prologue
mov pc, lr
made with -O3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14259
More information about the Gcc-bugs
mailing list