shufps with load folding is better than movaps; movsd.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 9 Oct 2006 22:42:31 +0000 (22:42 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 9 Oct 2006 22:42:31 +0000 (22:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30849 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/vec_shuffle-5.ll

index ac9c667aa459c1af4d0a9701845eb1d66bc677d3..2480ce0e15e5122d31b4ed533d15627466e9c18b 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movsd | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movhlps | wc -l | grep 1 &&
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep shufps  | wc -l | grep 1
 
 void %test() {
        %tmp1 = load <4 x float>* null