MC/X86_64: Fix matching of callq.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 13 Mar 2010 19:31:38 +0000 (19:31 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 13 Mar 2010 19:31:38 +0000 (19:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98443 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86Instr64bit.td
test/MC/AsmParser/X86/x86_64-operands.s [new file with mode: 0644]

index 8e684c9be25c7e654e186ec8fca287ef65e3294c..1347831cf01174fe675621173e76bbb0ce2f9cc5 100644 (file)
@@ -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 (file)
index 0000000..fceeb9d
--- /dev/null
@@ -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
+
+