diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-09-19 12:09:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-19 12:09:48 +0200 |
| commit | 97df4ae3ce34ae2f1ac8298a99faaf990e22ca75 (patch) | |
| tree | bc87b057fadd0056e22bb930cd214318ddc77112 /test/behavior | |
| parent | de489031d873193ca94de1292828c00a02e3b3ea (diff) | |
| parent | c26c5a3c1b9dc55e157374cc5fab11fe28d53ecf (diff) | |
| download | zig-97df4ae3ce34ae2f1ac8298a99faaf990e22ca75.tar.gz zig-97df4ae3ce34ae2f1ac8298a99faaf990e22ca75.zip | |
Merge pull request #25268 from alexrp/loongarch
Miscellaneous LoongArch work to prepare for CI
Diffstat (limited to 'test/behavior')
| -rw-r--r-- | test/behavior/asm.zig | 1 | ||||
| -rw-r--r-- | test/behavior/math.zig | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/behavior/asm.zig b/test/behavior/asm.zig index dae2f579c0..ebfd5bb235 100644 --- a/test/behavior/asm.zig +++ b/test/behavior/asm.zig @@ -67,6 +67,7 @@ test "alternative constraints" { if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isLoongArch()) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/159200 if (builtin.zig_backend == .stage2_c and builtin.os.tag == .windows) return error.SkipZigTest; // MSVC doesn't support inline assembly 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); |
