projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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">;