summaryrefslogtreecommitdiff
path: root/test/spec/endianness.wast
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-01-07 13:24:58 -0800
committerGitHub <noreply@github.com>2019-01-07 13:24:58 -0800
commit7d94900ded8e2e5ce8ef8ee2687528531d8f2a97 (patch)
treed8bba13d306b0c5ecba384384e602e6cccc83015 /test/spec/endianness.wast
parent6f91af190effd7b8a5969314dd4fb3d2ec540524 (diff)
downloadbinaryen-7d94900ded8e2e5ce8ef8ee2687528531d8f2a97.tar.gz
binaryen-7d94900ded8e2e5ce8ef8ee2687528531d8f2a97.tar.bz2
binaryen-7d94900ded8e2e5ce8ef8ee2687528531d8f2a97.zip
Massive renaming (#1855)
Automated renaming according to https://github.com/WebAssembly/spec/issues/884#issuecomment-426433329.
Diffstat (limited to 'test/spec/endianness.wast')
-rw-r--r--test/spec/endianness.wast66
1 files changed, 33 insertions, 33 deletions
diff --git a/test/spec/endianness.wast b/test/spec/endianness.wast
index 8dc0c2e2e..4f28a168f 100644
--- a/test/spec/endianness.wast
+++ b/test/spec/endianness.wast
@@ -3,130 +3,130 @@
;; Stores an i16 value in little-endian-format
(func $i16_store_little (param $address i32) (param $value i32)
- (i32.store8 (get_local $address) (get_local $value))
- (i32.store8 (i32.add (get_local $address) (i32.const 1)) (i32.shr_u (get_local $value) (i32.const 8)))
+ (i32.store8 (local.get $address) (local.get $value))
+ (i32.store8 (i32.add (local.get $address) (i32.const 1)) (i32.shr_u (local.get $value) (i32.const 8)))
)
;; Stores an i32 value in little-endian format
(func $i32_store_little (param $address i32) (param $value i32)
- (call $i16_store_little (get_local $address) (get_local $value))
- (call $i16_store_little (i32.add (get_local $address) (i32.const 2)) (i32.shr_u (get_local $value) (i32.const 16)))
+ (call $i16_store_little (local.get $address) (local.get $value))
+ (call $i16_store_little (i32.add (local.get $address) (i32.const 2)) (i32.shr_u (local.get $value) (i32.const 16)))
)
;; Stores an i64 value in little-endian format
(func $i64_store_little (param $address i32) (param $value i64)
- (call $i32_store_little (get_local $address) (i32.wrap/i64 (get_local $value)))
- (call $i32_store_little (i32.add (get_local $address) (i32.const 4)) (i32.wrap/i64 (i64.shr_u (get_local $value) (i64.const 32))))
+ (call $i32_store_little (local.get $address) (i32.wrap_i64 (local.get $value)))
+ (call $i32_store_little (i32.add (local.get $address) (i32.const 4)) (i32.wrap_i64 (i64.shr_u (local.get $value) (i64.const 32))))
)
;; Loads an i16 value in little-endian format
(func $i16_load_little (param $address i32) (result i32)
(i32.or
- (i32.load8_u (get_local $address))
- (i32.shl (i32.load8_u (i32.add (get_local $address) (i32.const 1))) (i32.const 8))
+ (i32.load8_u (local.get $address))
+ (i32.shl (i32.load8_u (i32.add (local.get $address) (i32.const 1))) (i32.const 8))
)
)
;; Loads an i32 value in little-endian format
(func $i32_load_little (param $address i32) (result i32)
(i32.or
- (call $i16_load_little (get_local $address))
- (i32.shl (call $i16_load_little (i32.add (get_local $address) (i32.const 2))) (i32.const 16))
+ (call $i16_load_little (local.get $address))
+ (i32.shl (call $i16_load_little (i32.add (local.get $address) (i32.const 2))) (i32.const 16))
)
)
;; Loads an i64 value in little-endian format
(func $i64_load_little (param $address i32) (result i64)
(i64.or
- (i64.extend_u/i32 (call $i32_load_little (get_local $address)))
- (i64.shl (i64.extend_u/i32 (call $i32_load_little (i32.add (get_local $address) (i32.const 4)))) (i64.const 32))
+ (i64.extend_i32_u (call $i32_load_little (local.get $address)))
+ (i64.shl (i64.extend_i32_u (call $i32_load_little (i32.add (local.get $address) (i32.const 4)))) (i64.const 32))
)
)
(func (export "i32_load16_s") (param $value i32) (result i32)
- (call $i16_store_little (i32.const 0) (get_local $value))
+ (call $i16_store_little (i32.const 0) (local.get $value))
(i32.load16_s (i32.const 0))
)
(func (export "i32_load16_u") (param $value i32) (result i32)
- (call $i16_store_little (i32.const 0) (get_local $value))
+ (call $i16_store_little (i32.const 0) (local.get $value))
(i32.load16_u (i32.const 0))
)
(func (export "i32_load") (param $value i32) (result i32)
- (call $i32_store_little (i32.const 0) (get_local $value))
+ (call $i32_store_little (i32.const 0) (local.get $value))
(i32.load (i32.const 0))
)
(func (export "i64_load16_s") (param $value i64) (result i64)
- (call $i16_store_little (i32.const 0) (i32.wrap/i64 (get_local $value)))
+ (call $i16_store_little (i32.const 0) (i32.wrap_i64 (local.get $value)))
(i64.load16_s (i32.const 0))
)
(func (export "i64_load16_u") (param $value i64) (result i64)
- (call $i16_store_little (i32.const 0) (i32.wrap/i64 (get_local $value)))
+ (call $i16_store_little (i32.const 0) (i32.wrap_i64 (local.get $value)))
(i64.load16_u (i32.const 0))
)
(func (export "i64_load32_s") (param $value i64) (result i64)
- (call $i32_store_little (i32.const 0) (i32.wrap/i64 (get_local $value)))
+ (call $i32_store_little (i32.const 0) (i32.wrap_i64 (local.get $value)))
(i64.load32_s (i32.const 0))
)
(func (export "i64_load32_u") (param $value i64) (result i64)
- (call $i32_store_little (i32.const 0) (i32.wrap/i64 (get_local $value)))
+ (call $i32_store_little (i32.const 0) (i32.wrap_i64 (local.get $value)))
(i64.load32_u (i32.const 0))
)
(func (export "i64_load") (param $value i64) (result i64)
- (call $i64_store_little (i32.const 0) (get_local $value))
+ (call $i64_store_little (i32.const 0) (local.get $value))
(i64.load (i32.const 0))
)
(func (export "f32_load") (param $value f32) (result f32)
- (call $i32_store_little (i32.const 0) (i32.reinterpret/f32 (get_local $value)))
+ (call $i32_store_little (i32.const 0) (i32.reinterpret_f32 (local.get $value)))
(f32.load (i32.const 0))
)
(func (export "f64_load") (param $value f64) (result f64)
- (call $i64_store_little (i32.const 0) (i64.reinterpret/f64 (get_local $value)))
+ (call $i64_store_little (i32.const 0) (i64.reinterpret_f64 (local.get $value)))
(f64.load (i32.const 0))
)
(func (export "i32_store16") (param $value i32) (result i32)
- (i32.store16 (i32.const 0) (get_local $value))
+ (i32.store16 (i32.const 0) (local.get $value))
(call $i16_load_little (i32.const 0))
)
(func (export "i32_store") (param $value i32) (result i32)
- (i32.store (i32.const 0) (get_local $value))
+ (i32.store (i32.const 0) (local.get $value))
(call $i32_load_little (i32.const 0))
)
(func (export "i64_store16") (param $value i64) (result i64)
- (i64.store16 (i32.const 0) (get_local $value))
- (i64.extend_u/i32 (call $i16_load_little (i32.const 0)))
+ (i64.store16 (i32.const 0) (local.get $value))
+ (i64.extend_i32_u (call $i16_load_little (i32.const 0)))
)
(func (export "i64_store32") (param $value i64) (result i64)
- (i64.store32 (i32.const 0) (get_local $value))
- (i64.extend_u/i32 (call $i32_load_little (i32.const 0)))
+ (i64.store32 (i32.const 0) (local.get $value))
+ (i64.extend_i32_u (call $i32_load_little (i32.const 0)))
)
(func (export "i64_store") (param $value i64) (result i64)
- (i64.store (i32.const 0) (get_local $value))
+ (i64.store (i32.const 0) (local.get $value))
(call $i64_load_little (i32.const 0))
)
(func (export "f32_store") (param $value f32) (result f32)
- (f32.store (i32.const 0) (get_local $value))
- (f32.reinterpret/i32 (call $i32_load_little (i32.const 0)))
+ (f32.store (i32.const 0) (local.get $value))
+ (f32.reinterpret_i32 (call $i32_load_little (i32.const 0)))
)
(func (export "f64_store") (param $value f64) (result f64)
- (f64.store (i32.const 0) (get_local $value))
- (f64.reinterpret/i64 (call $i64_load_little (i32.const 0)))
+ (f64.store (i32.const 0) (local.get $value))
+ (f64.reinterpret_i64 (call $i64_load_little (i32.const 0)))
)
)