]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/990524-1.c.s
New upstream version 1.25.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / 990524-1.c.s
1 .text
2 .file "990524-1.c"
3 .section .text.loop,"ax",@progbits
4 .hidden loop # -- Begin function loop
5 .globl loop
6 .type loop,@function
7 loop: # @loop
8 .param i32, i32
9 .local i32, i32, i32
10 # BB#0: # %entry
11 .LBB0_1: # %for.cond
12 # =>This Inner Loop Header: Depth=1
13 loop # label0:
14 copy_local $push22=, $1
15 tee_local $push21=, $2=, $pop22
16 i32.load8_u $push20=, 0($pop21)
17 tee_local $push19=, $4=, $pop20
18 i32.store8 0($0), $pop19
19 i32.const $push18=, 1
20 i32.add $1=, $2, $pop18
21 i32.const $push17=, 24
22 i32.shl $push0=, $4, $pop17
23 i32.const $push16=, 24
24 i32.shr_s $3=, $pop0, $pop16
25 block
26 block
27 i32.const $push15=, 34
28 i32.eq $push1=, $4, $pop15
29 br_if 0, $pop1 # 0: down to label2
30 # BB#2: # %for.cond
31 # in Loop: Header=BB0_1 Depth=1
32 i32.const $push23=, 92
33 i32.ne $push2=, $3, $pop23
34 br_if 1, $pop2 # 1: down to label1
35 .LBB0_3: # %sw.bb2
36 # in Loop: Header=BB0_1 Depth=1
37 end_block # label2:
38 i32.const $push14=, 92
39 i32.store8 0($0), $pop14
40 i32.const $push13=, 1
41 i32.add $push3=, $0, $pop13
42 i32.load8_u $push4=, 0($2)
43 i32.store8 0($pop3), $pop4
44 i32.const $push12=, 2
45 i32.add $0=, $0, $pop12
46 br 1 # 1: up to label0
47 .LBB0_4: # %for.cond
48 # in Loop: Header=BB0_1 Depth=1
49 end_block # label1:
50 i32.const $push24=, 1
51 i32.add $0=, $0, $pop24
52 br_if 0, $3 # 0: up to label0
53 # BB#5: # %loopDone2
54 end_loop
55 block
56 i32.const $push5=, a
57 i32.sub $push6=, $pop5, $0
58 i32.const $push9=, b
59 i32.const $push7=, 1
60 i32.add $push8=, $2, $pop7
61 i32.sub $push10=, $pop9, $pop8
62 i32.ne $push11=, $pop6, $pop10
63 br_if 0, $pop11 # 0: down to label3
64 # BB#6: # %if.end
65 return
66 .LBB0_7: # %if.then
67 end_block # label3:
68 call abort@FUNCTION
69 unreachable
70 .endfunc
71 .Lfunc_end0:
72 .size loop, .Lfunc_end0-loop
73 # -- End function
74 .section .text.main,"ax",@progbits
75 .hidden main # -- Begin function main
76 .globl main
77 .type main,@function
78 main: # @main
79 .result i32
80 # BB#0: # %entry
81 i32.const $push1=, a
82 i32.const $push0=, b
83 call loop@FUNCTION, $pop1, $pop0
84 i32.const $push2=, 0
85 call exit@FUNCTION, $pop2
86 unreachable
87 .endfunc
88 .Lfunc_end1:
89 .size main, .Lfunc_end1-main
90 # -- End function
91 .hidden a # @a
92 .type a,@object
93 .section .data.a,"aw",@progbits
94 .globl a
95 a:
96 .asciz "12345"
97 .size a, 6
98
99 .hidden b # @b
100 .type b,@object
101 .section .data.b,"aw",@progbits
102 .globl b
103 b:
104 .asciz "12345"
105 .size b, 6
106
107
108 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
109 .functype abort, void
110 .functype exit, void, i32