mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 08:24:10 -08:00
WASM: fix opcodes
This commit is contained in:
parent
96b2d4e7d6
commit
f548fc964c
|
@ -248,16 +248,16 @@ class WasmBinaryRenderingVisitor implements WasmExpressionVisitor {
|
||||||
case SHL:
|
case SHL:
|
||||||
writer.writeByte(0x74);
|
writer.writeByte(0x74);
|
||||||
break;
|
break;
|
||||||
case SHR_UNSIGNED:
|
case SHR_SIGNED:
|
||||||
writer.writeByte(0x75);
|
writer.writeByte(0x75);
|
||||||
break;
|
break;
|
||||||
case SHR_SIGNED:
|
case SHR_UNSIGNED:
|
||||||
writer.writeByte(0x76);
|
writer.writeByte(0x76);
|
||||||
break;
|
break;
|
||||||
case ROTR:
|
case ROTL:
|
||||||
writer.writeByte(0x77);
|
writer.writeByte(0x77);
|
||||||
break;
|
break;
|
||||||
case ROTL:
|
case ROTR:
|
||||||
writer.writeByte(0x78);
|
writer.writeByte(0x78);
|
||||||
break;
|
break;
|
||||||
case EQ:
|
case EQ:
|
||||||
|
@ -327,16 +327,16 @@ class WasmBinaryRenderingVisitor implements WasmExpressionVisitor {
|
||||||
case SHL:
|
case SHL:
|
||||||
writer.writeByte(0x86);
|
writer.writeByte(0x86);
|
||||||
break;
|
break;
|
||||||
case SHR_UNSIGNED:
|
case SHR_SIGNED:
|
||||||
writer.writeByte(0x87);
|
writer.writeByte(0x87);
|
||||||
break;
|
break;
|
||||||
case SHR_SIGNED:
|
case SHR_UNSIGNED:
|
||||||
writer.writeByte(0x88);
|
writer.writeByte(0x88);
|
||||||
break;
|
break;
|
||||||
case ROTR:
|
case ROTL:
|
||||||
writer.writeByte(0x89);
|
writer.writeByte(0x89);
|
||||||
break;
|
break;
|
||||||
case ROTL:
|
case ROTR:
|
||||||
writer.writeByte(0x8A);
|
writer.writeByte(0x8A);
|
||||||
break;
|
break;
|
||||||
case EQ:
|
case EQ:
|
||||||
|
@ -722,7 +722,7 @@ class WasmBinaryRenderingVisitor implements WasmExpressionVisitor {
|
||||||
writer.writeByte(0x34);
|
writer.writeByte(0x34);
|
||||||
break;
|
break;
|
||||||
case UINT32:
|
case UINT32:
|
||||||
writer.writeByte(0x25);
|
writer.writeByte(0x35);
|
||||||
break;
|
break;
|
||||||
case INT64:
|
case INT64:
|
||||||
writer.writeByte(0x29);
|
writer.writeByte(0x29);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user