]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/loop-7.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / loop-7.c.s
1 .text
2 .file "loop-7.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
9 .local i32, i32
10 # BB#0: # %entry
11 i32.const $1=, -1
12 i32.const $2=, 0
13 .LBB0_1: # %for.body
14 # =>This Inner Loop Header: Depth=1
15 block
16 loop # label1:
17 i32.const $push7=, 1
18 i32.shl $push0=, $pop7, $2
19 i32.eq $push1=, $pop0, $0
20 i32.select $1=, $2, $1, $pop1
21 i32.const $push6=, 8
22 i32.gt_u $push2=, $2, $pop6
23 br_if 1, $pop2 # 1: down to label0
24 # BB#2: # %for.body
25 # in Loop: Header=BB0_1 Depth=1
26 i32.const $push9=, 1
27 i32.add $2=, $2, $pop9
28 i32.const $push8=, 0
29 i32.lt_s $push3=, $1, $pop8
30 br_if 0, $pop3 # 0: up to label1
31 .LBB0_3: # %for.end
32 end_loop
33 end_block # label0:
34 block
35 i32.const $push4=, -1
36 i32.le_s $push5=, $1, $pop4
37 br_if 0, $pop5 # 0: down to label2
38 # BB#4: # %if.end5
39 return
40 .LBB0_5: # %if.then4
41 end_block # label2:
42 call abort@FUNCTION
43 unreachable
44 .endfunc
45 .Lfunc_end0:
46 .size foo, .Lfunc_end0-foo
47 # -- End function
48 .section .text.main,"ax",@progbits
49 .hidden main # -- Begin function main
50 .globl main
51 .type main,@function
52 main: # @main
53 .result i32
54 # BB#0: # %entry
55 i32.const $push0=, 64
56 call foo@FUNCTION, $pop0
57 i32.const $push1=, 0
58 call exit@FUNCTION, $pop1
59 unreachable
60 .endfunc
61 .Lfunc_end1:
62 .size main, .Lfunc_end1-main
63 # -- End function
64
65 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
66 .functype abort, void
67 .functype exit, void, i32