summaryrefslogtreecommitdiff
path: root/test/emcc_hello_world.fromasm.clamp
diff options
context:
space:
mode:
Diffstat (limited to 'test/emcc_hello_world.fromasm.clamp')
-rw-r--r--test/emcc_hello_world.fromasm.clamp110
1 files changed, 55 insertions, 55 deletions
diff --git a/test/emcc_hello_world.fromasm.clamp b/test/emcc_hello_world.fromasm.clamp
index e483ed89c..215c41540 100644
--- a/test/emcc_hello_world.fromasm.clamp
+++ b/test/emcc_hello_world.fromasm.clamp
@@ -62,7 +62,7 @@
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
(export "___udivmoddi4" (func $___udivmoddi4))
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 18 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -91,15 +91,15 @@
)
(get_local $1)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 19 ;) (result i32)
(get_global $STACKTOP)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 20 ;) (param $0 i32)
(set_global $STACKTOP
(get_local $0)
)
)
- (func $establishStackSpace (param $0 i32) (param $1 i32)
+ (func $establishStackSpace (; 21 ;) (param $0 i32) (param $1 i32)
(set_global $STACKTOP
(get_local $0)
)
@@ -107,7 +107,7 @@
(get_local $1)
)
)
- (func $setThrew (param $0 i32) (param $1 i32)
+ (func $setThrew (; 22 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -122,15 +122,15 @@
)
)
)
- (func $setTempRet0 (param $0 i32)
+ (func $setTempRet0 (; 23 ;) (param $0 i32)
(set_global $tempRet0
(get_local $0)
)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 24 ;) (result i32)
(get_global $tempRet0)
)
- (func $_main (result i32)
+ (func $_main (; 25 ;) (result i32)
(local $0 i32)
(set_local $0
(get_global $STACKTOP)
@@ -159,7 +159,7 @@
)
(i32.const 0)
)
- (func $_frexp (param $0 f64) (param $1 i32) (result f64)
+ (func $_frexp (; 26 ;) (param $0 f64) (param $1 i32) (result f64)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -256,7 +256,7 @@
)
(get_local $0)
)
- (func $_strerror (param $0 i32) (result i32)
+ (func $_strerror (; 27 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -337,7 +337,7 @@
)
(get_local $0)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 28 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 16)
@@ -348,7 +348,7 @@
(i32.const 60)
)
)
- (func $___stdio_close (param $0 i32) (result i32)
+ (func $___stdio_close (; 29 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -388,7 +388,7 @@
)
(get_local $0)
)
- (func $___stdout_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdout_write (; 30 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -469,7 +469,7 @@
)
(get_local $0)
)
- (func $___stdio_seek (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_seek (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -545,7 +545,7 @@
)
(get_local $0)
)
- (func $_fflush (param $0 i32) (result i32)
+ (func $_fflush (; 32 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -672,7 +672,7 @@
)
(get_local $0)
)
- (func $_printf (param $0 i32) (param $1 i32) (result i32)
+ (func $_printf (; 33 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(set_local $2
@@ -711,13 +711,13 @@
)
(get_local $0)
)
- (func $___lockfile (param $0 i32) (result i32)
+ (func $___lockfile (; 34 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $___unlockfile (param $0 i32)
+ (func $___unlockfile (; 35 ;) (param $0 i32)
(nop)
)
- (func $___stdio_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_write (; 36 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1063,7 +1063,7 @@
)
(get_local $2)
)
- (func $_vfprintf (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_vfprintf (; 37 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1355,7 +1355,7 @@
)
(get_local $0)
)
- (func $___fwritex (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___fwritex (; 38 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1541,7 +1541,7 @@
)
(get_local $3)
)
- (func $___towrite (param $0 i32) (result i32)
+ (func $___towrite (; 39 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -1619,7 +1619,7 @@
)
)
)
- (func $_wcrtomb (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_wcrtomb (; 40 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(block $do-once (result i32)
(if (result i32)
(get_local $0)
@@ -1793,7 +1793,7 @@
)
)
)
- (func $_wctomb (param $0 i32) (param $1 i32) (result i32)
+ (func $_wctomb (; 41 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $0)
(call $_wcrtomb
@@ -1804,7 +1804,7 @@
(i32.const 0)
)
)
- (func $_memchr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memchr (; 42 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -2035,7 +2035,7 @@
(get_local $0)
)
)
- (func $___syscall_ret (param $0 i32) (result i32)
+ (func $___syscall_ret (; 43 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -2054,7 +2054,7 @@
(get_local $0)
)
)
- (func $___fflush_unlocked (param $0 i32) (result i32)
+ (func $___fflush_unlocked (; 44 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -2176,7 +2176,7 @@
)
)
)
- (func $_cleanup (param $0 i32)
+ (func $_cleanup (; 45 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -2188,7 +2188,7 @@
)
)
)
- (func $f64-to-int (param $0 f64) (result i32)
+ (func $f64-to-int (; 46 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -2214,7 +2214,7 @@
)
)
)
- (func $f64-to-uint (param $0 f64) (result i32)
+ (func $f64-to-uint (; 47 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -2240,7 +2240,7 @@
)
)
)
- (func $i32s-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-div (; 48 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $1)
(if (result i32)
@@ -2263,7 +2263,7 @@
(i32.const 0)
)
)
- (func $i32u-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-rem (; 49 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $1)
(i32.rem_u
@@ -2273,7 +2273,7 @@
(i32.const 0)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 50 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $1)
(i32.div_u
@@ -2283,7 +2283,7 @@
(i32.const 0)
)
)
- (func $_printf_core (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (func $_printf_core (; 51 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
@@ -7195,7 +7195,7 @@
)
(get_local $16)
)
- (func $_pop_arg_336 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $_pop_arg_336 (; 52 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 f64)
(local $5 i32)
@@ -7595,7 +7595,7 @@
)
)
)
- (func $_fmt_u (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_fmt_u (; 53 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(if
@@ -7717,7 +7717,7 @@
)
(get_local $2)
)
- (func $_pad (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
+ (func $_pad (; 54 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
@@ -7865,7 +7865,7 @@
(get_local $7)
)
)
- (func $_malloc (param $0 i32) (result i32)
+ (func $_malloc (; 55 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -13344,7 +13344,7 @@
(i32.const 8)
)
)
- (func $_free (param $0 i32)
+ (func $_free (; 56 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -15134,10 +15134,10 @@
(i32.const -1)
)
)
- (func $runPostSets
+ (func $runPostSets (; 57 ;)
(nop)
)
- (func $_i64Subtract (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_i64Subtract (; 58 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(set_global $tempRet0
(i32.sub
(i32.sub
@@ -15155,7 +15155,7 @@
(get_local $2)
)
)
- (func $_i64Add (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_i64Add (; 59 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_global $tempRet0
(i32.add
@@ -15176,7 +15176,7 @@
)
(get_local $4)
)
- (func $_memset (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memset (; 60 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -15314,7 +15314,7 @@
(get_local $2)
)
)
- (func $_bitshift64Lshr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_bitshift64Lshr (; 61 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(if
(i32.lt_s
(get_local $2)
@@ -15364,7 +15364,7 @@
)
)
)
- (func $_bitshift64Shl (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_bitshift64Shl (; 62 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(if
(i32.lt_s
(get_local $2)
@@ -15420,7 +15420,7 @@
)
(i32.const 0)
)
- (func $_memcpy (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 63 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -15567,7 +15567,7 @@
)
(get_local $3)
)
- (func $___udivdi3 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $___udivdi3 (; 64 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call $___udivmoddi4
(get_local $0)
(get_local $1)
@@ -15576,7 +15576,7 @@
(i32.const 0)
)
)
- (func $___uremdi3 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $___uremdi3 (; 65 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_local $4
(get_global $STACKTOP)
@@ -15610,7 +15610,7 @@
(get_local $0)
)
)
- (func $___udivmoddi4 (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
+ (func $___udivmoddi4 (; 66 ;) (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
(local $x64 i64)
(local $y64 i64)
(set_local $x64
@@ -15667,7 +15667,7 @@
(get_local $x64)
)
)
- (func $dynCall_ii (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_ii (; 67 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -15676,7 +15676,7 @@
)
)
)
- (func $dynCall_iiii (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $dynCall_iiii (; 68 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -15690,7 +15690,7 @@
)
)
)
- (func $dynCall_vi (param $0 i32) (param $1 i32)
+ (func $dynCall_vi (; 69 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -15702,19 +15702,19 @@
)
)
)
- (func $b0 (param $0 i32) (result i32)
+ (func $b0 (; 70 ;) (param $0 i32) (result i32)
(call $nullFunc_ii
(i32.const 0)
)
(i32.const 0)
)
- (func $b1 (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $b1 (; 71 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $nullFunc_iiii
(i32.const 1)
)
(i32.const 0)
)
- (func $b2 (param $0 i32)
+ (func $b2 (; 72 ;) (param $0 i32)
(call $nullFunc_vi
(i32.const 2)
)