mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
16 lines
316 B
TableGen
16 lines
316 B
TableGen
|
// check that !cond works well with bit conditional values
|
||
|
// RUN: llvm-tblgen %s | FileCheck %s
|
||
|
// XFAIL: vg_leak
|
||
|
// CHECK: a = 6
|
||
|
// CHECK: a = 5
|
||
|
|
||
|
class A<bit b = 1> {
|
||
|
bit true = 1;
|
||
|
int a = !cond(b: 5, true : 6);
|
||
|
bit c = !cond(b: 0, true : 1);
|
||
|
bits<1> d = !cond(b: 0, true : 1);
|
||
|
}
|
||
|
|
||
|
def X : A<0>;
|
||
|
def Y : A;
|