forked from OSchip/llvm-project
MC/X86: X86AbsMemAsmOperand is subclass of X86NoSegMemAsmOperand.
- This fixes "leal 0, %eax", for example. llvm-svn: 103205
This commit is contained in:
parent
1411bb8f76
commit
21aa523c28
|
@ -197,14 +197,14 @@ def X86MemAsmOperand : AsmOperandClass {
|
||||||
let Name = "Mem";
|
let Name = "Mem";
|
||||||
let SuperClass = ?;
|
let SuperClass = ?;
|
||||||
}
|
}
|
||||||
def X86AbsMemAsmOperand : AsmOperandClass {
|
|
||||||
let Name = "AbsMem";
|
|
||||||
let SuperClass = X86MemAsmOperand;
|
|
||||||
}
|
|
||||||
def X86NoSegMemAsmOperand : AsmOperandClass {
|
def X86NoSegMemAsmOperand : AsmOperandClass {
|
||||||
let Name = "NoSegMem";
|
let Name = "NoSegMem";
|
||||||
let SuperClass = X86MemAsmOperand;
|
let SuperClass = X86MemAsmOperand;
|
||||||
}
|
}
|
||||||
|
def X86AbsMemAsmOperand : AsmOperandClass {
|
||||||
|
let Name = "AbsMem";
|
||||||
|
let SuperClass = X86NoSegMemAsmOperand;
|
||||||
|
}
|
||||||
class X86MemOperand<string printMethod> : Operand<iPTR> {
|
class X86MemOperand<string printMethod> : Operand<iPTR> {
|
||||||
let PrintMethod = printMethod;
|
let PrintMethod = printMethod;
|
||||||
let MIOperandInfo = (ops ptr_rc, i8imm, ptr_rc_nosp, i32imm, i8imm);
|
let MIOperandInfo = (ops ptr_rc, i8imm, ptr_rc_nosp, i32imm, i8imm);
|
||||||
|
|
|
@ -143,3 +143,6 @@
|
||||||
fadd %st(0)
|
fadd %st(0)
|
||||||
fadd %st(1)
|
fadd %st(1)
|
||||||
fadd %st(7)
|
fadd %st(7)
|
||||||
|
|
||||||
|
// CHECK: leal 0, %eax
|
||||||
|
leal 0, %eax
|
||||||
|
|
Loading…
Reference in New Issue