]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/960521-1.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / 960521-1.c.s
1 .text
2 .file "960521-1.c"
3 .section .text.foo,"ax",@progbits
4 .hidden foo # -- Begin function foo
5 .globl foo
6 .type foo,@function
7 foo: # @foo
8 .result i32
9 .local i32, i32
10 # BB#0: # %entry
11 block
12 i32.const $push8=, 0
13 i32.load $push0=, n($pop8)
14 i32.const $push7=, 1
15 i32.lt_s $push1=, $pop0, $pop7
16 br_if 0, $pop1 # 0: down to label0
17 # BB#1: # %for.body.lr.ph
18 i32.const $push9=, 0
19 i32.load $0=, a($pop9)
20 i32.const $1=, 0
21 .LBB0_2: # %for.body
22 # =>This Inner Loop Header: Depth=1
23 loop # label1:
24 i32.const $push15=, -1
25 i32.store 0($0), $pop15
26 i32.const $push14=, 4
27 i32.add $0=, $0, $pop14
28 i32.const $push13=, 1
29 i32.add $push12=, $1, $pop13
30 tee_local $push11=, $1=, $pop12
31 i32.const $push10=, 0
32 i32.load $push2=, n($pop10)
33 i32.lt_s $push3=, $pop11, $pop2
34 br_if 0, $pop3 # 0: up to label1
35 .LBB0_3: # %for.end
36 end_loop
37 end_block # label0:
38 i32.const $push16=, 0
39 i32.load $push4=, b($pop16)
40 i32.const $push6=, 255
41 i32.const $push5=, 522236
42 i32.call $drop=, memset@FUNCTION, $pop4, $pop6, $pop5
43 copy_local $push17=, $0
44 # fallthrough-return: $pop17
45 .endfunc
46 .Lfunc_end0:
47 .size foo, .Lfunc_end0-foo
48 # -- End function
49 .section .text.main,"ax",@progbits
50 .hidden main # -- Begin function main
51 .globl main
52 .type main,@function
53 main: # @main
54 .result i32
55 .local i32, i32
56 # BB#0: # %if.end
57 i32.const $push1=, 0
58 i32.const $push0=, 130560
59 i32.store n($pop1), $pop0
60 i32.const $push18=, 0
61 i32.const $push2=, 522240
62 i32.call $push17=, malloc@FUNCTION, $pop2
63 tee_local $push16=, $0=, $pop17
64 i32.store a($pop18), $pop16
65 i32.const $push15=, 522240
66 i32.call $push14=, malloc@FUNCTION, $pop15
67 tee_local $push13=, $1=, $pop14
68 i32.const $push12=, 0
69 i32.store 0($pop13), $pop12
70 i32.const $push11=, 0
71 i32.const $push3=, 4
72 i32.add $push10=, $1, $pop3
73 tee_local $push9=, $1=, $pop10
74 i32.store b($pop11), $pop9
75 i32.const $push4=, 255
76 i32.const $push8=, 522240
77 i32.call $drop=, memset@FUNCTION, $0, $pop4, $pop8
78 i32.const $push7=, 255
79 i32.const $push5=, 522236
80 i32.call $drop=, memset@FUNCTION, $1, $pop7, $pop5
81 i32.const $push6=, 0
82 call exit@FUNCTION, $pop6
83 unreachable
84 .endfunc
85 .Lfunc_end1:
86 .size main, .Lfunc_end1-main
87 # -- End function
88 .hidden n # @n
89 .type n,@object
90 .section .bss.n,"aw",@nobits
91 .globl n
92 .p2align 2
93 n:
94 .int32 0 # 0x0
95 .size n, 4
96
97 .hidden a # @a
98 .type a,@object
99 .section .bss.a,"aw",@nobits
100 .globl a
101 .p2align 2
102 a:
103 .int32 0
104 .size a, 4
105
106 .hidden b # @b
107 .type b,@object
108 .section .bss.b,"aw",@nobits
109 .globl b
110 .p2align 2
111 b:
112 .int32 0
113 .size b, 4
114
115
116 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
117 .functype malloc, i32, i32
118 .functype exit, void, i32