aboutsummaryrefslogtreecommitdiff
path: root/test/TableGen
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-06-22 20:30:50 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-06-22 20:30:50 +0000
commite5104ac99aae21fb8ee514f3b65eac9856399dc0 (patch)
treed6e43d54278d742debce4bf11c71b32ed988d2d4 /test/TableGen
parent649fa7bad061cfab53eedd054ae98c4dafb2158a (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.td2
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;