summaryrefslogtreecommitdiff
path: root/test/torture-s/loop-3b.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/loop-3b.c.s')
-rw-r--r--test/torture-s/loop-3b.c.s10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/torture-s/loop-3b.c.s b/test/torture-s/loop-3b.c.s
index e25fce6f8..6441d4edd 100644
--- a/test/torture-s/loop-3b.c.s
+++ b/test/torture-s/loop-3b.c.s
@@ -15,6 +15,7 @@ g: # @g
i32.add $push2=, $pop0, $pop1
i32.store $discard=, n($1), $pop2
return $1
+ .endfunc
.Lfunc_end0:
.size g, .Lfunc_end0-g
@@ -42,6 +43,7 @@ f: # @f
i32.add $push10=, $pop8, $pop9
i32.store $discard=, n($1), $pop10
return $2
+ .endfunc
.Lfunc_end1:
.size f, .Lfunc_end1-f
@@ -55,17 +57,19 @@ main: # @main
# BB#0: # %entry
i32.const $0=, 0
i32.load $1=, n($0)
- block .LBB2_2
+ block
i32.const $push0=, 4
i32.add $push1=, $1, $pop0
i32.store $discard=, n($0), $pop1
- br_if $1, .LBB2_2
+ br_if $1, 0 # 0: down to label0
# BB#1: # %if.end
call exit@FUNCTION, $0
unreachable
.LBB2_2: # %if.then
+ end_block # label0:
call abort@FUNCTION
unreachable
+ .endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
@@ -79,5 +83,5 @@ n:
.size n, 4
- .ident "clang version 3.8.0 "
+ .ident "clang version 3.9.0 "
.section ".note.GNU-stack","",@progbits