https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103784
--- Comment #8 from Surya Kumari Jangala <jskumari at gcc dot gnu.org> ---
Using -O3 with gcc13, I got (with the test in comment 2):
For P8:
cmpwi 0,3,2
bgt 0,.L3
subfic 4,4,9
srdi 3,4,63
xori 3,3,0x1
rldicl 3,3,0,63
blr
.p2align 4,,15
.L3:
li 3,0
rldicl 3,3,0,63
blr
For P10:
cmpwi 0,3,2
bgt 0,.L3
cmpwi 0,4,9
setbcr 3,1
rldicl 3,3,0,63
blr
.p2align 4,,15
.L3:
li 3,0
rldicl 3,3,0,63
blr
