llvm.org GIT mirror llvm / a9338b6
For PR1319: Upgrade to new test harness git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36070 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
10 changed file(s) with 17 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-as -f %s -o %t.bc
1 ; RUN: lli -debug-only=jit %t.bc 2>&1 | not grep 'Finished CodeGen of .*Function: F'
0 ; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
1 ; RUN: lli -debug-only=jit %t.bc |& not grep {Finished CodeGen of .*Function: F}
22
33 %.str_1 = internal constant [7 x sbyte] c"IN F!\0A\00" ; <[7 x sbyte]*> [#uses=1]
44 %.str_2 = internal constant [7 x sbyte] c"IN G!\0A\00" ; <[7 x sbyte]*> [#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}]]
11 ; figure out that loop "Inner" should be nested inside of leep "LoopHeader",
22 ; and instead nests it just inside loop "Top"
33 ;
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -loops | grep ' Loop Containing:[ ]*%Inner'
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -loops | \
5 ; RUN: grep { Loop Containing:\[ \]*%Inner}
56 ;
67
78 implementation
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: tblgen -I `dirname %s` %s
0 // RUN: tblgen -I %p %s
11 def BeforeInclude;
22
33 include "Include.inc"
None // RUN: tblgen %s | grep 'int Y = 3'
0 // RUN: tblgen %s | grep {int Y = 3}
11
22
33 class C {
None // RUN: tblgen %s &&
1 // RUN: tblgen %s | grep 'zing = 4' | wc -l | grep 2
0 // RUN: tblgen %s | grep {zing = 4} | wc -l | grep 2
21
32 class C1 {
43 int bar = A;
None load_lib llvm-dg.exp
0 load_lib llvm.exp
11
2 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
None ; RUN: not llvm-as 2>&1 < %s > /dev/null &&
1 ; RUN: llvm-as 2>&1 < %s > /dev/null | \
2 ; RUN: grep 'Cannot form a pointer to a basic block'
0 ; RUN: ignore llvm-as < %s > /dev/null |& \
1 ; RUN: grep {Cannot form a pointer to a basic block}
32
43 define i32 @main() {
54 %foo = call i8* %llvm.stacksave()
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}]]