<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 --- - Lowering long vector returns fails."
href="https://llvm.org/bugs/show_bug.cgi?id=27161">27161</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Lowering long vector returns fails.
</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: Sparc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chris.dewhurst@lero.ie
</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>To recreae: Compile the following with
llc -march=sparc <filename>.ll
define <8 x i8> @fun8_2(<8 x i8> %a, <8 x i8> %b) {
entry:
%and = and <8 x i8> %b, %a
ret <8 x i8> %and
}
Expected result: Compiles well, returning some results on the stack as there
are too many results (8 in the vector) to return in output registers.
Actual result: Fails. Tries to return all results in output registers and runs
out of registers.
Important part of stack trace:
8 libLLVMCodeGen.so 0x00007f4ce1f5f47d
llvm::CCState::AnalyzeReturn(llvm::SmallVectorImpl<llvm::ISD::OutputArg>
const&, bool (*)(unsigned int, llvm::MVT, llvm::MVT,
llvm::CCValAssign::LocInfo, llvm::ISD::ArgFlagsTy, llvm::CCState&)) + 683
9 libLLVMSparcCodeGen.so 0x00007f4ce40bcda4
llvm::SparcTargetLowering::LowerReturn_32(llvm::SDValue, unsigned int, bool,
llvm::SmallVectorImpl<llvm::ISD::OutputArg> const&,
llvm::SmallVectorImpl<llvm::SDValue> const&, llvm::SDLoc, llvm::SelectionDAG&)
const + 222</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>