<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - regression with arm-linux vectors of f16"
href="https://bugs.llvm.org/show_bug.cgi?id=47001">47001</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>regression with arm-linux vectors of f16
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</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@ziglang.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com
</td>
</tr></table>
<p>
<div>
<pre>// Zig code:
const std = @import("std");
const Vector = std.meta.Vector;
pub fn main() noreturn {
doTheTestDiv(f16, [4]f16{ 4.0, -4.0, 4.0, -4.0 }, [4]f16{ 1.0, 2.0, -1.0,
-2.0 });
std.process.exit(0);
}
fn doTheTestDiv(comptime T: type, x: Vector(4, T), y: Vector(4, T)) void {
const d0 = x / y;
std.debug.assert(x[0] / y[0] == d0[0]);
}
pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace)
noreturn {
std.process.exit(1);
}
// Compile with: zig build-exe test.zig -target arm-linux-none
// Expected: exit code 0
// Actual: exit code 1
In master branch zig (LLVM 10), the above test case passes. In llvm11 branch of
zig (LLVM release/11.x a9430a1c9e9c99151361374f0462d751457fa15c), it fails due
to nan != nan. It compiles cleanly against a debug build of LLVM 11, not
tripping any asserts. Attached is the LLVM IR of the executable.</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>