diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2010-06-17 00:31:36 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2010-06-17 00:31:36 +0000 |
commit | eba8f1893b5d8b115fc4d537cddf02f1a9269dda (patch) | |
tree | 3809907dbc8b86973929558b22c440d12f9d8593 /test/TableGen | |
parent | e3f647360c5ac01c54441c98d21350c8801a7785 (diff) |
For a tablegen expression such as !if(a,b,c), let 'a'
be evaluated for 'bit' operators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r-- | test/TableGen/ifbit.td | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/TableGen/ifbit.td b/test/TableGen/ifbit.td new file mode 100644 index 0000000000..3b0349e19b --- /dev/null +++ b/test/TableGen/ifbit.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(b, 5, 6); +} + +def X : A<0>; +def Y : A; |