This cuts down on the spurious generation of MOV32rr and should be correct for the E, NE, P, NP condition codes. However, I am unsure how useful this might be since movl uses zero micro-ops.
I've added nadav since s/he appears in grep -i x86 CODE_OWNERS.txt.
Please can you simplify the test to focus just on the combine in question. And preferably add a wider range of tests touching different comparisons / integer sizes (inc ones that shouldn't combine).
If possible use utils/update_llc_test_checks.py to generate full code output (you will need to add check prefixes to the 32/64 tests)