From c547a05b656118bef790478c26b439e07c858c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 16 Sep 2025 13:48:24 +0200 Subject: [PATCH] langref: runtime_shrExact_overflow does not work as expected on LoongArch https://github.com/ziglang/zig/issues/24304 --- doc/langref/runtime_shrExact_overflow.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/langref/runtime_shrExact_overflow.zig b/doc/langref/runtime_shrExact_overflow.zig index 1350e9da75..98da0dde11 100644 --- a/doc/langref/runtime_shrExact_overflow.zig +++ b/doc/langref/runtime_shrExact_overflow.zig @@ -7,7 +7,7 @@ pub fn main() void { const y = @shrExact(x, 2); std.debug.print("value: {}\n", .{y}); - if (builtin.cpu.arch.isRISCV() and builtin.zig_backend == .stage2_llvm) @panic("https://github.com/ziglang/zig/issues/24304"); + if ((builtin.cpu.arch.isRISCV() or builtin.cpu.arch.isLoongArch()) and builtin.zig_backend == .stage2_llvm) @panic("https://github.com/ziglang/zig/issues/24304"); } // exe=fail