summaryrefslogtreecommitdiff
path: root/test/min.fromasm.imprecise
blob: 839fd167cd06617f939eaf7211a4ea181b2d1106 (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
(module
  (memory 256 256)
  (export "memory" memory)
  (export "floats" $floats)
  (func $floats (param $f f32) (result f32)
    (local $t f32)
    (return
      (f32.add
        (get_local $t)
        (get_local $f)
      )
    )
  )
  (func $neg (param $k i32) (param $p i32) (result f32)
    (local $n f32)
    (set_local $n
      (f32.neg
        (block
          (i32.store
            (get_local $k)
            (get_local $p)
          )
          (f32.load
            (get_local $k)
          )
        )
      )
    )
    (return
      (get_local $n)
    )
  )
)