diff options
Diffstat (limited to 'test/emcc_hello_world.fromasm.clamp')
-rw-r--r-- | test/emcc_hello_world.fromasm.clamp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/emcc_hello_world.fromasm.clamp b/test/emcc_hello_world.fromasm.clamp index e9fa14045..983b724c2 100644 --- a/test/emcc_hello_world.fromasm.clamp +++ b/test/emcc_hello_world.fromasm.clamp @@ -1808,12 +1808,12 @@ ) ) (func $___syscall_ret (; 41 ;) (; has Stack IR ;) (param $0 i32) (result i32) - (if (result i32) + (if (i32.gt_u (local.get $0) (i32.const -4096) ) - (block (result i32) + (block (i32.store (call $___errno_location) (i32.sub @@ -1821,10 +1821,12 @@ (local.get $0) ) ) - (i32.const -1) + (local.set $0 + (i32.const -1) + ) ) - (local.get $0) ) + (local.get $0) ) (func $___fflush_unlocked (; 42 ;) (; has Stack IR ;) (param $0 i32) (result i32) (local $1 i32) @@ -14477,7 +14479,6 @@ ) ) (func $_i64Add (; 57 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32) - (local $4 i32) (global.set $tempRet0 (i32.add (i32.add @@ -14485,7 +14486,7 @@ (local.get $3) ) (i32.lt_u - (local.tee $4 + (local.tee $1 (i32.add (local.get $0) (local.get $2) @@ -14495,7 +14496,7 @@ ) ) ) - (local.get $4) + (local.get $1) ) (func $_memset (; 58 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) |