]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/loop-2.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / loop-2.c.s
1 .text
2 .file "loop-2.c"
3 .section .text.f,"ax",@progbits
4 .hidden f # -- Begin function f
5 .globl f
6 .type f,@function
7 f: # @f
8 .param i32
9 .result i32
10 .local i32, i32
11 # BB#0: # %entry
12 block
13 i32.eqz $push7=, $0
14 br_if 0, $pop7 # 0: down to label0
15 # BB#1: # %for.body.preheader
16 i32.const $2=, 0
17 i32.const $1=, a
18 .LBB0_2: # %for.body
19 # =>This Inner Loop Header: Depth=1
20 loop # label1:
21 i32.const $push6=, -2
22 i32.add $push0=, $2, $pop6
23 i32.store 0($1), $pop0
24 i32.const $push5=, 4
25 i32.add $1=, $1, $pop5
26 i32.const $push4=, 1
27 i32.add $push3=, $2, $pop4
28 tee_local $push2=, $2=, $pop3
29 i32.ne $push1=, $0, $pop2
30 br_if 0, $pop1 # 0: up to label1
31 .LBB0_3: # %for.end
32 end_loop
33 end_block # label0:
34 copy_local $push8=, $2
35 # fallthrough-return: $pop8
36 .endfunc
37 .Lfunc_end0:
38 .size f, .Lfunc_end0-f
39 # -- End function
40 .section .text.main,"ax",@progbits
41 .hidden main # -- Begin function main
42 .globl main
43 .type main,@function
44 main: # @main
45 .result i32
46 # BB#0: # %if.end
47 i32.const $push1=, 0
48 i64.const $push0=, -2
49 i64.store a($pop1):p2align=2, $pop0
50 i32.const $push2=, 0
51 call exit@FUNCTION, $pop2
52 unreachable
53 .endfunc
54 .Lfunc_end1:
55 .size main, .Lfunc_end1-main
56 # -- End function
57 .hidden a # @a
58 .type a,@object
59 .section .bss.a,"aw",@nobits
60 .globl a
61 .p2align 2
62 a:
63 .skip 8
64 .size a, 8
65
66
67 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
68 .functype exit, void, i32