]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/20000519-1.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / 20000519-1.c.s
1 .text
2 .file "20000519-1.c"
3 .section .text.bar,"ax",@progbits
4 .hidden bar # -- Begin function bar
5 .globl bar
6 .type bar,@function
7 bar: # @bar
8 .param i32, i32
9 .result i32
10 .local i32
11 # BB#0: # %entry
12 .LBB0_1: # %do.body
13 # =>This Inner Loop Header: Depth=1
14 loop # label0:
15 i32.load $2=, 0($1)
16 i32.const $push4=, 4
17 i32.add $push0=, $1, $pop4
18 copy_local $1=, $pop0
19 i32.const $push3=, 10
20 i32.gt_s $push1=, $2, $pop3
21 br_if 0, $pop1 # 0: up to label0
22 # BB#2: # %do.end
23 end_loop
24 i32.add $push2=, $2, $0
25 # fallthrough-return: $pop2
26 .endfunc
27 .Lfunc_end0:
28 .size bar, .Lfunc_end0-bar
29 # -- End function
30 .section .text.foo,"ax",@progbits
31 .hidden foo # -- Begin function foo
32 .globl foo
33 .type foo,@function
34 foo: # @foo
35 .param i32, i32
36 .result i32
37 .local i32
38 # BB#0: # %entry
39 i32.const $push4=, 0
40 i32.load $push3=, __stack_pointer($pop4)
41 i32.const $push5=, 16
42 i32.sub $push6=, $pop3, $pop5
43 i32.store 12($pop6), $1
44 .LBB1_1: # %do.body.i
45 # =>This Inner Loop Header: Depth=1
46 loop # label1:
47 i32.load $2=, 0($1)
48 i32.const $push8=, 4
49 i32.add $push0=, $1, $pop8
50 copy_local $1=, $pop0
51 i32.const $push7=, 10
52 i32.gt_s $push1=, $2, $pop7
53 br_if 0, $pop1 # 0: up to label1
54 # BB#2: # %bar.exit
55 end_loop
56 i32.add $push2=, $2, $0
57 # fallthrough-return: $pop2
58 .endfunc
59 .Lfunc_end1:
60 .size foo, .Lfunc_end1-foo
61 # -- End function
62 .section .text.main,"ax",@progbits
63 .hidden main # -- Begin function main
64 .globl main
65 .type main,@function
66 main: # @main
67 .result i32
68 .local i32
69 # BB#0: # %entry
70 i32.const $push9=, 0
71 i32.const $push7=, 0
72 i32.load $push6=, __stack_pointer($pop7)
73 i32.const $push8=, 16
74 i32.sub $push14=, $pop6, $pop8
75 tee_local $push13=, $0=, $pop14
76 i32.store __stack_pointer($pop9), $pop13
77 i64.const $push0=, 12884901890
78 i64.store 0($0), $pop0
79 block
80 i32.const $push1=, 1
81 i32.call $push2=, foo@FUNCTION, $pop1, $0
82 i32.const $push3=, 3
83 i32.ne $push4=, $pop2, $pop3
84 br_if 0, $pop4 # 0: down to label2
85 # BB#1: # %if.end
86 i32.const $push12=, 0
87 i32.const $push10=, 16
88 i32.add $push11=, $0, $pop10
89 i32.store __stack_pointer($pop12), $pop11
90 i32.const $push5=, 0
91 return $pop5
92 .LBB2_2: # %if.then
93 end_block # label2:
94 call abort@FUNCTION
95 unreachable
96 .endfunc
97 .Lfunc_end2:
98 .size main, .Lfunc_end2-main
99 # -- End function
100
101 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
102 .functype abort, void