llvm.org GIT mirror llvm / 4b3fd6c
Convert test cases to new llvm.exp version of llvm_runtest and fix tests that it found to be broken. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36009 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
6 changed file(s) with 13 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | llvm-dis | not grep load
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse -instcombine | \
1 ; RUN: llvm-dis | not grep load
12
23 %X = constant [2 x int] [int 4, int 5]
34
None ; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep 'store i32 0'
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep {store i32 0}
11
22 void %test({int,int }* %P) {
33 %Q = getelementptr {int,int}* %P, int 1
None ; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'load i32\* %A'
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine |\
1 ; RUN: llvm-dis | grep {load i32\\* %A}
12
23 declare double* %useit(int*)
34
None ; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'sub i32' &&
1 ; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | not grep 'ret i32 0'
2 ; PR1109
1 ; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | \
2 ; RUN: grep {sub i32}
3 ; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | \
4 ; RUN: not grep {ret i32 0}
5 ; END.
36
47 target datalayout = "e-p:32:32"
58 target triple = "i686-apple-darwin8"
None load_lib llvm-dg.exp
0 load_lib llvm.exp
11
22 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
None ; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'ret i32 0'
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine |\
1 ; RUN: llvm-dis | grep {ret i32 0}
12 declare void %foo(int*)
23 declare void %bar()
34