llvm.org GIT mirror llvm / fddaa31
Update old-style syntax in some "not grep" tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50560 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
16 changed file(s) with 16 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
0 // RUN: %llvmgcc -c -emit-llvm %s -o - | \
1 // RUN: opt -std-compile-opts | llvm-dis | not grep {declare int.*func}
1 // RUN: opt -std-compile-opts | llvm-dis | not grep {declare i32.*func}
22
33 // There should not be an unresolved reference to func here. Believe it or not,
44 // the "expected result" is a function named 'func' which is internal and
55
66 ; RUN: echo { define internal i32 @foo() \{ ret i32 7 \} } | llvm-as > %t.1.bc
77 ; RUN: llvm-as < %s > %t.2.bc
8 ; RUN: llvm-link %t.1.bc %t.2.bc | llvm-dis | grep internal | not grep %foo(
8 ; RUN: llvm-link %t.1.bc %t.2.bc | llvm-dis | grep internal | not grep @foo(
99
1010 declare i32 @foo()
1111
0 ; RUN: llvm-as < %s | opt -argpromotion | llvm-dis | \
1 ; RUN: not grep {load int\* null}
1 ; RUN: not grep {load i32\* null}
22
33 define internal i32 @callee(i1 %C, i32* %P) {
44 br i1 %C, label %T, label %F
0 ; RUN: llvm-as < %s | opt -dse -scalarrepl -instcombine | \
1 ; RUN: llvm-dis | not grep {ret int undef}
1 ; RUN: llvm-dis | not grep {ret i32 undef}
22
33 define i32 @test(double %__x) {
44 %__u = alloca { [3 x i32] } ; <{ [3 x i32] }*> [#uses=2]
None ; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar | not grep uint
0 ; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar | not grep i32
11
22 @G = global i64 0 ; [#uses=1]
33
11 ; inlined into all of their callers.
22
33 ; RUN: llvm-as < %s | opt -inline | llvm-dis | \
4 ; RUN: not grep %reallysmall
4 ; RUN: not grep @reallysmall
55
66 define internal i32 @reallysmall(i32 %A) {
77 ret i32 %A
0 ; RUN: llvm-as < %s | opt -instcombine -mem2reg -simplifycfg | \
1 ; RUN: llvm-dis | grep -v store | not grep {int 1}
1 ; RUN: llvm-dis | grep -v store | not grep {i32 1}
22
33 ; Test to make sure that instcombine does not accidentally propagate the load
44 ; into the PHI, which would break the program.
0 ; RUN: llvm-as < %s | opt -instcombine -simplifycfg | llvm-dis |\
1 ; RUN: not grep {call void %abort}
1 ; RUN: not grep {call void @abort}
22
33 @b_rec.0 = external global i32 ; [#uses=2]
44
11 ; that folding doesn't happen in case a zext is applied where a sext should have
22 ; been when a setcc is used with two casts.
33 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
4 ; RUN: not grep {br bool false}
4 ; RUN: not grep {br i1 false}
55 ; END.
66
77 define i32 @bug(i8 %inbuff) {
0 ; RUN: llvm-as < %s | opt -loop-reduce | llvm-dis | \
1 ; RUN: not grep {cast uint 1 to uint}
1 ; RUN: not grep {bitcast i32 1 to i32}
22 ; END.
33 ; The setlt wants to use a value that is incremented one more than the dominant
44 ; IV. Don't insert the 1 outside the loop, preventing folding it into the add.
11 ; 'br Dest'
22
33 ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | \
4 ; RUN: not grep {br bool %c2}
4 ; RUN: not grep {br i1 %c2}
55
66 declare void @noop()
77
33 ; the ConstantFoldTerminator function.
44
55 ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | \
6 ; RUN: not grep {br bool %c2}
6 ; RUN: not grep {br i1 %c2}
77
88 declare void @noop()
99
0 ; RUN: llvm-as < %s | opt -simplifycfg -adce | llvm-dis | \
1 ; RUN: not grep {call void %f1}
1 ; RUN: not grep {call void @f1}
22 ; END.
33
44 declare void @f1()
0 ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | \
1 ; RUN: not grep {call void %DEAD}
1 ; RUN: not grep {call void @DEAD}
22
33 ; Test that we can thread a simple known condition through switch statements.
44
0 ; Test that the ToAsciiOptimizer works correctly
11 ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | \
2 ; RUN: not grep {call.*%ffs}
2 ; RUN: not grep {call.*@ffs}
33
44 @non_const = external global i32 ; [#uses=1]
55
0 ; Test that the StrChrOptimizer works correctly
11 ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | \
2 ; RUN: not grep {call.*%strchr}
2 ; RUN: not grep {call.*@strchr}
33
44 @hello = constant [14 x i8] c"hello world\5Cn\00" ; <[14 x i8]*> [#uses=1]
55 @null = constant [1 x i8] zeroinitializer ; <[1 x i8]*> [#uses=1]