https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117287
--- Comment #6 from Sam James <sjames at gcc dot gnu.org> --- I misparsed "is miscompiled on the trunk and 14/13 branches with -O2 --param=logical-op-non-short-circuit=0". I now see that the reason you hit it was a different default on rs6000, rather than something else exposing it on trunk.