summaryrefslogtreecommitdiff
path: root/test/noffi_i64.fromasm.imprecise.no-opts
blob: c93e6b442270ccef35bfbffaf2dad6513c379b76 (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
(module
 (type $FUNCSIG$jj (func (param i64) (result i64)))
 (import "env" "memory" (memory $memory 256 256))
 (import "env" "table" (table $table 0 0 funcref))
 (import "env" "__memory_base" (global $__memory_base i32))
 (import "env" "__table_base" (global $__table_base i32))
 (import "env" "_importll" (func $importll (param i64) (result i64)))
 (export "_add" (func $add))
 (export "_main" (func $main))
 (func $add (; 1 ;) (param $a i64) (param $b i64) (result i64)
  (local $c i64)
  (local.set $c
   (i64.add
    (local.get $b)
    (local.get $a)
   )
  )
  (return
   (local.get $c)
  )
 )
 (func $main (; 2 ;) (result i32)
  (drop
   (call $importll
    (i64.const 2)
   )
  )
  (return
   (i32.const 0)
  )
 )
)