[X86] Update AVX512-VNNI mask intrinsic tests to avoid adds
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 6 Mar 2022 16:58:29 +0000 (16:58 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 6 Mar 2022 16:58:29 +0000 (16:58 +0000)
commitec9b709a7382c72f47b21a557357e3d4a02c53a7
tree3a5dbc596960a62e46b5b6efda15e2908bf7e327
parentfbce4a78035c32792b0a13cf1f169048b822c06b
[X86] Update AVX512-VNNI mask 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/avx512vl_vnni-intrinsics-upgrade.ll
llvm/test/CodeGen/X86/avx512vl_vnni-intrinsics.ll
llvm/test/CodeGen/X86/avx512vnni-intrinsics-upgrade.ll
llvm/test/CodeGen/X86/avx512vnni-intrinsics.ll