llvm.org GIT mirror llvm / 950c694
For PR1319: Conver to new test system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36045 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
6 changed file(s) with 13 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
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}]]
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | \
1 ; RUN: grep 'call i32 @foo'
1 ; RUN: grep {call i32 @foo}
22
33 declare void %bar(int*)
44 int %foo(uint %N) {
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | \
1 ; RUN: %prcontext alloca 1 | grep 'i32 @foo'
1 ; RUN: $prcontext alloca 1 | grep {i32 @foo}
22
33 declare void %bar(int*)
44 int %foo() {
None ; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | grep 'tail call void @foo'
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | \
1 ; RUN: grep {tail call void @foo}
12
23 declare void %foo()
34
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-upgrade < %s | llvm-as | opt -tailduplicate | llc -march=x86 | grep 'je ' &&
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -tailduplicate | llc -march=x86 | not grep jmp
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -tailduplicate | llc -march=x86 | \
1 ; RUN: grep {je } &&
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -tailduplicate | llc -march=x86 | \
3 ; RUN: not grep jmp
4 ; END.
25 ; This should have no unconditional jumps in it. The C source is:
36
47 ;void foo(int c, int* P) {