https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106340
Yichao Yu <yyc1992 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #2 from Yichao Yu <yyc1992 at gmail dot com> --- Over at the llvm bug report, it was pointed out to me that the standard pattern to use is to do the branch based on ptest intrinsics. It matches the flag setting of the whilelt family of instructions better and gcc is already able to omit the ptest instruction in such case.