aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-04-06 11:48:40 -0700
committerGitHub <noreply@github.com>2021-04-06 11:48:40 -0700
commitec212c82bef3cbf01517eece67a8599348c7ac86 (patch)
treec99755fc5ec3df163ddc29adfe68b30a7a867aaf /lib
parent8de14a98a68752cc834848343f2e7867ee8ca6c9 (diff)
parentec84742c89273424aab713d1ff4d55a499c85cbf (diff)
downloadzig-ec212c82bef3cbf01517eece67a8599348c7ac86.tar.gz
zig-ec212c82bef3cbf01517eece67a8599348c7ac86.zip
Merge pull request #8416 from gracefuu/grace/wasm-ops
stage2 wasm codegen: refactor Opcode, add `sub` and `mul` operators
Diffstat (limited to 'lib')
-rw-r--r--lib/std/wasm.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/std/wasm.zig b/lib/std/wasm.zig
index a04378d283..89ab9b6e12 100644
--- a/lib/std/wasm.zig
+++ b/lib/std/wasm.zig
@@ -5,6 +5,8 @@
// and substantial portions of the software.
const testing = @import("std.zig").testing;
+// TODO: Add support for multi-byte ops (e.g. table operations)
+
/// Wasm instruction opcodes
///
/// All instructions are defined as per spec:
@@ -175,7 +177,7 @@ pub const Opcode = enum(u8) {
i32_reinterpret_f32 = 0xBC,
i64_reinterpret_f64 = 0xBD,
f32_reinterpret_i32 = 0xBE,
- i64_reinterpret_i64 = 0xBF,
+ f64_reinterpret_i64 = 0xBF,
i32_extend8_s = 0xC0,
i32_extend16_s = 0xC1,
i64_extend8_s = 0xC2,