diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2010-06-22 20:30:50 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2010-06-22 20:30:50 +0000 |
commit | e5104ac99aae21fb8ee514f3b65eac9856399dc0 (patch) | |
tree | d6e43d54278d742debce4bf11c71b32ed988d2d4 /test/TableGen | |
parent | 649fa7bad061cfab53eedd054ae98c4dafb2158a (diff) |
Fix a subtle multiclass bug: when using class inheritance on
a toplevel 'defm', make sure to properly resolve references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r-- | test/TableGen/defmclass.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/TableGen/defmclass.td b/test/TableGen/defmclass.td index ef8e8f794b..55482da4d0 100644 --- a/test/TableGen/defmclass.td +++ b/test/TableGen/defmclass.td @@ -16,6 +16,7 @@ class BaseI { class I<bits<4> op> : BaseI { bits<4> opcode = op; int val = !if(!eq(Prefix, xd.Prefix), 7, 21); + int check = !if(hasVEX_4VPrefix, 0, 10); } multiclass R { @@ -33,4 +34,5 @@ multiclass Y { defm SD : R, M, XS; } +// CHECK: int check = 0; defm Instr : Y, VEX; |