mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
convert to filecheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79117 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
11ade72cda
commit
d8d7335f79
@ -1,6 +1,5 @@
|
|||||||
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movlpd
|
; Tests for SSE2 and below, without SSE3+.
|
||||||
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movhpd
|
; RUN: llvm-as < %s | llc -march=x86 -mcpu=pentium4 | FileCheck %s
|
||||||
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep movsd
|
|
||||||
|
|
||||||
define void @t1(<2 x double>* %r, <2 x double>* %A, double %B) nounwind {
|
define void @t1(<2 x double>* %r, <2 x double>* %A, double %B) nounwind {
|
||||||
%tmp3 = load <2 x double>* %A, align 16
|
%tmp3 = load <2 x double>* %A, align 16
|
||||||
@ -8,6 +7,14 @@ define void @t1(<2 x double>* %r, <2 x double>* %A, double %B) nounwind {
|
|||||||
%tmp9 = shufflevector <2 x double> %tmp3, <2 x double> %tmp7, <2 x i32> < i32 2, i32 1 >
|
%tmp9 = shufflevector <2 x double> %tmp3, <2 x double> %tmp7, <2 x i32> < i32 2, i32 1 >
|
||||||
store <2 x double> %tmp9, <2 x double>* %r, align 16
|
store <2 x double> %tmp9, <2 x double>* %r, align 16
|
||||||
ret void
|
ret void
|
||||||
|
|
||||||
|
; 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
|
||||||
}
|
}
|
||||||
|
|
||||||
define void @t2(<2 x double>* %r, <2 x double>* %A, double %B) nounwind {
|
define void @t2(<2 x double>* %r, <2 x double>* %A, double %B) nounwind {
|
||||||
@ -16,4 +23,12 @@ define void @t2(<2 x double>* %r, <2 x double>* %A, double %B) nounwind {
|
|||||||
%tmp9 = shufflevector <2 x double> %tmp3, <2 x double> %tmp7, <2 x i32> < i32 0, i32 2 >
|
%tmp9 = shufflevector <2 x double> %tmp3, <2 x double> %tmp7, <2 x i32> < i32 0, i32 2 >
|
||||||
store <2 x double> %tmp9, <2 x double>* %r, align 16
|
store <2 x double> %tmp9, <2 x double>* %r, align 16
|
||||||
ret void
|
ret void
|
||||||
|
|
||||||
|
; 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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user