[x86] move/add tests for insertelement with variable index; NFC
authorSanjay Patel <spatel@rotateright.com>
Thu, 23 Aug 2018 18:38:40 +0000 (18:38 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 23 Aug 2018 18:38:40 +0000 (18:38 +0000)
commit851e02e52ed4ea3d00edd4963ecc9357bc139f65
tree3df85917ba70fcdb333e5b1099c9b1fbac839c2f
parenta6b2ab7a913ba8a7bc3195a36dccf199cecb1e24
[x86] move/add tests for insertelement with variable index; NFC

The variable index pattern is different than the constant index
cases as shown in D51125. We might want to splat regardless of
whether the scalar is loaded from memory or transferred from GPR.

llvm-svn: 340565
llvm/test/CodeGen/X86/insert-loaded-scalar.ll
llvm/test/CodeGen/X86/insertelement-var-index.ll [new file with mode: 0644]