aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/math.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-09-18 00:39:15 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-09-18 12:42:24 +0200
commitbeb25b0430d96e2e87f6af189062bdd3a02b6e45 (patch)
tree9e8e067a380dcc9852360a2ab885b522852c4285 /test/behavior/math.zig
parent35d2b1e99a2bf57f76d3317061a1b74d145f3c59 (diff)
downloadzig-beb25b0430d96e2e87f6af189062bdd3a02b6e45.tar.gz
zig-beb25b0430d96e2e87f6af189062bdd3a02b6e45.zip
test: disable some vector ctz/clz behavior tests on LoongArch with LSX
https://github.com/llvm/llvm-project/issues/159529
Diffstat (limited to 'test/behavior/math.zig')
-rw-r--r--test/behavior/math.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/behavior/math.zig b/test/behavior/math.zig
index 679c94a78e..914c47ba69 100644
--- a/test/behavior/math.zig
+++ b/test/behavior/math.zig
@@ -111,6 +111,8 @@ test "@clz vectors" {
}
fn testClzVectors() !void {
+ if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/159529
+
const Vu4 = @Vector(64, u4);
const Vu8 = @Vector(64, u8);
const Vu128 = @Vector(64, u128);
@@ -197,6 +199,8 @@ test "@ctz vectors" {
}
fn testCtzVectors() !void {
+ if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/159529
+
const Vu4 = @Vector(64, u4);
const Vu8 = @Vector(64, u8);
@setEvalBranchQuota(10_000);