]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/loop-12.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / loop-12.c.s
1 .text
2 .file "loop-12.c"
3 .section .text.foo,"ax",@progbits
4 .hidden foo # -- Begin function foo
5 .globl foo
6 .type foo,@function
7 foo: # @foo
8 .local i32, i32
9 # BB#0: # %entry
10 i32.const $push3=, 0
11 i32.load $1=, p($pop3)
12 .LBB0_1: # %while.cond
13 # =>This Inner Loop Header: Depth=1
14 block
15 loop # label1:
16 i32.load8_u $push10=, 0($1)
17 tee_local $push9=, $0=, $pop10
18 i32.const $push8=, 10
19 i32.eq $push0=, $pop9, $pop8
20 br_if 1, $pop0 # 1: down to label0
21 # BB#2: # %while.cond
22 # in Loop: Header=BB0_1 Depth=1
23 i32.const $push11=, 33
24 i32.eq $push1=, $0, $pop11
25 br_if 1, $pop1 # 1: down to label0
26 # BB#3: # %while.cond
27 # in Loop: Header=BB0_1 Depth=1
28 i32.const $push12=, 59
29 i32.eq $push2=, $0, $pop12
30 br_if 1, $pop2 # 1: down to label0
31 # BB#4: # %while.body
32 # in Loop: Header=BB0_1 Depth=1
33 i32.const $push7=, 0
34 i32.const $push6=, 1
35 i32.add $push5=, $1, $pop6
36 tee_local $push4=, $1=, $pop5
37 i32.store p($pop7), $pop4
38 br 0 # 0: up to label1
39 .LBB0_5: # %while.end
40 end_loop
41 end_block # label0:
42 # fallthrough-return
43 .endfunc
44 .Lfunc_end0:
45 .size foo, .Lfunc_end0-foo
46 # -- End function
47 .section .text.main,"ax",@progbits
48 .hidden main # -- Begin function main
49 .globl main
50 .type main,@function
51 main: # @main
52 .result i32
53 .local i32, i32
54 # BB#0: # %entry
55 i32.const $1=, .L.str
56 .LBB1_1: # %while.cond.i
57 # =>This Inner Loop Header: Depth=1
58 block
59 loop # label3:
60 i32.const $push8=, 0
61 i32.store p($pop8), $1
62 i32.load8_u $push7=, 0($1)
63 tee_local $push6=, $0=, $pop7
64 i32.const $push5=, 10
65 i32.eq $push0=, $pop6, $pop5
66 br_if 1, $pop0 # 1: down to label2
67 # BB#2: # %while.cond.i
68 # in Loop: Header=BB1_1 Depth=1
69 i32.const $push9=, 33
70 i32.eq $push1=, $0, $pop9
71 br_if 1, $pop1 # 1: down to label2
72 # BB#3: # %while.cond.i
73 # in Loop: Header=BB1_1 Depth=1
74 i32.const $push10=, 59
75 i32.eq $push2=, $0, $pop10
76 br_if 1, $pop2 # 1: down to label2
77 # BB#4: # %while.body.i
78 # in Loop: Header=BB1_1 Depth=1
79 i32.const $push4=, 1
80 i32.add $1=, $1, $pop4
81 br 0 # 0: up to label3
82 .LBB1_5: # %foo.exit
83 end_loop
84 end_block # label2:
85 i32.const $push3=, 0
86 # fallthrough-return: $pop3
87 .endfunc
88 .Lfunc_end1:
89 .size main, .Lfunc_end1-main
90 # -- End function
91 .hidden p # @p
92 .type p,@object
93 .section .bss.p,"aw",@nobits
94 .globl p
95 .p2align 2
96 p:
97 .int32 0
98 .size p, 4
99
100 .type .L.str,@object # @.str
101 .section .rodata.str1.1,"aMS",@progbits,1
102 .L.str:
103 .asciz "abc\n"
104 .size .L.str, 5
105
106
107 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"