mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
langref: runtime_shrExact_overflow does not work as expected on RISC-V
https://github.com/ziglang/zig/issues/24304
This commit is contained in:
parent
b739fec841
commit
9f064dff47
1 changed files with 3 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
const builtin = @import("builtin");
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
pub fn main() void {
|
pub fn main() void {
|
||||||
|
|
@ -5,6 +6,8 @@ pub fn main() void {
|
||||||
_ = &x;
|
_ = &x;
|
||||||
const y = @shrExact(x, 2);
|
const y = @shrExact(x, 2);
|
||||||
std.debug.print("value: {}\n", .{y});
|
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
|
// exe=fail
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue