]> git.proxmox.com Git - rustc.git/blame - src/binaryen/test/torture-s/pr43784.c.s
New upstream version 1.25.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / pr43784.c.s
CommitLineData
abe05a73
XL
1 .text
2 .file "pr43784.c"
3 .section .text.main,"ax",@progbits
4 .hidden main # -- Begin function main
5 .globl main
6 .type main,@function
7main: # @main
8 .result i32
9 .local i32, i32, i32
10# BB#0: # %entry
11 i32.const $push12=, 0
12 i32.const $push10=, 0
13 i32.load $push9=, __stack_pointer($pop10)
14 i32.const $push11=, 256
15 i32.sub $push17=, $pop9, $pop11
16 tee_local $push16=, $2=, $pop17
17 i32.store __stack_pointer($pop12), $pop16
18 i32.const $1=, 0
19.LBB0_1: # %for.body
20 # =>This Inner Loop Header: Depth=1
21 loop # label0:
22 i32.const $push22=, v
23 i32.add $push0=, $1, $pop22
24 i32.store8 0($pop0), $1
25 i32.const $push21=, 1
26 i32.add $push20=, $1, $pop21
27 tee_local $push19=, $1=, $pop20
28 i32.const $push18=, 256
29 i32.ne $push1=, $pop19, $pop18
30 br_if 0, $pop1 # 0: up to label0
31# BB#2: # %for.end
32 end_loop
33 call rp@FUNCTION, $2
34 i32.const $push3=, v+4
35 i32.const $push2=, 256
36 i32.call $drop=, memcpy@FUNCTION, $pop3, $2, $pop2
37 i32.const $1=, -1
38.LBB0_3: # %for.body4
39 # =>This Inner Loop Header: Depth=1
40 block
41 loop # label2:
42 i32.const $push26=, 1
43 i32.add $push25=, $1, $pop26
44 tee_local $push24=, $0=, $pop25
45 i32.const $push23=, v+5
46 i32.add $push4=, $1, $pop23
47 i32.load8_u $push5=, 0($pop4)
48 i32.ne $push6=, $pop24, $pop5
49 br_if 1, $pop6 # 1: down to label1
50# BB#4: # %for.cond1
51 # in Loop: Header=BB0_3 Depth=1
52 copy_local $1=, $0
53 i32.const $push27=, 254
54 i32.le_u $push7=, $0, $pop27
55 br_if 0, $pop7 # 0: up to label2
56# BB#5: # %for.end12
57 end_loop
58 i32.const $push15=, 0
59 i32.const $push13=, 256
60 i32.add $push14=, $2, $pop13
61 i32.store __stack_pointer($pop15), $pop14
62 i32.const $push8=, 0
63 return $pop8
64.LBB0_6: # %if.then
65 end_block # label1:
66 call abort@FUNCTION
67 unreachable
68 .endfunc
69.Lfunc_end0:
70 .size main, .Lfunc_end0-main
71 # -- End function
72 .section .text.rp,"ax",@progbits
73 .type rp,@function # -- Begin function rp
74rp: # @rp
75 .param i32
76# BB#0: # %entry
77 i32.const $push1=, v
78 i32.const $push0=, 256
79 i32.call $drop=, memcpy@FUNCTION, $0, $pop1, $pop0
80 # fallthrough-return
81 .endfunc
82.Lfunc_end1:
83 .size rp, .Lfunc_end1-rp
84 # -- End function
85 .type v,@object # @v
86 .section .bss.v,"aw",@nobits
87 .p2align 2
88v:
89 .skip 260
90 .size v, 260
91
92
93 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
94 .functype abort, void