From: Chris Lattner Date: Sat, 15 Aug 2009 17:24:09 +0000 (+0000) Subject: rename this test to sse2.ll X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=11ade72cdaaa49a7bc91a3b69f38cd843b456c1b;p=oota-llvm.git rename this test to sse2.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79116 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/sse2.ll b/test/CodeGen/X86/sse2.ll new file mode 100644 index 00000000000..88e303d4a00 --- /dev/null +++ b/test/CodeGen/X86/sse2.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 +} diff --git a/test/CodeGen/X86/vec_loadhl.ll b/test/CodeGen/X86/vec_loadhl.ll deleted file mode 100644 index 88e303d4a00..00000000000 --- a/test/CodeGen/X86/vec_loadhl.ll +++ /dev/null @@ -1,19 +0,0 @@ -; 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 -}