summaryrefslogtreecommitdiff
path: root/test/torture-s/20081218-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20081218-1.c.s')
-rw-r--r--test/torture-s/20081218-1.c.s39
1 files changed, 24 insertions, 15 deletions
diff --git a/test/torture-s/20081218-1.c.s b/test/torture-s/20081218-1.c.s
index cfbf979db..5fccf0f01 100644
--- a/test/torture-s/20081218-1.c.s
+++ b/test/torture-s/20081218-1.c.s
@@ -13,6 +13,7 @@ foo: # @foo
call memset@FUNCTION, $pop0, $pop2, $pop1
i32.const $push3=, 640034342
return $pop3
+ .endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
@@ -33,6 +34,7 @@ bar: # @bar
i32.const $push4=, 909588022
i32.store $discard=, a+4($0), $pop4
return
+ .endfunc
.Lfunc_end1:
.size bar, .Lfunc_end1-bar
@@ -46,67 +48,74 @@ main: # @main
# BB#0: # %entry
i32.call $0=, foo@FUNCTION
i32.const $3=, 0
- block .LBB2_11
+ block
i32.const $push0=, 640034342
i32.ne $push1=, $0, $pop0
- br_if $pop1, .LBB2_11
+ br_if $pop1, 0 # 0: down to label0
.LBB2_1: # %for.body
# =>This Inner Loop Header: Depth=1
- block .LBB2_10
- loop .LBB2_3
+ block
+ loop # label2:
i32.const $0=, a
i32.add $push2=, $0, $3
i32.load8_u $push3=, 0($pop2)
i32.const $push4=, 38
i32.ne $push5=, $pop3, $pop4
- br_if $pop5, .LBB2_10
+ br_if $pop5, 2 # 2: down to label1
# BB#2: # %for.cond
# in Loop: Header=BB2_1 Depth=1
i32.const $1=, 1
i32.add $3=, $3, $1
i32.const $2=, 519
i32.le_u $push6=, $3, $2
- br_if $pop6, .LBB2_1
-.LBB2_3: # %for.end
+ br_if $pop6, 0 # 0: up to label2
+# BB#3: # %for.end
+ end_loop # label3:
call bar@FUNCTION
i32.const $3=, 0
- block .LBB2_9
+ block
i32.load $push7=, a+4($3)
i32.const $push8=, 909588022
i32.ne $push9=, $pop7, $pop8
- br_if $pop9, .LBB2_9
+ br_if $pop9, 0 # 0: down to label4
# BB#4: # %if.end9
i32.const $push10=, 909522486
i32.store $discard=, a+4($3), $pop10
.LBB2_5: # %for.body13
# =>This Inner Loop Header: Depth=1
- block .LBB2_8
- loop .LBB2_7
+ block
+ loop # label6:
i32.add $push11=, $0, $3
i32.load8_u $push12=, 0($pop11)
i32.const $push13=, 54
i32.ne $push14=, $pop12, $pop13
- br_if $pop14, .LBB2_8
+ br_if $pop14, 2 # 2: down to label5
# BB#6: # %for.cond10
# in Loop: Header=BB2_5 Depth=1
i32.add $3=, $3, $1
i32.le_u $push15=, $3, $2
- br_if $pop15, .LBB2_5
-.LBB2_7: # %for.end22
+ br_if $pop15, 0 # 0: up to label6
+# BB#7: # %for.end22
+ end_loop # label7:
i32.const $push16=, 0
return $pop16
.LBB2_8: # %if.then18
+ end_block # label5:
call abort@FUNCTION
unreachable
.LBB2_9: # %if.then8
+ end_block # label4:
call abort@FUNCTION
unreachable
.LBB2_10: # %if.then4
+ end_block # label1:
call abort@FUNCTION
unreachable
.LBB2_11: # %if.then
+ end_block # label0:
call abort@FUNCTION
unreachable
+ .endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
@@ -120,5 +129,5 @@ a:
.size a, 520
- .ident "clang version 3.8.0 "
+ .ident "clang version 3.9.0 "
.section ".note.GNU-stack","",@progbits