[PATCH] D81814: [AArch64] Print the immediate operand for SPACE pseudo instruction

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 15 21:28:28 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa3b5f428c195: [AArch64] Print the immediate operand for SPACE pseudo instruction (authored by MaskRay).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81814/new/

https://reviews.llvm.org/D81814

Files:
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
  llvm/test/CodeGen/AArch64/space.ll


Index: llvm/test/CodeGen/AArch64/space.ll
===================================================================
--- llvm/test/CodeGen/AArch64/space.ll
+++ 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: <f>:
 ; DUMP-NEXT: ret
Index: llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
===================================================================
--- llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
+++ 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;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81814.270955.patch
Type: text/x-patch
Size: 906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200616/d12a3074/attachment.bin>


More information about the llvm-commits mailing list