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
This commit is contained in:
Eli Bendersky 2012-11-15 23:42:51 +00:00
parent 2b009a3e81
commit 085f982462
4 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1 @@
config.suffixes = ['.txt']

View File

@ -0,0 +1,9 @@
// RUN: not FileCheck -input-file %s %s
foo
bar
; CHECK: foo
baz
; CHECK-NEXT: baz

View File

@ -0,0 +1,5 @@
// RUN: not FileCheck -input-file %s %s
foobar
; CHECK: fooba{{[a-b]}}

View File

@ -0,0 +1,12 @@
// RUN: FileCheck -input-file %s %s
op1 r1
op2 r1, r2
; CHECK: op1 [[REG:r[0-9]+]]
; CHECK-NEXT: op2 [[REG]]
op3 r16, r18, r21
op4 r30, r18, r21
; CHECK: op3 {{r[0-9]+}}, [[REGa:r[0-9]+]], [[REGb:r[0-9]+]]
; CHECK-NEXT: op4 {{r[0-9]+}}, [[REGa]], [[REGb]]