From 17446e6261522db7529e9f2b7c90880a2f45de85 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 24 Mar 2006 02:56:00 +0000 Subject: [PATCH] Add a v2f64 shuffle case. llvm-svn: 27038 --- test/Regression/CodeGen/X86/vec_shuffle.ll | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/Regression/CodeGen/X86/vec_shuffle.ll b/test/Regression/CodeGen/X86/vec_shuffle.ll index 9630db22d87..ab500530f79 100644 --- a/test/Regression/CodeGen/X86/vec_shuffle.ll +++ b/test/Regression/CodeGen/X86/vec_shuffle.ll @@ -1,4 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep shufps +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep shufp | wc -l | grep 1 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movlhps void %test_v4sf(<4 x float>* %P, float %X, float %Y) { %tmp = insertelement <4 x float> zeroinitializer, float %X, uint 0 @@ -8,3 +9,10 @@ void %test_v4sf(<4 x float>* %P, float %X, float %Y) { store <4 x float> %tmp6, <4 x float>* %P ret void } + +void %test_v2sd(<2 x double>* %P, double %X, double %Y) { + %tmp = insertelement <2 x double> zeroinitializer, double %X, uint 0 + %tmp2 = insertelement <2 x double> %tmp, double %Y, uint 1 + store <2 x double> %tmp2, <2 x double>* %P + ret void +}