Missed optimization opportunity in 3-way integer comparison case

My copy only uses one cmp if you use int as in your C sample code. It produces like your llvm and x86 code if you use unsigned. I don’t think it has any choice.