Fix PR1061 and CodeGen/X86/2006-12-19-IntelSyntax.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-12-19 19:29:58 +00:00
parent db167271fd
commit 0bb3af9ec1

View File

@ -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");