MC/X86: X86AbsMemAsmOperand is subclass of X86NoSegMemAsmOperand.

- This fixes "leal 0, %eax", for example.

llvm-svn: 103205
This commit is contained in:
Daniel Dunbar 2010-05-06 22:39:14 +00:00
parent 1411bb8f76
commit 21aa523c28
2 changed files with 7 additions and 4 deletions

View File

@ -197,14 +197,14 @@ def X86MemAsmOperand : AsmOperandClass {
let Name = "Mem";
let SuperClass = ?;
}
def X86AbsMemAsmOperand : AsmOperandClass {
let Name = "AbsMem";
let SuperClass = X86MemAsmOperand;
}
def X86NoSegMemAsmOperand : AsmOperandClass {
let Name = "NoSegMem";
let SuperClass = X86MemAsmOperand;
}
def X86AbsMemAsmOperand : AsmOperandClass {
let Name = "AbsMem";
let SuperClass = X86NoSegMemAsmOperand;
}
class X86MemOperand<string printMethod> : Operand<iPTR> {
let PrintMethod = printMethod;
let MIOperandInfo = (ops ptr_rc, i8imm, ptr_rc_nosp, i32imm, i8imm);

View File

@ -143,3 +143,6 @@
fadd %st(0)
fadd %st(1)
fadd %st(7)
// CHECK: leal 0, %eax
leal 0, %eax