]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/llvm_autogenerated/non-executable-stack.wast
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / llvm_autogenerated / non-executable-stack.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 "stackSave" (func $stackSave))
6 (export "stackAlloc" (func $stackAlloc))
7 (export "stackRestore" (func $stackRestore))
8 (func $stackSave (; 0 ;) (result i32)
9 (i32.load offset=4
10 (i32.const 0)
11 )
12 )
13 (func $stackAlloc (; 1 ;) (param $0 i32) (result i32)
14 (local $1 i32)
15 (set_local $1
16 (i32.load offset=4
17 (i32.const 0)
18 )
19 )
20 (i32.store offset=4
21 (i32.const 0)
22 (i32.and
23 (i32.sub
24 (get_local $1)
25 (get_local $0)
26 )
27 (i32.const -16)
28 )
29 )
30 (get_local $1)
31 )
32 (func $stackRestore (; 2 ;) (param $0 i32)
33 (i32.store offset=4
34 (i32.const 0)
35 (get_local $0)
36 )
37 )
38 )
39 ;; METADATA: { "asmConsts": {},"staticBump": 1040, "initializers": [] }