<html>
<head>
<base href="http://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 --- - NVPTX generates PTX that prevent the driver to use certain instructions"
href="http://llvm.org/bugs/show_bug.cgi?id=16334">16334</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>NVPTX generates PTX that prevent the driver to use certain instructions
</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>Linux
</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>llc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>fwinter@jlab.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10681" name="attach_10681" title="Repro">attachment 10681</a> <a href="attachment.cgi?id=10681&action=edit" title="Repro">[details]</a></span>
Repro
NVPTX generates code that hinders the compute compiler to generate certain,
optimized instructions, like ISCADD.
The attached kernel (cmplx_mul_ir_builder.ll) compiles with libnvvm and the
compute compiler to
/*0038*/ @P0 ISCADD R6, R0, c[0x0][0x14c], 0x2; /*
0x60c008002980001a */
/*
0x08a0bc8c8c10a010 */
/*0048*/ @P0 ISCADD R7, R0, c[0x0][0x148], 0x2; /*
0x60c008002900001e */
/*0050*/ @P0 LD R5, [R6]; /*
0xc400000000001814 */
/*0058*/ @P0 ISCADD R0, R0, c[0x0][0x144], 0x2; /*
0x60c0080028800002 */
/*0060*/ @P0 LD R4, [R7]; /*
0xc400000000001c10 */
Whereas NVPTX generates code that the driver compiles to
/*0048*/ @P0 IADD R6, R0, 0x1000; /*
0xc080000800000019 */
/*0050*/ @P0 IMAD R8.CC, R0, R7, c[0x0][0x150]; /*
0x910c1c002a000022 */
/*0058*/ @P0 IMAD.HI.X R9, R0, R7, c[0x0][0x154]; /*
0x93181c002a800026 */
/*0060*/ @P0 IMAD R14.CC, R6, R7, c[0x0][0x150]; /*
0x910c1c002a00183a */
/*0068*/ @P0 LD.E R2, [R8]; /*
0xc480000000002008 */
This might be just another symptom of <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - NVPTX fails to generate loads/stores with literal offsets"
href="show_bug.cgi?id=16333">bug 16333</a> or it is unrelated.</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>