1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
|
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; As in monomorphize-types.wast, test in both "always" mode, which always
;; monomorphizes, and in "careful" mode which does it only when it appears to
;; actually help.
;; RUN: foreach %s %t wasm-opt --monomorphize-always -all -S -o - | filecheck %s --check-prefix ALWAYS
;; RUN: foreach %s %t wasm-opt --monomorphize -all -S -o - | filecheck %s --check-prefix CAREFUL
(module
;; ALWAYS: (type $0 (func))
;; ALWAYS: (type $1 (func (param i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32)))
;; ALWAYS: (func $caller-consts (type $0)
;; ALWAYS-NEXT: (call $many-params_3)
;; ALWAYS-NEXT: )
;; CAREFUL: (type $0 (func))
;; CAREFUL: (type $1 (func (param i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32)))
;; CAREFUL: (func $caller-consts (type $0)
;; CAREFUL-NEXT: (call $many-params_3)
;; CAREFUL-NEXT: )
(func $caller-consts
;; The called func has a large number of params, in fact too many for us to
;; allow in monomorphized functions. However, all the params are constant,
;; so they go into the call context and are no longer params, and we can
;; optimize.
(call $many-params
(i32.const 0) (i32.const 0) (i32.const 0) (i32.const 0) (i32.const 0)
(i32.const 5) (i32.const 5) (i32.const 5) (i32.const 5) (i32.const 5)
(i32.const 15) (i32.const 15) (i32.const 15) (i32.const 15) (i32.const 15)
(i32.const 20) (i32.const 20) (i32.const 20) (i32.const 20) (i32.const 20)
(i32.const 25) (i32.const 25) (i32.const 25) (i32.const 25) (i32.const 25)
)
)
;; ALWAYS: (func $caller-locals (type $1) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32) (param $7 i32) (param $8 i32) (param $9 i32) (param $10 i32) (param $11 i32) (param $12 i32) (param $13 i32) (param $14 i32) (param $15 i32) (param $16 i32) (param $17 i32) (param $18 i32) (param $19 i32) (param $20 i32) (param $21 i32) (param $22 i32) (param $23 i32) (param $24 i32)
;; ALWAYS-NEXT: (call $many-params
;; ALWAYS-NEXT: (local.get $0)
;; ALWAYS-NEXT: (local.get $1)
;; ALWAYS-NEXT: (local.get $2)
;; ALWAYS-NEXT: (local.get $3)
;; ALWAYS-NEXT: (local.get $4)
;; ALWAYS-NEXT: (local.get $5)
;; ALWAYS-NEXT: (local.get $6)
;; ALWAYS-NEXT: (local.get $7)
;; ALWAYS-NEXT: (local.get $8)
;; ALWAYS-NEXT: (local.get $9)
;; ALWAYS-NEXT: (local.get $10)
;; ALWAYS-NEXT: (local.get $11)
;; ALWAYS-NEXT: (local.get $12)
;; ALWAYS-NEXT: (local.get $13)
;; ALWAYS-NEXT: (local.get $14)
;; ALWAYS-NEXT: (local.get $15)
;; ALWAYS-NEXT: (local.get $16)
;; ALWAYS-NEXT: (local.get $17)
;; ALWAYS-NEXT: (local.get $18)
;; ALWAYS-NEXT: (local.get $19)
;; ALWAYS-NEXT: (local.get $20)
;; ALWAYS-NEXT: (local.get $21)
;; ALWAYS-NEXT: (local.get $22)
;; ALWAYS-NEXT: (local.get $23)
;; ALWAYS-NEXT: (local.get $24)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: )
;; CAREFUL: (func $caller-locals (type $1) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32) (param $7 i32) (param $8 i32) (param $9 i32) (param $10 i32) (param $11 i32) (param $12 i32) (param $13 i32) (param $14 i32) (param $15 i32) (param $16 i32) (param $17 i32) (param $18 i32) (param $19 i32) (param $20 i32) (param $21 i32) (param $22 i32) (param $23 i32) (param $24 i32)
;; CAREFUL-NEXT: (call $many-params
;; CAREFUL-NEXT: (local.get $0)
;; CAREFUL-NEXT: (local.get $1)
;; CAREFUL-NEXT: (local.get $2)
;; CAREFUL-NEXT: (local.get $3)
;; CAREFUL-NEXT: (local.get $4)
;; CAREFUL-NEXT: (local.get $5)
;; CAREFUL-NEXT: (local.get $6)
;; CAREFUL-NEXT: (local.get $7)
;; CAREFUL-NEXT: (local.get $8)
;; CAREFUL-NEXT: (local.get $9)
;; CAREFUL-NEXT: (local.get $10)
;; CAREFUL-NEXT: (local.get $11)
;; CAREFUL-NEXT: (local.get $12)
;; CAREFUL-NEXT: (local.get $13)
;; CAREFUL-NEXT: (local.get $14)
;; CAREFUL-NEXT: (local.get $15)
;; CAREFUL-NEXT: (local.get $16)
;; CAREFUL-NEXT: (local.get $17)
;; CAREFUL-NEXT: (local.get $18)
;; CAREFUL-NEXT: (local.get $19)
;; CAREFUL-NEXT: (local.get $20)
;; CAREFUL-NEXT: (local.get $21)
;; CAREFUL-NEXT: (local.get $22)
;; CAREFUL-NEXT: (local.get $23)
;; CAREFUL-NEXT: (local.get $24)
;; CAREFUL-NEXT: )
;; CAREFUL-NEXT: )
(func $caller-locals
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
;; As above, but now we send unknown local values. These would remain as
;; parameters, so we do not optimize.
(call $many-params
(local.get 0) (local.get 1) (local.get 2) (local.get 3) (local.get 4)
(local.get 5) (local.get 6) (local.get 7) (local.get 8) (local.get 9)
(local.get 10) (local.get 11) (local.get 12) (local.get 13) (local.get 14)
(local.get 15) (local.get 16) (local.get 17) (local.get 18) (local.get 19)
(local.get 20) (local.get 21) (local.get 22) (local.get 23) (local.get 24)
)
)
;; ALWAYS: (func $many-params (type $1) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32) (param $7 i32) (param $8 i32) (param $9 i32) (param $10 i32) (param $11 i32) (param $12 i32) (param $13 i32) (param $14 i32) (param $15 i32) (param $16 i32) (param $17 i32) (param $18 i32) (param $19 i32) (param $20 i32) (param $21 i32) (param $22 i32) (param $23 i32) (param $24 i32)
;; ALWAYS-NEXT: )
;; CAREFUL: (func $many-params (type $1) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32) (param $7 i32) (param $8 i32) (param $9 i32) (param $10 i32) (param $11 i32) (param $12 i32) (param $13 i32) (param $14 i32) (param $15 i32) (param $16 i32) (param $17 i32) (param $18 i32) (param $19 i32) (param $20 i32) (param $21 i32) (param $22 i32) (param $23 i32) (param $24 i32)
;; CAREFUL-NEXT: (nop)
;; CAREFUL-NEXT: )
(func $many-params
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
)
)
;; ALWAYS: (func $many-params_3 (type $0)
;; ALWAYS-NEXT: (local $0 i32)
;; ALWAYS-NEXT: (local $1 i32)
;; ALWAYS-NEXT: (local $2 i32)
;; ALWAYS-NEXT: (local $3 i32)
;; ALWAYS-NEXT: (local $4 i32)
;; ALWAYS-NEXT: (local $5 i32)
;; ALWAYS-NEXT: (local $6 i32)
;; ALWAYS-NEXT: (local $7 i32)
;; ALWAYS-NEXT: (local $8 i32)
;; ALWAYS-NEXT: (local $9 i32)
;; ALWAYS-NEXT: (local $10 i32)
;; ALWAYS-NEXT: (local $11 i32)
;; ALWAYS-NEXT: (local $12 i32)
;; ALWAYS-NEXT: (local $13 i32)
;; ALWAYS-NEXT: (local $14 i32)
;; ALWAYS-NEXT: (local $15 i32)
;; ALWAYS-NEXT: (local $16 i32)
;; ALWAYS-NEXT: (local $17 i32)
;; ALWAYS-NEXT: (local $18 i32)
;; ALWAYS-NEXT: (local $19 i32)
;; ALWAYS-NEXT: (local $20 i32)
;; ALWAYS-NEXT: (local $21 i32)
;; ALWAYS-NEXT: (local $22 i32)
;; ALWAYS-NEXT: (local $23 i32)
;; ALWAYS-NEXT: (local $24 i32)
;; ALWAYS-NEXT: (local.set $0
;; ALWAYS-NEXT: (i32.const 0)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $1
;; ALWAYS-NEXT: (i32.const 0)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $2
;; ALWAYS-NEXT: (i32.const 0)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $3
;; ALWAYS-NEXT: (i32.const 0)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $4
;; ALWAYS-NEXT: (i32.const 0)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $5
;; ALWAYS-NEXT: (i32.const 5)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $6
;; ALWAYS-NEXT: (i32.const 5)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $7
;; ALWAYS-NEXT: (i32.const 5)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $8
;; ALWAYS-NEXT: (i32.const 5)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $9
;; ALWAYS-NEXT: (i32.const 5)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $10
;; ALWAYS-NEXT: (i32.const 15)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $11
;; ALWAYS-NEXT: (i32.const 15)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $12
;; ALWAYS-NEXT: (i32.const 15)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $13
;; ALWAYS-NEXT: (i32.const 15)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $14
;; ALWAYS-NEXT: (i32.const 15)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $15
;; ALWAYS-NEXT: (i32.const 20)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $16
;; ALWAYS-NEXT: (i32.const 20)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $17
;; ALWAYS-NEXT: (i32.const 20)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $18
;; ALWAYS-NEXT: (i32.const 20)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $19
;; ALWAYS-NEXT: (i32.const 20)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $20
;; ALWAYS-NEXT: (i32.const 25)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $21
;; ALWAYS-NEXT: (i32.const 25)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $22
;; ALWAYS-NEXT: (i32.const 25)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $23
;; ALWAYS-NEXT: (i32.const 25)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (local.set $24
;; ALWAYS-NEXT: (i32.const 25)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (block
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: )
;; CAREFUL: (func $many-params_3 (type $0)
;; CAREFUL-NEXT: (nop)
;; CAREFUL-NEXT: )
(module
;; ALWAYS: (type $array (array (mut i32)))
;; CAREFUL: (type $array (array (mut i32)))
(type $array (array (mut i32)))
;; ALWAYS: (type $1 (func))
;; ALWAYS: (type $2 (func (param i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32)))
;; ALWAYS: (type $3 (func (param (ref $array))))
;; ALWAYS: (func $caller-consts (type $1)
;; ALWAYS-NEXT: (call $target_3)
;; ALWAYS-NEXT: )
;; CAREFUL: (type $1 (func))
;; CAREFUL: (type $2 (func (param i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32)))
;; CAREFUL: (type $3 (func (param (ref $array))))
;; CAREFUL: (func $caller-consts (type $1)
;; CAREFUL-NEXT: (call $target_3)
;; CAREFUL-NEXT: )
(func $caller-consts
;; The called function has just one param, but the value sent has many
;; children of its own. Here the children are constant, so they go into the
;; call context, and we can optimize.
(call $target
(array.new_fixed $array 25
(i32.const 0) (i32.const 0) (i32.const 0) (i32.const 0) (i32.const 0)
(i32.const 5) (i32.const 5) (i32.const 5) (i32.const 5) (i32.const 5)
(i32.const 15) (i32.const 15) (i32.const 15) (i32.const 15) (i32.const 15)
(i32.const 20) (i32.const 20) (i32.const 20) (i32.const 20) (i32.const 20)
(i32.const 25) (i32.const 25) (i32.const 25) (i32.const 25) (i32.const 25)
)
)
)
;; ALWAYS: (func $caller-locals (type $2) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32) (param $7 i32) (param $8 i32) (param $9 i32) (param $10 i32) (param $11 i32) (param $12 i32) (param $13 i32) (param $14 i32) (param $15 i32) (param $16 i32) (param $17 i32) (param $18 i32) (param $19 i32) (param $20 i32) (param $21 i32) (param $22 i32) (param $23 i32) (param $24 i32)
;; ALWAYS-NEXT: (call $target
;; ALWAYS-NEXT: (array.new_fixed $array 25
;; ALWAYS-NEXT: (local.get $0)
;; ALWAYS-NEXT: (local.get $1)
;; ALWAYS-NEXT: (local.get $2)
;; ALWAYS-NEXT: (local.get $3)
;; ALWAYS-NEXT: (local.get $4)
;; ALWAYS-NEXT: (local.get $5)
;; ALWAYS-NEXT: (local.get $6)
;; ALWAYS-NEXT: (local.get $7)
;; ALWAYS-NEXT: (local.get $8)
;; ALWAYS-NEXT: (local.get $9)
;; ALWAYS-NEXT: (local.get $10)
;; ALWAYS-NEXT: (local.get $11)
;; ALWAYS-NEXT: (local.get $12)
;; ALWAYS-NEXT: (local.get $13)
;; ALWAYS-NEXT: (local.get $14)
;; ALWAYS-NEXT: (local.get $15)
;; ALWAYS-NEXT: (local.get $16)
;; ALWAYS-NEXT: (local.get $17)
;; ALWAYS-NEXT: (local.get $18)
;; ALWAYS-NEXT: (local.get $19)
;; ALWAYS-NEXT: (local.get $20)
;; ALWAYS-NEXT: (local.get $21)
;; ALWAYS-NEXT: (local.get $22)
;; ALWAYS-NEXT: (local.get $23)
;; ALWAYS-NEXT: (local.get $24)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: )
;; CAREFUL: (func $caller-locals (type $2) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32) (param $7 i32) (param $8 i32) (param $9 i32) (param $10 i32) (param $11 i32) (param $12 i32) (param $13 i32) (param $14 i32) (param $15 i32) (param $16 i32) (param $17 i32) (param $18 i32) (param $19 i32) (param $20 i32) (param $21 i32) (param $22 i32) (param $23 i32) (param $24 i32)
;; CAREFUL-NEXT: (call $target
;; CAREFUL-NEXT: (array.new_fixed $array 25
;; CAREFUL-NEXT: (local.get $0)
;; CAREFUL-NEXT: (local.get $1)
;; CAREFUL-NEXT: (local.get $2)
;; CAREFUL-NEXT: (local.get $3)
;; CAREFUL-NEXT: (local.get $4)
;; CAREFUL-NEXT: (local.get $5)
;; CAREFUL-NEXT: (local.get $6)
;; CAREFUL-NEXT: (local.get $7)
;; CAREFUL-NEXT: (local.get $8)
;; CAREFUL-NEXT: (local.get $9)
;; CAREFUL-NEXT: (local.get $10)
;; CAREFUL-NEXT: (local.get $11)
;; CAREFUL-NEXT: (local.get $12)
;; CAREFUL-NEXT: (local.get $13)
;; CAREFUL-NEXT: (local.get $14)
;; CAREFUL-NEXT: (local.get $15)
;; CAREFUL-NEXT: (local.get $16)
;; CAREFUL-NEXT: (local.get $17)
;; CAREFUL-NEXT: (local.get $18)
;; CAREFUL-NEXT: (local.get $19)
;; CAREFUL-NEXT: (local.get $20)
;; CAREFUL-NEXT: (local.get $21)
;; CAREFUL-NEXT: (local.get $22)
;; CAREFUL-NEXT: (local.get $23)
;; CAREFUL-NEXT: (local.get $24)
;; CAREFUL-NEXT: )
;; CAREFUL-NEXT: )
;; CAREFUL-NEXT: )
(func $caller-locals
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
(param i32) (param i32) (param i32) (param i32) (param i32)
;; As above, but now we send unknown local values in the nested child. Those
;; would remain as parameters, so we do not optimize.
(call $target
(array.new_fixed $array 25
(local.get 0) (local.get 1) (local.get 2) (local.get 3) (local.get 4)
(local.get 5) (local.get 6) (local.get 7) (local.get 8) (local.get 9)
(local.get 10) (local.get 11) (local.get 12) (local.get 13) (local.get 14)
(local.get 15) (local.get 16) (local.get 17) (local.get 18) (local.get 19)
(local.get 20) (local.get 21) (local.get 22) (local.get 23) (local.get 24)
)
)
)
;; ALWAYS: (func $target (type $3) (param $array (ref $array))
;; ALWAYS-NEXT: )
;; CAREFUL: (func $target (type $3) (param $0 (ref $array))
;; CAREFUL-NEXT: (nop)
;; CAREFUL-NEXT: )
(func $target (param $array (ref $array))
)
)
;; ALWAYS: (func $target_3 (type $1)
;; ALWAYS-NEXT: (local $array (ref $array))
;; ALWAYS-NEXT: (local.set $array
;; ALWAYS-NEXT: (array.new_fixed $array 25
;; ALWAYS-NEXT: (i32.const 0)
;; ALWAYS-NEXT: (i32.const 0)
;; ALWAYS-NEXT: (i32.const 0)
;; ALWAYS-NEXT: (i32.const 0)
;; ALWAYS-NEXT: (i32.const 0)
;; ALWAYS-NEXT: (i32.const 5)
;; ALWAYS-NEXT: (i32.const 5)
;; ALWAYS-NEXT: (i32.const 5)
;; ALWAYS-NEXT: (i32.const 5)
;; ALWAYS-NEXT: (i32.const 5)
;; ALWAYS-NEXT: (i32.const 15)
;; ALWAYS-NEXT: (i32.const 15)
;; ALWAYS-NEXT: (i32.const 15)
;; ALWAYS-NEXT: (i32.const 15)
;; ALWAYS-NEXT: (i32.const 15)
;; ALWAYS-NEXT: (i32.const 20)
;; ALWAYS-NEXT: (i32.const 20)
;; ALWAYS-NEXT: (i32.const 20)
;; ALWAYS-NEXT: (i32.const 20)
;; ALWAYS-NEXT: (i32.const 20)
;; ALWAYS-NEXT: (i32.const 25)
;; ALWAYS-NEXT: (i32.const 25)
;; ALWAYS-NEXT: (i32.const 25)
;; ALWAYS-NEXT: (i32.const 25)
;; ALWAYS-NEXT: (i32.const 25)
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: (block
;; ALWAYS-NEXT: )
;; ALWAYS-NEXT: )
;; CAREFUL: (func $target_3 (type $1)
;; CAREFUL-NEXT: (nop)
;; CAREFUL-NEXT: )
|