summaryrefslogtreecommitdiff
path: root/test/unit.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r--test/unit.fromasm106
1 files changed, 53 insertions, 53 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm
index 2196a3ae8..815a0ea7e 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -87,10 +87,10 @@
(export "relocatableAndModules" (func $relocatableAndModules))
(export "exported_f32_user" (func $exported_f32_user))
(export "keepAlive" (func $keepAlive))
- (func $big_negative (; 8 ;) (; has Stack IR ;)
+ (func $big_negative (; has Stack IR ;)
(nop)
)
- (func $importedDoubles (; 9 ;) (; has Stack IR ;) (result f64)
+ (func $importedDoubles (; has Stack IR ;) (result f64)
(if
(i32.gt_s
(global.get $Int)
@@ -102,7 +102,7 @@
)
(f64.const 1.2)
)
- (func $doubleCompares (; 10 ;) (; has Stack IR ;) (param $0 f64) (param $1 f64) (result f64)
+ (func $doubleCompares (; has Stack IR ;) (param $0 f64) (param $1 f64) (result f64)
(if
(f64.gt
(local.get $0)
@@ -141,12 +141,12 @@
)
(local.get $1)
)
- (func $intOps (; 11 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $intOps (; has Stack IR ;) (param $0 i32) (result i32)
(i32.eqz
(local.get $0)
)
)
- (func $conversions (; 12 ;) (; has Stack IR ;) (param $0 i32) (param $1 f64) (param $2 f32)
+ (func $conversions (; has Stack IR ;) (param $0 i32) (param $1 f64) (param $2 f32)
(drop
(call $f64-to-int
(local.get $1)
@@ -160,7 +160,7 @@
)
)
)
- (func $switcher (; 13 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $switcher (; has Stack IR ;) (param $0 i32) (result i32)
(block $switch
(block $switch-case0
(block $switch-case
@@ -217,13 +217,13 @@
)
(i32.const 0)
)
- (func $frem (; 14 ;) (; has Stack IR ;) (result f64)
+ (func $frem (; has Stack IR ;) (result f64)
(call $f64-rem
(f64.const 5.5)
(f64.const 1.2)
)
)
- (func $frem_float (; 15 ;) (; has Stack IR ;) (result f32)
+ (func $frem_float (; has Stack IR ;) (result f32)
(f32.demote_f64
(call $f64-rem
(f64.const 5.5)
@@ -231,31 +231,31 @@
)
)
)
- (func $big_uint_div_u (; 16 ;) (; has Stack IR ;) (result i32)
+ (func $big_uint_div_u (; has Stack IR ;) (result i32)
(i32.const 2147483647)
)
- (func $trapping_sint_div_s (; 17 ;) (; has Stack IR ;) (result i32)
+ (func $trapping_sint_div_s (; has Stack IR ;) (result i32)
(i32.const 0)
)
- (func $fr (; 18 ;) (; has Stack IR ;) (param $0 f32)
+ (func $fr (; has Stack IR ;) (param $0 f32)
(nop)
)
- (func $negZero (; 19 ;) (; has Stack IR ;) (result f64)
+ (func $negZero (; has Stack IR ;) (result f64)
(f64.const -0)
)
- (func $neg (; 20 ;) (; has Stack IR ;)
+ (func $neg (; has Stack IR ;)
(call_indirect (type $f32_=>_none)
(f32.const -0)
(i32.const 9)
)
)
- (func $cneg (; 21 ;) (; has Stack IR ;) (param $0 f32)
+ (func $cneg (; has Stack IR ;) (param $0 f32)
(call_indirect (type $f32_=>_none)
(local.get $0)
(i32.const 9)
)
)
- (func $smallCompare (; 22 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $smallCompare (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.lt_u
(local.tee $0
@@ -280,13 +280,13 @@
(local.get $0)
)
)
- (func $cneg_nosemicolon (; 23 ;) (; has Stack IR ;)
+ (func $cneg_nosemicolon (; has Stack IR ;)
(call_indirect (type $i32_=>_none)
(i32.const 1)
(i32.const 17)
)
)
- (func $forLoop (; 24 ;) (; has Stack IR ;)
+ (func $forLoop (; has Stack IR ;)
(local $0 i32)
(local.set $0
(i32.const 1)
@@ -312,10 +312,10 @@
)
)
)
- (func $ceiling_32_64 (; 25 ;) (; has Stack IR ;) (param $0 f32) (param $1 f64)
+ (func $ceiling_32_64 (; has Stack IR ;) (param $0 f32) (param $1 f64)
(nop)
)
- (func $aborts (; 26 ;) (; has Stack IR ;)
+ (func $aborts (; has Stack IR ;)
(drop
(call $abort
(f64.const 0)
@@ -344,7 +344,7 @@
)
)
)
- (func $continues (; 27 ;) (; has Stack IR ;)
+ (func $continues (; has Stack IR ;)
(loop $while-in
(call $print
(i32.const 1)
@@ -363,10 +363,10 @@
(br $while-in)
)
)
- (func $bitcasts (; 28 ;) (; has Stack IR ;) (param $0 i32) (param $1 f32)
+ (func $bitcasts (; has Stack IR ;) (param $0 i32) (param $1 f32)
(nop)
)
- (func $recursiveBlockMerging (; 29 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $recursiveBlockMerging (; has Stack IR ;) (param $0 i32) (result i32)
(drop
(call $lb
(i32.add
@@ -441,7 +441,7 @@
)
)
)
- (func $lb (; 30 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $lb (; has Stack IR ;) (param $0 i32) (result i32)
(i32.store
(local.get $0)
(i32.add
@@ -451,7 +451,7 @@
)
(i32.const 0)
)
- (func $zeroInit (; 31 ;) (; has Stack IR ;) (param $0 i32)
+ (func $zeroInit (; has Stack IR ;) (param $0 i32)
(local $1 i32)
(if
(i32.eq
@@ -477,7 +477,7 @@
)
)
)
- (func $phi (; 32 ;) (; has Stack IR ;) (result i32)
+ (func $phi (; has Stack IR ;) (result i32)
(block $do-once (result i32)
(drop
(br_if $do-once
@@ -490,7 +490,7 @@
(i32.const 1)
)
)
- (func $smallIf (; 33 ;) (; has Stack IR ;)
+ (func $smallIf (; has Stack IR ;)
(if
(call $return_int)
(drop
@@ -500,7 +500,7 @@
)
)
)
- (func $dropCall (; 34 ;) (; has Stack IR ;) (result i32)
+ (func $dropCall (; has Stack IR ;) (result i32)
(if
(call $return_int)
(block
@@ -521,7 +521,7 @@
)
(call $phi)
)
- (func $useGlobalSet (; 35 ;) (; has Stack IR ;) (result i32)
+ (func $useGlobalSet (; has Stack IR ;) (result i32)
(global.set $Int
(i32.const 10)
)
@@ -533,13 +533,13 @@
)
(i32.const 30)
)
- (func $usesGlobalSet2 (; 36 ;) (; has Stack IR ;) (result i32)
+ (func $usesGlobalSet2 (; has Stack IR ;) (result i32)
(global.set $Int
(i32.const 40)
)
(i32.const 50)
)
- (func $breakThroughMany (; 37 ;) (; has Stack IR ;) (param $0 i32)
+ (func $breakThroughMany (; has Stack IR ;) (param $0 i32)
(if
(local.get $0)
(loop $while-in
@@ -555,7 +555,7 @@
)
)
)
- (func $ifChainEmpty (; 38 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $ifChainEmpty (; has Stack IR ;) (param $0 i32) (result i32)
(if
(i32.eq
(local.get $0)
@@ -567,12 +567,12 @@
)
(i32.const 0)
)
- (func $heap8NoShift (; 39 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $heap8NoShift (; has Stack IR ;) (param $0 i32) (result i32)
(i32.load8_s
(local.get $0)
)
)
- (func $conditionalTypeFun (; 40 ;) (; has Stack IR ;)
+ (func $conditionalTypeFun (; has Stack IR ;)
(drop
(if (result i32)
(call $return_int)
@@ -598,7 +598,7 @@
)
)
)
- (func $loadSigned (; 41 ;) (; has Stack IR ;) (param $0 i32)
+ (func $loadSigned (; has Stack IR ;) (param $0 i32)
(call $loadSigned
(i32.load8_s
(local.get $0)
@@ -664,10 +664,10 @@
)
)
)
- (func $w (; 42 ;) (; has Stack IR ;) (result f64)
+ (func $w (; has Stack IR ;) (result f64)
(f64.const 0)
)
- (func $globalOpts (; 43 ;) (; has Stack IR ;)
+ (func $globalOpts (; has Stack IR ;)
(local $0 i32)
(i32.store8
(i32.const 13)
@@ -697,7 +697,7 @@
(local.get $0)
)
)
- (func $dropCallImport (; 44 ;) (; has Stack IR ;)
+ (func $dropCallImport (; has Stack IR ;)
(if
(call $return_int)
(drop
@@ -705,7 +705,7 @@
)
)
)
- (func $loophi (; 45 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32)
+ (func $loophi (; has Stack IR ;) (param $0 i32) (param $1 i32)
(loop $while-in
(block $while-out
(call $loophi
@@ -733,7 +733,7 @@
)
)
)
- (func $loophi2 (; 46 ;) (; has Stack IR ;) (result i32)
+ (func $loophi2 (; has Stack IR ;) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -767,7 +767,7 @@
)
(local.get $1)
)
- (func $loophi2b (; 47 ;) (; has Stack IR ;) (result i32)
+ (func $loophi2b (; has Stack IR ;) (result i32)
(local $0 i32)
(local $1 i32)
(loop $label$continue$L7
@@ -800,7 +800,7 @@
)
(local.get $0)
)
- (func $relooperJumpThreading (; 48 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $relooperJumpThreading (; has Stack IR ;) (param $0 i32) (result i32)
(block $__rjto$0
(block $__rjti$0
(if
@@ -969,7 +969,7 @@
)
(local.get $0)
)
- (func $relooperJumpThreading__ZN4game14preloadweaponsEv (; 49 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32)
+ (func $relooperJumpThreading__ZN4game14preloadweaponsEv (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32)
(loop $while-in
(block $__rjti$1
(if
@@ -994,7 +994,7 @@
(br $while-in)
)
)
- (func $relooperJumpThreading_irreducible (; 50 ;) (; has Stack IR ;) (param $0 i32)
+ (func $relooperJumpThreading_irreducible (; has Stack IR ;) (param $0 i32)
(local $1 i32)
(if
(i32.eq
@@ -1046,7 +1046,7 @@
)
)
)
- (func $__Z12multi_varargiz (; 51 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
+ (func $__Z12multi_varargiz (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
(if
(local.get $3)
(loop $while-in
@@ -1063,10 +1063,10 @@
)
)
)
- (func $jumpThreadDrop (; 52 ;) (; has Stack IR ;) (result i32)
+ (func $jumpThreadDrop (; has Stack IR ;) (result i32)
(call $return_int)
)
- (func $dropIgnoredImportInIf (; 53 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $dropIgnoredImportInIf (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32)
(if
(local.get $0)
(drop
@@ -1076,7 +1076,7 @@
)
)
)
- (func $dropIgnoredImportsInIf (; 54 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $dropIgnoredImportsInIf (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32)
(drop
(if (result i32)
(local.get $0)
@@ -1089,7 +1089,7 @@
)
)
)
- (func $store_fround (; 55 ;) (; has Stack IR ;) (param $0 i32)
+ (func $store_fround (; has Stack IR ;) (param $0 i32)
(f64.store
(i32.const 80)
(f64.promote_f32
@@ -1099,7 +1099,7 @@
)
)
)
- (func $relocatableAndModules (; 56 ;) (; has Stack IR ;) (result i32)
+ (func $relocatableAndModules (; has Stack IR ;) (result i32)
(call_indirect (type $none_=>_none)
(i32.const 10)
)
@@ -1112,10 +1112,10 @@
(i32.const 30)
)
)
- (func $exported_f32_user (; 57 ;) (; has Stack IR ;) (param $0 i32) (param $1 f32) (param $2 f64) (result f32)
+ (func $exported_f32_user (; has Stack IR ;) (param $0 i32) (param $1 f32) (param $2 f64) (result f32)
(local.get $1)
)
- (func $keepAlive (; 58 ;) (; has Stack IR ;)
+ (func $keepAlive (; has Stack IR ;)
(drop
(call $f64-to-int
(f64.const 100)
@@ -1168,10 +1168,10 @@
)
)
)
- (func $vi (; 59 ;) (; has Stack IR ;) (param $0 i32)
+ (func $vi (; has Stack IR ;) (param $0 i32)
(nop)
)
- (func $ii (; 60 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $ii (; has Stack IR ;) (param $0 i32) (result i32)
(local.get $0)
)
)