summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2009-11-07 08:45:53 +0000
committerEric Christopher <echristo@apple.com>2009-11-07 08:45:53 +0000
commitbd05185ef12881b1b55a9fdf262fc0e6ede7ccc6 (patch)
treef10d84f7dc7f98124071f59028fd606b4103fe63 /llvm/test
parentb6a3dd48f4a27215f01da1fa8a9685fedb7d71c2 (diff)
downloadbcm5719-llvm-bd05185ef12881b1b55a9fdf262fc0e6ede7ccc6.tar.gz
bcm5719-llvm-bd05185ef12881b1b55a9fdf262fc0e6ede7ccc6.zip
Fix a couple of shuffle patterns to use movhlps instead
of movhps as the constraint. Changes optimizations so update testcases as appropriate as well. llvm-svn: 86360
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/sse3.ll4
-rw-r--r--llvm/test/CodeGen/X86/vec_shuffle-3.ll3
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/sse3.ll b/llvm/test/CodeGen/X86/sse3.ll
index 6319cb887af..21c1a3c8122 100644
--- a/llvm/test/CodeGen/X86/sse3.ll
+++ b/llvm/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/llvm/test/CodeGen/X86/vec_shuffle-3.ll b/llvm/test/CodeGen/X86/vec_shuffle-3.ll
index 556f1037d0c..eedbce720ef 100644
--- a/llvm/test/CodeGen/X86/vec_shuffle-3.ll
+++ b/llvm/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
}
-
OpenPOWER on IntegriCloud