From 9f064dff477a100b95438c7842253dfb20224553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 30 Jun 2025 10:55:28 +0200 Subject: [PATCH] langref: runtime_shrExact_overflow does not work as expected on RISC-V https://github.com/ziglang/zig/issues/24304 --- doc/langref/runtime_shrExact_overflow.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/langref/runtime_shrExact_overflow.zig b/doc/langref/runtime_shrExact_overflow.zig index cc7d7908fb..1350e9da75 100644 --- a/doc/langref/runtime_shrExact_overflow.zig +++ b/doc/langref/runtime_shrExact_overflow.zig @@ -1,3 +1,4 @@ +const builtin = @import("builtin"); const std = @import("std"); pub fn main() void { @@ -5,6 +6,8 @@ pub fn main() void { _ = &x; 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"); } // exe=fail