Fix PR1061 and CodeGen/X86/2006-12-19-IntelSyntax.ll
authorChris Lattner <sabre@nondot.org>
Tue, 19 Dec 2006 19:29:58 +0000 (19:29 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 19 Dec 2006 19:29:58 +0000 (19:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32676 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86IntelAsmPrinter.cpp

index 91e14782115001e0d94bf6e348ee4c11916c0d68..dd73a2d318148f8ba2e920a85f6b845ddb168fa3 100755 (executable)
@@ -211,7 +211,8 @@ void X86IntelAsmPrinter::printMemReference(const MachineInstr *MI, unsigned Op,
     NeedPlus = true;
   }
 
-  if (DispSpec.isGlobalAddress() || DispSpec.isConstantPoolIndex()) {
+  if (DispSpec.isGlobalAddress() || DispSpec.isConstantPoolIndex() ||
+      DispSpec.isJumpTableIndex()) {
     if (NeedPlus)
       O << " + ";
     printOp(DispSpec, "mem");