MC/X86_64: Fix matching of leaq.

llvm-svn: 98444
This commit is contained in:
Daniel Dunbar 2010-03-13 19:31:44 +00:00
parent e60c883bf4
commit 906a432031
2 changed files with 4 additions and 3 deletions

View File

@ -36,14 +36,14 @@ def i64i8imm : Operand<i64> {
def lea64mem : Operand<i64> {
let PrintMethod = "printlea64mem";
let MIOperandInfo = (ops GR64, i8imm, GR64_NOSP, i32imm);
let ParserMatchClass = X86MemAsmOperand;
let ParserMatchClass = X86NoSegMemAsmOperand;
}
def lea64_32mem : Operand<i32> {
let PrintMethod = "printlea64_32mem";
let AsmOperandLowerMethod = "lower_lea64_32mem";
let MIOperandInfo = (ops GR32, i8imm, GR32_NOSP, i32imm);
let ParserMatchClass = X86MemAsmOperand;
let ParserMatchClass = X86NoSegMemAsmOperand;
}
//===----------------------------------------------------------------------===//

View File

@ -5,4 +5,5 @@
# CHECK: callq a
callq a
# CHECK: leaq -40(%rbp), %r15
leaq -40(%rbp), %r15