summaryrefslogtreecommitdiff
path: root/test/torture-s/20121108-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20121108-1.c.s')
-rw-r--r--test/torture-s/20121108-1.c.s40
1 files changed, 24 insertions, 16 deletions
diff --git a/test/torture-s/20121108-1.c.s b/test/torture-s/20121108-1.c.s
index fd1d5a41a..e848857fb 100644
--- a/test/torture-s/20121108-1.c.s
+++ b/test/torture-s/20121108-1.c.s
@@ -12,30 +12,32 @@ strtoul1: # @strtoul1
i32.add $push1=, $0, $pop0
i32.store $discard=, 0($1), $pop1
i32.const $1=, 192
- block .LBB0_5
+ block
i32.const $push2=, temp
i32.eq $push3=, $0, $pop2
- br_if $pop3, .LBB0_5
+ br_if $pop3, 0 # 0: down to label0
# BB#1: # %if.else
i32.const $1=, 168
i32.const $push4=, temp+4
i32.eq $push5=, $0, $pop4
- br_if $pop5, .LBB0_5
+ br_if $pop5, 0 # 0: down to label0
# BB#2: # %if.else3
i32.const $1=, 190
i32.const $push6=, temp+8
i32.eq $push7=, $0, $pop6
- br_if $pop7, .LBB0_5
+ br_if $pop7, 0 # 0: down to label0
# BB#3: # %if.else6
i32.const $1=, 160
i32.const $push8=, temp+12
i32.eq $push9=, $0, $pop8
- br_if $pop9, .LBB0_5
+ br_if $pop9, 0 # 0: down to label0
# BB#4: # %if.end11
call abort@FUNCTION
unreachable
.LBB0_5: # %return
+ end_block # label0:
return $1
+ .endfunc
.Lfunc_end0:
.size strtoul1, .Lfunc_end0-strtoul1
@@ -55,10 +57,10 @@ string_to_ip: # @string_to_ip
i32.const $7=, __stack_pointer
i32.store $12=, 0($7), $12
i32.const $5=, 0
- block .LBB1_7
+ block
i32.const $push14=, 0
i32.eq $push15=, $0, $pop14
- br_if $pop15, .LBB1_7
+ br_if $pop15, 0 # 0: down to label1
# BB#1: # %if.end9
i32.const $9=, 12
i32.add $9=, $12, $9
@@ -69,14 +71,14 @@ string_to_ip: # @string_to_ip
i32.add $push1=, $0, $3
i32.select $1=, $pop0, $pop1, $0
i32.const $0=, 8
- block .LBB1_6
- block .LBB1_5
+ block
+ block
i32.shl $push2=, $5, $0
i32.const $push3=, 65280
i32.and $5=, $pop2, $pop3
i32.const $push16=, 0
i32.eq $push17=, $1, $pop16
- br_if $pop17, .LBB1_5
+ br_if $pop17, 0 # 0: down to label3
# BB#2: # %if.end9.1
i32.const $10=, 12
i32.add $10=, $12, $10
@@ -90,7 +92,7 @@ string_to_ip: # @string_to_ip
i32.or $5=, $pop4, $5
i32.const $push18=, 0
i32.eq $push19=, $2, $pop18
- br_if $pop19, .LBB1_5
+ br_if $pop19, 0 # 0: down to label3
# BB#3: # %if.end9.2
i32.const $11=, 12
i32.add $11=, $12, $11
@@ -104,7 +106,7 @@ string_to_ip: # @string_to_ip
i32.or $5=, $pop8, $pop7
i32.const $push20=, 0
i32.eq $push21=, $3, $pop20
- br_if $pop21, .LBB1_6
+ br_if $pop21, 1 # 1: down to label2
# BB#4: # %if.then3.3
i32.const $12=, 12
i32.add $12=, $12, $12
@@ -112,17 +114,21 @@ string_to_ip: # @string_to_ip
i32.and $push13=, $pop11, $1
i32.shl $push12=, $5, $0
i32.or $5=, $pop13, $pop12
- br .LBB1_7
+ br 2 # 2: down to label1
.LBB1_5: # %if.end9.2.thread
+ end_block # label3:
i32.shl $5=, $5, $0
.LBB1_6: # %cond.end.3
+ end_block # label2:
i32.shl $5=, $5, $0
.LBB1_7: # %cleanup
+ end_block # label1:
i32.const $8=, 16
i32.add $12=, $12, $8
i32.const $8=, __stack_pointer
i32.store $12=, 0($8), $12
return $5
+ .endfunc
.Lfunc_end1:
.size string_to_ip, .Lfunc_end1-string_to_ip
@@ -173,10 +179,10 @@ main: # @main
i32.add $14=, $9, $10
i32.const $10=, __stack_pointer
i32.store $14=, 0($10), $14
- block .LBB2_2
+ block
i32.load $push2=, result($2)
i32.ne $push3=, $0, $pop2
- br_if $pop3, .LBB2_2
+ br_if $pop3, 0 # 0: down to label4
# BB#1: # %if.end
i32.const $push4=, .Lstr
i32.call $discard=, puts@FUNCTION, $pop4
@@ -186,8 +192,10 @@ main: # @main
i32.store $14=, 0($13), $14
return $2
.LBB2_2: # %if.then
+ end_block # label4:
call abort@FUNCTION
unreachable
+ .endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
@@ -221,5 +229,5 @@ result:
.size .Lstr, 7
- .ident "clang version 3.8.0 "
+ .ident "clang version 3.9.0 "
.section ".note.GNU-stack","",@progbits