diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2010-06-16 23:24:12 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2010-06-16 23:24:12 +0000 |
commit | e87de41189b1591afd88e4dc12eeb17e06b77d3e (patch) | |
tree | 31621b77739ec01945f812c060d5e52df8ba5bee /test/TableGen | |
parent | d0e8469ba65c54b593df15b7249d7fe12097c4cf (diff) |
let the '!eq' expression support 'int' and 'bit' types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r-- | test/TableGen/eqbit.td | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/TableGen/eqbit.td b/test/TableGen/eqbit.td new file mode 100644 index 0000000000..3953252c41 --- /dev/null +++ b/test/TableGen/eqbit.td @@ -0,0 +1,11 @@ +// RUN: tblgen %s | FileCheck %s +// XFAIL: vg_leak +// CHECK: a = 6 +// CHECK: a = 5 + +class A<bit b = 1> { + int a = !if(!eq(b, 1), 5, 6); +} + +def X : A<0>; +def Y : A; |