summaryrefslogtreecommitdiff
path: root/test/wasm2js/sign_ext.wast
blob: 825502a3f35a9aeea025126a59f1d905435b9796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(module
  (func "test8" (param $x i32) (result i32)
    (i32.extend8_s (local.get $x))
  )
  (func "test16" (param $x i32) (result i32)
    (i32.extend16_s (local.get $x))
  )
  (func "test8_i64" (param $x i64) (result i64)
    (i64.extend8_s (local.get $x))
  )
  (func "test16_i64" (param $x i64) (result i64)
    (i64.extend16_s (local.get $x))
  )
  (func "test32_i64" (param $x i64) (result i64)
    (i64.extend32_s (local.get $x))
  )
)