<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 --- - vector cast from float to i8 crashes in CodeGen"
href="http://llvm.org/bugs/show_bug.cgi?id=22678">22678</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>vector cast from float to i8 crashes in CodeGen
</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: ARM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andrew.b.adams@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=13939" name="attach_13939" title="failing test case">attachment 13939</a> <a href="attachment.cgi?id=13939&action=edit" title="failing test case">[details]</a></span>
failing test case
This bitcode (which compiles fine with release 3.6):
target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
target triple = "arm--linux-eabi"
define void @test() {
%1 = fptoui <16 x float> undef to <16 x i8>
store <16 x i8> %1, <16 x i8>* undef
ret void
}
compiled like this:
llc cast_f32x16_to_i8x16.ll -march=arm -mattr=+neon
produces this error:
llc: third_party/llvm/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:6485:
llvm::SDValue (anonymous namespace)::DAGCombiner::visitTRUNCATE(llvm::SDNode
*): Assertion `NVT.getSizeInBits() == VecTy.getSizeInBits() && "Invalid Size"'
failed.
Stack dump:
0. Program arguments:
/google/src/cloud/abadams/domain_transform_interleaved_image/google3/blaze-bin/third_party/llvm/llvm/llc
bugpoint-reduced-simplified.ll -filetype=asm -o -march=arm -mattr=+neon
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2. Running pass 'ARM Instruction Selection' on function '@test'
Aborted (core dumped)</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>