forked from WebAssembly/wabt
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
wasm2kotlin gets to generating
fun w2k_memcpy(w2k_p0: Int, w2k_p1: Int, w2k_p2: Int): Int{
var w2k_p0 = w2k_p0;
var w2k_p1 = w2k_p1;
var w2k_p2 = w2k_p2;
var w2k_l3: Int = 0
var w2k_l4: Int = 0
var w2k_l5: Int = 0
var w2k_l6: Int = 0
try {
unimplemented: ...
fish: Job 1, '~/git/wasm2kotlin/build/wasm2ko…' terminated by signal SIGABRT (Abort)
if i check the wasm text of the file the top of that text file is
(func $memcpy (type 0) (param i32 i32 i32) (result i32)
(local i32 i32 i32 i32)
block ;; label = @1
block ;; label = @2
block ;; label = @3
local.get 2
i32.const 32
i32.gt_u
br_if 0 (;@3;)
the function when generated from wasm2c is
static u32 w2c_memcpy(Z__instance_t* instance, u32 w2c_p0, u32 w2c_p1, u32 w2c_p2) {
u32 w2c_l3 = 0, w2c_l4 = 0, w2c_l5 = 0, w2c_l6 = 0;
FUNC_PROLOGUE;
u32 w2c_i0, w2c_i1, w2c_i2;
u64 w2c_j1;
w2c_i0 = w2c_p2;
w2c_i1 = 32u;
w2c_i0 = w2c_i0 > w2c_i1;
if (w2c_i0) {goto w2c_B2;}
could it be that br_if
is not implemented
or could it be that the (local i32 i32 i32 i32)
is not yet understood by wasm2kotlin
Metadata
Metadata
Assignees
Labels
No labels