summaryrefslogtreecommitdiff
path: root/test/torture-s/pr45695.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr45695.c.s')
-rw-r--r--test/torture-s/pr45695.c.s15
1 files changed, 10 insertions, 5 deletions
diff --git a/test/torture-s/pr45695.c.s b/test/torture-s/pr45695.c.s
index 68d6d59d0..3193d6c69 100644
--- a/test/torture-s/pr45695.c.s
+++ b/test/torture-s/pr45695.c.s
@@ -10,6 +10,7 @@ g: # @g
#APP
#NO_APP
return
+ .endfunc
.Lfunc_end0:
.size g, .Lfunc_end0-g
@@ -27,6 +28,7 @@ f: # @f
i32.const $push2=, -1
i32.select $push3=, $pop1, $1, $pop2
return $pop3
+ .endfunc
.Lfunc_end1:
.size f, .Lfunc_end1-f
@@ -46,27 +48,30 @@ main: # @main
i32.add $1=, $2, $pop0
i32.const $4=, 1
i32.add $0=, $2, $4
- block .LBB2_4
+ block
i32.call $push1=, f@FUNCTION, $2, $0, $1
i32.const $push2=, -1
i32.ne $push3=, $pop1, $pop2
- br_if $pop3, .LBB2_4
+ br_if $pop3, 0 # 0: down to label0
# BB#1: # %if.end
- block .LBB2_3
+ block
i32.call $push4=, f@FUNCTION, $1, $0, $1
i32.ne $push5=, $pop4, $4
- br_if $pop5, .LBB2_3
+ br_if $pop5, 0 # 0: down to label1
# BB#2: # %if.end9
return $3
.LBB2_3: # %if.then8
+ end_block # label1:
call abort@FUNCTION
unreachable
.LBB2_4: # %if.then
+ end_block # label0:
call abort@FUNCTION
unreachable
+ .endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
- .ident "clang version 3.8.0 "
+ .ident "clang version 3.9.0 "
.section ".note.GNU-stack","",@progbits