llvm.org GIT mirror llvm / 9c7a988
Use "opt < %s" instead of "opt %s" so that opt doesn't print the test filename in the output, which interferes with the tests' grep lines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81263 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
5 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
None ; RUN: opt %s -std-compile-opts -S > %t
0 ; RUN: opt < %s -std-compile-opts -S > %t
11 ; RUN: grep undef %t | count 1
22 ; RUN: grep 5 %t | count 1
33 ; RUN: grep 7 %t | count 1
None ; RUN: opt %s -indvars -S > %t
0 ; RUN: opt < %s -indvars -S > %t
11 ; RUN: not grep trunc %t
22 ; RUN: grep and %t | count 1
33
None ; RUN: opt %s -instcombine -S | grep {xor i32 %a, %b} | count 4
1 ; RUN: opt %s -instcombine -S | not grep {and}
0 ; RUN: opt < %s -instcombine -S | grep {xor i32 %a, %b} | count 4
1 ; RUN: opt < %s -instcombine -S | not grep {and}
22
33 define i32 @func1(i32 %a, i32 %b) nounwind readnone {
44 entry:
None ; RUN: opt %s -reassociate -dce -S | \
0 ; RUN: opt < %s -reassociate -dce -S | \
11 ; RUN: not grep {\\(and\\|sub\\)}
22
33 define i32 @test1(i32 %a, i32 %b) {
11 ; logic operations.
22
33
4 ; RUN: opt %s -sccp -S | not grep and
5 ; RUN: opt %s -sccp -S | not grep trunc
6 ; RUN: opt %s -sccp -S | grep {ret i100 -1}
4 ; RUN: opt < %s -sccp -S | not grep and
5 ; RUN: opt < %s -sccp -S | not grep trunc
6 ; RUN: opt < %s -sccp -S | grep {ret i100 -1}
77
88 define i100 @test(i133 %A) {
99 %B = and i133 0, %A