brintos

brintos / llvm-project-archived public Read only

0
0
Text · 434 B · d0dda7c Raw
24 lines · plain
1// RUN: llvm-tblgen %s | FileCheck %s2// XFAIL: vg_leak3 4// Check that !cond works well with bit conditional values.5 6class 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 X13// CHECK:   a = 614// CHECK:   c = 115// CHECK:   d = { 1 }16 17// CHECK: def Y18// CHECK:   a = 519// CHECK:   c = 020// CHECK:   d = { 0 }21 22def X : A<false>;23def Y : A;24