[X86] Update AVX512 VBMI2 VL intrinsic tests to avoid adds
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 14 Mar 2022 10:57:17 +0000 (10:57 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 14 Mar 2022 10:57:27 +0000 (10:57 +0000)
commit1f09c7d16d716285e7c8936d83e8db736b0d49e7
tree737af7414425693a6dcc2d463e8a956a2651adae
parent7294be2b8e9ada57e051bac6a20ca8b4dbf46475
[X86] Update AVX512 VBMI2 VL intrinsic tests to avoid adds

As noticed in D119654, by adding the masked intrinsics results together we can end up with the selects being canonicalized away from the intrinsic - this isn't what we want to test here so replace with a insertvalue chain into a aggregate instead to retain all the results.
llvm/test/CodeGen/X86/avx512vbmi2vl-intrinsics-upgrade.ll