mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-11 07:15:26 +00:00
![David Greene](/assets/img/avatar_default.png)
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">;
|