mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
add support for i32.mul to wat parser
This commit is contained in:
parent
35005e2a1a
commit
ed00c7a02f
@ -76,6 +76,9 @@ public class WatParser extends WasmCodeBuilder {
|
||||
case "i32.add":
|
||||
addNumericInstruction( NumericOperator.add, ValueType.i32, javaCodePos, lineNumber );
|
||||
break;
|
||||
case "i32.mul":
|
||||
addNumericInstruction( NumericOperator.mul, ValueType.i32, javaCodePos, lineNumber );
|
||||
break;
|
||||
case "i32.reinterpret_f32":
|
||||
addConvertInstruction( ValueTypeConvertion.f2i_re, javaCodePos, lineNumber );
|
||||
break;
|
||||
|
@ -130,6 +130,11 @@ public class WatParserTest {
|
||||
test( "i32.const -7" );
|
||||
}
|
||||
|
||||
@Test
|
||||
public void i32_mul() throws IOException {
|
||||
test( "i32.mul" );
|
||||
}
|
||||
|
||||
@Test
|
||||
public void i32_reinterpret_f32() throws IOException {
|
||||
test( "i32.reinterpret_f32" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user