aboutsummaryrefslogtreecommitdiff
path: root/src/arch/wasm/CodeGen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-06-30 00:02:00 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-06-30 00:02:00 -0700
commit6bc6e47b1582a4538078c8f4e9b3dae386854d07 (patch)
tree3919cd49e8cfe2772c4028f0b056f47040651494 /src/arch/wasm/CodeGen.zig
parent54454fd0102af8b25dbc85751d37fd265380d920 (diff)
downloadzig-6bc6e47b1582a4538078c8f4e9b3dae386854d07.tar.gz
zig-6bc6e47b1582a4538078c8f4e9b3dae386854d07.zip
stage2: lower float negation explicitly
Rather than lowering float negation as `0.0 - x`. * Add AIR instruction for float negation. * Add compiler-rt functions for f128, f80 negation closes #11853
Diffstat (limited to 'src/arch/wasm/CodeGen.zig')
-rw-r--r--src/arch/wasm/CodeGen.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig
index c614f7eb48..d2d21925b2 100644
--- a/src/arch/wasm/CodeGen.zig
+++ b/src/arch/wasm/CodeGen.zig
@@ -1607,6 +1607,7 @@ fn genInst(self: *Self, inst: Air.Inst.Index) !WValue {
.log10,
.fabs,
.round,
+ .neg,
.cmpxchg_weak,
.cmpxchg_strong,