diff options
Diffstat (limited to 'test/CodeGen/X86/vector-variable-idx.ll')
| -rw-r--r-- | test/CodeGen/X86/vector-variable-idx.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vector-variable-idx.ll b/test/CodeGen/X86/vector-variable-idx.ll new file mode 100644 index 0000000000000..82927e96983d9 --- /dev/null +++ b/test/CodeGen/X86/vector-variable-idx.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=x86-64 | grep movss | count 2 +; PR2676 + +define float @foo(<4 x float> %p, i32 %t) { + %z = extractelement <4 x float> %p, i32 %t + ret float %z +} +define <4 x float> @bar(<4 x float> %p, float %f, i32 %t) { + %z = insertelement <4 x float> %p, float %f, i32 %t + ret <4 x float> %z +} |
