zig
zig copied to clipboard
LLVM backend does not implement reduce on f128 Vector
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
const V = @Vector(1,f128);
pub inline fn foo(b: V) f128 { // removing inline changes crash message
return @reduce(.Mul, b); //reduction operation does not matter
}
test "float simd" {
var a: V = undefined ;//making this const makes it not crash
a[0] = 0;
const b: V = a + a;
_ = foo(b);//commenting this out makes in not crash
//_ = @reduce(.Max, b);//calling reduce directly instead makes it not fail
}
output:
error: Assigned value does not match type of forward declaration
Expected Behavior
no crash