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