mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
MC/X86: X86AbsMemAsmOperand is subclass of X86NoSegMemAsmOperand.
- This fixes "leal 0, %eax", for example. llvm-svn: 103205
This commit is contained in:
parent
c788971da7
commit
45589cd853
@ -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);
|
||||
|
@ -143,3 +143,6 @@
|
||||
fadd %st(0)
|
||||
fadd %st(1)
|
||||
fadd %st(7)
|
||||
|
||||
// CHECK: leal 0, %eax
|
||||
leal 0, %eax
|
||||
|
Loading…
Reference in New Issue
Block a user