diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp --- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp +++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp @@ -283,7 +283,8 @@ } if (Opcode == AArch64::SPACE) { - O << '\t' << MAI.getCommentString() << " SPACE"; + O << '\t' << MAI.getCommentString() << " SPACE " + << MI->getOperand(1).getImm(); printAnnotation(O, Annot); return; } diff --git a/llvm/test/CodeGen/AArch64/space.ll b/llvm/test/CodeGen/AArch64/space.ll --- a/llvm/test/CodeGen/AArch64/space.ll +++ b/llvm/test/CodeGen/AArch64/space.ll @@ -8,7 +8,7 @@ %dummy = tail call i64 @llvm.aarch64.space(i32 32684, i64 %v) ret void } -; CHECK: // SPACE +; CHECK: // SPACE 32684 ; CHECK-NEXT: ret ; DUMP-LABEL: : ; DUMP-NEXT: ret