aboutsummaryrefslogtreecommitdiffstats
path: root/test/TableGen/regmatch.td
blob: 3eb35df41c39fbba7656980783b90e6d7890880d (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: tblgen %s | grep {Match1 = 1} | count 1
// RUN: tblgen %s | grep {Match2 = 1} | count 1

class Foo<string v> {
      string Value = v;
      int Match1 = !regmatch(".*ps$", v);
      int Match2 = !regmatch(".*pd$", v);
}

def Bar : Foo<"addps">;
def Baz : Foo<"addpd">;