]> git.proxmox.com Git - rustc.git/blame - src/binaryen/test/torture-s/20051215-1.c.s
New upstream version 1.25.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / 20051215-1.c.s
CommitLineData
abe05a73
XL
1 .text
2 .file "20051215-1.c"
3 .section .text.foo,"ax",@progbits
4 .hidden foo # -- Begin function foo
5 .globl foo
6 .type foo,@function
7foo: # @foo
8 .param i32, i32, i32
9 .result i32
10 .local i32, i32, i32
11# BB#0: # %entry
12 block
13 i32.const $push7=, 1
14 i32.lt_s $push0=, $1, $pop7
15 br_if 0, $pop0 # 0: down to label0
16# BB#1: # %for.body.lr.ph
17 i32.const $3=, 0
18 i32.const $4=, 0
19 i32.const $5=, 0
20.LBB0_2: # %for.body
21 # =>This Inner Loop Header: Depth=1
22 loop # label1:
23 block
24 i32.eqz $push13=, $2
25 br_if 0, $pop13 # 0: down to label2
26# BB#3: # %if.then
27 # in Loop: Header=BB0_2 Depth=1
28 i32.load $push1=, 0($2)
29 i32.mul $4=, $pop1, $3
30.LBB0_4: # %if.end
31 # in Loop: Header=BB0_2 Depth=1
32 end_block # label2:
33 i32.mul $push3=, $4, $0
34 i32.const $push12=, 0
35 i32.const $push11=, 0
36 i32.gt_s $push2=, $0, $pop11
37 i32.select $push4=, $pop3, $pop12, $pop2
38 i32.add $5=, $5, $pop4
39 i32.const $push10=, 1
40 i32.add $push9=, $3, $pop10
41 tee_local $push8=, $3=, $pop9
42 i32.ne $push5=, $1, $pop8
43 br_if 0, $pop5 # 0: up to label1
44# BB#5: # %for.end6
45 end_loop
46 return $5
47.LBB0_6:
48 end_block # label0:
49 i32.const $push6=, 0
50 # fallthrough-return: $pop6
51 .endfunc
52.Lfunc_end0:
53 .size foo, .Lfunc_end0-foo
54 # -- End function
55 .section .text.main,"ax",@progbits
56 .hidden main # -- Begin function main
57 .globl main
58 .type main,@function
59main: # @main
60 .result i32
61# BB#0: # %entry
62 block
63 i32.const $push1=, 3
64 i32.const $push0=, 2
65 i32.const $push3=, 0
66 i32.call $push2=, foo@FUNCTION, $pop1, $pop0, $pop3
67 br_if 0, $pop2 # 0: down to label3
68# BB#1: # %if.end
69 i32.const $push4=, 0
70 return $pop4
71.LBB1_2: # %if.then
72 end_block # label3:
73 call abort@FUNCTION
74 unreachable
75 .endfunc
76.Lfunc_end1:
77 .size main, .Lfunc_end1-main
78 # -- End function
79
80 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
81 .functype abort, void