mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73074 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
278 B
TableGen
12 lines
278 B
TableGen
// 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">;
|