<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - PPC disassembly should tag registers with r"
href="https://llvm.org/bugs/show_bug.cgi?id=25126">25126</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>PPC disassembly should tag registers with r
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llvm-dis
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kyle+llvm@iteratee.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>For legibility, register N should be marked as "rN" instead of just N.
gcc does this:
0000000000000030 <_GLOBAL__sub_I_libA.cc>:
30: 00 00 4c 3c addis r2,r12,0
30: R_PPC64_REL16_HA .TOC.
34: 00 00 42 38 addi r2,r2,0
34: R_PPC64_REL16_LO .TOC.+0x4
38: a6 02 08 7c mflr r0
3c: f8 ff e1 fb std r31,-8(r1)
40: 10 00 01 f8 std r0,16(r1)
44: 91 ff 21 f8 stdu r1,-112(r1)
48: 78 0b 3f 7c mr r31,r1
compare for legibility with this:
_GLOBAL__sub_I_libA.cc:
30: 00 00 4c 3c addis 2, 12, 0
0000000000000030: R_PPC64_REL16_HA Unknown
34: 00 00 42 38 addi 2, 2, 0
0000000000000034: R_PPC64_REL16_LO Unknown
38: a6 02 08 7c mflr 0
3c: f8 ff e1 fb std 31, -8(1)
40: 10 00 01 f8 std 0, 16(1)
44: 91 ff 21 f8 stdu 1, -112(1)
48: 78 0b 3f 7c mr 31, 1
tagging registers makes it easier to visually differentiate registers from
immediates without having to keep the full instruction set in memory.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>