<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Disassembly of x86-64 GD TLS code sequence is incorrect"
href="https://bugs.llvm.org/show_bug.cgi?id=48901">48901</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Disassembly of x86-64 GD TLS code sequence is incorrect
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llvm-objdump
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anng.sw@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24426" name="attach_24426" title="Test to reproduce issue.">attachment 24426</a> <a href="attachment.cgi?id=24426&action=edit" title="Test to reproduce issue.">[details]</a></span>
Test to reproduce issue.
The following x86-64 GD TLS code sequence does not disassemble correctly:
data16
leaq tdata@TLSGD(%rip),%rdi
data16
data16
rex64
callq __tls_get_addr@PLT
Instead of the expected callq, you end up with callw + addb. Attached is a test
to reproduce the issue.
This issue seems to be somewhat related to <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - operand size prefix ignored when disassembling e8"
href="show_bug.cgi?id=38537">bug 38537</a> and the fix committed in
<a href="https://github.com/llvm/llvm-project/commit/cade635c77004ddfabe97a0bbefefcf90d322ed8">https://github.com/llvm/llvm-project/commit/cade635c77004ddfabe97a0bbefefcf90d322ed8</a>.
That commit message suggests that this disassembly case was known to be broken.</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>