repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
llvm
/
test
/
TableGen
/
condsbit.td
blob
d0dda7cbfe6b19638992b7a38c7111c5e734174c
1
// RUN: llvm-tblgen %s | FileCheck %s
2
// XFAIL: vg_leak
3
4
// Check that !cond works well with bit conditional values.
5
6
class A<bit b = true> {
7
int a = !cond(b: 5, true : 6);
8
bit c = !cond(b: false, true : true);
9
bits<1> d = !cond(b: 0, true : 1);
10
}
11
12
// CHECK: def X
13
// CHECK: a = 6
14
// CHECK: c = 1
15
// CHECK: d = { 1 }
16
17
// CHECK: def Y
18
// CHECK: a = 5
19
// CHECK: c = 0
20
// CHECK: d = { 0 }
21
22
def X : A<false>;
23
def Y : A;