[Bug middle-end/78809] Inline strcmp with small constant strings
wilco at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 13 15:34:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809
--- Comment #38 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to qinzhao from comment #37)
> since all the implementation were in trunk.
> can I close this PR now?
Thanks, it generates pretty much what I expected for t1.
However there is an issue:
t1:
ldrsb w1, [x0]
subs w1, w1, #97
bne .L68
ldrsb w1, [x0, 1]
.L68:
mov w0, w1
ret
This uses signed char while the C standard says the comparison is done on
unsigned chars.
More information about the Gcc-bugs
mailing list