motiejus/zig

fork of https://codeberg.org/ziglang/zig
git clone https://git.jakstys.lt/motiejus/zig.git
Log | Tree | Refs | README | LICENSE

commit ad33e34836866e0528ca7601155c5dafe538347b (tree)
parent 9d409233b2c62e1d24635165ac6b3b7686ffd5e4
Author: Jakub Konka <kubkon@jakubkonka.com>
Date:   Wed,  5 May 2021 19:04:14 +0200

tests: re-enable reduce behavior tests for wasm32

Diffstat:
Mtest/stage1/behavior/vector.zig | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git a/test/stage1/behavior/vector.zig b/test/stage1/behavior/vector.zig @@ -510,19 +510,6 @@ test "vector reduce operation" { const N = @typeInfo(@TypeOf(x)).Array.len; const TX = @typeInfo(@TypeOf(x)).Array.child; - // wasmtime: unknown import: `env::fminf` has not been defined - // https://github.com/ziglang/zig/issues/8131 - switch (std.builtin.arch) { - .wasm32 => switch (@typeInfo(TX)) { - .Float => switch (op) { - .Min, .Max, => return, - else => {}, - }, - else => {}, - }, - else => {}, - } - var r = @reduce(op, @as(Vector(N, TX), x)); switch (@typeInfo(TX)) { .Int, .Bool => expectEqual(expected, r),