summaryrefslogtreecommitdiff
path: root/test/noffi_f32.fromasm.clamp
blob: 9776d7be1b07cebc370f96f6da9a84711b7a0901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(module
 (type $FUNCSIG$ff (func (param f32) (result f32)))
 (import "env" "memory" (memory $memory 256 256))
 (data (global.get $__memory_base) "noffi_f32.asm.js")
 (import "env" "__memory_base" (global $__memory_base i32))
 (import "env" "_importf" (func $importf (param f32) (result f32)))
 (export "main" (func $main))
 (export "exportf" (func $exportf))
 (func $exportf (; 1 ;) (; has Stack IR ;) (param $0 f32) (result f32)
  (f32.add
   (local.get $0)
   (f32.const 1)
  )
 )
 (func $main (; 2 ;) (; has Stack IR ;) (result i32)
  (drop
   (call $importf
    (f32.const 3.4000000953674316)
   )
  )
  (i32.const 0)
 )
)