llvm.org GIT mirror llvm / 97e287e
For PR1319: Upgrade to new test harness. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36086 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
10 changed file(s) with 18 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
1515 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
1616 ; RUN: grep sbc | wc -l | grep 1
1717 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep __muldi3
18 ; END.
1819
1920 long %f1() {
2021 entry:
None ; RUN: llvm-as < %s | llc &&
1 ; RUN: llvm-as < %s | llc | grep jmp | wc -l | grep 0
2 ; PR 1200
1 ; RUN: llvm-as < %s | llc | not grep jmp
32
43 ; ModuleID = ''
54 target datalayout = "e-p:32:32"
None ; RUN: llvm-as < %s | llc -march=x86 | grep 'movl $1, %eax'
1 ; PR1219
1 ; RUN: llvm-as < %s | llc -march=x86 | grep {movl \$1, %eax}
22
33 define i32 @test(i1 %X) {
44 old_entry1:
None ; RUN: llvm-as < %s | llc &&
1 ; RUN: llvm-as < %s | llc -march=x86 | grep 'add' &&
2 ; RUN: llvm-as < %s | llc -march=x86 | not grep 'adc'
0 ; RUN: llvm-as < %s | llc -march=x86 | grep add
1 ; RUN: llvm-as < %s | llc -march=x86 | not grep adc
32
43 define i64 @test(i64 %A, i32 %B) {
54 %tmp12 = zext i32 %B to i64 ; [#uses=1]
None load_lib llvm-dg.exp
0 load_lib llvm.exp
11
2 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
None ; RUN: llvm-as < %s | llc -march=x86 | grep shrl.*31 &&
1 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'srwi r3, r3, 31' &&
2 ; RUN: llvm-as < %s | llc -march=arm | grep 'mov r0, r0, lsr #31' &&
3 ; RUN: llvm-as < %s | llc -march=thumb | grep 'lsr r0, r0, #31'
0 ; RUN: llvm-as < %s | llc -march=x86 | grep {shrl.*31}
1 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
2 ; RUN: grep {srwi r3, r3, 31}
3 ; RUN: llvm-as < %s | llc -march=arm | grep {mov r0, r0, lsr #31}
4 ; RUN: llvm-as < %s | llc -march=thumb | grep {lsr r0, r0, #31}
45
56 define i32 @test1(i32 %X) {
67 entry:
None ; RUN: llvm-as < %s | llc -march=x86 | grep 'movl $1' | wc -l | grep 1
1 ; PR1296
1 ; RUN: llvm-as < %s | llc -march=x86 | grep {movl \$1} | wc -l | grep 1
22
33 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
44 target triple = "i686-apple-darwin8"
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep 'mov.*str1' | wc -l | grep 1
2 ; PR925
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
2 ; RUN: grep mov.*str1 | wc -l | grep 1
33
44 target endian = little
55 target pointersize = 32
0 ; this should turn into shladd
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ia64 | grep 'shladd'
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ia64 | grep shladd
22
33 implementation ; Functions:
44
None load_lib llvm-dg.exp
0 load_lib llvm.exp
11
2 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]