From 70648bc4b8440abd22161148afc41645e1ab3fd0 Mon Sep 17 00:00:00 2001 From: xtex Date: Sat, 17 Oct 2026 09:42:36 +0800 Subject: [PATCH] loongarch: use failUnimplemented for u128 min/max --- src/codegen/loongarch/Select.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/codegen/loongarch/Select.zig b/src/codegen/loongarch/Select.zig index 9dc81cacb9bc83b1f2ffd6fb23430785c9e2eba2..696c9b75836c3ba2f9e454c53ce0871c7fdf3e22 100644 --- a/src/codegen/loongarch/Select.zig +++ b/src/codegen/loongarch/Select.zig @@ -4115,7 +4115,11 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) codegen.Error!void if (!ty.isRuntimeFloat()) { if (!ty.isAbiInt(zcu)) return isel.fail("bad {t} {f}", .{ air_tag, isel.fmtType(ty) }); const int_info = ty.intInfo(zcu); - if (int_info.bits > 64) return isel.fail("too big {t} {f}", .{ air_tag, isel.fmtType(ty) }); + if (int_info.bits > 64) { + _ = res_vi.value.takeLocationMarkWritten(isel); + try isel.failUnimplemented("too big {t} {f}", .{ air_tag, isel.fmtType(ty) }); + break :unused; + } try res_vi.value.reextendToGarbage(isel); const res_reg = try res_vi.value.defRegMod(isel, .integer) orelse break :unused; -- 2.54.0