mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
For PR1319: Upgrade to use new test harness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
65f47a3a05
commit
1c0c94d6df
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=thumb &&
|
||||
; RUN: llvm-as < %s | llc -mtriple=thumb-apple-darwin -relocation-model=pic -mattr=+v6,+vfp2 | not grep 'add r., r7, #2 \* 4'
|
||||
; RUN: llvm-as < %s | llc -march=thumb
|
||||
; RUN: llvm-as < %s | llc -mtriple=thumb-apple-darwin -relocation-model=pic \
|
||||
; RUN: -mattr=+v6,+vfp2 | not grep {add r., r7, #2 \\* 4}
|
||||
|
||||
%struct.__fooAllocator = type opaque
|
||||
%struct.__fooY = type { %struct.fooXBase, %struct.__fooString*, %struct.__fooU*, %struct.__fooV*, i8** }
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-apple-darwin8 -stats 2>&1 | not grep 'register spills'
|
||||
; RUN: llvm-as < %s | llc -march=thumb
|
||||
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-apple-darwin8 -stats |& \
|
||||
; RUN: not grep {register spills}
|
||||
|
||||
;; Must talk to evan about this.
|
||||
; XFAIL: *
|
||||
|
@ -1,8 +1,11 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep align.*1 | wc | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux | grep align.*2 | wc | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux | grep align.*3 | wc | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | grep align.*2 | wc | grep 4
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep align.*1 | wc | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux | \
|
||||
; RUN: grep align.*2 | wc | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux | \
|
||||
; RUN: grep align.*3 | wc | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep align.*2 | wc | grep 4
|
||||
|
||||
%a = global bool true
|
||||
%b = global sbyte 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "str r1, \[r.*, -r.*, lsl #2]"
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep {str r1, \\\[r.*, -r.*, lsl #2\}
|
||||
|
||||
define void @test(i32* %P, i32 %A, i32 %i) {
|
||||
entry:
|
||||
|
@ -1,6 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep 'mov lr, pc' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5t | grep 'blx'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep {mov lr, pc}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5t | grep blx
|
||||
|
||||
%t = weak global int ()* null
|
||||
declare void %g(int, int, int, int)
|
||||
|
@ -1,10 +1,15 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | grep '\.mod_init_func' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | grep '\.mod_term_func' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux-gnu | grep '\.section \.ctors,"aw",.progbits' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux-gnu | grep '\.section \.dtors,"aw",.progbits' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux-gnueabi | grep '\.section \.init_array,"aw",.init_array' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux-gnueabi | grep '\.section \.fini_array,"aw",.fini_array'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep {\\.mod_init_func}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep {\\.mod_term_func}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux-gnu | \
|
||||
; RUN: grep {\\.section \\.ctors,"aw",.progbits}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux-gnu | \
|
||||
; RUN: grep {\\.section \\.dtors,"aw",.progbits}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux-gnueabi | \
|
||||
; RUN: grep {\\.section \\.init_array,"aw",.init_array}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux-gnueabi | \
|
||||
; RUN: grep {\\.section \\.fini_array,"aw",.fini_array}
|
||||
|
||||
%llvm.global_ctors = appending global [1 x { int, void ()* }] [ { int, void ()* } { int 65535, void ()* %__mf_init } ] ; <[1 x { int, void ()* }]*> [#uses=0]
|
||||
%llvm.global_dtors = appending global [1 x { int, void ()* }] [ { int, void ()* } { int 65535, void ()* %__mf_fini } ] ; <[1 x { int, void ()* }]*> [#uses=0]
|
||||
|
@ -1,3 +1,3 @@
|
||||
load_lib llvm-dg.exp
|
||||
load_lib llvm.exp
|
||||
|
||||
llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
|
||||
|
@ -1,16 +1,21 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fmsr | wc -l | grep 4 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fsitos &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fmrs &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fsitod &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fmrrd | wc -l | grep 5 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fmdrr | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fldd &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep flds &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fuitod &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fuitos &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep 1065353216
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fmsr | wc -l | grep 4
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fsitos
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fmrs
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fsitod
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fmrrd | wc -l | grep 5
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fmdrr | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fldd
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep flds
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fuitod
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fuitos
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep 1065353216
|
||||
|
||||
float %f(int %a) {
|
||||
entry:
|
||||
|
@ -1,7 +1,5 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | \
|
||||
; RUN: grep 'ldr.*LCP' | wc -l | grep 5
|
||||
; RUN: llvm-as < %s | llc -march=arm
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep {ldr.*LCP} | wc -l | grep 5
|
||||
|
||||
define void @test1() {
|
||||
%tmp = alloca [ 64 x i32 ] , align 4
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "ldr r0" | wc -l | grep 3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {ldr r0} | wc -l | grep 3
|
||||
|
||||
int %f1(int* %v) {
|
||||
entry:
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "ldr.*\[.*]," | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {ldr.*\\\[.*\],} | wc -l | grep 1
|
||||
|
||||
int %test(int %a, int %b, int %c) {
|
||||
%tmp1 = mul int %a, %b
|
||||
|
@ -1,6 +1,10 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | grep "L_G$non_lazy_ptr" | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -relocation-model=pic | grep "ldr.*pc" | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \
|
||||
; RUN: grep {L_G\$non_lazy_ptr} | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -mtriple=arm-apple-darwin -relocation-model=pic | \
|
||||
; RUN: grep {ldr.*pc} | wc -l | grep 1
|
||||
|
||||
%G = external global int
|
||||
|
||||
|
@ -1,17 +1,21 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "\-2147483648" | wc -l | grep 3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mvn" | wc -l | grep 3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "adds" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "adc" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "subs " | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "sbc" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "smull" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "umull" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep "mvn" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep "adc" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep "sbc" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep "__muldi3"
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep -- {-2147483648} | wc -l | grep 3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep adds | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep adc | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep subs | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep sbc | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep smull | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep umull | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
|
||||
; RUN: grep mvn | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
|
||||
; RUN: grep adc | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
|
||||
; RUN: grep sbc | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep __muldi3
|
||||
|
||||
long %f1() {
|
||||
entry:
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep -F 'str r2, [r0, +r3, lsl #2]'
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep -F {str r2, \[r0, +r3, lsl #2\]}
|
||||
; Should use scaled addressing mode.
|
||||
|
||||
define void @sintzero(i32* %a) {
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep strb &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep strb
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep strh
|
||||
|
||||
void %f1() {
|
||||
|
@ -1,7 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep mul | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep lsl | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep mul | wc -l | grep 3 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep mul | wc -l | grep 2
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep lsl | wc -l | grep 2
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep mul | wc -l | grep 3
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep lsl | wc -l | grep 1
|
||||
|
||||
define i32 @f1(i32 %u) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | grep smmul | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | \
|
||||
; RUN: grep smmul | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep umull | wc -l | grep 1
|
||||
|
||||
int %smulhi(int %x, int %y) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 8
|
||||
; END.
|
||||
|
||||
int %f1() {
|
||||
entry:
|
||||
|
@ -1,6 +1,9 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | grep pkhbt | wc -l | grep 5 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | grep pkhtb | wc -l | grep 4
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | \
|
||||
; RUN: grep pkhbt | wc -l | grep 5 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | \
|
||||
; RUN: grep pkhtb | wc -l | grep 4
|
||||
; END.
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
int %test1(int %X, int %Y) {
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | grep rev16 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | grep rev16
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | grep revsh
|
||||
|
||||
int %test1(uint %X) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux | grep "__DTOR_END__:" &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux | \
|
||||
; RUN: grep '.section .dtors,"aw",.progbits'
|
||||
; RUN: grep {__DTOR_END__:}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux | \
|
||||
; RUN: grep {.section .dtors,"aw",.progbits}
|
||||
|
||||
%__DTOR_END__ = internal global [1 x int] zeroinitializer, section ".dtors"
|
||||
|
@ -1,17 +1,17 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep moveq | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movgt | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movlt | wc -l | grep 3 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movle | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movls | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movhi | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep fcpydmi | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep beq | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep bgt | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep blt | wc -l | grep 3 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep ble | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep bls | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep bhi | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep moveq | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movgt | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movlt | wc -l | grep 3
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movle | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movls | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movhi | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fcpydmi | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep beq | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep bgt | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep blt | wc -l | grep 3
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep ble | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep bls | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep bhi | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep __ltdf2
|
||||
|
||||
define i32 @f1(i32 %a.s) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep add | grep lsl &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep add | grep lsl
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep bic | grep asr
|
||||
|
||||
int %test1(int %X, int %Y, ubyte %sh) {
|
||||
|
@ -1,8 +1,11 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE | grep "smulbt" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE | grep "smultt" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE | grep "smlabt" | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE | \
|
||||
; RUN: grep smulbt | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE | \
|
||||
; RUN: grep smultt | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE | \
|
||||
; RUN: grep smlabt | wc -l | grep 1
|
||||
|
||||
%x = weak global short 0
|
||||
%y = weak global short 0
|
||||
|
@ -1,6 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep add | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb &&
|
||||
; RUN: llvm-as < %s | llc -march=arm
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep add | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep add | wc -l | grep 1
|
||||
|
||||
define void @f1() {
|
||||
|
@ -1,6 +1,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "strh .*\[.*], #-4" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "str .*\[.*]," | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {strh .*\\\[.*\], #-4} | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {str .*\\\[.*\],} | wc -l | grep 1
|
||||
|
||||
short %test1(int *%X, short *%A) {
|
||||
%Y = load int* %X
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "str.*\!" | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {str.*\\!} | wc -l | grep 2
|
||||
|
||||
void %test1(int *%X, int *%A, int **%dest) {
|
||||
%B = load int* %A
|
||||
|
@ -1,6 +1,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "strb" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "strh" | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep strb | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep strh | wc -l | grep 1
|
||||
|
||||
void %test1(int %v, short* %ptr) {
|
||||
%tmp = cast int %v to short
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep "sxtb" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep "sxtab" | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | \
|
||||
; RUN: grep sxtb | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | \
|
||||
; RUN: grep sxtab | wc -l | grep 1
|
||||
|
||||
define i8 @test1(i32 %A) sext {
|
||||
%B = lshr i32 %A, 8
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-as < %s | llc -march=thumb &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | not grep CPI
|
||||
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "ldrb.*7" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "ldrsb.*7" | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep ldrb.*7 | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep ldrsb.*7 | wc -l | grep 1
|
||||
|
||||
%struct.A = type { i8, i8, i8, i8, i16, i8, i8, %struct.B** }
|
||||
%struct.B = type { float, float, i32, i32, i32, [0 x i8] }
|
||||
|
@ -1,8 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "tst" &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "teq" &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep "tst"
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep tst
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep teq
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep tst
|
||||
|
||||
define i32 @f(i32 %a) {
|
||||
entry:
|
||||
|
@ -1,8 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movne | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep moveq | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep bne | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep movne | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep moveq | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep bne | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep beq | wc -l | grep 1
|
||||
|
||||
define i32 @f1(float %X, float %Y) {
|
||||
|
@ -1,8 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep "uxtb" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep "uxtab" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep "uxth" | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep uxtb | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep uxtab | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep uxth | wc -l | grep 1
|
||||
|
||||
define i8 @test1(i32 %A.u) zext {
|
||||
%B.u = trunc i32 %A.u to i8
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | grep uxt | wc -l | grep 10
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | \
|
||||
; RUN: grep uxt | wc -l | grep 10
|
||||
; END.
|
||||
|
||||
uint %test1(uint %x) {
|
||||
%tmp1 = and uint %x, 16711935 ; <uint> [#uses=1]
|
||||
|
@ -1,6 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm %%
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep pop | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
|
||||
; RUN: grep pop | wc -l | grep 2
|
||||
|
||||
%str = internal constant [4 x sbyte] c"%d\0A\00" ; <[4 x sbyte]*> [#uses=1]
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnueabi | grep "add sp, sp, #16" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnu | grep "add sp, sp, #12" | wc -l | grep 2
|
||||
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnueabi | \
|
||||
; RUN: grep {add sp, sp, #16} | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnu | \
|
||||
; RUN: grep {add sp, sp, #12} | wc -l | grep 2
|
||||
|
||||
define i32 @f(i32 %a, ...) {
|
||||
entry:
|
||||
|
@ -1,12 +1,19 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fabs | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fmscs | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fcvt | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fuito | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fto.i | wc -l | grep 4 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep bmi | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep bgt | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fcmpezs | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fabs | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fmscs | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fcvt | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fuito | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fto.i | wc -l | grep 4 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep bmi | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep bgt | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fcmpezs | wc -l | grep 1
|
||||
|
||||
void %test(float *%P, double* %D) {
|
||||
%A = load float* %P
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep .weak.*f &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep .weak.*f
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep .weak.*h
|
||||
|
||||
implementation ; Functions:
|
||||
|
Loading…
Reference in New Issue
Block a user