[Bug tree-optimization/108440] rotate optimization may introduce new UB
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 18 09:07:47 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108440
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Do rotates have the same issue with undefinednes as shifts? With shifts it's
whether the CPU interprets out-of-bound values as modulo the size or not but
with rotates this wouldn't make any difference?
The tree.def comments indicate out-of-bound values invoke undefined behavior.
More information about the Gcc-bugs
mailing list