diff options
Diffstat (limited to 'test/CodeGen/X86/vec_set-J.ll')
-rw-r--r-- | test/CodeGen/X86/vec_set-J.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_set-J.ll b/test/CodeGen/X86/vec_set-J.ll new file mode 100644 index 00000000000..d90ab85b8cf --- /dev/null +++ b/test/CodeGen/X86/vec_set-J.ll @@ -0,0 +1,10 @@ +; RUN: llc < %s -march=x86 -mattr=+sse2 | grep movss +; PR2472 + +define <4 x i32> @a(<4 x i32> %a) nounwind { +entry: + %vecext = extractelement <4 x i32> %a, i32 0 + insertelement <4 x i32> zeroinitializer, i32 %vecext, i32 0 + %add = add <4 x i32> %a, %0 + ret <4 x i32> %add +} |