mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
test: add loongarch64-linux-muslsf to test-c-abi matrix
This commit is contained in:
@@ -64,6 +64,10 @@ static void assert_or_panic(bool ok) {
|
||||
# define ZIG_NO_COMPLEX
|
||||
#endif
|
||||
|
||||
#if defined(__loongarch__) && defined(__loongarch_soft_float)
|
||||
# define ZIG_NO_COMPLEX
|
||||
#endif
|
||||
|
||||
#ifdef __powerpc__
|
||||
# define ZIG_NO_COMPLEX
|
||||
#endif
|
||||
|
||||
+3
-1
@@ -187,7 +187,8 @@ extern fn c_cmultd(a: ComplexDouble, b: ComplexDouble) ComplexDouble;
|
||||
const complex_abi_compatible = builtin.cpu.arch != .x86 and !builtin.cpu.arch.isMIPS() and
|
||||
!builtin.cpu.arch.isArm() and !builtin.cpu.arch.isPowerPC32() and !builtin.cpu.arch.isRISCV() and
|
||||
builtin.cpu.arch != .hexagon and
|
||||
builtin.cpu.arch != .s390x;
|
||||
builtin.cpu.arch != .s390x and
|
||||
!(builtin.cpu.arch.isLoongArch() and builtin.abi.float() == .soft);
|
||||
|
||||
test "C ABI complex float" {
|
||||
if (!complex_abi_compatible) return error.SkipZigTest;
|
||||
@@ -5611,6 +5612,7 @@ test "C ABI pointer sized float struct" {
|
||||
if (builtin.cpu.arch.isMIPS64()) return error.SkipZigTest;
|
||||
if (builtin.cpu.arch.isPowerPC32()) return error.SkipZigTest;
|
||||
if (builtin.cpu.arch.isArm() and builtin.abi.float() == .soft) return error.SkipZigTest;
|
||||
if (builtin.cpu.arch.isLoongArch() and builtin.abi.float() == .soft) return error.SkipZigTest;
|
||||
if (builtin.cpu.arch == .s390x) return error.SkipZigTest;
|
||||
|
||||
c_ptr_size_float_struct(.{ .x = 1, .y = 2 });
|
||||
|
||||
@@ -1764,6 +1764,13 @@ const c_abi_targets = blk: {
|
||||
.abi = .musl,
|
||||
},
|
||||
},
|
||||
.{
|
||||
.target = .{
|
||||
.cpu_arch = .loongarch64,
|
||||
.os_tag = .linux,
|
||||
.abi = .muslsf,
|
||||
},
|
||||
},
|
||||
|
||||
.{
|
||||
.target = .{
|
||||
|
||||
Reference in New Issue
Block a user