summaryrefslogtreecommitdiff
path: root/test/min.fromasm.imprecise.no-opts
blob: ac8e11e87495ed1e176e016205865bec381a0de5 (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
(module
 (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" "tempDoublePtr" (global $tDP$asm2wasm$import i32))
 (global $tDP (mut i32) (global.get $tDP$asm2wasm$import))
 (global $M (mut i32) (i32.const 0))
 (export "floats" (func $floats))
 (export "getTempRet0" (func $ub))
 (export "neg" (func $neg))
 (export "bitcasts" (func $bitcasts))
 (export "ctzzzz" (func $ctzzzz))
 (func $floats (; 0 ;) (param $f f32) (result f32)
  (local $t f32)
  (return
   (f32.add
    (local.get $t)
    (local.get $f)
   )
  )
 )
 (func $neg (; 1 ;) (param $k i32) (param $p i32) (result f32)
  (local $n f32)
  (local.set $n
   (f32.neg
    (block (result f32)
     (i32.store
      (local.get $k)
      (local.get $p)
     )
     (f32.load
      (local.get $k)
     )
    )
   )
  )
  (return
   (local.get $n)
  )
 )
 (func $bitcasts (; 2 ;) (param $i i32) (param $f f32)
  (drop
   (f32.reinterpret_i32
    (local.get $i)
   )
  )
  (drop
   (f64.promote_f32
    (f32.reinterpret_i32
     (local.get $i)
    )
   )
  )
  (drop
   (i32.reinterpret_f32
    (local.get $f)
   )
  )
 )
 (func $ctzzzz (; 3 ;) (result i32)
  (return
   (i32.ctz
    (i32.const 4660)
   )
  )
 )
 (func $ub (; 4 ;) (result i32)
  (drop
   (call $ub)
  )
  (return
   (global.get $M)
  )
 )
)