aboutsummaryrefslogtreecommitdiffstats
path: root/test/TableGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-10-06 04:36:30 +0000
committerChris Lattner <sabre@nondot.org>2010-10-06 04:36:30 +0000
commit4822509b284459e2b53a291e3b06812fcf91cd70 (patch)
treee5bf61eb09aead1095489b3f6a7018bd4b9c5121 /test/TableGen
parent578bcf0e48ab5858eeb8870839fa2946b6edd4b4 (diff)
downloadexternal_llvm-4822509b284459e2b53a291e3b06812fcf91cd70.zip
external_llvm-4822509b284459e2b53a291e3b06812fcf91cd70.tar.gz
external_llvm-4822509b284459e2b53a291e3b06812fcf91cd70.tar.bz2
filecheckize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r--test/TableGen/DagDefSubst.td16
-rw-r--r--test/TableGen/DagIntSubst.td29
2 files changed, 24 insertions, 21 deletions
diff --git a/test/TableGen/DagDefSubst.td b/test/TableGen/DagDefSubst.td
deleted file mode 100644
index 92a207f..0000000
--- a/test/TableGen/DagDefSubst.td
+++ /dev/null
@@ -1,16 +0,0 @@
-// RUN: tblgen %s | grep {dag d = (X Y)}
-// RUN: tblgen %s | grep {dag e = (Y X)}
-// XFAIL: vg_leak
-def X;
-
-class yclass;
-def Y : yclass;
-
-class C<yclass N> {
- dag d = (X N);
- dag e = (N X);
-}
-
-def VAL : C<Y>;
-
-
diff --git a/test/TableGen/DagIntSubst.td b/test/TableGen/DagIntSubst.td
index 00fde69..676f0b0 100644
--- a/test/TableGen/DagIntSubst.td
+++ b/test/TableGen/DagIntSubst.td
@@ -1,11 +1,30 @@
-// RUN: tblgen %s | grep {dag d = (X 13)}
+// RUN: tblgen %s | FileCheck %s
// XFAIL: vg_leak
-def X;
+def X1;
-class C<int N> {
- dag d = (X N);
+class C1<int N> {
+ dag d = (X1 N);
}
-def VAL : C<13>;
+def VAL1 : C1<13>;
+// CHECK: def VAL1 {
+// CHECK-NEXT: dag d = (X1 13)
+
+
+def X2;
+
+class yclass;
+def Y2 : yclass;
+
+class C2<yclass N> {
+ dag d = (X2 N);
+ dag e = (N X2);
+}
+
+def VAL2 : C2<Y2>;
+
+// CHECK: def VAL2 {
+// CHECK-NEXT: dag d = (X2 Y2)
+// CHECK-NEXT: dag e = (Y2 X2)