1 << cttz(z)
should be folded into z & -z
even on machines with cttz built-in
#91305
Labels
1 << cttz(z)
should be folded into z & -z
even on machines with cttz built-in
#91305
Originally posted by @RKSimon in #90000 (comment)
This code:
Gives me this emit for the risc-v sifive u74:
Exactly what we want.
Now, let's "upgrade" to the sifive x280:
Oops! Same problem occurs on x86 Zen 3:
And on aarch64 apple_latest:
Godbolt link
Related: #84763 #90000
The text was updated successfully, but these errors were encountered: