]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/dot_s/indidx.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / dot_s / indidx.s
1 .text
2 .file "cfi-wasm.bs.bc"
3 .type a,@function
4 a: # @a
5 .indidx 4
6 .result i32
7 # BB#0: # %entry
8 i32.const $push0=, 0
9 # fallthrough-return: $pop0
10 .endfunc
11 .Lfunc_end0:
12 .size a, .Lfunc_end0-a
13
14 .type b,@function
15 b: # @b
16 .indidx 2
17 .result i32
18 # BB#0: # %entry
19 i32.const $push0=, 1
20 # fallthrough-return: $pop0
21 .endfunc
22 .Lfunc_end1:
23 .size b, .Lfunc_end1-b
24
25 .type c,@function
26 c: # @c
27 .indidx 1
28 .result i32
29 # BB#0: # %entry
30 i32.const $push0=, 2
31 # fallthrough-return: $pop0
32 .endfunc
33 .Lfunc_end2:
34 .size c, .Lfunc_end2-c
35
36 .type d,@function
37 d: # @d
38 .indidx 3
39 .result i32
40 # BB#0: # %entry
41 i32.const $push0=, 3
42 # fallthrough-return: $pop0
43 .endfunc
44 .Lfunc_end3:
45 .size d, .Lfunc_end3-d
46
47 .hidden main
48 .globl main
49 .type main,@function
50 main: # @main
51 .param i32, i32
52 .result i32
53 .local i32
54 # BB#0: # %entry
55 block
56 i32.call $push1=, getchar@FUNCTION
57 i32.const $push0=, 2
58 i32.shl $push2=, $pop1, $pop0
59 i32.const $push3=, .Lmain.fp-192
60 i32.add $push4=, $pop2, $pop3
61 i32.load $push9=, 0($pop4)
62 tee_local $push8=, $2=, $pop9
63 i32.const $push5=, 4
64 i32.ge_u $push6=, $pop8, $pop5
65 br_if 0, $pop6 # 0: down to label0
66 # BB#1: # %cont
67 i32.call_indirect $push7=, $2
68 return $pop7
69 .LBB4_2: # %trap
70 end_block # label0:
71 unreachable
72 unreachable
73 .endfunc
74 .Lfunc_end4:
75 .size main, .Lfunc_end4-main
76
77 .type .Lmain.fp,@object # @main.fp
78 .section .data.rel.ro,"aw",@progbits
79 .p2align 4
80 .Lmain.fp:
81 .int32 a@FUNCTION
82 .int32 b@FUNCTION
83 .int32 c@FUNCTION
84 .int32 d@FUNCTION
85 .size .Lmain.fp, 16
86
87 .type .L__unnamed_1,@object # @0
88 .section .rodata,"a",@progbits
89 .L__unnamed_1:
90 .size .L__unnamed_1, 0
91
92
93 .ident "clang version 3.9.0 (trunk 271314) (llvm/trunk 271322)"