LLVM: Add test for calling reduce with float mode set to optimized

This commit is contained in:
antlilja 2024-03-17 16:34:36 +01:00
parent 79b868d504
commit 8ac5eb0893

View File

@ -0,0 +1,12 @@
pub fn main() void {
var a: @Vector(2, f32) = @splat(5.0);
_ = &a;
@setFloatMode(.optimized);
var b = @reduce(.Add, a);
_ = &b;
}
// run
// backend=llvm
//