You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched for this bug and did not find it in the issue tracker, and furthermore, the title I used above will make this new bug report turn up in the search results for my query.
Zig Version
0.9.0-dev.1625+d3a099c14
Steps to Reproduce
// Same thing happens with i32, but no other type I triedconstInt=u32;
constV=Vector(4, Int); // <-- seems `len` of the vector doesn't matter for the crashpubfnzeroes() V {
return [_]Int{0, 0, 0, 0};
}
pubfnmain() !void {
// This works!// const v = [_]Int{0, 0, 0, 0};constv=zeroes();
// @ctz and @popCount worksconstx=@clz(Int, v);
debug.print("{d}", .{x});
}
Expected Behavior
No compiler error.
Actual Behavior
broken LLVM module found: Call parameter type does not match function signature!
%5 = extractvalue { i32, i1 } %4, 0, !dbg !17320
<4 x i32> %7 = call <4 x i32> @llvm.ctlz.v4i32(i32 %5, i1 false), !dbg !17321
trunc source and destination must both be a vector or neither
%8 = trunc <4 x i32> %7 to i6, !dbg !17321
This is a bug in the Zig compiler.thread 3267800 panic:
Unable to dump stack trace: debug info stripped
The text was updated successfully, but these errors were encountered:
schmee
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Nov 14, 2021
Remember to search before filing a new report
Zig Version
0.9.0-dev.1625+d3a099c14
Steps to Reproduce
Expected Behavior
No compiler error.
Actual Behavior
The text was updated successfully, but these errors were encountered: