diff options
Diffstat (limited to 'test/torture-s/doloop-1.c.s')
-rw-r--r-- | test/torture-s/doloop-1.c.s | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/torture-s/doloop-1.c.s b/test/torture-s/doloop-1.c.s index 6fc8b241e..e9c90773e 100644 --- a/test/torture-s/doloop-1.c.s +++ b/test/torture-s/doloop-1.c.s @@ -12,7 +12,7 @@ main: # @main copy_local $1=, $0 .LBB0_1: # %do.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.load $push0=, i($0) i32.const $push1=, 1 i32.add $push2=, $pop0, $pop1 @@ -21,20 +21,23 @@ main: # @main i32.add $1=, $1, $pop3 i32.const $push4=, 255 i32.and $push5=, $1, $pop4 - br_if $pop5, .LBB0_1 -.LBB0_2: # %do.end + br_if $pop5, 0 # 0: up to label0 +# BB#2: # %do.end + end_loop # label1: i32.const $1=, 0 - block .LBB0_4 + block i32.load $push6=, i($1) i32.const $push7=, 256 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %if.end call exit@FUNCTION, $1 unreachable .LBB0_4: # %if.then + end_block # label2: call abort@FUNCTION unreachable + .endfunc .Lfunc_end0: .size main, .Lfunc_end0-main @@ -48,5 +51,5 @@ i: .size i, 4 - .ident "clang version 3.8.0 " + .ident "clang version 3.9.0 " .section ".note.GNU-stack","",@progbits |