From 948627aaddd64a9a14214a05ed26684fecd1e0ac Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 24 May 2008 00:10:02 +0000 Subject: [PATCH] New loadl_pd and loadh_pd tests. llvm-svn: 51525 --- llvm/test/CodeGen/X86/vec_loadhl.ll | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 llvm/test/CodeGen/X86/vec_loadhl.ll diff --git a/llvm/test/CodeGen/X86/vec_loadhl.ll b/llvm/test/CodeGen/X86/vec_loadhl.ll new file mode 100644 index 000000000000..88e303d4a007 --- /dev/null +++ b/llvm/test/CodeGen/X86/vec_loadhl.ll @@ -0,0 +1,19 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movlpd +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movhpd +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep movsd + +define void @t1(<2 x double>* %r, <2 x double>* %A, double %B) nounwind { + %tmp3 = load <2 x double>* %A, align 16 + %tmp7 = insertelement <2 x double> undef, double %B, i32 0 + %tmp9 = shufflevector <2 x double> %tmp3, <2 x double> %tmp7, <2 x i32> < i32 2, i32 1 > + store <2 x double> %tmp9, <2 x double>* %r, align 16 + ret void +} + +define void @t2(<2 x double>* %r, <2 x double>* %A, double %B) nounwind { + %tmp3 = load <2 x double>* %A, align 16 + %tmp7 = insertelement <2 x double> undef, double %B, i32 0 + %tmp9 = shufflevector <2 x double> %tmp3, <2 x double> %tmp7, <2 x i32> < i32 0, i32 2 > + store <2 x double> %tmp9, <2 x double>* %r, align 16 + ret void +}