summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/2011-05-09-loaduse.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/X86/2011-05-09-loaduse.ll')
-rw-r--r--llvm/test/CodeGen/X86/2011-05-09-loaduse.ll14
1 files changed, 10 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/2011-05-09-loaduse.ll b/llvm/test/CodeGen/X86/2011-05-09-loaduse.ll
index 61062b14180..53b71032429 100644
--- a/llvm/test/CodeGen/X86/2011-05-09-loaduse.ll
+++ b/llvm/test/CodeGen/X86/2011-05-09-loaduse.ll
@@ -5,15 +5,21 @@
define float @test(<4 x float>* %A) nounwind {
; X86-LABEL: test:
; X86: # %bb.0: # %entry
+; X86-NEXT: pushl %eax
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X86-NEXT: xorps %xmm0, %xmm0
-; X86-NEXT: flds 12(%eax)
-; X86-NEXT: movaps %xmm0, (%eax)
+; X86-NEXT: movaps (%eax), %xmm0
+; X86-NEXT: shufps {{.*#+}} xmm0 = xmm0[3,1,2,3]
+; X86-NEXT: xorps %xmm1, %xmm1
+; X86-NEXT: movaps %xmm1, (%eax)
+; X86-NEXT: movss %xmm0, (%esp)
+; X86-NEXT: flds (%esp)
+; X86-NEXT: popl %eax
; X86-NEXT: retl
;
; X64-LABEL: test:
; X64: # %bb.0: # %entry
-; X64-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
+; X64-NEXT: movaps (%rdi), %xmm0
+; X64-NEXT: shufps {{.*#+}} xmm0 = xmm0[3,1,2,3]
; X64-NEXT: xorps %xmm1, %xmm1
; X64-NEXT: movaps %xmm1, (%rdi)
; X64-NEXT: retq
OpenPOWER on IntegriCloud