diff options
Diffstat (limited to 'test/dot_s')
-rw-r--r-- | test/dot_s/basics.s | 23 | ||||
-rw-r--r-- | test/dot_s/basics.wast | 16 | ||||
-rw-r--r-- | test/dot_s/memops.s | 18 | ||||
-rw-r--r-- | test/dot_s/memops.wast | 12 |
4 files changed, 34 insertions, 35 deletions
diff --git a/test/dot_s/basics.s b/test/dot_s/basics.s index a37678ff7..a47765778 100644 --- a/test/dot_s/basics.s +++ b/test/dot_s/basics.s @@ -18,12 +18,12 @@ main: # @main i32.sub $push8=, $0, $pop7 i32.const $push9=, 1 i32.ne $push10=, $pop8, $pop9 - block .LBB0_5 - block .LBB0_4 - br_if $pop10, .LBB0_4 + block + block + br_if $pop10, 0 .LBB0_1: # %.preheader # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 + loop i32.const $push12=, 10 i32.gt_s $push13=, $0, $pop12 i32.add $0=, $pop13, $0 @@ -31,24 +31,25 @@ main: # @main i32.rem_s $push15=, $0, $pop14 i32.const $push16=, 3 i32.ne $push17=, $pop15, $pop16 - block .LBB0_3 - br_if $pop17, .LBB0_3 + block + br_if $pop17, 0 # BB#2: # in Loop: Header=.LBB0_1 Depth=1 i32.const $push18=, 111 i32.rem_s $push19=, $0, $pop18 i32.add $0=, $pop19, $0 -.LBB0_3: # in Loop: Header=.LBB0_1 Depth=1 + end_block i32.const $push20=, 7 i32.rem_s $push21=, $0, $pop20 i32.const $push22=, 0 i32.eq $push23=, $pop21, $pop22 - br_if $pop23, .LBB0_5 - br .LBB0_1 -.LBB0_4: + br_if $pop23, 2 + br 0 + end_loop + end_block i32.const $push11=, -12 i32.add $0=, $0, $pop11 i32.const $discard=, main # just take address for testing -.LBB0_5: # %.loopexit + end_block return $0 .Lfunc_end0: .size main, .Lfunc_end0-main diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast index b73f6c456..a81cfd8a9 100644 --- a/test/dot_s/basics.wast +++ b/test/dot_s/basics.wast @@ -10,8 +10,8 @@ (call_import $puts (i32.const 16) ) - (block $.LBB0_5 - (block $.LBB0_4 + (block $label$0 + (block $label$1 (br_if (i32.ne (i32.sub @@ -32,9 +32,9 @@ ) (i32.const 1) ) - $.LBB0_4 + $label$1 ) - (loop $.LBB0_1 + (loop $label$3 $label$2 (block (set_local $$0 (i32.add @@ -45,7 +45,7 @@ (get_local $$0) ) ) - (block $.LBB0_3 + (block $label$4 (br_if (i32.ne (i32.rem_s @@ -54,7 +54,7 @@ ) (i32.const 3) ) - $.LBB0_3 + $label$4 ) (set_local $$0 (i32.add @@ -74,9 +74,9 @@ ) (i32.const 0) ) - $.LBB0_5 + $label$1 ) - (br $.LBB0_1) + (br $label$2) ) ) ) diff --git a/test/dot_s/memops.s b/test/dot_s/memops.s index 64c967a13..aadab0db2 100644 --- a/test/dot_s/memops.s +++ b/test/dot_s/memops.s @@ -35,7 +35,7 @@ main: # @main copy_local $4=, $1 .LBB1_2: # Parent Loop .LBB1_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB1_3 + loop i32.const $10=, 0 i32.add $10=, $12, $10 i32.add $push1=, $10, $4 @@ -46,11 +46,9 @@ main: # @main i32.const $3=, 1048576 i32.ne $push2=, $4, $3 copy_local $5=, $1 - br_if $pop2, .LBB1_2 -.LBB1_3: # %.preheader - # Parent Loop .LBB1_1 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB1_4 + br_if $pop2, 0 + end_loop + loop i32.const $11=, 0 i32.add $11=, $12, $11 i32.add $push3=, $11, $5 @@ -59,8 +57,8 @@ main: # @main i32.add $6=, $pop5, $6 i32.add $5=, $5, $2 i32.ne $push6=, $5, $3 - br_if $pop6, .LBB1_3 -.LBB1_4: # in Loop: Header=.LBB1_1 Depth=1 + br_if $pop6, 0 + end_loop i32.const $push7=, 3 i32.mul $push8=, $6, $pop7 i32.const $push9=, 5 @@ -73,8 +71,8 @@ main: # @main i32.add $0=, $0, $2 i32.const $push15=, 100 i32.ne $push16=, $0, $pop15 - br_if $pop16, .LBB1_1 -.LBB1_5: + br_if $pop16, 0 + end_loop call _Z6reporti@FUNCTION, $6 i32.const $push17=, 0 i32.const $9=, 1048576 diff --git a/test/dot_s/memops.wast b/test/dot_s/memops.wast index e8ea14590..5428d765b 100644 --- a/test/dot_s/memops.wast +++ b/test/dot_s/memops.wast @@ -69,12 +69,12 @@ (set_local $$6 (get_local $$1) ) - (loop $.LBB1_5 $.LBB1_1 + (loop $label$1 $label$0 (block (set_local $$4 (get_local $$1) ) - (loop $.LBB1_3 $.LBB1_2 + (loop $label$3 $label$2 (block (set_local $$10 (i32.const 0) @@ -115,11 +115,11 @@ (get_local $$4) (get_local $$3) ) - $.LBB1_2 + $label$2 ) ) ) - (loop $.LBB1_4 $.LBB1_3 + (loop $label$5 $label$4 (block (set_local $$11 (i32.const 0) @@ -155,7 +155,7 @@ (get_local $$5) (get_local $$3) ) - $.LBB1_3 + $label$4 ) ) ) @@ -188,7 +188,7 @@ (get_local $$0) (i32.const 100) ) - $.LBB1_1 + $label$0 ) ) ) |