diff options
author | Eric Christopher <echristo@apple.com> | 2009-11-07 08:45:53 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2009-11-07 08:45:53 +0000 |
commit | 761411c21b27c5a7fd2368f0a35d312013f2b5c5 (patch) | |
tree | e5ad72e3f8b84c44a823b7834f886453a781f3af /test/CodeGen/X86 | |
parent | 4de9b7f51f81acbc36e9fd17042b14bb40149c6c (diff) | |
download | external_llvm-761411c21b27c5a7fd2368f0a35d312013f2b5c5.zip external_llvm-761411c21b27c5a7fd2368f0a35d312013f2b5c5.tar.gz external_llvm-761411c21b27c5a7fd2368f0a35d312013f2b5c5.tar.bz2 |
Fix a couple of shuffle patterns to use movhlps instead
of movhps as the constraint. Changes optimizations so
update testcases as appropriate as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r-- | test/CodeGen/X86/sse3.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/X86/vec_shuffle-3.ll | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/CodeGen/X86/sse3.ll b/test/CodeGen/X86/sse3.ll index 6319cb8..21c1a3c 100644 --- a/test/CodeGen/X86/sse3.ll +++ b/test/CodeGen/X86/sse3.ll @@ -145,7 +145,9 @@ define void @t9(<4 x float>* %r, <2 x i32>* %A) nounwind { ret void ; X64: t9: ; X64: movsd (%rsi), %xmm0 -; X64: movhps %xmm0, (%rdi) +; X64: movaps (%rdi), %xmm1 +; X64: movlhps %xmm0, %xmm1 +; X64: movaps %xmm1, (%rdi) ; X64: ret } diff --git a/test/CodeGen/X86/vec_shuffle-3.ll b/test/CodeGen/X86/vec_shuffle-3.ll index 556f103..eedbce7 100644 --- a/test/CodeGen/X86/vec_shuffle-3.ll +++ b/test/CodeGen/X86/vec_shuffle-3.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -march=x86 -mattr=+sse2 -o %t ; RUN: grep movlhps %t | count 1 -; RUN: grep movhlps %t | count 1 +; RUN: grep movhps %t | count 1 define <4 x float> @test1(<4 x float>* %x, <4 x float>* %y) { %tmp = load <4 x float>* %y ; <<4 x float>> [#uses=2] @@ -18,4 +18,3 @@ entry: %tmp4 = shufflevector <4 x float> %tmp3, <4 x float> %tmp, <4 x i32> < i32 2, i32 3, i32 6, i32 7 > ; <<4 x float>> [#uses=1] ret <4 x float> %tmp4 } - |