From 07d78774a5e2441da86e8604d666b201544a76cc Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Thu, 29 Nov 2018 22:24:13 +0100 Subject: [PATCH] More opcodes --- .../jwebassembly/binary/InstructionOpcodes.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java b/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java index 5a4101a..c255ea0 100644 --- a/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java +++ b/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java @@ -228,8 +228,12 @@ interface InstructionOpcodes { static final int I64_DIV_S = 0x7F; + static final int I64_DIV_U = 0x80; + static final int I64_REM_S = 0x81; + static final int I64_REM_U = 0x82; + static final int I64_AND = 0x83; static final int I64_OR = 0x84; @@ -246,6 +250,8 @@ interface InstructionOpcodes { static final int I64_ROTR = 0x8A; + static final int F32_ABS = 0x8B; + static final int F32_NEG = 0x8C; static final int F32_CEIL = 0x8D; @@ -345,6 +351,16 @@ interface InstructionOpcodes { static final int F64_PROMOTE_F32 = 0xBB; + // === Reinterpretations + + static final int I32_REINTERPRET_F32 = 0xBC; + + static final int I64_REINTERPRET_F64 = 0xBD; + + static final int F32_REINTERPRET_I32 = 0xBE; + + static final int F64_REINTERPRET_I64 = 0xBF; + // === Sign-extension operators ====== https://github.com/WebAssembly/design/issues/1178 static final int I32_EXTEND8_S = 0xC0;