summaryrefslogtreecommitdiff
path: root/test/torture-s/struct-aliasing-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/struct-aliasing-1.c.s')
-rw-r--r--test/torture-s/struct-aliasing-1.c.s9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/torture-s/struct-aliasing-1.c.s b/test/torture-s/struct-aliasing-1.c.s
index 9509c14f0..8a9e785c9 100644
--- a/test/torture-s/struct-aliasing-1.c.s
+++ b/test/torture-s/struct-aliasing-1.c.s
@@ -15,6 +15,7 @@ foo: # @foo
i32.load $push1=, 0($1)
i32.add $push2=, $pop1, $2
return $pop2
+ .endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
@@ -36,12 +37,12 @@ main: # @main
i32.add $3=, $5, $3
i32.const $4=, 12
i32.add $4=, $5, $4
- block .LBB1_2
+ block
i32.call $push2=, foo@FUNCTION, $3, $4
i32.const $push0=, 1
i32.store $push1=, 12($5), $pop0
i32.ne $push3=, $pop2, $pop1
- br_if $pop3, .LBB1_2
+ br_if $pop3, 0 # 0: down to label0
# BB#1: # %if.end
i32.const $push4=, 0
i32.const $2=, 16
@@ -50,11 +51,13 @@ main: # @main
i32.store $5=, 0($2), $5
return $pop4
.LBB1_2: # %if.then
+ end_block # label0:
call abort@FUNCTION
unreachable
+ .endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
- .ident "clang version 3.8.0 "
+ .ident "clang version 3.9.0 "
.section ".note.GNU-stack","",@progbits