https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97786
--- Comment #7 from Surya Kumari Jangala <jskumari at gcc dot gnu.org> --- Hi Segher, Thanks for the pointers! We can optimize the code further and remove the branch completely. For P10: xststdcdp 0,1,48 setnbc 9,32 setbc 3,34 isel 3,9,3,2 blr For P9: xststdcdp 0,1,48 setb 9,0 mfcr 3,128 rlwinm 3,3,3,1 lr 4,1 isel 9,9,4,0 isel 3,9,3,2 blr