; Tests for SSE2 and below, without SSE3+.
-; RUN: llvm-as < %s | llc -march=x86 -mcpu=pentium4 | FileCheck %s
+; RUN: llc < %s -mtriple=i386-apple-darwin10 -mcpu=pentium4 -O3 | FileCheck %s
define void @t1(<2 x double>* %r, <2 x double>* %A, double %B) nounwind {
%tmp3 = load <2 x double>* %A, align 16
; CHECK: t1:
; CHECK: movl 8(%esp), %eax
-; CHECK: movapd (%eax), %xmm0
-; CHECK: movlpd 12(%esp), %xmm0
-; CHECK: movl 4(%esp), %eax
-; CHECK: movapd %xmm0, (%eax)
-; CHECK: ret
+; CHECK-NEXT: movl 4(%esp), %ecx
+; CHECK-NEXT: movapd (%eax), %xmm0
+; CHECK-NEXT: movlpd 12(%esp), %xmm0
+; CHECK-NEXT: movapd %xmm0, (%ecx)
+; CHECK-NEXT: ret
}
define void @t2(<2 x double>* %r, <2 x double>* %A, double %B) nounwind {
; CHECK: t2:
; CHECK: movl 8(%esp), %eax
-; CHECK: movapd (%eax), %xmm0
-; CHECK: movhpd 12(%esp), %xmm0
-; CHECK: movl 4(%esp), %eax
-; CHECK: movapd %xmm0, (%eax)
-; CHECK: ret
+; CHECK-NEXT: movl 4(%esp), %ecx
+; CHECK-NEXT: movapd (%eax), %xmm0
+; CHECK-NEXT: movhpd 12(%esp), %xmm0
+; CHECK-NEXT: movapd %xmm0, (%ecx)
+; CHECK-NEXT: ret
}