| ... | @@ -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; |
| 512 | | 512 | |
| 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), |