diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-04 20:47:13 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-30 06:36:41 +0200 |
| commit | af78c5567682535ff763dddc785f851dc41bbd04 (patch) | |
| tree | 1670cda91c50f82fdc00a9708fb2d7510eb316ee /lib/std/math.zig | |
| parent | 367be3777c7dcdd8ca19de0b2a8e2dc4b91486e0 (diff) | |
| download | zig-af78c5567682535ff763dddc785f851dc41bbd04.tar.gz zig-af78c5567682535ff763dddc785f851dc41bbd04.zip | |
std: skip some failing tests on hexagon
Diffstat (limited to 'lib/std/math.zig')
| -rw-r--r-- | lib/std/math.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig index 9fd97df855..c1b489a41d 100644 --- a/lib/std/math.zig +++ b/lib/std/math.zig @@ -636,6 +636,7 @@ test shl { try testing.expect(shl(i8, -1, -100) == -1); try testing.expect(shl(i8, -1, 100) == 0); + if (builtin.cpu.arch == .hexagon and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; try testing.expect(@reduce(.And, shl(@Vector(2, i8), .{ -1, 1 }, -100) == @Vector(2, i8){ -1, 0 })); try testing.expect(@reduce(.And, shl(@Vector(2, i8), .{ -1, 1 }, 100) == @Vector(2, i8){ 0, 0 })); } @@ -684,6 +685,7 @@ test shr { try testing.expect(shr(i8, -1, -100) == 0); try testing.expect(shr(i8, -1, 100) == -1); + if (builtin.cpu.arch == .hexagon and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; try testing.expect(@reduce(.And, shr(@Vector(2, i8), .{ -1, 1 }, -100) == @Vector(2, i8){ 0, 0 })); try testing.expect(@reduce(.And, shr(@Vector(2, i8), .{ -1, 1 }, 100) == @Vector(2, i8){ -1, 0 })); } |
