]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/llvm_autogenerated/load-store-i1.wast
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / llvm_autogenerated / load-store-i1.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 "load_u_i1_i32" (func $load_u_i1_i32))
6 (export "load_s_i1_i32" (func $load_s_i1_i32))
7 (export "load_u_i1_i64" (func $load_u_i1_i64))
8 (export "load_s_i1_i64" (func $load_s_i1_i64))
9 (export "store_i32_i1" (func $store_i32_i1))
10 (export "store_i64_i1" (func $store_i64_i1))
11 (export "stackSave" (func $stackSave))
12 (export "stackAlloc" (func $stackAlloc))
13 (export "stackRestore" (func $stackRestore))
14 (func $load_u_i1_i32 (; 0 ;) (param $0 i32) (result i32)
15 (return
16 (i32.load8_u
17 (get_local $0)
18 )
19 )
20 )
21 (func $load_s_i1_i32 (; 1 ;) (param $0 i32) (result i32)
22 (return
23 (i32.sub
24 (i32.const 0)
25 (i32.and
26 (i32.load8_u
27 (get_local $0)
28 )
29 (i32.const 1)
30 )
31 )
32 )
33 )
34 (func $load_u_i1_i64 (; 2 ;) (param $0 i32) (result i64)
35 (return
36 (i64.load8_u
37 (get_local $0)
38 )
39 )
40 )
41 (func $load_s_i1_i64 (; 3 ;) (param $0 i32) (result i64)
42 (return
43 (i64.sub
44 (i64.const 0)
45 (i64.and
46 (i64.load8_u
47 (get_local $0)
48 )
49 (i64.const 1)
50 )
51 )
52 )
53 )
54 (func $store_i32_i1 (; 4 ;) (param $0 i32) (param $1 i32)
55 (i32.store8
56 (get_local $0)
57 (i32.and
58 (get_local $1)
59 (i32.const 1)
60 )
61 )
62 (return)
63 )
64 (func $store_i64_i1 (; 5 ;) (param $0 i32) (param $1 i64)
65 (i64.store8
66 (get_local $0)
67 (i64.and
68 (get_local $1)
69 (i64.const 1)
70 )
71 )
72 (return)
73 )
74 (func $stackSave (; 6 ;) (result i32)
75 (i32.load offset=4
76 (i32.const 0)
77 )
78 )
79 (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
80 (local $1 i32)
81 (set_local $1
82 (i32.load offset=4
83 (i32.const 0)
84 )
85 )
86 (i32.store offset=4
87 (i32.const 0)
88 (i32.and
89 (i32.sub
90 (get_local $1)
91 (get_local $0)
92 )
93 (i32.const -16)
94 )
95 )
96 (get_local $1)
97 )
98 (func $stackRestore (; 8 ;) (param $0 i32)
99 (i32.store offset=4
100 (i32.const 0)
101 (get_local $0)
102 )
103 )
104 )
105 ;; METADATA: { "asmConsts": {},"staticBump": 1040, "initializers": [] }