[AArch64][x86] add tests for swapped cmp+vselect patterns; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 12 Nov 2021 20:49:46 +0000 (15:49 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 12 Nov 2021 20:49:46 +0000 (15:49 -0500)
commit6c32dd4dfafe01d01e4b189a4eeda5c4497c71ec
treec3a541fcd77f2b91de6ca557d4a7eddc4e9425f6
parentaab1810006a6788e32ee04e7d40d0b2474754aa2
[AArch64][x86] add tests for swapped cmp+vselect patterns; NFC

These patterns were noted in the recent D113212 and follow-ups.
I did not bother to duplicate every test because it should be
clear if we recognize the swaps from a smaller sample. We have
complete coverage for the original patterns.
llvm/test/CodeGen/AArch64/vselect-constants.ll
llvm/test/CodeGen/X86/vselect-zero.ll