<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 --- - Missing .align on function return values"
href="http://llvm.org/bugs/show_bug.cgi?id=21100">21100</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Missing .align on function return values
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</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>Backend: PTX
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>wujingyue@gmail.com
</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=13101" name="attach_13101" title="IR">attachment 13101</a> <a href="attachment.cgi?id=13101&action=edit" title="IR">[details]</a></span>
IR
Test cases attached.
vector.ll:
define internal fastcc <2 x float> @_Z9calculateDv2_f(<2 x float> %input) #0 {
entry:
%0 = extractelement <2 x float> %input, i64 0
%conv1 = fadd float %0, 1.000000e+00
%1 = insertelement <2 x float> undef, float %conv1, i64 0
%2 = extractelement <2 x float> %input, i64 1
%conv4 = fadd float %2, 2.000000e+00
%3 = insertelement <2 x float> %1, float %conv4, i64 1
ret <2 x float> %3
}
; Function Attrs: nounwind
define void @foo(<2 x float> %input, <2 x float>* nocapture %output) #1 {
entry:
%call = tail call fastcc <2 x float> @_Z9calculateDv2_f(<2 x float> %input)
#2
store <2 x float> %call, <2 x float>* %output, align 8
ret void
}
llc vector.ll -o vector.ptx -march=nvptx -mcpu=sm_35
vector.ptx:
...
.param .align 8 .b8 param0[8];
st.param.v2.f32 [param0+0], {%f1, %f2};
.param .b64 retval0;
call.uni (retval0),
_Z9calculateDv2_f,
(
param0
);
...
retval0 should be tagged with (.align 8) because <2 x float> is 8-byte-aligned.</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>