mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user