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