llvm.org GIT mirror llvm / 085f982
Add some tests for the FileCheck utility. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121112/156007.html git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168113 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Bendersky 7 years ago
4 changed file(s) with 27 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 config.suffixes = ['.txt']
0 // RUN: not FileCheck -input-file %s %s
1
2 foo
3 bar
4 ; CHECK: foo
5 baz
6 ; CHECK-NEXT: baz
7
8
0 // RUN: not FileCheck -input-file %s %s
1
2 foobar
3 ; CHECK: fooba{{[a-b]}}
4
0 // RUN: FileCheck -input-file %s %s
1
2 op1 r1
3 op2 r1, r2
4 ; CHECK: op1 [[REG:r[0-9]+]]
5 ; CHECK-NEXT: op2 [[REG]]
6
7 op3 r16, r18, r21
8 op4 r30, r18, r21
9 ; CHECK: op3 {{r[0-9]+}}, [[REGa:r[0-9]+]], [[REGb:r[0-9]+]]
10 ; CHECK-NEXT: op4 {{r[0-9]+}}, [[REGa]], [[REGb]]
11