https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818
--- Comment #20 from Arseny Solokha <asolokha at gmx dot com> ---
(In reply to Alan Modra from comment #19)
> Yes, r246294 powerpc64le-linux-gcc -O1 -misel ICEs on the last testcase. An
> earlier compiler I had laying around, 7.0.0 20160616, does not.
Here's a simplified version, then (-misel -Os):
int
lx (int oi, int mb)
{
return (oi < mb) < (mb < oi);
}
Note that this snippet as well as one from comment 17 both have comparison
patterns similar to those from snippets in comment 3 and comment 4.