authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-05-05 19:04:14+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-05-05 21:26:50+02:00
logad33e34836866e0528ca7601155c5dafe538347b
treece64e417e9dee510d4d9fec57190c7033737a50f
parent9d409233b2c62e1d24635165ac6b3b7686ffd5e4

tests: re-enable reduce behavior tests for wasm32


1 files changed, 0 insertions(+), 13 deletions(-)

test/stage1/behavior/vector.zig-13
...@@ -510,19 +510,6 @@ test "vector reduce operation" {...@@ -510,19 +510,6 @@ test "vector reduce operation" {
510 const N = @typeInfo(@TypeOf(x)).Array.len;510 const N = @typeInfo(@TypeOf(x)).Array.len;
511 const TX = @typeInfo(@TypeOf(x)).Array.child;511 const TX = @typeInfo(@TypeOf(x)).Array.child;
512512
513 // wasmtime: unknown import: `env::fminf` has not been defined
514 // https://github.com/ziglang/zig/issues/8131
515 switch (std.builtin.arch) {
516 .wasm32 => switch (@typeInfo(TX)) {
517 .Float => switch (op) {
518 .Min, .Max, => return,
519 else => {},
520 },
521 else => {},
522 },
523 else => {},
524 }
525
526 var r = @reduce(op, @as(Vector(N, TX), x));513 var r = @reduce(op, @as(Vector(N, TX), x));
527 switch (@typeInfo(TX)) {514 switch (@typeInfo(TX)) {
528 .Int, .Bool => expectEqual(expected, r),515 .Int, .Bool => expectEqual(expected, r),