[PATCH] D39016: Add Percent Symbol In PPC Registers for Linux
Gustavo Serra Scalet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 04:44:41 PDT 2017
gut added a comment.
Just to show how much the disassembly is changed. Consider the following instruction:
li %r3,0
currently, it's disassembled by llvm like:
0x20000780 <+0>: li 3, 0
However this is what it looks like in gdb:
0x0000000020000780 <+0>: li r3,0
and in objdump -d:
780: 00 00 60 38 li r3,0
The code currently disassembled by llvm is not wrong! But it is surely less readable when not placing register type hints.
Now how this patch makes it looks like:
li[0x780] <+0>: li %r3, 0
PS: Both `%r3` and `3` are valid 1st parameter for `li` instruction on PowerPC.
https://reviews.llvm.org/D39016
More information about the llvm-commits
mailing list