summaryrefslogtreecommitdiff
path: root/test/llvm_autogenerated/load-store-i1.wast
blob: 6a697d1209e7ecc051051b985f5e13d35bb754b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
(module
 (import "env" "memory" (memory $0 1))
 (table 0 funcref)
 (data (i32.const 4) "\10\04\00\00")
 (export "load_u_i1_i32" (func $load_u_i1_i32))
 (export "load_s_i1_i32" (func $load_s_i1_i32))
 (export "load_u_i1_i64" (func $load_u_i1_i64))
 (export "load_s_i1_i64" (func $load_s_i1_i64))
 (export "store_i32_i1" (func $store_i32_i1))
 (export "store_i64_i1" (func $store_i64_i1))
 (export "stackSave" (func $stackSave))
 (export "stackAlloc" (func $stackAlloc))
 (export "stackRestore" (func $stackRestore))
 (func $load_u_i1_i32 (; 0 ;) (param $0 i32) (result i32)
  (return
   (i32.load8_u
    (local.get $0)
   )
  )
 )
 (func $load_s_i1_i32 (; 1 ;) (param $0 i32) (result i32)
  (return
   (i32.sub
    (i32.const 0)
    (i32.and
     (i32.load8_u
      (local.get $0)
     )
     (i32.const 1)
    )
   )
  )
 )
 (func $load_u_i1_i64 (; 2 ;) (param $0 i32) (result i64)
  (return
   (i64.load8_u
    (local.get $0)
   )
  )
 )
 (func $load_s_i1_i64 (; 3 ;) (param $0 i32) (result i64)
  (return
   (i64.sub
    (i64.const 0)
    (i64.and
     (i64.load8_u
      (local.get $0)
     )
     (i64.const 1)
    )
   )
  )
 )
 (func $store_i32_i1 (; 4 ;) (param $0 i32) (param $1 i32)
  (i32.store8
   (local.get $0)
   (i32.and
    (local.get $1)
    (i32.const 1)
   )
  )
  (return)
 )
 (func $store_i64_i1 (; 5 ;) (param $0 i32) (param $1 i64)
  (i64.store8
   (local.get $0)
   (i64.and
    (local.get $1)
    (i64.const 1)
   )
  )
  (return)
 )
 (func $stackSave (; 6 ;) (result i32)
  (i32.load offset=4
   (i32.const 0)
  )
 )
 (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
  (local $1 i32)
  (i32.store offset=4
   (i32.const 0)
   (local.tee $1
    (i32.and
     (i32.sub
      (i32.load offset=4
       (i32.const 0)
      )
      (local.get $0)
     )
     (i32.const -16)
    )
   )
  )
  (local.get $1)
 )
 (func $stackRestore (; 8 ;) (param $0 i32)
  (i32.store offset=4
   (i32.const 0)
   (local.get $0)
  )
 )
)
;; METADATA: { "asmConsts": {},"staticBump": 1040, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_load_u_i1_i32","_load_s_i1_i32","_load_u_i1_i64","_load_s_i1_i64","_store_i32_i1","_store_i64_i1","_stackSave","_stackAlloc","_stackRestore"], "exports": ["load_u_i1_i32","load_s_i1_i32","load_u_i1_i64","load_s_i1_i64","store_i32_i1","store_i64_i1","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] }