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 {...@@ -7075,7 +7075,7 @@ pub const CallAbiIterator = struct {
7075 .signedness = .unsigned,7075 .signedness = .unsigned,
7076 .bits = zcu.errorSetBits(),7076 .bits = zcu.errorSetBits(),
7077 } },7077 } },
7078 .f16, .f32, .f64 => {7078 .f16, .f32, .f64, .c_longdouble => {
7079 const bits = ty.floatBits(isel.target);7079 const bits = ty.floatBits(isel.target);
7080 if (isel.canUseFprForFloat(bits)) {7080 if (isel.canUseFprForFloat(bits)) {
7081 if (it.allocReg(.fpr)) |reg| {7081 if (it.allocReg(.fpr)) |reg| {
...@@ -7090,7 +7090,6 @@ pub const CallAbiIterator = struct {...@@ -7090,7 +7090,6 @@ pub const CallAbiIterator = struct {
7090 continue :type_key .{ .int_type = .{ .signedness = .unsigned, .bits = bits } };7090 continue :type_key .{ .int_type = .{ .signedness = .unsigned, .bits = bits } };
7091 }7091 }
7092 },7092 },
7093 .c_longdouble => return isel.fail("CallAbiIterator.resolve({t})", .{simple_type}),
7094 else => return isel.fail("CallAbiIterator.resolve({t})", .{simple_type}),7093 else => return isel.fail("CallAbiIterator.resolve({t})", .{simple_type}),
7095 },7094 },
7096 .struct_type => {7095 .struct_type => {