Add a more robust !if test.
[oota-llvm.git] / test / TableGen / regmatch.td
1 // RUN: tblgen %s | grep {Match1 = 1} | count 1
2 // RUN: tblgen %s | grep {Match2 = 1} | count 1
3
4 class Foo<string v> {
5       string Value = v;
6       int Match1 = !regmatch(".*ps$", v);
7       int Match2 = !regmatch(".*pd$", v);
8 }
9
10 def Bar : Foo<"addps">;
11 def Baz : Foo<"addpd">;