From e5104ac99aae21fb8ee514f3b65eac9856399dc0 Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Tue, 22 Jun 2010 20:30:50 +0000 Subject: 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 --- test/TableGen/defmclass.td | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/TableGen') 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 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; -- cgit v1.2.3