1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[AArch64] Print the immediate operand for SPACE pseudo instruction

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D81814
This commit is contained in:
Fangrui Song 2020-06-15 20:55:53 -07:00
parent 188eb39c56
commit c4908bd9d4
2 changed files with 3 additions and 2 deletions

View File

@ -283,7 +283,8 @@ void AArch64InstPrinter::printInst(const MCInst *MI, uint64_t Address,
}
if (Opcode == AArch64::SPACE) {
O << '\t' << MAI.getCommentString() << " SPACE";
O << '\t' << MAI.getCommentString() << " SPACE "
<< MI->getOperand(1).getImm();
printAnnotation(O, Annot);
return;
}

View File

@ -8,7 +8,7 @@ entry:
%dummy = tail call i64 @llvm.aarch64.space(i32 32684, i64 %v)
ret void
}
; CHECK: // SPACE
; CHECK: // SPACE 32684
; CHECK-NEXT: ret
; DUMP-LABEL: <f>:
; DUMP-NEXT: ret