InstCombine: creating selects from -1 and 0 is fine, they combine into a sext from i1.
[oota-llvm.git] / test / TableGen / MultiClass.td
index 7e117d526abe0a22f8fe5c203963a2c0eec1ce5c..9f92b73dba65bdc1c437eab8c2f0b9f4e6a4e338 100644 (file)
@@ -1,7 +1,10 @@
-// RUN: tblgen %s
+// RUN: tblgen %s | grep {zing = 4} | count 2
+// XFAIL: vg_leak
+
 class C1<int A, string B> { 
   int bar = A;
   string thestr = B;
+  int zing;
 }
 
 def T : C1<4, "blah">;
@@ -15,3 +18,9 @@ multiclass t<int a> {
 }
 
 defm FOO : t<42>;
+
+def T4 : C1<6, "foo">;
+
+let zing = 4 in
+  defm BAZ : t<3>;
+