repo.or.cz
/
llvm
/
zpu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
zpu: wip eke out some simple instructions for load/store/add
[llvm/zpu.git]
/
test
/
TableGen
/
eq.td
blob
518a80ac0d2680ad2f838bfeac0b85494f27ea91
1
// RUN: tblgen %s | FileCheck %s
2
// XFAIL: vg_leak
3
// CHECK: Value = 0
4
// CHECK: Value = 1
5
6
class Base<int V> {
7
int Value = V;
8
}
9
10
class Derived<string Truth> :
11
Base<!if(!eq(Truth, "true"), 1, 0)>;
12
13
def TRUE : Derived<"true">;
14
def FALSE : Derived<"false">;