We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c547a05 commit e7f1624Copy full SHA for e7f1624
lib/std/mem.zig
@@ -4534,7 +4534,8 @@ pub fn doNotOptimizeAway(val: anytype) void {
4534
} else doNotOptimizeAway(&val);
4535
},
4536
.float => {
4537
- if ((t.float.bits == 32 or t.float.bits == 64) and builtin.zig_backend != .stage2_c) {
+ // https://github.com/llvm/llvm-project/issues/159200
4538
+ if ((t.float.bits == 32 or t.float.bits == 64) and builtin.zig_backend != .stage2_c and !builtin.cpu.arch.isLoongArch()) {
4539
asm volatile (""
4540
:
4541
: [_] "rm" (val),
0 commit comments