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