diff options
| author | John Schmidt <john.schmidt.h@gmail.com> | 2022-02-04 20:21:15 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-09 20:29:41 -0500 |
| commit | 7f0cf395aa74eb5ea250bd28f7525b3036790a6a (patch) | |
| tree | e2faf4e4a19836331d3e47180438fab4db4fb178 /src/arch/wasm/CodeGen.zig | |
| parent | 44b5fdf3266f11607313bc9990a876b5a7f9e174 (diff) | |
| download | zig-7f0cf395aa74eb5ea250bd28f7525b3036790a6a.tar.gz zig-7f0cf395aa74eb5ea250bd28f7525b3036790a6a.zip | |
stage2: implement all builtin floatops for f{16,32,64}
- Merge `floatop.zig` and `floatop_stage1.zig` since most tests now pass
on stage2.
- Add more behavior tests for a bunch of functions.
Diffstat (limited to 'src/arch/wasm/CodeGen.zig')
| -rw-r--r-- | src/arch/wasm/CodeGen.zig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig index 5186f0231b..b0c24be03b 100644 --- a/src/arch/wasm/CodeGen.zig +++ b/src/arch/wasm/CodeGen.zig @@ -1679,6 +1679,18 @@ fn genInst(self: *Self, inst: Air.Inst.Index) !WValue { .unwrap_errunion_err_ptr, .sqrt, + .sin, + .cos, + .exp, + .exp2, + .log, + .log2, + .log10, + .fabs, + .floor, + .ceil, + .round, + .trunc_float, .ptr_slice_len_ptr, .ptr_slice_ptr_ptr, |
