authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-09-16 13:48:24+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-09-18 10:08:38+02:00
logc547a05b656118bef790478c26b439e07c858c76
tree36242fa220c52666b10d6cbe5fd78e6677b00bea
parentd6b4e1918b77e2992038d385d0951c7c926703a1
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

langref: runtime_shrExact_overflow does not work as expected on LoongArch

https://github.com/ziglang/zig/issues/24304

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

doc/langref/runtime_shrExact_overflow.zig+1-1
...@@ -7,7 +7,7 @@ pub fn main() void {...@@ -7,7 +7,7 @@ pub fn main() void {
7 const y = @shrExact(x, 2);7 const y = @shrExact(x, 2);
8 std.debug.print("value: {}\n", .{y});8 std.debug.print("value: {}\n", .{y});
99
10 if (builtin.cpu.arch.isRISCV() and builtin.zig_backend == .stage2_llvm) @panic("https://github.com/ziglang/zig/issues/24304");10 if ((builtin.cpu.arch.isRISCV() or builtin.cpu.arch.isLoongArch()) and builtin.zig_backend == .stage2_llvm) @panic("https://github.com/ziglang/zig/issues/24304");
11}11}
1212
13// exe=fail13// exe=fail