authorgravatar for xtex@astrafall.orgxtex <xtex@astrafall.org> 2026-10-16 09:46:05+08:00
committergravatar for xtex@astrafall.orgxtex <xtex@astrafall.org> 2026-10-17 10:26:55+08:00
log43b16923a541e91881eac08b0443065815fe6156
tree242a10aaaa617e98da0b16497bd71680f9b7eac5
parentff31d556a25b04f9a7bfdf60879149334d440e11
signature Signed by SSH key SHA256:IEYEjkZlkUTr5U9GiDAmZU/4eZus2t2RsxusyhQqwao

loongarch: implement call conv resolve for c_longdouble


1 files changed, 1 insertions(+), 2 deletions(-)

src/codegen/loongarch/Select.zig+1-2
......@@ -7075,7 +7075,7 @@ pub const CallAbiIterator = struct {
70757075 .signedness = .unsigned,
70767076 .bits = zcu.errorSetBits(),
70777077 } },
7078 .f16, .f32, .f64 => {
7078 .f16, .f32, .f64, .c_longdouble => {
70797079 const bits = ty.floatBits(isel.target);
70807080 if (isel.canUseFprForFloat(bits)) {
70817081 if (it.allocReg(.fpr)) |reg| {
......@@ -7090,7 +7090,6 @@ pub const CallAbiIterator = struct {
70907090 continue :type_key .{ .int_type = .{ .signedness = .unsigned, .bits = bits } };
70917091 }
70927092 },
7093 .c_longdouble => return isel.fail("CallAbiIterator.resolve({t})", .{simple_type}),
70947093 else => return isel.fail("CallAbiIterator.resolve({t})", .{simple_type}),
70957094 },
70967095 .struct_type => {