forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-emscripten.wast
60 lines (60 loc) · 986 Bytes
/
post-emscripten.wast
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
(module
(memory 256 256)
(type $0 (func (param i32)))
(import "global.Math" "pow" (func $Math_pow (param f64 f64) (result f64)))
(func $pow2
(local $x f64)
(local $y f64)
(drop
(call $Math_pow
(f64.const 1)
(f64.const 2)
)
)
(drop
(call $Math_pow
(f64.const 1)
(f64.const 3)
)
)
(drop
(call $Math_pow
(f64.const 2)
(f64.const 1)
)
)
(local.set $x (f64.const 5))
(drop
(call $Math_pow
(local.get $x)
(f64.const 2)
)
)
(drop
(call $Math_pow
(local.tee $y (f64.const 7))
(f64.const 2)
)
)
(drop
(call $Math_pow
(f64.const 8)
(f64.const 2)
)
)
)
(func $pow.2
(drop
(call $Math_pow
(f64.const 1)
(f64.const 0.5)
)
)
(drop
(call $Math_pow
(f64.const 1)
(f64.const 0.51)
)
)
)
)