[PATCH] D104699: [llvm-objdump] Print comments for the disassembled code
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 22 09:46:28 PDT 2021
MaskRay added inline comments.
================
Comment at: llvm/test/tools/llvm-objdump/ELF/AArch64/disassemble-print-comments.s:7
+# CHECK: 0000000000000000 <foo>:
+# CHECK-NEXT: 0: add x0, x2, #2, lsl #12 // =8192
+# CHECK-NEXT: 4: add z31.d, z31.d, #65280 // =0xff00
----------------
For `lsl #12` it is useful to display 8192.
But for `add z31.d, z31.d, #65280`, 0xff00 may be less useful. GNU objdump displays many such immediates in hexadecimal, if I switch it to hexadecimal, then it should be clear the comment will not be needed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104699/new/
https://reviews.llvm.org/D104699
More information about the llvm-commits
mailing list