aboutsummaryrefslogtreecommitdiffstats
path: root/test/FileCheck/simple-var-capture.txt
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2012-11-15 23:42:51 +0000
committerEli Bendersky <eliben@google.com>2012-11-15 23:42:51 +0000
commit085f982462257de466267edf036c75defd80fc41 (patch)
tree985c638d50b501a003e701353b05a087c832190e /test/FileCheck/simple-var-capture.txt
parent2b009a3e8185c57552ecda50b9f4cf9fe01dd6cc (diff)
downloadexternal_llvm-085f982462257de466267edf036c75defd80fc41.zip
external_llvm-085f982462257de466267edf036c75defd80fc41.tar.gz
external_llvm-085f982462257de466267edf036c75defd80fc41.tar.bz2
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
Diffstat (limited to 'test/FileCheck/simple-var-capture.txt')
-rw-r--r--test/FileCheck/simple-var-capture.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/FileCheck/simple-var-capture.txt b/test/FileCheck/simple-var-capture.txt
new file mode 100644
index 0000000..c0214d9
--- /dev/null
+++ b/test/FileCheck/simple-var-capture.txt
@@ -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]]
+