mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
langref: work around s390x LLVM miscompilation in runtime_shrExact_overflow
https://github.com/ziglang/zig/issues/24304
This commit is contained in:
parent
04853f4052
commit
4dd05b5a64
@ -7,7 +7,7 @@ pub fn main() void {
|
|||||||
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() or builtin.cpu.arch.isLoongArch()) and builtin.zig_backend == .stage2_llvm) @panic("https://github.com/ziglang/zig/issues/24304");
|
if ((builtin.cpu.arch.isRISCV() or builtin.cpu.arch.isLoongArch() or builtin.cpu.arch == .s390x) and builtin.zig_backend == .stage2_llvm) @panic("https://github.com/ziglang/zig/issues/24304");
|
||||||
}
|
}
|
||||||
|
|
||||||
// exe=fail
|
// exe=fail
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user