]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/llvm_autogenerated/unused-argument.wast
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / llvm_autogenerated / unused-argument.wast
1 (module
2 (type $FUNCSIG$i (func (result i32)))
3 (import "env" "return_something" (func $return_something (result i32)))
4 (import "env" "memory" (memory $0 1))
5 (table 0 anyfunc)
6 (data (i32.const 4) "\10\04\00\00")
7 (export "unused_first" (func $unused_first))
8 (export "unused_second" (func $unused_second))
9 (export "call_something" (func $call_something))
10 (export "stackSave" (func $stackSave))
11 (export "stackAlloc" (func $stackAlloc))
12 (export "stackRestore" (func $stackRestore))
13 (func $unused_first (; 1 ;) (param $0 i32) (param $1 i32) (result i32)
14 (return
15 (get_local $1)
16 )
17 )
18 (func $unused_second (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
19 (return
20 (get_local $0)
21 )
22 )
23 (func $call_something (; 3 ;)
24 (drop
25 (call $return_something)
26 )
27 (return)
28 )
29 (func $stackSave (; 4 ;) (result i32)
30 (i32.load offset=4
31 (i32.const 0)
32 )
33 )
34 (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
35 (local $1 i32)
36 (set_local $1
37 (i32.load offset=4
38 (i32.const 0)
39 )
40 )
41 (i32.store offset=4
42 (i32.const 0)
43 (i32.and
44 (i32.sub
45 (get_local $1)
46 (get_local $0)
47 )
48 (i32.const -16)
49 )
50 )
51 (get_local $1)
52 )
53 (func $stackRestore (; 6 ;) (param $0 i32)
54 (i32.store offset=4
55 (i32.const 0)
56 (get_local $0)
57 )
58 )
59 )
60 ;; METADATA: { "asmConsts": {},"staticBump": 1040, "initializers": [] }