authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-15 22:02:12+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-19 19:21:32+01:00
log3ef8bb6354a4ffff18843c574b596b32d9b675e1
tree300182be5065d903c12f9dddea3a9edfa080fa3c
parent1d1e8e110582580b1a98aacfacf7a3358e56bd38
signaturelock-open Commit is signed but in an unrecognized format.

llvn: fix incorrect mips64 callconv handling


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

src/codegen/llvm.zig+3-3
......@@ -11865,7 +11865,7 @@ fn firstParamSRet(fn_info: InternPool.Key.FuncType, zcu: *Zcu, target: std.Targe
1186511865 .byval => false,
1186611866 },
1186711867 .riscv64_lp64, .riscv32_ilp32 => riscv_c_abi.classifyType(return_type, zcu) == .memory,
11868 .mips64_n64, .mips64_n32, .mips_o32 => switch (mips_c_abi.classifyType(return_type, zcu, .ret)) {
11868 .mips_o32 => switch (mips_c_abi.classifyType(return_type, zcu, .ret)) {
1186911869 .memory, .i32_array => true,
1187011870 .byval => false,
1187111871 },
......@@ -11914,7 +11914,7 @@ fn lowerFnRetTy(o: *Object, fn_info: InternPool.Key.FuncType) Allocator.Error!Bu
1191411914 .i32_array => |len| return if (len == 1) .i32 else .void,
1191511915 .byval => return o.lowerType(return_type),
1191611916 },
11917 .mips64_n64, .mips64_n32, .mips_o32 => switch (mips_c_abi.classifyType(return_type, zcu, .ret)) {
11917 .mips_o32 => switch (mips_c_abi.classifyType(return_type, zcu, .ret)) {
1191811918 .memory, .i32_array => return .void,
1191911919 .byval => return o.lowerType(return_type),
1192011920 },
......@@ -12171,7 +12171,7 @@ const ParamTypeIterator = struct {
1217112171 .i64_array => |size| return Lowering{ .i64_array = size },
1217212172 }
1217312173 },
12174 .mips64_n64, .mips64_n32, .mips_o32 => {
12174 .mips_o32 => {
1217512175 it.zig_index += 1;
1217612176 it.llvm_index += 1;
1217712177 switch (mips_c_abi.classifyType(ty, zcu, .arg)) {