diff options
-rw-r--r-- | lib/Target/X86/X86Instr64bit.td | 1 | ||||
-rw-r--r-- | test/MC/AsmParser/X86/x86_64-operands.s | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Instr64bit.td b/lib/Target/X86/X86Instr64bit.td index 8e684c9..1347831 100644 --- a/lib/Target/X86/X86Instr64bit.td +++ b/lib/Target/X86/X86Instr64bit.td @@ -24,6 +24,7 @@ def i64i32imm : Operand<i64>; // pc relative. def i64i32imm_pcrel : Operand<i64> { let PrintMethod = "print_pcrel_imm"; + let ParserMatchClass = X86AbsMemAsmOperand; } diff --git a/test/MC/AsmParser/X86/x86_64-operands.s b/test/MC/AsmParser/X86/x86_64-operands.s new file mode 100644 index 0000000..fceeb9d --- /dev/null +++ b/test/MC/AsmParser/X86/x86_64-operands.s @@ -0,0 +1,8 @@ +// FIXME: Actually test that we get the expected results. + +// RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s + +# CHECK: callq a + callq a + + |