[Bug target/107172] [13 Regression] wrong code with "-O1 -ftree-vrp" on x86_64-linux-gnu since r13-1268-g8c99e307b20c502e

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 7 22:20:53 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107172

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
i386 needs to change

(ltu:SI (const_int 1 [1])
    (const_int 0 [0]))

to

(ne:SI (const_int 1 [1])
    (const_int 0 [0]))

when checking the carry flag.  But the mode info isn't passed to
TARGET_CANONICALIZE_COMPARISON.


More information about the Gcc-bugs mailing list