repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ThinLTO] Add code comment. NFC
[llvm-complete.git]
/
test
/
TableGen
/
condsbit.td
blob
e08ac97f68bf3cce556903d31e159c386ffb6fc5
1
// check that !cond works well with bit conditional values
2
// RUN: llvm-tblgen %s | FileCheck %s
3
// XFAIL: vg_leak
4
// CHECK: a = 6
5
// CHECK: a = 5
6
7
class A<bit b = 1> {
8
bit true = 1;
9
int a = !cond(b: 5, true : 6);
10
bit c = !cond(b: 0, true : 1);
11
bits<1> d = !cond(b: 0, true : 1);
12
}
13
14
def X : A<0>;
15
def Y : A;