]> git.proxmox.com Git - rustc.git/blame - src/binaryen/test/torture-s/pr54937.c.s
New upstream version 1.25.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / pr54937.c.s
CommitLineData
abe05a73
XL
1 .text
2 .file "pr54937.c"
3 .section .text.t,"ax",@progbits
4 .hidden t # -- Begin function t
5 .globl t
6 .type t,@function
7t: # @t
8 .param i32
9 .result i32
10 .local i32
11# BB#0: # %entry
12 block
13 i32.const $push0=, 1
14 i32.lt_s $push1=, $0, $pop0
15 br_if 0, $pop1 # 0: down to label0
16# BB#1: # %for.body.preheader
17 i32.const $1=, 0
18.LBB0_2: # %for.body
19 # =>This Inner Loop Header: Depth=1
20 loop # label1:
21 block
22 i32.eqz $push12=, $1
23 br_if 0, $pop12 # 0: down to label2
24# BB#3: # %if.then
25 # in Loop: Header=BB0_2 Depth=1
26 i32.const $push5=, 0
27 i32.const $push4=, 0
28 i32.load $push2=, terminate_me($pop4)
29 call_indirect $pop5, $pop2
30.LBB0_4: # %if.end
31 # in Loop: Header=BB0_2 Depth=1
32 end_block # label2:
33 i32.const $push11=, a
34 i32.add $push3=, $1, $pop11
35 i32.const $push10=, 0
36 i32.store 0($pop3), $pop10
37 i32.const $push9=, 4
38 i32.add $1=, $1, $pop9
39 i32.const $push8=, -1
40 i32.add $push7=, $0, $pop8
41 tee_local $push6=, $0=, $pop7
42 br_if 0, $pop6 # 0: up to label1
43.LBB0_5: # %for.end
44 end_loop
45 end_block # label0:
46 copy_local $push13=, $1
47 # fallthrough-return: $pop13
48 .endfunc
49.Lfunc_end0:
50 .size t, .Lfunc_end0-t
51 # -- End function
52 .section .text.main,"ax",@progbits
53 .hidden main # -- Begin function main
54 .globl main
55 .type main,@function
56main: # @main
57 .result i32
58# BB#0: # %entry
59 i32.const $push1=, 0
60 i32.const $push0=, exit@FUNCTION
61 i32.store terminate_me($pop1), $pop0
62 i32.const $push2=, 100
63 i32.call $drop=, t@FUNCTION, $pop2
64 call abort@FUNCTION
65 unreachable
66 .endfunc
67.Lfunc_end1:
68 .size main, .Lfunc_end1-main
69 # -- End function
70 .hidden terminate_me # @terminate_me
71 .type terminate_me,@object
72 .section .bss.terminate_me,"aw",@nobits
73 .globl terminate_me
74 .p2align 2
75terminate_me:
76 .int32 0
77 .size terminate_me, 4
78
79 .hidden a # @a
80 .type a,@object
81 .section .bss.a,"aw",@nobits
82 .globl a
83 .p2align 2
84a:
85 .skip 4
86 .size a, 4
87
88
89 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
90 .functype exit, void, i32
91 .functype abort, void