Skip to content

Commit 01b5e8b

Browse files
committed
std: Disable some vector-related tests for hexagon.
See: * llvm/llvm-project#118879 * llvm/llvm-project#134659
1 parent 382aa48 commit 01b5e8b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/std/mem.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,9 @@ test zeroes {
431431
}
432432
try testing.expectEqual(@as(@TypeOf(b.vector_u32), @splat(0)), b.vector_u32);
433433
try testing.expectEqual(@as(@TypeOf(b.vector_f32), @splat(0.0)), b.vector_f32);
434-
try testing.expectEqual(@as(@TypeOf(b.vector_bool), @splat(false)), b.vector_bool);
434+
if (!(builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon)) {
435+
try testing.expectEqual(@as(@TypeOf(b.vector_bool), @splat(false)), b.vector_bool);
436+
}
435437
try testing.expectEqual(@as(?u8, null), b.optional_int);
436438
for (b.sentinel) |e| {
437439
try testing.expectEqual(@as(u8, 0), e);

lib/std/simd.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ test "vector prefix scan" {
464464
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
465465
if ((builtin.cpu.arch == .armeb or builtin.cpu.arch == .thumbeb) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/22060
466466
if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21893
467+
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest;
467468

468469
if (builtin.cpu.arch.isMIPS()) return error.SkipZigTest;
469470

0 commit comments

Comments
 (0)