authorgravatar for xtex@astrafall.orgxtex <xtex@astrafall.org> 2026-10-17 09:42:36+08:00
committergravatar for xtex@astrafall.orgxtex <xtex@astrafall.org> 2026-10-17 10:28:46+08:00
log70648bc4b8440abd22161148afc41645e1ab3fd0
treec5468d3e0315b41eadd2e966288ebc583416fc00
parent557a4cdc3af6cab7ba3390b1f057bb8f6f8cdcef
signature Signed by SSH key SHA256:IEYEjkZlkUTr5U9GiDAmZU/4eZus2t2RsxusyhQqwao

loongarch: use failUnimplemented for u128 min/max


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

src/codegen/loongarch/Select.zig+5-1
...@@ -4115,7 +4115,11 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) codegen.Error!void...@@ -4115,7 +4115,11 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) codegen.Error!void
4115 if (!ty.isRuntimeFloat()) {4115 if (!ty.isRuntimeFloat()) {
4116 if (!ty.isAbiInt(zcu)) return isel.fail("bad {t} {f}", .{ air_tag, isel.fmtType(ty) });4116 if (!ty.isAbiInt(zcu)) return isel.fail("bad {t} {f}", .{ air_tag, isel.fmtType(ty) });
4117 const int_info = ty.intInfo(zcu);4117 const int_info = ty.intInfo(zcu);
4118 if (int_info.bits > 64) return isel.fail("too big {t} {f}", .{ air_tag, isel.fmtType(ty) });4118 if (int_info.bits > 64) {
4119 _ = res_vi.value.takeLocationMarkWritten(isel);
4120 try isel.failUnimplemented("too big {t} {f}", .{ air_tag, isel.fmtType(ty) });
4121 break :unused;
4122 }
41194123
4120 try res_vi.value.reextendToGarbage(isel);4124 try res_vi.value.reextendToGarbage(isel);
4121 const res_reg = try res_vi.value.defRegMod(isel, .integer) orelse break :unused;4125 const res_reg = try res_vi.value.defRegMod(isel, .integer) orelse break :unused;