]>
Commit | Line | Data |
---|---|---|
abe05a73 XL |
1 | .text |
2 | .file "doloop-2.c" | |
3 | .section .text.main,"ax",@progbits | |
4 | .hidden main # -- Begin function main | |
5 | .globl main | |
6 | .type main,@function | |
7 | main: # @main | |
8 | .result i32 | |
9 | .local i32 | |
10 | # BB#0: # %entry | |
11 | i32.const $0=, 0 | |
12 | .LBB0_1: # %do.body | |
13 | # =>This Inner Loop Header: Depth=1 | |
14 | loop # label0: | |
15 | i32.const $push12=, 0 | |
16 | i32.const $push11=, 0 | |
17 | i32.load $push0=, i($pop11) | |
18 | i32.const $push10=, 1 | |
19 | i32.add $push1=, $pop0, $pop10 | |
20 | i32.store i($pop12), $pop1 | |
21 | i32.const $push9=, -1 | |
22 | i32.add $push8=, $0, $pop9 | |
23 | tee_local $push7=, $0=, $pop8 | |
24 | i32.const $push6=, 65535 | |
25 | i32.and $push2=, $pop7, $pop6 | |
26 | br_if 0, $pop2 # 0: up to label0 | |
27 | # BB#2: # %do.end | |
28 | end_loop | |
29 | block | |
30 | i32.const $push13=, 0 | |
31 | i32.load $push3=, i($pop13) | |
32 | i32.const $push4=, 65536 | |
33 | i32.ne $push5=, $pop3, $pop4 | |
34 | br_if 0, $pop5 # 0: down to label1 | |
35 | # BB#3: # %if.end | |
36 | i32.const $push14=, 0 | |
37 | call exit@FUNCTION, $pop14 | |
38 | unreachable | |
39 | .LBB0_4: # %if.then | |
40 | end_block # label1: | |
41 | call abort@FUNCTION | |
42 | unreachable | |
43 | .endfunc | |
44 | .Lfunc_end0: | |
45 | .size main, .Lfunc_end0-main | |
46 | # -- End function | |
47 | .hidden i # @i | |
48 | .type i,@object | |
49 | .section .bss.i,"aw",@nobits | |
50 | .globl i | |
51 | .p2align 2 | |
52 | i: | |
53 | .int32 0 # 0x0 | |
54 | .size i, 4 | |
55 | ||
56 | ||
57 | .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)" | |
58 | .functype abort, void | |
59 | .functype exit, void, i32 |