]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/llvm_autogenerated/func.wast
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / llvm_autogenerated / func.wast
1 (module
2 (import "env" "memory" (memory $0 1))
3 (table 0 anyfunc)
4 (data (i32.const 4) "\10\04\00\00")
5 (export "f0" (func $f0))
6 (export "f1" (func $f1))
7 (export "f2" (func $f2))
8 (export "f3" (func $f3))
9 (export "f4" (func $f4))
10 (export "f5" (func $f5))
11 (export "stackSave" (func $stackSave))
12 (export "stackAlloc" (func $stackAlloc))
13 (export "stackRestore" (func $stackRestore))
14 (func $f0 (; 0 ;)
15 (return)
16 )
17 (func $f1 (; 1 ;) (result i32)
18 (return
19 (i32.const 0)
20 )
21 )
22 (func $f2 (; 2 ;) (param $0 i32) (param $1 f32) (result i32)
23 (return
24 (i32.const 0)
25 )
26 )
27 (func $f3 (; 3 ;) (param $0 i32) (param $1 f32)
28 (return)
29 )
30 (func $f4 (; 4 ;) (param $0 i32) (result i32)
31 (block $label$0
32 (br_if $label$0
33 (i32.eqz
34 (i32.and
35 (get_local $0)
36 (i32.const 1)
37 )
38 )
39 )
40 (return
41 (i32.const 0)
42 )
43 )
44 (return
45 (i32.const 1)
46 )
47 )
48 (func $f5 (; 5 ;) (result f32)
49 (unreachable)
50 )
51 (func $stackSave (; 6 ;) (result i32)
52 (i32.load offset=4
53 (i32.const 0)
54 )
55 )
56 (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
57 (local $1 i32)
58 (set_local $1
59 (i32.load offset=4
60 (i32.const 0)
61 )
62 )
63 (i32.store offset=4
64 (i32.const 0)
65 (i32.and
66 (i32.sub
67 (get_local $1)
68 (get_local $0)
69 )
70 (i32.const -16)
71 )
72 )
73 (get_local $1)
74 )
75 (func $stackRestore (; 8 ;) (param $0 i32)
76 (i32.store offset=4
77 (i32.const 0)
78 (get_local $0)
79 )
80 )
81 )
82 ;; METADATA: { "asmConsts": {},"staticBump": 1040, "initializers": [] }