summaryrefslogtreecommitdiff
path: root/test/passes/remove-non-js-ops.wast
blob: 0fd4958e0ae57b32255094a91632036b9d2a2b6b (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
(module
 (func $copysign64 (param $0 f64) (param $1 f64) (result f64)
   (f64.copysign (get_local $0) (get_local $1)))
 (func $copysign32 (param $0 f32) (param $1 f32) (result f32)
   (f32.copysign (get_local $0) (get_local $1)))

 (func $rotl32 (param $0 i32) (param $1 i32) (result i32)
   (i32.rotl (get_local $0) (get_local $1)))
 (func $rotr32 (param $0 i32) (param $1 i32) (result i32)
   (i32.rotr (get_local $0) (get_local $1)))
 (func $rotl64 (param $0 i64) (param $1 i64) (result i64)
   (i64.rotl (get_local $0) (get_local $1)))
 (func $rotr64 (param $0 i64) (param $1 i64) (result i64)
   (i64.rotr (get_local $0) (get_local $1)))

 (func $nearest64 (param $0 f64) (result f64)
   (f64.nearest (get_local $0)))
 (func $nearest32 (param $0 f32) (result f32)
   (f32.nearest (get_local $0)))

 (func $trunc64 (param $0 f64) (result f64)
   (f64.trunc (get_local $0)))
 (func $trunc32 (param $0 f32) (result f32)
   (f32.trunc (get_local $0)))

 (func $popcnt32 (param $0 i32) (result i32)
   (i32.popcnt (get_local $0)))
 (func $ctz32 (param $0 i32) (result i32)
   (i32.ctz (get_local $0)))

 (func $i64_sdiv (param $0 i64) (param $1 i64) (result i64)
   (i64.div_s (get_local $0) (get_local $1)))
 (func $i64_udiv (param $0 i64) (param $1 i64) (result i64)
   (i64.div_u (get_local $0) (get_local $1)))
 (func $i64_srem (param $0 i64) (param $1 i64) (result i64)
   (i64.rem_s (get_local $0) (get_local $1)))
 (func $i64_urem (param $0 i64) (param $1 i64) (result i64)
   (i64.rem_u (get_local $0) (get_local $1)))
 (func $i64_mul (param $0 i64) (param $1 i64) (result i64)
   (i64.mul (get_local $0) (get_local $1)))
)