]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/noffi_f32.fromasm.no-opts
New upstream version 1.25.0+dfsg1
[rustc.git] / src / binaryen / test / noffi_f32.fromasm.no-opts
1 (module
2 (type $FUNCSIG$ff (func (param f32) (result f32)))
3 (import "env" "_importf" (func $importf (param f32) (result f32)))
4 (import "env" "memory" (memory $0 256 256))
5 (import "env" "table" (table 0 0 anyfunc))
6 (import "env" "memoryBase" (global $memoryBase i32))
7 (import "env" "tableBase" (global $tableBase i32))
8 (export "main" (func $main))
9 (export "exportf" (func $exportf))
10 (func $exportf (; 1 ;) (param $a f32) (result f32)
11 (return
12 (f32.add
13 (get_local $a)
14 (f32.const 1)
15 )
16 )
17 )
18 (func $main (; 2 ;) (result i32)
19 (drop
20 (call $importf
21 (f32.const 3.4000000953674316)
22 )
23 )
24 (return
25 (i32.const 0)
26 )
27 )
28 )