mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
Revert "std.mem: work around LoongArch inline asm bug in doNotOptimizeAway()"
This reverts commit e7f1624e6e.
The bug was fixed in LLVM 22.
This commit is contained in:
+1
-2
@@ -4809,8 +4809,7 @@ pub fn doNotOptimizeAway(val: anytype) void {
|
|||||||
} else doNotOptimizeAway(&val);
|
} else doNotOptimizeAway(&val);
|
||||||
},
|
},
|
||||||
.float => {
|
.float => {
|
||||||
// https://github.com/llvm/llvm-project/issues/159200
|
if ((t.float.bits == 32 or t.float.bits == 64) and builtin.zig_backend != .stage2_c) {
|
||||||
if ((t.float.bits == 32 or t.float.bits == 64) and builtin.zig_backend != .stage2_c and !builtin.cpu.arch.isLoongArch()) {
|
|
||||||
asm volatile (""
|
asm volatile (""
|
||||||
:
|
:
|
||||||
: [_] "rm" (val),
|
: [_] "rm" (val),
|
||||||
|
|||||||
Reference in New Issue
Block a user