From 43b16923a541e91881eac08b0443065815fe6156 Mon Sep 17 00:00:00 2001 From: xtex Date: Fri, 16 Oct 2026 09:46:05 +0800 Subject: [PATCH] loongarch: implement call conv resolve for c_longdouble --- src/codegen/loongarch/Select.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/codegen/loongarch/Select.zig b/src/codegen/loongarch/Select.zig index 1fa209aabb92c34b1d8d5680aaa46c45011216ae..ff91a9ae62e676a8ad810b78ae7e5d1d24b863a0 100644 --- a/src/codegen/loongarch/Select.zig +++ b/src/codegen/loongarch/Select.zig @@ -7075,7 +7075,7 @@ pub const CallAbiIterator = struct { .signedness = .unsigned, .bits = zcu.errorSetBits(), } }, - .f16, .f32, .f64 => { + .f16, .f32, .f64, .c_longdouble => { const bits = ty.floatBits(isel.target); if (isel.canUseFprForFloat(bits)) { if (it.allocReg(.fpr)) |reg| { @@ -7090,7 +7090,6 @@ pub const CallAbiIterator = struct { continue :type_key .{ .int_type = .{ .signedness = .unsigned, .bits = bits } }; } }, - .c_longdouble => return isel.fail("CallAbiIterator.resolve({t})", .{simple_type}), else => return isel.fail("CallAbiIterator.resolve({t})", .{simple_type}), }, .struct_type => { -- 2.54.0