diff options
Diffstat (limited to 'test/torture-s/doloop-1.c.s')
-rw-r--r-- | test/torture-s/doloop-1.c.s | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/test/torture-s/doloop-1.c.s b/test/torture-s/doloop-1.c.s new file mode 100644 index 000000000..a394e17ab --- /dev/null +++ b/test/torture-s/doloop-1.c.s @@ -0,0 +1,49 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/doloop-1.c" + .globl main + .type main,@function +main: # @main + .result i32 + .local i32, i32 +# BB#0: # %entry + i32.const $0=, 0 + copy_local $1=, $0 +BB0_1: # %do.body + # =>This Inner Loop Header: Depth=1 + loop BB0_2 + i32.load $push0=, i($0) + i32.const $push1=, 1 + i32.add $push2=, $pop0, $pop1 + i32.store $discard=, i($0), $pop2 + i32.const $push3=, -1 + i32.add $1=, $1, $pop3 + i32.const $push4=, 255 + i32.and $push5=, $1, $pop4 + br_if $pop5, BB0_1 +BB0_2: # %do.end + i32.const $1=, 0 + block BB0_4 + i32.load $push6=, i($1) + i32.const $push7=, 256 + i32.ne $push8=, $pop6, $pop7 + br_if $pop8, BB0_4 +# BB#3: # %if.end + call exit, $1 + unreachable +BB0_4: # %if.then + call abort + unreachable +func_end0: + .size main, func_end0-main + + .type i,@object # @i + .bss + .globl i + .align 2 +i: + .int32 0 # 0x0 + .size i, 4 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |