summaryrefslogtreecommitdiff
path: root/test/torture-s/loop-3c.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/loop-3c.c.s')
-rw-r--r--test/torture-s/loop-3c.c.s11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/torture-s/loop-3c.c.s b/test/torture-s/loop-3c.c.s
index 07525ec8a..e73108a78 100644
--- a/test/torture-s/loop-3c.c.s
+++ b/test/torture-s/loop-3c.c.s
@@ -16,7 +16,7 @@ f: # @f
i32.const $3=, 256
.LBB0_1: # %do.body
# =>This Inner Loop Header: Depth=1
- loop .LBB0_2
+ loop # label0:
i32.const $push2=, 1
i32.shr_s $3=, $3, $pop2
i32.const $push3=, 2
@@ -29,9 +29,11 @@ f: # @f
i32.add $2=, $2, $pop7
i32.const $push8=, 1073741840
i32.lt_s $push9=, $0, $pop8
- br_if $pop9, .LBB0_1
-.LBB0_2: # %do.end
+ br_if $pop9, 0 # 0: up to label0
+# BB#2: # %do.end
+ end_loop # label1:
return $0
+ .endfunc
.Lfunc_end0:
.size f, .Lfunc_end0-f
@@ -55,6 +57,7 @@ main: # @main
i32.store $discard=, a+64($0), $pop3
call exit@FUNCTION, $0
unreachable
+ .endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
@@ -68,5 +71,5 @@ a:
.size a, 1020
- .ident "clang version 3.8.0 "
+ .ident "clang version 3.9.0 "
.section ".note.GNU-stack","",@progbits