https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94026
Roger Sayle <roger at nextmovesoftware dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger at nextmovesoftware dot com Target Milestone|--- |13.0 Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #13 from Roger Sayle <roger at nextmovesoftware dot com> --- This should now be fixed on mainline. For the corrected code in comment #4,GCC now generates (on arm): tst w0, 1536 cset w0, ne ret as suggested by Fei in the original PR.