<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 --- - Reverted r263303: widen error for zero_extend_vector_inreg"
href="https://llvm.org/bugs/show_bug.cgi?id=26953">26953</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Reverted r263303: widen error for zero_extend_vector_inreg
</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>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>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alina.sbirlea@gmail.com
</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>Created <span class=""><a href="attachment.cgi?id=16042" name="attach_16042" title="Simplified reproduction of the bug generated from Halide test">attachment 16042</a> <a href="attachment.cgi?id=16042&action=edit" title="Simplified reproduction of the bug generated from Halide test">[details]</a></span>
Simplified reproduction of the bug generated from Halide test
Halide on x86 was seeing failures after r263303.
Failure can be reproduced just with the change in
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Attaching a bitcode test generated from the following Halide test.
Error:
llc foo.bc
WidenVectorResult #0: t39: v3i32 = zero_extend_vector_inreg t38
Do not know how to widen the result of this operator!
UNREACHABLE executed at
[...]/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:1998!
[...]
[Original halide test follows]
[
#include "Halide.h"
#include <iostream>
using namespace Halide;
int main(int argc, char **argv) {
ImageParam input(UInt(8), 1);
Var x("x");
Func f("widen");
f(x) = cast<float>(input(x));
f.vectorize(x, 3);
Target target = get_target_from_environment();
target.set_features({Target::NoBoundsQuery, Target::NoRuntime});
//simplified test:
f.compile_to_bitcode("foo.bc", { input }, "foo", target);
//test and Halide runtime
f.compile_to_bitcode("bar.bc", { input }, "bar",
parse_target_string("x86-64"));
}
]</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>