Просмотр исходного кода

Fix wasm.simd tests

Make sure text syntax can be assembled by current WABT (revision
048e01a).

Use `v128` as vector value type. Fix names, modifiers, and indices for
instructions working with lanes. Get rid of build instruction, switch to
literal arguments for some of the intstuctions ("shuffle").

Add alignment to store instructions, to match binary code in `.wasm`
files.

Remove boolean SIMD tests -- boolean operations are deprecated.

Don't enable f32x4 test, it hits a bug in the engine.

Test binaryArithmeticTests would be handled in a separate commit.
Penzin 7 лет назад
Родитель
Сommit
a8db13b734

BIN
test/wasm.simd/b16x8.wasm


+ 0 - 183
test/wasm.simd/b16x8.wast

@@ -1,183 +0,0 @@
-;;-------------------------------------------------------------------------------------------------------
-;; Copyright (C) Microsoft Corporation and contributors. All rights reserved.
-;; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
-;;-------------------------------------------------------------------------------------------------------
-
-(module 
-	(func 
-		(export  "func_b16x8_0")  
-		(result  i32)  
-		(local  b16x8)  
-		(set_local 
-			0 
-			(b16x8.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  2147483647)  
-				(i32.const  -2147483648)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)  
-			) 
-		) 
-		(b16x8.extractLane 
-			(get_local  0)  
-			(i32.const  0)  
-		) 
-	) 
-	(func 
-		(export  "func_b16x8_1")  
-		(result  i32)  
-		(local  b16x8)  
-		(set_local 
-			0 
-			(b16x8.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  2147483647)  
-				(i32.const  -2147483648)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)  
-			) 
-		) 
-		(b16x8.extractLane 
-			(get_local  0)  
-			(i32.const  1)  
-		) 
-	) 
-	(func 
-		(export  "func_b16x8_2")  
-		(result  i32)  
-		(local  b16x8)  
-		(set_local 
-			0 
-			(b16x8.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  2147483647)  
-				(i32.const  -2147483648)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)    
-			) 
-		) 
-		(b16x8.extractLane 
-			(get_local  0)  
-			(i32.const  2)  
-		) 
-	) 
-	(func 
-		(export  "func_b16x8_3")  
-		(result  i32)  
-		(local  b16x8)  
-		(set_local 
-			0 
-			(b16x8.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  2147483647)  
-				(i32.const  -2147483648)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)  
-			) 
-		) 
-		(b16x8.extractLane 
-			(get_local  0)  
-			(i32.const  3)  
-		) 
-	) 
-	(func 
-		(export  "func_b16x8_4")  
-		(result  i32)  
-		(local  b16x8)  
-		(set_local 
-			0 
-			(b16x8.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  2147483647)  
-				(i32.const  -2147483648)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)   
-			) 
-		) 
-		(b16x8.extractLane 
-			(get_local  0)  
-			(i32.const  4)  
-		) 
-	) 
-	(func 
-		(export  "func_b16x8_5")  
-		(result  i32)  
-		(local  b16x8)  
-		(set_local 
-			0 
-			(b16x8.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  2147483647)  
-				(i32.const  -2147483648)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)  
-			) 
-		) 
-		(b16x8.extractLane 
-			(get_local  0)  
-			(i32.const  5)  
-		) 
-	) 
-	(func 
-		(export  "func_b16x8_6")  
-		(result  i32)  
-		(local  b16x8)  
-		(set_local 
-			0 
-			(b16x8.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  2147483647)  
-				(i32.const  -2147483648)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)    
-			) 
-		) 
-		(b16x8.extractLane 
-			(get_local  0)  
-			(i32.const  6)  
-		) 
-	) 
-	(func 
-		(export  "func_b16x8_7")  
-		(result  i32)  
-		(local  b16x8)  
-		(set_local 
-			0 
-			(b16x8.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  2147483647)  
-				(i32.const  -2147483648)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)   
-			) 
-		) 
-		(b16x8.extractLane 
-			(get_local  0)  
-			(i32.const  7)  
-		) 
-	) 
-) 

BIN
test/wasm.simd/b32x4.wasm


+ 0 - 79
test/wasm.simd/b32x4.wast

@@ -1,79 +0,0 @@
-;;-------------------------------------------------------------------------------------------------------
-;; Copyright (C) Microsoft Corporation and contributors. All rights reserved.
-;; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
-;;-------------------------------------------------------------------------------------------------------
-
-(module 
-	(func 
-		(export  "func_b32x4_0")  
-		(result  i32)  
-		(local  b32x4)  
-		(set_local 
-			0 
-			(b32x4.build 
-				(i32.const  0)  
-				(i32.const  1)  
-				(i32.const  -2147483648)  
-				(i32.const  2147483647)  
-			) 
-		) 
-		(b32x4.extractLane 
-			(get_local  0)  
-			(i32.const  0)  
-		) 
-	) 
-	(func 
-		(export  "func_b32x4_1")  
-		(result  i32)  
-		(local  b32x4)  
-		(set_local 
-			0 
-			(b32x4.build 
-				(i32.const  0)  
-				(i32.const  1)  
-				(i32.const  -2147483648)  
-				(i32.const  2147483647) 
-			) 
-		) 
-		(b32x4.extractLane 
-			(get_local  0)  
-			(i32.const  1)  
-		) 
-	) 
-	(func 
-		(export  "func_b32x4_2")  
-		(result  i32)  
-		(local  b32x4)  
-		(set_local 
-			0 
-			(b32x4.build 
-				(i32.const  0)  
-				(i32.const  1)  
-				(i32.const  -2147483648)  
-				(i32.const  2147483647)   
-			) 
-		) 
-		(b32x4.extractLane 
-			(get_local  0)  
-			(i32.const  2)  
-		) 
-	) 
-	(func 
-		(export  "func_b32x4_3")  
-		(result  i32)  
-		(local  b32x4)  
-		(set_local 
-			0 
-			(b32x4.build 
-				(i32.const  0)  
-				(i32.const  1)  
-				(i32.const  -2147483648)  
-				(i32.const  2147483647)  
-			) 
-		) 
-		(b32x4.extractLane 
-			(get_local  0)  
-			(i32.const  3)  
-		) 
-	) 
-) 

BIN
test/wasm.simd/b8x16.wasm


+ 0 - 487
test/wasm.simd/b8x16.wast

@@ -1,487 +0,0 @@
-;;-------------------------------------------------------------------------------------------------------
-;; Copyright (C) Microsoft Corporation and contributors. All rights reserved.
-;; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
-;;-------------------------------------------------------------------------------------------------------
-
-(module 
-	(func 
-		(export  "func_b8x16_0")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  0)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_1")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  1)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_2")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  2)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_3")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  3)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_4")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  4)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_5")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  5)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_6")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  6)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_7")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  7)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_8")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  8)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_9")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  9)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_10")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  10)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_11")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  11)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_12")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  12)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_13")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  13)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_14")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  14)  
-		) 
-	) 
-	(func 
-		(export  "func_b8x16_15")  
-		(result  i32)  
-		(local  b8x16)  
-		(set_local 
-			0 
-			(b8x16.build 
-				(i32.const  1)  
-				(i32.const  0)  
-				(i32.const  3)  
-				(i32.const  -4)  
-				(i32.const  5)  
-				(i32.const  6)  
-				(i32.const  -2147483648)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  65535)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  65534)  
-				(i32.const  14)  
-				(i32.const  2147483647)  
-				(i32.const  16)  
-			) 
-		) 
-		(b8x16.extractLane 
-			(get_local  0)  
-			(i32.const  15)  
-		) 
-	) 
-) 

+ 1 - 50
test/wasm.simd/buildExtractTests.js

@@ -121,62 +121,13 @@ function RunFloat32x4Tests() {
     check(-2147483648, "exports.func_f32x4_3");
 }
 
-function RunBool32x4Tests() {
-    mod = new WebAssembly.Module(readbuffer('b32x4.wasm'));
-    exports = new WebAssembly.Instance(mod, ffi).exports;
-
-    check(false, "exports.func_b32x4_0");
-    check(true, "exports.func_b32x4_1");
-    check(true, "exports.func_b32x4_2");
-    check(true, "exports.func_b32x4_3");
-}
-
-function RunBool16x8Tests() {
-    mod = new WebAssembly.Module(readbuffer('b16x8.wasm'));
-    exports = new WebAssembly.Instance(mod, ffi).exports;
-
-    check(true, "exports.func_b16x8_0");
-    check(false, "exports.func_b16x8_1");
-    check(true, "exports.func_b16x8_2");
-    check(true, "exports.func_b16x8_3");    
-    check(true, "exports.func_b16x8_4");
-    check(true, "exports.func_b16x8_5");
-    check(true, "exports.func_b16x8_6");
-    check(true, "exports.func_b16x8_7");
-}
-
-function RunBool8x16Tests() {
-    mod = new WebAssembly.Module(readbuffer('b8x16.wasm'));
-    exports = new WebAssembly.Instance(mod, ffi).exports;
-
-    check(true, "exports.func_b8x16_0");
-    check(false, "exports.func_b8x16_1");
-    check(true, "exports.func_b8x16_2");
-    check(true, "exports.func_b8x16_3");    
-    check(true, "exports.func_b8x16_4");
-    check(true, "exports.func_b8x16_5");
-    check(true, "exports.func_b8x16_6");
-    check(true, "exports.func_b8x16_7");    
-    check(true, "exports.func_b8x16_8");
-    check(true, "exports.func_b8x16_9");
-    check(true, "exports.func_b8x16_10");
-    check(true, "exports.func_b8x16_11");    
-    check(true, "exports.func_b8x16_12");
-    check(true, "exports.func_b8x16_13");
-    check(true, "exports.func_b8x16_14");
-    check(true, "exports.func_b8x16_15");    
-}
-
 //Tests
 RunInt324Tests();
 RunInt16x8UnsignedTests();
 RunInt16x8SignedTests();
 RunInt8x16UnsignedTests();
 RunInt8x16SignedTests();
-RunFloat32x4Tests();
-RunBool32x4Tests();
-RunBool16x8Tests();
-RunBool8x16Tests();
+// FIXME broken extract_lane: RunFloat32x4Tests();
     
 if(passed) {
   print("Passed");

+ 144 - 144
test/wasm.simd/comp.wast

@@ -25,52 +25,52 @@
                     (get_local $2)
                   )
                 )
-                (m128.store offset=0 (i32.const 0)
+                (v128.store offset=0 align=4 (i32.const 0)
                   (i32x4.eq
-                    (m128.load offset=0 align=4 (i32.const 0))
-                    (m128.load offset=16 align=4 (i32.const 0))
+                    (v128.load offset=0 align=4 (i32.const 0))
+                    (v128.load offset=16 align=4 (i32.const 0))
                   )
                 )
                 (return)
               )
                 (unreachable) ;; invalid operation
             )
-            (m128.store offset=0 (i32.const 0)
+            (v128.store offset=0 align=4 (i32.const 0)
               (i32x4.ne
-                (m128.load offset=0 align=4 (i32.const 0))
-                (m128.load offset=16 align=4 (i32.const 0))
+                (v128.load offset=0 align=4 (i32.const 0))
+                (v128.load offset=16 align=4 (i32.const 0))
               )
             )
             (return)
           )
-          (m128.store offset=0 (i32.const 0)
+          (v128.store offset=0 align=4 (i32.const 0)
             (i32x4.lt_s
-              (m128.load offset=0 align=4 (i32.const 0))
-              (m128.load offset=16 align=4 (i32.const 0))
+              (v128.load offset=0 align=4 (i32.const 0))
+              (v128.load offset=16 align=4 (i32.const 0))
             )
           )
           (return)
         )
-        (m128.store offset=0 (i32.const 0)
+        (v128.store offset=0 align=4 (i32.const 0)
           (i32x4.le_s
-            (m128.load offset=0 align=4 (i32.const 0))
-            (m128.load offset=16 align=4 (i32.const 0))
+            (v128.load offset=0 align=4 (i32.const 0))
+            (v128.load offset=16 align=4 (i32.const 0))
           )
         )
         (return)
       )
-      (m128.store offset=0 (i32.const 0)
+      (v128.store offset=0 align=4 (i32.const 0)
         (i32x4.gt_s
-          (m128.load offset=0 align=4 (i32.const 0))
-          (m128.load offset=16 align=4 (i32.const 0))
+          (v128.load offset=0 align=4 (i32.const 0))
+          (v128.load offset=16 align=4 (i32.const 0))
         )
       )
       (return)
     )
-    (m128.store offset=0 (i32.const 0)
+    (v128.store offset=0 align=4 (i32.const 0)
       (i32x4.ge_s
-        (m128.load offset=0 align=4 (i32.const 0))
-        (m128.load offset=16 align=4 (i32.const 0))
+        (v128.load offset=0 align=4 (i32.const 0))
+        (v128.load offset=16 align=4 (i32.const 0))
       )
     )
   )
@@ -94,52 +94,52 @@
                     (get_local $2)
                   )
                 )
-                (m128.store offset=0 (i32.const 0)
+                (v128.store offset=0 align=4 (i32.const 0)
                   (i32x4.eq
-                    (m128.load offset=0 align=4 (i32.const 0))
-                    (m128.load offset=16 align=4 (i32.const 0))
+                    (v128.load offset=0 align=4 (i32.const 0))
+                    (v128.load offset=16 align=4 (i32.const 0))
                   )
                 )
                 (return)
               )
                 (unreachable) ;; invalid operation
             )
-            (m128.store offset=0 (i32.const 0)
+            (v128.store offset=0 align=4 (i32.const 0)
               (i32x4.ne
-                (m128.load offset=0 align=4 (i32.const 0))
-                (m128.load offset=16 align=4 (i32.const 0))
+                (v128.load offset=0 align=4 (i32.const 0))
+                (v128.load offset=16 align=4 (i32.const 0))
               )
             )
             (return)
           )
-          (m128.store offset=0 (i32.const 0)
+          (v128.store offset=0 align=4 (i32.const 0)
             (i32x4.lt_u
-              (m128.load offset=0 align=4 (i32.const 0))
-              (m128.load offset=16 align=4 (i32.const 0))
+              (v128.load offset=0 align=4 (i32.const 0))
+              (v128.load offset=16 align=4 (i32.const 0))
             )
           )
           (return)
         )
-        (m128.store offset=0 (i32.const 0)
+        (v128.store offset=0 align=4 (i32.const 0)
           (i32x4.le_u
-            (m128.load offset=0 align=4 (i32.const 0))
-            (m128.load offset=16 align=4 (i32.const 0))
+            (v128.load offset=0 align=4 (i32.const 0))
+            (v128.load offset=16 align=4 (i32.const 0))
           )
         )
         (return)
       )
-      (m128.store offset=0 (i32.const 0)
+      (v128.store offset=0 align=4 (i32.const 0)
         (i32x4.gt_u
-          (m128.load offset=0 align=4 (i32.const 0))
-          (m128.load offset=16 align=4 (i32.const 0))
+          (v128.load offset=0 align=4 (i32.const 0))
+          (v128.load offset=16 align=4 (i32.const 0))
         )
       )
       (return)
     )
-    (m128.store offset=0 (i32.const 0)
+    (v128.store offset=0 align=4 (i32.const 0)
       (i32x4.ge_u
-        (m128.load offset=0 align=4 (i32.const 0))
-        (m128.load offset=16 align=4 (i32.const 0))
+        (v128.load offset=0 align=4 (i32.const 0))
+        (v128.load offset=16 align=4 (i32.const 0))
       )
     )
   )
@@ -163,52 +163,52 @@
                     (get_local $2)
                   )
                 )
-                (m128.store offset=0 (i32.const 0)
+                (v128.store offset=0 align=4 (i32.const 0)
                   (i16x8.eq
-                    (m128.load offset=0 align=4 (i32.const 0))
-                    (m128.load offset=16 align=4 (i32.const 0))
+                    (v128.load offset=0 align=4 (i32.const 0))
+                    (v128.load offset=16 align=4 (i32.const 0))
                   )
                 )
                 (return)
               )
                 (unreachable) ;; invalid operation
             )
-            (m128.store offset=0 (i32.const 0)
+            (v128.store offset=0 align=4 (i32.const 0)
               (i16x8.ne
-                (m128.load offset=0 align=4 (i32.const 0))
-                (m128.load offset=16 align=4 (i32.const 0))
+                (v128.load offset=0 align=4 (i32.const 0))
+                (v128.load offset=16 align=4 (i32.const 0))
               )
             )
             (return)
           )
-          (m128.store offset=0 (i32.const 0)
+          (v128.store offset=0 align=4 (i32.const 0)
             (i16x8.lt_s
-              (m128.load offset=0 align=4 (i32.const 0))
-              (m128.load offset=16 align=4 (i32.const 0))
+              (v128.load offset=0 align=4 (i32.const 0))
+              (v128.load offset=16 align=4 (i32.const 0))
             )
           )
           (return)
         )
-        (m128.store offset=0 (i32.const 0)
+        (v128.store offset=0 align=4 (i32.const 0)
           (i16x8.le_s
-            (m128.load offset=0 align=4 (i32.const 0))
-            (m128.load offset=16 align=4 (i32.const 0))
+            (v128.load offset=0 align=4 (i32.const 0))
+            (v128.load offset=16 align=4 (i32.const 0))
           )
         )
         (return)
       )
-      (m128.store offset=0 (i32.const 0)
+      (v128.store offset=0 align=4 (i32.const 0)
         (i16x8.gt_s
-          (m128.load offset=0 align=4 (i32.const 0))
-          (m128.load offset=16 align=4 (i32.const 0))
+          (v128.load offset=0 align=4 (i32.const 0))
+          (v128.load offset=16 align=4 (i32.const 0))
         )
       )
       (return)
     )
-    (m128.store offset=0 (i32.const 0)
+    (v128.store offset=0 align=4 (i32.const 0)
       (i16x8.ge_s
-        (m128.load offset=0 align=4 (i32.const 0))
-        (m128.load offset=16 align=4 (i32.const 0))
+        (v128.load offset=0 align=4 (i32.const 0))
+        (v128.load offset=16 align=4 (i32.const 0))
       )
     )
   )
@@ -232,52 +232,52 @@
                     (get_local $2)
                   )
                 )
-                (m128.store offset=0 (i32.const 0)
+                (v128.store offset=0 align=4 (i32.const 0)
                   (i16x8.eq
-                    (m128.load offset=0 align=4 (i32.const 0))
-                    (m128.load offset=16 align=4 (i32.const 0))
+                    (v128.load offset=0 align=4 (i32.const 0))
+                    (v128.load offset=16 align=4 (i32.const 0))
                   )
                 )
                 (return)
               )
                 (unreachable) ;; invalid operation
             )
-            (m128.store offset=0 (i32.const 0)
+            (v128.store offset=0 align=4 (i32.const 0)
               (i16x8.ne
-                (m128.load offset=0 align=4 (i32.const 0))
-                (m128.load offset=16 align=4 (i32.const 0))
+                (v128.load offset=0 align=4 (i32.const 0))
+                (v128.load offset=16 align=4 (i32.const 0))
               )
             )
             (return)
           )
-          (m128.store offset=0 (i32.const 0)
+          (v128.store offset=0 align=4 (i32.const 0)
             (i16x8.lt_u
-              (m128.load offset=0 align=4 (i32.const 0))
-              (m128.load offset=16 align=4 (i32.const 0))
+              (v128.load offset=0 align=4 (i32.const 0))
+              (v128.load offset=16 align=4 (i32.const 0))
             )
           )
           (return)
         )
-        (m128.store offset=0 (i32.const 0)
+        (v128.store offset=0 align=4 (i32.const 0)
           (i16x8.le_u
-            (m128.load offset=0 align=4 (i32.const 0))
-            (m128.load offset=16 align=4 (i32.const 0))
+            (v128.load offset=0 align=4 (i32.const 0))
+            (v128.load offset=16 align=4 (i32.const 0))
           )
         )
         (return)
       )
-      (m128.store offset=0 (i32.const 0)
+      (v128.store offset=0 align=4 (i32.const 0)
         (i16x8.gt_u
-          (m128.load offset=0 align=4 (i32.const 0))
-          (m128.load offset=16 align=4 (i32.const 0))
+          (v128.load offset=0 align=4 (i32.const 0))
+          (v128.load offset=16 align=4 (i32.const 0))
         )
       )
       (return)
     )
-    (m128.store offset=0 (i32.const 0)
+    (v128.store offset=0 align=4 (i32.const 0)
       (i16x8.ge_u
-        (m128.load offset=0 align=4 (i32.const 0))
-        (m128.load offset=16 align=4 (i32.const 0))
+        (v128.load offset=0 align=4 (i32.const 0))
+        (v128.load offset=16 align=4 (i32.const 0))
       )
     )
   )
@@ -301,52 +301,52 @@
                     (get_local $2)
                   )
                 )
-                (m128.store offset=0 (i32.const 0)
+                (v128.store offset=0 align=4 (i32.const 0)
                   (i8x16.eq
-                    (m128.load offset=0 align=4 (i32.const 0))
-                    (m128.load offset=16 align=4 (i32.const 0))
+                    (v128.load offset=0 align=4 (i32.const 0))
+                    (v128.load offset=16 align=4 (i32.const 0))
                   )
                 )
                 (return)
               )
                 (unreachable) ;; invalid operation
             )
-            (m128.store offset=0 (i32.const 0)
+            (v128.store offset=0 align=4 (i32.const 0)
               (i8x16.ne
-                (m128.load offset=0 align=4 (i32.const 0))
-                (m128.load offset=16 align=4 (i32.const 0))
+                (v128.load offset=0 align=4 (i32.const 0))
+                (v128.load offset=16 align=4 (i32.const 0))
               )
             )
             (return)
           )
-          (m128.store offset=0 (i32.const 0)
+          (v128.store offset=0 align=4 (i32.const 0)
             (i8x16.lt_s
-              (m128.load offset=0 align=4 (i32.const 0))
-              (m128.load offset=16 align=4 (i32.const 0))
+              (v128.load offset=0 align=4 (i32.const 0))
+              (v128.load offset=16 align=4 (i32.const 0))
             )
           )
           (return)
         )
-        (m128.store offset=0 (i32.const 0)
+        (v128.store offset=0 align=4 (i32.const 0)
           (i8x16.le_s
-            (m128.load offset=0 align=4 (i32.const 0))
-            (m128.load offset=16 align=4 (i32.const 0))
+            (v128.load offset=0 align=4 (i32.const 0))
+            (v128.load offset=16 align=4 (i32.const 0))
           )
         )
         (return)
       )
-      (m128.store offset=0 (i32.const 0)
+      (v128.store offset=0 align=4 (i32.const 0)
         (i8x16.gt_s
-          (m128.load offset=0 align=4 (i32.const 0))
-          (m128.load offset=16 align=4 (i32.const 0))
+          (v128.load offset=0 align=4 (i32.const 0))
+          (v128.load offset=16 align=4 (i32.const 0))
         )
       )
       (return)
     )
-    (m128.store offset=0 (i32.const 0)
+    (v128.store offset=0 align=4 (i32.const 0)
       (i8x16.ge_s
-        (m128.load offset=0 align=4 (i32.const 0))
-        (m128.load offset=16 align=4 (i32.const 0))
+        (v128.load offset=0 align=4 (i32.const 0))
+        (v128.load offset=16 align=4 (i32.const 0))
       )
     )
   )
@@ -370,52 +370,52 @@
                     (get_local $2)
                   )
                 )
-                (m128.store offset=0 (i32.const 0)
+                (v128.store offset=0 align=4 (i32.const 0)
                   (i8x16.eq
-                    (m128.load offset=0 align=4 (i32.const 0))
-                    (m128.load offset=16 align=4 (i32.const 0))
+                    (v128.load offset=0 align=4 (i32.const 0))
+                    (v128.load offset=16 align=4 (i32.const 0))
                   )
                 )
                 (return)
               )
                 (unreachable) ;; invalid operation
             )
-            (m128.store offset=0 (i32.const 0)
+            (v128.store offset=0 align=4 (i32.const 0)
               (i8x16.ne
-                (m128.load offset=0 align=4 (i32.const 0))
-                (m128.load offset=16 align=4 (i32.const 0))
+                (v128.load offset=0 align=4 (i32.const 0))
+                (v128.load offset=16 align=4 (i32.const 0))
               )
             )
             (return)
           )
-          (m128.store offset=0 (i32.const 0)
+          (v128.store offset=0 align=4 (i32.const 0)
             (i8x16.lt_u
-              (m128.load offset=0 align=4 (i32.const 0))
-              (m128.load offset=16 align=4 (i32.const 0))
+              (v128.load offset=0 align=4 (i32.const 0))
+              (v128.load offset=16 align=4 (i32.const 0))
             )
           )
           (return)
         )
-        (m128.store offset=0 (i32.const 0)
+        (v128.store offset=0 align=4 (i32.const 0)
           (i8x16.le_u
-            (m128.load offset=0 align=4 (i32.const 0))
-            (m128.load offset=16 align=4 (i32.const 0))
+            (v128.load offset=0 align=4 (i32.const 0))
+            (v128.load offset=16 align=4 (i32.const 0))
           )
         )
         (return)
       )
-      (m128.store offset=0 (i32.const 0)
+      (v128.store offset=0 align=4 (i32.const 0)
         (i8x16.gt_u
-          (m128.load offset=0 align=4 (i32.const 0))
-          (m128.load offset=16 align=4 (i32.const 0))
+          (v128.load offset=0 align=4 (i32.const 0))
+          (v128.load offset=16 align=4 (i32.const 0))
         )
       )
       (return)
     )
-    (m128.store offset=0 (i32.const 0)
+    (v128.store offset=0 align=4 (i32.const 0)
       (i8x16.ge_u
-        (m128.load offset=0 align=4 (i32.const 0))
-        (m128.load offset=16 align=4 (i32.const 0))
+        (v128.load offset=0 align=4 (i32.const 0))
+        (v128.load offset=16 align=4 (i32.const 0))
       )
     )
   )
@@ -439,52 +439,52 @@
                     (get_local $2)
                   )
                 )
-                (m128.store offset=0 (i32.const 0)
+                (v128.store offset=0 align=4 (i32.const 0)
                   (f32x4.eq
-                    (m128.load offset=0 align=4 (i32.const 0))
-                    (m128.load offset=16 align=4 (i32.const 0))
+                    (v128.load offset=0 align=4 (i32.const 0))
+                    (v128.load offset=16 align=4 (i32.const 0))
                   )
                 )
                 (return)
               )
                 (unreachable) ;; invalid operation
             )
-            (m128.store offset=0 (i32.const 0)
+            (v128.store offset=0 align=4 (i32.const 0)
               (f32x4.ne
-                (m128.load offset=0 align=4 (i32.const 0))
-                (m128.load offset=16 align=4 (i32.const 0))
+                (v128.load offset=0 align=4 (i32.const 0))
+                (v128.load offset=16 align=4 (i32.const 0))
               )
             )
             (return)
           )
-          (m128.store offset=0 (i32.const 0)
+          (v128.store offset=0 align=4 (i32.const 0)
             (f32x4.lt
-              (m128.load offset=0 align=4 (i32.const 0))
-              (m128.load offset=16 align=4 (i32.const 0))
+              (v128.load offset=0 align=4 (i32.const 0))
+              (v128.load offset=16 align=4 (i32.const 0))
             )
           )
           (return)
         )
-        (m128.store offset=0 (i32.const 0)
+        (v128.store offset=0 align=4 (i32.const 0)
           (f32x4.le
-            (m128.load offset=0 align=4 (i32.const 0))
-            (m128.load offset=16 align=4 (i32.const 0))
+            (v128.load offset=0 align=4 (i32.const 0))
+            (v128.load offset=16 align=4 (i32.const 0))
           )
         )
         (return)
       )
-      (m128.store offset=0 (i32.const 0)
+      (v128.store offset=0 align=4 (i32.const 0)
         (f32x4.gt
-          (m128.load offset=0 align=4 (i32.const 0))
-          (m128.load offset=16 align=4 (i32.const 0))
+          (v128.load offset=0 align=4 (i32.const 0))
+          (v128.load offset=16 align=4 (i32.const 0))
         )
       )
       (return)
     )
-    (m128.store offset=0 (i32.const 0)
+    (v128.store offset=0 align=4 (i32.const 0)
       (f32x4.ge
-        (m128.load offset=0 align=4 (i32.const 0))
-        (m128.load offset=16 align=4 (i32.const 0))
+        (v128.load offset=0 align=4 (i32.const 0))
+        (v128.load offset=16 align=4 (i32.const 0))
       )
     )
   )
@@ -507,52 +507,52 @@
                     (get_local $2)
                   )
                 )
-                (m128.store offset=0 (i32.const 0)
+                (v128.store offset=0 align=4 (i32.const 0)
                   (f64x2.eq
-                    (m128.load offset=0 align=4 (i32.const 0))
-                    (m128.load offset=16 align=4 (i32.const 0))
+                    (v128.load offset=0 align=4 (i32.const 0))
+                    (v128.load offset=16 align=4 (i32.const 0))
                   )
                 )
                 (return)
               )
                 (unreachable) ;; invalid operation
             )
-            (m128.store offset=0 (i32.const 0)
+            (v128.store offset=0 align=4 (i32.const 0)
               (f64x2.ne
-                (m128.load offset=0 align=4 (i32.const 0))
-                (m128.load offset=16 align=4 (i32.const 0))
+                (v128.load offset=0 align=4 (i32.const 0))
+                (v128.load offset=16 align=4 (i32.const 0))
               )
             )
             (return)
           )
-          (m128.store offset=0 (i32.const 0)
+          (v128.store offset=0 align=4 (i32.const 0)
             (f64x2.lt
-              (m128.load offset=0 align=4 (i32.const 0))
-              (m128.load offset=16 align=4 (i32.const 0))
+              (v128.load offset=0 align=4 (i32.const 0))
+              (v128.load offset=16 align=4 (i32.const 0))
             )
           )
           (return)
         )
-        (m128.store offset=0 (i32.const 0)
+        (v128.store offset=0 align=4 (i32.const 0)
           (f64x2.le
-            (m128.load offset=0 align=4 (i32.const 0))
-            (m128.load offset=16 align=4 (i32.const 0))
+            (v128.load offset=0 align=4 (i32.const 0))
+            (v128.load offset=16 align=4 (i32.const 0))
           )
         )
         (return)
       )
-      (m128.store offset=0 (i32.const 0)
+      (v128.store offset=0 align=4 (i32.const 0)
         (f64x2.gt
-          (m128.load offset=0 align=4 (i32.const 0))
-          (m128.load offset=16 align=4 (i32.const 0))
+          (v128.load offset=0 align=4 (i32.const 0))
+          (v128.load offset=16 align=4 (i32.const 0))
         )
       )
       (return)
     )
-    (m128.store offset=0 (i32.const 0)
+    (v128.store offset=0 align=4 (i32.const 0)
       (f64x2.ge
-        (m128.load offset=0 align=4 (i32.const 0))
-        (m128.load offset=16 align=4 (i32.const 0))
+        (v128.load offset=0 align=4 (i32.const 0))
+        (v128.load offset=16 align=4 (i32.const 0))
       )
     )
   )

+ 16 - 84
test/wasm.simd/const.wast

@@ -6,99 +6,31 @@
 (module
     (import "dummy" "memory" (memory 1))
 
-        (func (export "m128_const_1") (local $v1 m128)
-            (set_local $v1 
-            (m128.const 
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0) 
-                (i32.const 0xcc)
-                (i32.const 0xab)
-                (i32.const 0x0)
-                (i32.const 0xff)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0) 
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
+        (func (export "m128_const_1") (local $v1 v128)
+            (set_local $v1
+            (v128.const i32 0x00000000 0xff00abcc 0x00000000 0x00000000)
             )
-            )
-            (m128.store offset=0 (i32.const 0) (get_local $v1))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local $v1))
         )
 
-        (func (export "m128_const_2") (local $v1 m128)
-            (set_local $v1 
-            (m128.const 
-                (i32.const 0x0)
-                (i32.const 0xbc)
-                (i32.const 0x0)
-                (i32.const 0xa1)
-                (i32.const 0xff)
-                (i32.const 0xff)
-                (i32.const 0xff)
-                (i32.const 0xff) 
-                (i32.const 0x0)
-                (i32.const 0xff)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x1)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-            )
+        (func (export "m128_const_2") (local $v1 v128)
+            (set_local $v1
+            (v128.const i32 0xa100bc00 0xffffffff 0x0000ff00 0x00000001)
             )
-            (m128.store offset=0 (i32.const 0) (get_local $v1))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local $v1))
         )
 
-        (func (export "m128_const_3") (local $v1 m128)
-            (set_local $v1 
-            (m128.const 
-                (i32.const 0xff)
-                (i32.const 0xff)
-                (i32.const 0xff)
-                (i32.const 0xff) 
-                (i32.const 0xff)
-                (i32.const 0xff)
-                (i32.const 0xff)
-                (i32.const 0xff) 
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0) 
-                (i32.const 0xff)
-                (i32.const 0xff)
-                (i32.const 0xff)
-                (i32.const 0xff)
+        (func (export "m128_const_3") (local $v1 v128)
+            (set_local $v1
+            (v128.const i32 0xffffffff 0xffffffff 0x00000000 0xffffffff)
             )
-            )
-            (m128.store offset=0 (i32.const 0) (get_local $v1))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local $v1))
         )
 
-        (func (export "m128_const_4") (local $v1 m128)
-            (set_local $v1 
-            (m128.const 
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-                (i32.const 0x0)
-            )
+        (func (export "m128_const_4") (local $v1 v128)
+            (set_local $v1
+            (v128.const i32 0x00000000 0x00000000 0x00000000 0x00000000)
             )
-            (m128.store offset=0 (i32.const 0) (get_local $v1))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local $v1))
         )
 )

BIN
test/wasm.simd/f32x4.wasm


+ 12 - 60
test/wasm.simd/f32x4.wast

@@ -6,74 +6,26 @@
 (module 
 	(func 
 		(export  "func_f32x4_0")  
-		(result  f32)  
-		(local  f32x4)  
-		(set_local 
-			0 
-			(f32x4.build 
-				(f32.const  1.0)  
-				(f32.const  2147483647)  
-				(f32.const  2147483646.9)  
-				(f32.const  -2147483647.5)  
-			) 
-		) 
-		(f32x4.extractLane
-			(get_local  0)  
-			(i32.const  0)  
-		) 
+		(result f32)  
+		(f32x4.extract_lane 0
+			(v128.const i32 0x3f800000 0x7fffffff 0x4f000000 0xcf000000))
 	) 
 	(func 
 		(export  "func_f32x4_1")  
-		(result  f32)  
-		(local  f32x4)  
-		(set_local 
-			0 
-			(f32x4.build 
-				(f32.const  1.0)  
-				(f32.const  2147483647)  
-				(f32.const  2147483646.9)  
-				(f32.const  -2147483647.5)   
-			) 
-		) 
-		(f32x4.extractLane
-			(get_local  0)  
-			(i32.const  1)  
-		) 
+		(result f32)  
+		(f32x4.extract_lane 1
+			(v128.const i32 0x3f800000 0x7fffffff 0x4f000000 0xcf000000))
 	) 
 	(func 
 		(export  "func_f32x4_2")  
-		(result  f32)  
-		(local  f32x4)  
-		(set_local 
-			0 
-			(f32x4.build 
-				(f32.const  1.0)  
-				(f32.const  2147483647)  
-				(f32.const  2147483646.9)  
-				(f32.const  -2147483647.5)   
-			) 
-		) 
-		(f32x4.extractLane 
-			(get_local  0)  
-			(i32.const  2)  
-		) 
+		(result f32)  
+		(f32x4.extract_lane 2
+			(v128.const i32 0x3f800000 0x7fffffff 0x4f000000 0xcf000000))
 	) 
 	(func 
 		(export  "func_f32x4_3")  
-		(result  f32)  
-		(local  f32x4)  
-		(set_local 
-			0 
-			(f32x4.build 
-				(f32.const  1.0)  
-				(f32.const  2147483647)  
-				(f32.const  2147483646.9)  
-				(f32.const  -2147483647.5)   
-			) 
-		) 
-		(f32x4.extractLane 
-			(get_local  0)  
-			(i32.const  3)  
-		) 
+		(result f32)  
+		(f32x4.extract_lane 3
+			(v128.const i32 0x3f800000 0x7fffffff 0x4f000000 0xcf000000))
 	) 
 ) 

BIN
test/wasm.simd/i16x8_s.wasm


+ 16 - 144
test/wasm.simd/i16x8_s.wast

@@ -7,177 +7,49 @@
 	(func 
 		(export  "func_i16x8_s_0")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)  
-			) 
-		) 
-		(i16x8.extractLane_s 
-			(get_local  0)  
-			(i32.const  0)  
-		) 
+		(i16x8.extract_lane_s 0
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF60007))
 	) 
 	(func 
 		(export  "func_i16x8_s_1")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)  
-			) 
-		) 
-		(i16x8.extractLane_s 
-			(get_local  0)  
-			(i32.const  1)  
-		) 
+		(i16x8.extract_lane_s 1
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF60007))
 	) 
 	(func 
 		(export  "func_i16x8_s_2")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)   
-			) 
-		) 
-		(i16x8.extractLane_s 
-			(get_local  0)  
-			(i32.const  2)  
-		) 
+		(i16x8.extract_lane_s 2
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF60007))
 	) 
 	(func 
 		(export  "func_i16x8_s_3")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)   
-			) 
-		) 
-		(i16x8.extractLane_s 
-			(get_local  0)  
-			(i32.const  3)  
-		) 
+		(i16x8.extract_lane_s 3
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF60007))
 	) 
 	(func 
 		(export  "func_i16x8_s_4")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)   
-			) 
-		) 
-		(i16x8.extractLane_s 
-			(get_local  0)  
-			(i32.const  4)  
-		) 
+		(i16x8.extract_lane_s 4
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF60007))
 	) 
 	(func 
 		(export  "func_i16x8_s_5")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)   
-			) 
-		) 
-		(i16x8.extractLane_s 
-			(get_local  0)  
-			(i32.const  5)  
-		) 
+		(i16x8.extract_lane_s 5
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF60007))
 	) 
 	(func 
 		(export  "func_i16x8_s_6")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)    
-			) 
-		) 
-		(i16x8.extractLane_s 
-			(get_local  0)  
-			(i32.const  6)  
-		) 
+		(i16x8.extract_lane_s 6
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF60007))
 	) 
 	(func 
 		(export  "func_i16x8_s_7")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  -10)  
-			) 
-		) 
-		(i16x8.extractLane_s 
-			(get_local  0)  
-			(i32.const  7)  
-		) 
+		(i16x8.extract_lane_s 7
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF60007))
 	) 
 ) 

BIN
test/wasm.simd/i16x8_u.wasm


+ 16 - 144
test/wasm.simd/i16x8_u.wast

@@ -7,177 +7,49 @@
 	(func 
 		(export  "func_i16x8_u_0")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  65535)  
-				(i32.const  -10) 
-			) 
-		) 
-		(i16x8.extractLane_u 
-			(get_local  0)  
-			(i32.const  0)  
-		) 
+		(i16x8.extract_lane_u 0
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF6FFFF))
 	) 
 	(func 
 		(export  "func_i16x8_u_1")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  65535)  
-				(i32.const  -10)  
-			) 
-		) 
-		(i16x8.extractLane_u 
-			(get_local  0)  
-			(i32.const  1)  
-		) 
+		(i16x8.extract_lane_u 1
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF6FFFF))
 	) 
 	(func 
 		(export  "func_i16x8_u_2")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  65535)  
-				(i32.const  -10)  
-			) 
-		) 
-		(i16x8.extractLane_u 
-			(get_local  0)  
-			(i32.const  2)  
-		) 
+		(i16x8.extract_lane_u 2
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF6FFFF))
 	) 
 	(func 
 		(export  "func_i16x8_u_3")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  65535)  
-				(i32.const  -10)   
-			) 
-		) 
-		(i16x8.extractLane_u 
-			(get_local  0)  
-			(i32.const  3)  
-		) 
+		(i16x8.extract_lane_u 3
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF6FFFF))
 	) 
 	(func 
 		(export  "func_i16x8_u_4")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  65535)  
-				(i32.const  -10)   
-			) 
-		) 
-		(i16x8.extractLane_u 
-			(get_local  0)  
-			(i32.const  4)  
-		) 
+		(i16x8.extract_lane_u 4
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF6FFFF))
 	) 
 	(func 
 		(export  "func_i16x8_u_5")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  65535)  
-				(i32.const  -10) 
-			) 
-		) 
-		(i16x8.extractLane_u 
-			(get_local  0)  
-			(i32.const  5)  
-		) 
+		(i16x8.extract_lane_u 5
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF6FFFF))
 	) 
 	(func 
 		(export  "func_i16x8_u_6")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  65535)  
-				(i32.const  -10)  
-			) 
-		) 
-		(i16x8.extractLane_u 
-			(get_local  0)  
-			(i32.const  6)  
-		) 
+		(i16x8.extract_lane_u 6
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF6FFFF))
 	) 
 	(func 
 		(export  "func_i16x8_u_7")  
 		(result  i32)  
-		(local  i16x8)  
-		(set_local 
-			0 
-			(i16x8.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -32768)  
-				(i32.const  0)  
-				(i32.const  32767)  
-				(i32.const  6)  
-				(i32.const  65535)  
-				(i32.const  -10) 
-			) 
-		) 
-		(i16x8.extractLane_u 
-			(get_local  0)  
-			(i32.const  7)  
-		) 
+		(i16x8.extract_lane_u 7
+			(v128.const i32 0x00020001 0x00008000 0x00067FFF 0xFFF6FFFF))
 	) 
 ) 

BIN
test/wasm.simd/i32x4.wasm


+ 12 - 44
test/wasm.simd/i32x4.wast

@@ -7,73 +7,41 @@
 	(func 
 		(export  "func_i32x4_0")  
 		(result  i32)  
-		(local  i32x4)  
+		(local  v128)  
 		(set_local 
 			0 
-			(i32x4.build 
-				(i32.const  2147483647)  
-				(i32.const  0)  
-				(i32.const  -2147483648)  
-				(i32.const  -100)  
-			) 
-		) 
-		(i32x4.extractLane 
-			(get_local  0)  
-			(i32.const  0)  
+			(v128.const i32 2147483647 0 0x80000000 0xFFFFFF9C) 
 		) 
+		(i32x4.extract_lane 0 (get_local  0)) 
 	) 
 	(func 
 		(export  "func_i32x4_1")  
 		(result  i32)  
-		(local  i32x4)  
+		(local  v128)  
 		(set_local 
 			0 
-			(i32x4.build 
-				(i32.const  2147483647)  
-				(i32.const  0)  
-				(i32.const  -2147483648)  
-				(i32.const  -100) 
-			) 
-		) 
-		(i32x4.extractLane 
-			(get_local  0)  
-			(i32.const  1)  
+			(v128.const i32 2147483647 0 0x80000000 0xFFFFFF9C) 
 		) 
+		(i32x4.extract_lane 1 (get_local  0))
 	) 
 	(func 
 		(export  "func_i32x4_2")  
 		(result  i32)  
-		(local  i32x4)  
+		(local  v128)  
 		(set_local 
 			0 
-			(i32x4.build 
-				(i32.const  2147483647)  
-				(i32.const  0)  
-				(i32.const  -2147483648)  
-				(i32.const  -100) 
-			) 
-		) 
-		(i32x4.extractLane 
-			(get_local  0)  
-			(i32.const  2)  
+			(v128.const i32 2147483647 0 0x80000000 0xFFFFFF9C) 
 		) 
+		(i32x4.extract_lane 2 (get_local  0)) 
 	) 
 	(func 
 		(export  "func_i32x4_3")  
 		(result  i32)  
-		(local  i32x4)  
+		(local  v128)  
 		(set_local 
 			0 
-			(i32x4.build 
-				(i32.const  2147483647)  
-				(i32.const  0)  
-				(i32.const  -2147483648)  
-				(i32.const  -100) 
-			) 
-		) 
-		(i32x4.extractLane 
-			(get_local  0)  
-			(i32.const  3)  
+			(v128.const i32 2147483647 0 0x80000000 0xFFFFFF9C) 
 		) 
+		(i32x4.extract_lane 3 (get_local  0)) 
 	) 
 ) 

BIN
test/wasm.simd/i8x16_s.wasm


+ 54 - 417
test/wasm.simd/i8x16_s.wast

@@ -7,481 +7,118 @@
 	(func 
 		(export  "func_i8x16_s_0")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20)  
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  0)  
-		) 
+		(i8x16.extract_lane_s 0
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
+		;;(set_local 
+		;;	0 
+		;;	(i8x16.build 
+		;;		(i32.const  1)  
+		;;		(i32.const  2)  
+		;;		(i32.const  -128)  
+		;;		(i32.const  4)  
+		;;		(i32.const  127)  
+		;;		(i32.const  6)  
+		;;		(i32.const  7)  
+		;;		(i32.const  8)  
+		;;		(i32.const  9)  
+		;;		(i32.const  10)  
+		;;		(i32.const  11)  
+		;;		(i32.const  12)  
+		;;		(i32.const  13)  
+		;;		(i32.const  14)  
+		;;		(i32.const  15)  
+		;;		(i32.const  -20)  
+		;;	) 
+		;;) 
 	) 
 	(func 
 		(export  "func_i8x16_s_1")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20)  
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  1)  
-		) 
+		(i8x16.extract_lane_s 1
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_2")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  2)  
-		) 
+		(i8x16.extract_lane_s 2
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_3")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  3)  
-		) 
+		(i8x16.extract_lane_s 3
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_4")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  4)  
-		) 
+		(i8x16.extract_lane_s 4
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_5")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  5)  
-		) 
+		(i8x16.extract_lane_s 5
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_6")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  6)  
-		) 
+		(i8x16.extract_lane_s 6
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_7")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  7)  
-		) 
+		(i8x16.extract_lane_s 7
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_8")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  8)  
-		) 
+		(i8x16.extract_lane_s 8
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_9")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  9)  
-		) 
+		(i8x16.extract_lane_s 9
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_10")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  10)  
-		) 
+		(i8x16.extract_lane_s 10
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_11")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  11)  
-		) 
+		(i8x16.extract_lane_s 11
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_12")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  12)  
-		) 
+		(i8x16.extract_lane_s 12
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_13")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  13)  
-		) 
+		(i8x16.extract_lane_s 13
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_14")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  14)  
-		) 
+		(i8x16.extract_lane_s 14
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_s_15")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  10)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_s 
-			(get_local  0)  
-			(i32.const  15)  
-		) 
-	) 
+		(i8x16.extract_lane_s 15
+			(v128.const i32 0x04800201 0x0807067F 0x0C0B0A09 0xEC0F0E0D))
+	)
 ) 

BIN
test/wasm.simd/i8x16_u.wasm


+ 33 - 417
test/wasm.simd/i8x16_u.wast

@@ -7,481 +7,97 @@
 	(func 
 		(export  "func_i8x16_u_0")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  0)  
-		) 
+		(i8x16.extract_lane_u 0
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_1")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  1)  
-		) 
+		(i8x16.extract_lane_u 1
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_2")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  2)  
-		) 
+		(i8x16.extract_lane_u 2
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_3")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  3)  
-		) 
+		(i8x16.extract_lane_u 3
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_4")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  4)  
-		) 
+		(i8x16.extract_lane_u 4
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_5")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  5)  
-		) 
+		(i8x16.extract_lane_u 5
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_6")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  6)  
-		) 
+		(i8x16.extract_lane_u 6
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_7")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  7)  
-		) 
+		(i8x16.extract_lane_u 7
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_8")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  8)  
-		) 
+		(i8x16.extract_lane_u 8
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_9")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  9)  
-		) 
+		(i8x16.extract_lane_u 9
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_10")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  10)  
-		) 
+		(i8x16.extract_lane_u 10
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_11")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  11)  
-		) 
+		(i8x16.extract_lane_u 11
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_12")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  12)  
-		) 
+		(i8x16.extract_lane_u 12
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_13")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  13)  
-		) 
+		(i8x16.extract_lane_u 13
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_14")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  14)  
-		) 
+		(i8x16.extract_lane_u 14
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
 	) 
 	(func 
 		(export  "func_i8x16_u_15")  
 		(result  i32)  
-		(local  i8x16)  
-		(set_local 
-			0 
-			(i8x16.build 
-				(i32.const  1)  
-				(i32.const  2)  
-				(i32.const  -128)  
-				(i32.const  4)  
-				(i32.const  127)  
-				(i32.const  6)  
-				(i32.const  7)  
-				(i32.const  8)  
-				(i32.const  9)  
-				(i32.const  255)  
-				(i32.const  11)  
-				(i32.const  12)  
-				(i32.const  13)  
-				(i32.const  14)  
-				(i32.const  15)  
-				(i32.const  -20) 
-			) 
-		) 
-		(i8x16.extractLane_u 
-			(get_local  0)  
-			(i32.const  15)  
-		) 
-	) 
+		(i8x16.extract_lane_u 15
+			(v128.const i32 0x04800201 0x0807067F 0x0C0BFF09 0xEC0F0E0D))
+	)
 ) 

+ 40 - 40
test/wasm.simd/int64x2.wast

@@ -7,80 +7,80 @@
   (import "dummy" "memory" (memory 1))
 
     (func (export "i16x8_anytrue") (result i32)
-        (i64x2.any_true (m128.load offset=0 align=4 (i32.const 0)))
+        (i64x2.any_true (v128.load offset=0 align=4 (i32.const 0)))
     )
 
     (func (export "i16x8_alltrue") (result i32)
-        (i64x2.all_true (m128.load offset=0 align=4 (i32.const 0)))
+        (i64x2.all_true (v128.load offset=0 align=4 (i32.const 0)))
     )
 
-    (func (export "func_i64x2_extractlane_0") (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (i64.store offset=0 (i32.const 8) (i64x2.extract_lane lane=0 (get_local $v1)))
+    (func (export "func_i64x2_extractlane_0") (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (i64.store offset=0 (i32.const 8) (i64x2.extract_lane 0 (get_local $v1)))
     )
 
-    (func (export "func_i64x2_extractlane_1") (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (i64.store offset=0 (i32.const 0) (i64x2.extract_lane lane=1 (get_local $v1)))
+    (func (export "func_i64x2_extractlane_1") (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (i64.store offset=0 (i32.const 0) (i64x2.extract_lane 1 (get_local $v1)))
     )
 
-    (func (export "func_i64x2_replacelane_0") (local $v1 m128) (local $val i64)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
+    (func (export "func_i64x2_replacelane_0") (local $v1 v128) (local $val i64)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
         (set_local $val (i64.load offset=16 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (i64x2.replace_lane lane=0 (get_local $v1) (get_local $val)))
+        (v128.store offset=0 align=4 (i32.const 0) (i64x2.replace_lane 0 (get_local $v1) (get_local $val)))
     )
 
-    (func (export "func_i64x2_replacelane_1") (local $v1 m128) (local $val i64)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
+    (func (export "func_i64x2_replacelane_1") (local $v1 v128) (local $val i64)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
         (set_local $val (i64.load offset=16 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (i64x2.replace_lane lane=1 (get_local $v1) (get_local $val)))
+        (v128.store offset=0 align=4 (i32.const 0) (i64x2.replace_lane 1 (get_local $v1) (get_local $val)))
     )
 
-    (func (export "func_i64x2_splat") (local $v1 i64) (local $v2 m128)
+    (func (export "func_i64x2_splat") (local $v1 i64) (local $v2 v128)
         (set_local $v1 (i64.load offset=0 align=4 (i32.const 0)))
         (set_local $v2 (i64x2.splat (get_local $v1)))
-        (m128.store offset=0 (i32.const 0) (get_local $v2))
+        (v128.store offset=0 align=4 (i32.const 0) (get_local $v2))
     )
 
-    (func (export "func_i64x2_add") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i64x2.add (get_local $v1) (get_local $v2)))
+    (func (export "func_i64x2_add") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i64x2.add (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i64x2_sub") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i64x2.sub (get_local $v1) (get_local $v2)))
+    (func (export "func_i64x2_sub") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i64x2.sub (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i64x2_neg") (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (i64x2.neg (get_local $v1)))
+    (func (export "func_i64x2_neg") (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (i64x2.neg (get_local $v1)))
     )
 
-    (func (export "func_i64x2_anytrue") (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
+    (func (export "func_i64x2_anytrue") (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
         (i32.store offset=0 (i32.const 0) (i64x2.any_true (get_local $v1)))
     )
 
-    (func (export "func_i64x2_alltrue") (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
+    (func (export "func_i64x2_alltrue") (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
         (i32.store offset=0 (i32.const 0) (i64x2.all_true (get_local $v1)))
     )
 
-    (func (export "func_i64x2_shl") (param $shamt i32) (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (i64x2.shl (get_local $v1) (get_local $shamt)))
+    (func (export "func_i64x2_shl") (param $shamt i32) (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (i64x2.shl (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_i64x2_shr_s") (param $shamt i32) (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (i64x2.shr_s (get_local $v1) (get_local $shamt)))
+    (func (export "func_i64x2_shr_s") (param $shamt i32) (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (i64x2.shr_s (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_i64x2_shr_u") (param $shamt i32) (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (i64x2.shr_u (get_local $v1) (get_local $shamt)))
+    (func (export "func_i64x2_shr_u") (param $shamt i32) (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (i64x2.shr_u (get_local $v1) (get_local $shamt)))
     )
 )

+ 35 - 35
test/wasm.simd/loads.wast

@@ -7,48 +7,48 @@
     (import "dummy" "memory" (memory 1))
 
     (func (export "m128_load4") (param $x i32) (result i32)
-        (i32x4.extract_lane lane=0 (m128.load offset=0 align=4 (get_local $x)))
+        (i32x4.extract_lane 0 (v128.load offset=0 align=4 (get_local $x)))
     )
 
     (func (export "m128_load4_offset") (param $x i32) (result i32)
-        (i32x4.extract_lane lane=0 (m128.load offset=16 align=4 (get_local $x)))
+        (i32x4.extract_lane 0 (v128.load offset=16 align=4 (get_local $x)))
     )
 
-    (func (export "m128_load_test") (param $x i32) (local m128)
-        (set_local 1 (m128.load offset=0 align=4 (get_local $x)))
-        (i32.store offset=0 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=0 (get_local 1))))
-        (set_local 1 (m128.load offset=0 align=4 (get_local $x)))
-        (i32.store offset=4 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=1 (get_local 1))))
-        (set_local 1 (m128.load offset=0 align=4 (get_local $x)))
-        (i32.store offset=8 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=2 (get_local 1))))
-        (set_local 1 (m128.load offset=0 align=4 (get_local $x)))
-        (i32.store offset=12 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=3 (get_local 1))))
+    (func (export "m128_load_test") (param $x i32) (local v128)
+        (set_local 1 (v128.load offset=0 align=4 (get_local $x)))
+        (i32.store offset=0 (get_local $x) (i32.popcnt (i32x4.extract_lane 0 (get_local 1))))
+        (set_local 1 (v128.load offset=0 align=4 (get_local $x)))
+        (i32.store offset=4 (get_local $x) (i32.popcnt (i32x4.extract_lane 1 (get_local 1))))
+        (set_local 1 (v128.load offset=0 align=4 (get_local $x)))
+        (i32.store offset=8 (get_local $x) (i32.popcnt (i32x4.extract_lane 2 (get_local 1))))
+        (set_local 1 (v128.load offset=0 align=4 (get_local $x)))
+        (i32.store offset=12 (get_local $x) (i32.popcnt (i32x4.extract_lane 3 (get_local 1))))
         ;;
-        (set_local 1 (m128.load offset=20 align=4 (get_local $x)))
-        (i32.store offset=20 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=0 (get_local 1))))
-        (set_local 1 (m128.load offset=20 align=4 (get_local $x)))
-        (i32.store offset=24 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=1 (get_local 1))))
-        (set_local 1 (m128.load offset=20 align=4 (get_local $x)))
-        (i32.store offset=28 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=2 (get_local 1))))
-        (set_local 1 (m128.load offset=20 align=4 (get_local $x)))
-        (i32.store offset=32 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=3 (get_local 1))))
+        (set_local 1 (v128.load offset=20 align=4 (get_local $x)))
+        (i32.store offset=20 (get_local $x) (i32.popcnt (i32x4.extract_lane 0 (get_local 1))))
+        (set_local 1 (v128.load offset=20 align=4 (get_local $x)))
+        (i32.store offset=24 (get_local $x) (i32.popcnt (i32x4.extract_lane 1 (get_local 1))))
+        (set_local 1 (v128.load offset=20 align=4 (get_local $x)))
+        (i32.store offset=28 (get_local $x) (i32.popcnt (i32x4.extract_lane 2 (get_local 1))))
+        (set_local 1 (v128.load offset=20 align=4 (get_local $x)))
+        (i32.store offset=32 (get_local $x) (i32.popcnt (i32x4.extract_lane 3 (get_local 1))))
         ;;
-        (set_local 1 (m128.load offset=44 align=4 (get_local $x)))
-        (i32.store offset=44 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=0 (get_local 1))))
-        (set_local 1 (m128.load offset=44 align=4 (get_local $x)))
-        (i32.store offset=48 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=1 (get_local 1))))
-        (set_local 1 (m128.load offset=44 align=4 (get_local $x)))
-        (i32.store offset=52 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=2 (get_local 1))))
-        (set_local 1 (m128.load offset=44 align=4 (get_local $x)))
-        (i32.store offset=56 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=3 (get_local 1))))
+        (set_local 1 (v128.load offset=44 align=4 (get_local $x)))
+        (i32.store offset=44 (get_local $x) (i32.popcnt (i32x4.extract_lane 0 (get_local 1))))
+        (set_local 1 (v128.load offset=44 align=4 (get_local $x)))
+        (i32.store offset=48 (get_local $x) (i32.popcnt (i32x4.extract_lane 1 (get_local 1))))
+        (set_local 1 (v128.load offset=44 align=4 (get_local $x)))
+        (i32.store offset=52 (get_local $x) (i32.popcnt (i32x4.extract_lane 2 (get_local 1))))
+        (set_local 1 (v128.load offset=44 align=4 (get_local $x)))
+        (i32.store offset=56 (get_local $x) (i32.popcnt (i32x4.extract_lane 3 (get_local 1))))
         ;;
-        (set_local 1 (m128.load offset=68 align=4 (get_local $x)))
-        (i32.store offset=68 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=0 (get_local 1))))
-        (set_local 1 (m128.load offset=68 align=4 (get_local $x)))
-        (i32.store offset=72 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=1 (get_local 1))))
-        (set_local 1 (m128.load offset=68 align=4 (get_local $x)))
-        (i32.store offset=76 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=2 (get_local 1))))
-        (set_local 1 (m128.load offset=68 align=4 (get_local $x)))
-        (i32.store offset=80 (get_local $x) (i32.popcnt (i32x4.extract_lane lane=3 (get_local 1))))
+        (set_local 1 (v128.load offset=68 align=4 (get_local $x)))
+        (i32.store offset=68 (get_local $x) (i32.popcnt (i32x4.extract_lane 0 (get_local 1))))
+        (set_local 1 (v128.load offset=68 align=4 (get_local $x)))
+        (i32.store offset=72 (get_local $x) (i32.popcnt (i32x4.extract_lane 1 (get_local 1))))
+        (set_local 1 (v128.load offset=68 align=4 (get_local $x)))
+        (i32.store offset=76 (get_local $x) (i32.popcnt (i32x4.extract_lane 2 (get_local 1))))
+        (set_local 1 (v128.load offset=68 align=4 (get_local $x)))
+        (i32.store offset=80 (get_local $x) (i32.popcnt (i32x4.extract_lane 3 (get_local 1))))
     )
 )

+ 21 - 21
test/wasm.simd/logical.wast

@@ -6,51 +6,51 @@
 (module
     (import "dummy" "memory" (memory 1))
 
-            (func (export "m128_and") (local $v1 m128) (local $v2 m128)       
-                (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-                (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-                (m128.store offset=0 (i32.const 0) (m128.and (get_local $v1) (get_local $v2))) 
+            (func (export "m128_and") (local $v1 v128) (local $v2 v128)       
+                (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+                (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+                (v128.store offset=0 align=4 (i32.const 0) (v128.and (get_local $v1) (get_local $v2))) 
             )
 
-            (func (export "m128_or") (local $v1 m128) (local $v2 m128)       
-                (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-                (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-                (m128.store offset=0 (i32.const 0) (m128.or (get_local $v1) (get_local $v2))) 
+            (func (export "m128_or") (local $v1 v128) (local $v2 v128)       
+                (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+                (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+                (v128.store offset=0 align=4 (i32.const 0) (v128.or (get_local $v1) (get_local $v2))) 
             )
 
-            (func (export "m128_xor") (local $v1 m128) (local $v2 m128)       
-                (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-                (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-                (m128.store offset=0 (i32.const 0) (m128.xor (get_local $v1) (get_local $v2))) 
+            (func (export "m128_xor") (local $v1 v128) (local $v2 v128)       
+                (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+                (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+                (v128.store offset=0 align=4 (i32.const 0) (v128.xor (get_local $v1) (get_local $v2))) 
             )
 
-            (func (export "m128_not") (local $v1 m128) 
-                (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-                (m128.store offset=0 (i32.const 0) (m128.not (get_local $v1))) 
+            (func (export "m128_not") (local $v1 v128) 
+                (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+                (v128.store offset=0 align=4 (i32.const 0) (v128.not (get_local $v1))) 
             )
 
             (func (export "i32x4_anytrue") (result i32)
-                (i32x4.any_true (m128.load offset=0 align=4 (i32.const 0)))
+                (i32x4.any_true (v128.load offset=0 align=4 (i32.const 0)))
             )
             
             (func (export "i32x4_alltrue") (result i32)
-                (i32x4.all_true (m128.load offset=0 align=4 (i32.const 0)))
+                (i32x4.all_true (v128.load offset=0 align=4 (i32.const 0)))
             )
             
             (func (export "i16x8_anytrue") (result i32)
-                (i16x8.any_true (m128.load offset=0 align=4 (i32.const 0)))
+                (i16x8.any_true (v128.load offset=0 align=4 (i32.const 0)))
             )
             
             (func (export "i16x8_alltrue") (result i32)
-                (i16x8.all_true (m128.load offset=0 align=4 (i32.const 0)))
+                (i16x8.all_true (v128.load offset=0 align=4 (i32.const 0)))
             )
             
             (func (export "i8x16_anytrue") (result i32)
-                (i8x16.any_true (m128.load offset=0 align=4 (i32.const 0)))
+                (i8x16.any_true (v128.load offset=0 align=4 (i32.const 0)))
             )
             
             (func (export "i8x16_alltrue") (result i32)
-                (i8x16.all_true (m128.load offset=0 align=4 (i32.const 0)))
+                (i8x16.all_true (v128.load offset=0 align=4 (i32.const 0)))
             )
             
 )

+ 205 - 217
test/wasm.simd/math.wast

@@ -7,328 +7,316 @@
   (import "dummy" "memory" (memory 1))
 
     (func (export "func_i8x16_shuffle_test0")
-        (local $v1 m128) (local $v2 m128)
+        (local $v1 v128) (local $v2 v128)
 
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
 
-        (m128.store offset=0 (i32.const 0)
-            (v8x16.shuffle
-                (get_local $v1) (get_local $v2)
-                (i32.const 31) (i32.const 30) (i32.const 29) (i32.const 28)
-                (i32.const 1) (i32.const 17) (i32.const 2) (i32.const 19)
-                (i32.const 3) (i32.const 4) (i32.const 5) (i32.const 6)
-                (i32.const 21) (i32.const 20) (i32.const 11) (i32.const 10)
-            )
-        )
+        i32.const 0
+        get_local $v1
+        get_local $v2
+        v8x16.shuffle  0x1c1d1e1f 0x13021101 0x06050403 0x0a0b1415 
+        v128.store offset=0 align=4
     )
 
     (func (export "func_i8x16_shuffle_test1")
-        (local $v1 m128) (local $v2 m128)
+        (local $v1 v128) (local $v2 v128)
 
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
 
-        (m128.store offset=0 (i32.const 0)
-            (v8x16.shuffle
-                (get_local $v1) (get_local $v2)
-                (i32.const 16) (i32.const 17) (i32.const 18) (i32.const 19)
-                (i32.const 20) (i32.const 21) (i32.const 22) (i32.const 23)
-                (i32.const 0) (i32.const 1) (i32.const 2) (i32.const 3)
-                (i32.const 4) (i32.const 5) (i32.const 6) (i32.const 7)
-            )
-        )
+        i32.const 0
+        get_local $v1
+        get_local $v2
+        v8x16.shuffle  0x13121110 0x17161514 0x03020100 0x07060504 
+        v128.store align=4
     )
 
     (func (export "func_i8x16_shuffle_test2")
-        (local $v1 m128) (local $v2 m128)
+        (local $v1 v128) (local $v2 v128)
 
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
 
-        (m128.store offset=0 (i32.const 0)
-            (v8x16.shuffle
-                (get_local $v1) (get_local $v2)
-                (i32.const 0) (i32.const 17) (i32.const 1) (i32.const 18)
-                (i32.const 2) (i32.const 19) (i32.const 3) (i32.const 20)
-                (i32.const 4) (i32.const 21) (i32.const 5) (i32.const 22)
-                (i32.const 6) (i32.const 23) (i32.const 7) (i32.const 24)
-            )
-        )
+        i32.const 0
+        get_local 0
+        get_local 1
+        v8x16.shuffle  0x12011100 0x14031302 0x16051504 0x18071706 
+        v128.store align=4
     )
 
-    (func (export "func_i32x4_bitselect") (local $v1 m128) (local $v2 m128) (local $mask m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (set_local $mask (m128.load offset=0 align=4 (i32.const 32)))
-        (m128.store offset=0 (i32.const 0) (m128.bitselect (get_local $v1) (get_local $v2) (get_local $mask)))
+    (func (export "func_i32x4_bitselect") (local $v1 v128) (local $v2 v128) (local $mask v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (set_local $mask (v128.load offset=0 align=4 (i32.const 32)))
+        (v128.store offset=0 align=4 (i32.const 0) (v128.bitselect (get_local $v1) (get_local $v2) (get_local $mask)))
     )
 
-    (func (export "func_i32x4_add") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i32x4.add (get_local $v1) (get_local $v2)))
+    (func (export "func_i32x4_add") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i32x4.add (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i32x4_sub") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i32x4.sub (get_local $v1) (get_local $v2)))
+    (func (export "func_i32x4_sub") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i32x4.sub (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i32x4_mul") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i32x4.mul (get_local $v1) (get_local $v2)))
+    (func (export "func_i32x4_mul") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i32x4.mul (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i32x4_shl") (param $shamt i32) (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i32x4.shl (get_local $v1) (get_local $shamt)))
+    (func (export "func_i32x4_shl") (param $shamt i32) (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i32x4.shl (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_i32x4_shr_s") (param $shamt i32) (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i32x4.shr_s (get_local $v1) (get_local $shamt)))
+    (func (export "func_i32x4_shr_s") (param $shamt i32) (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i32x4.shr_s (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_i32x4_shr_u") (param $shamt i32) (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i32x4.shr_u (get_local $v1) (get_local $shamt)))
+    (func (export "func_i32x4_shr_u") (param $shamt i32) (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i32x4.shr_u (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_i16x8_add") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i16x8.add (get_local $v1) (get_local $v2)))
+    (func (export "func_i16x8_add") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i16x8.add (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i16x8_addsaturate_s") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i16x8.addsaturate_s (get_local $v1) (get_local $v2)))
+    (func (export "func_i16x8_addsaturate_s") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i16x8.add_saturate_s (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i16x8_addsaturate_u") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i16x8.addsaturate_u (get_local $v1) (get_local $v2)))
+    (func (export "func_i16x8_addsaturate_u") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i16x8.add_saturate_u (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i16x8_sub") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i16x8.sub (get_local $v1) (get_local $v2)))
+    (func (export "func_i16x8_sub") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i16x8.sub (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i16x8_subsaturate_s") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i16x8.subsaturate_s (get_local $v1) (get_local $v2)))
+    (func (export "func_i16x8_subsaturate_s") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i16x8.sub_saturate_s (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i16x8_subsaturate_u") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i16x8.subsaturate_u (get_local $v1) (get_local $v2)))
+    (func (export "func_i16x8_subsaturate_u") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i16x8.sub_saturate_u (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i16x8_mul") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i16x8.mul (get_local $v1) (get_local $v2)))
+    (func (export "func_i16x8_mul") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i16x8.mul (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i16x8_shl") (param $shamt i32) (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i16x8.shl (get_local $v1) (get_local $shamt)))
+    (func (export "func_i16x8_shl") (param $shamt i32) (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i16x8.shl (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_i16x8_shr_s") (param $shamt i32) (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i16x8.shr_s (get_local $v1) (get_local $shamt)))
+    (func (export "func_i16x8_shr_s") (param $shamt i32) (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i16x8.shr_s (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_i16x8_shr_u") (param $shamt i32) (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i16x8.shr_u (get_local $v1) (get_local $shamt)))
+    (func (export "func_i16x8_shr_u") (param $shamt i32) (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i16x8.shr_u (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_i8x16_add") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i8x16.add (get_local $v1) (get_local $v2)))
+    (func (export "func_i8x16_add") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i8x16.add (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i8x16_addsaturate_s") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i8x16.addsaturate_s (get_local $v1) (get_local $v2)))
+    (func (export "func_i8x16_addsaturate_s") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i8x16.add_saturate_s (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i8x16_addsaturate_u") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i8x16.addsaturate_u (get_local $v1) (get_local $v2)))
+    (func (export "func_i8x16_addsaturate_u") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i8x16.add_saturate_u (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i8x16_sub") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i8x16.sub (get_local $v1) (get_local $v2)))
+    (func (export "func_i8x16_sub") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i8x16.sub (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i8x16_subsaturate_s") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i8x16.subsaturate_s (get_local $v1) (get_local $v2)))
+    (func (export "func_i8x16_subsaturate_s") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i8x16.sub_saturate_s (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i8x16_subsaturate_u") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i8x16.subsaturate_u (get_local $v1) (get_local $v2)))
+    (func (export "func_i8x16_subsaturate_u") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i8x16.sub_saturate_u (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i8x16_mul") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i8x16.mul (get_local $v1) (get_local $v2)))
+    (func (export "func_i8x16_mul") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i8x16.mul (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_i8x16_shl") (param $shamt i32) (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i8x16.shl (get_local $v1) (get_local $shamt)))
+    (func (export "func_i8x16_shl") (param $shamt i32) (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i8x16.shl (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_i8x16_shr_s") (param $shamt i32) (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i8x16.shr_s (get_local $v1) (get_local $shamt)))
+    (func (export "func_i8x16_shr_s") (param $shamt i32) (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i8x16.shr_s (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_i8x16_shr_u") (param $shamt i32) (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (i8x16.shr_u (get_local $v1) (get_local $shamt)))
+    (func (export "func_i8x16_shr_u") (param $shamt i32) (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (i8x16.shr_u (get_local $v1) (get_local $shamt)))
     )
 
-    (func (export "func_f32x4_add") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f32x4.add (get_local $v1) (get_local $v2)))
+    (func (export "func_f32x4_add") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f32x4.add (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f32x4_sub") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f32x4.sub (get_local $v1) (get_local $v2)))
+    (func (export "func_f32x4_sub") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f32x4.sub (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f32x4_mul") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f32x4.mul (get_local $v1) (get_local $v2)))
+    (func (export "func_f32x4_mul") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f32x4.mul (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f32x4_div") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f32x4.div (get_local $v1) (get_local $v2)))
+    (func (export "func_f32x4_div") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f32x4.div (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f32x4_min") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f32x4.min (get_local $v1) (get_local $v2)))
+    (func (export "func_f32x4_min") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f32x4.min (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f32x4_max") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f32x4.max (get_local $v1) (get_local $v2)))
+    (func (export "func_f32x4_max") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f32x4.max (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f32x4_abs")  (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (f32x4.abs (get_local $v1)))
+    (func (export "func_f32x4_abs")  (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (f32x4.abs (get_local $v1)))
     )
 
-    (func (export "func_f32x4_sqrt")  (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (f32x4.sqrt (get_local $v1)))
+    (func (export "func_f32x4_sqrt")  (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (f32x4.sqrt (get_local $v1)))
     )
 
-    (func (export "func_f64x2_add") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f64x2.add (get_local $v1) (get_local $v2)))
+    (func (export "func_f64x2_add") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f64x2.add (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f64x2_sub") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f64x2.sub (get_local $v1) (get_local $v2)))
+    (func (export "func_f64x2_sub") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f64x2.sub (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f64x2_mul") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f64x2.mul (get_local $v1) (get_local $v2)))
+    (func (export "func_f64x2_mul") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f64x2.mul (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f64x2_div") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f64x2.div (get_local $v1) (get_local $v2)))
+    (func (export "func_f64x2_div") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f64x2.div (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f64x2_min") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f64x2.min (get_local $v1) (get_local $v2)))
+    (func (export "func_f64x2_min") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f64x2.min (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f64x2_max") (local $v1 m128) (local $v2 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (set_local $v2 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 (i32.const 0) (f64x2.max (get_local $v1) (get_local $v2)))
+    (func (export "func_f64x2_max") (local $v1 v128) (local $v2 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (set_local $v2 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (i32.const 0) (f64x2.max (get_local $v1) (get_local $v2)))
     )
 
-    (func (export "func_f64x2_abs")  (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (f64x2.abs (get_local $v1)))
+    (func (export "func_f64x2_abs")  (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (f64x2.abs (get_local $v1)))
     )
 
-    (func (export "func_f64x2_sqrt")  (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (f64x2.sqrt (get_local $v1)))
+    (func (export "func_f64x2_sqrt")  (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (f64x2.sqrt (get_local $v1)))
     )
 
-    (func (export "func_i64x2_trunc_s")  (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (i64x2.trunc_s (get_local $v1)))
+    (func (export "func_i64x2_trunc_s")  (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (i64x2.trunc_s/f64x2:sat (get_local $v1)))
     )
 
-    (func (export "func_i64x2_trunc_u")  (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (i64x2.trunc_u (get_local $v1)))
+    (func (export "func_i64x2_trunc_u")  (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (i64x2.trunc_u/f64x2:sat (get_local $v1)))
     )
 
-    (func (export "func_f64x2_convert_s")  (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (f64x2.convert_s (get_local $v1)))
+    (func (export "func_f64x2_convert_s")  (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (f64x2.convert_s/i64x2 (get_local $v1)))
     )
 
-    (func (export "func_f64x2_convert_u")  (local $v1 m128)
-        (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-        (m128.store offset=0 (i32.const 0) (f64x2.convert_u (get_local $v1)))
+    (func (export "func_f64x2_convert_u")  (local $v1 v128)
+        (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+        (v128.store offset=0 align=4 (i32.const 0) (f64x2.convert_u/i64x2 (get_local $v1)))
     )
 )

+ 15 - 15
test/wasm.simd/neg.wast

@@ -6,33 +6,33 @@
 (module
     (import "dummy" "memory" (memory 1))
 
-    (func (export "i32x4_neg") (param i32 i32) (local m128)
-        (set_local 2 (m128.load offset=0 align=4 (get_local 0)))
+    (func (export "i32x4_neg") (param i32 i32) (local v128)
+        (set_local 2 (v128.load offset=0 align=4 (get_local 0)))
         (set_local 2 (i32x4.neg (get_local 2)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 2))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 2))
     )
 
-    (func (export "i16x8_neg") (param i32 i32) (local m128)
-        (set_local 2 (m128.load offset=0 align=4 (get_local 0)))
+    (func (export "i16x8_neg") (param i32 i32) (local v128)
+        (set_local 2 (v128.load offset=0 align=4 (get_local 0)))
         (set_local 2 (i16x8.neg (get_local 2)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 2))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 2))
     )
 
-    (func (export "i8x16_neg") (param i32 i32) (local m128)
-        (set_local 2 (m128.load offset=0 align=4 (get_local 0)))
+    (func (export "i8x16_neg") (param i32 i32) (local v128)
+        (set_local 2 (v128.load offset=0 align=4 (get_local 0)))
         (set_local 2 (i8x16.neg (get_local 2)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 2))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 2))
     )
 
-    (func (export "f32x4_neg") (param i32 f32) (local m128)
-        (set_local 2 (m128.load offset=0 align=4 (get_local 0)))
+    (func (export "f32x4_neg") (param i32 f32) (local v128)
+        (set_local 2 (v128.load offset=0 align=4 (get_local 0)))
         (set_local 2 (f32x4.neg (get_local 2)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 2))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 2))
     )
 
-    (func (export "f64x2_neg") (param i32 f32) (local m128)
-        (set_local 2 (m128.load offset=0 align=4 (get_local 0)))
+    (func (export "f64x2_neg") (param i32 f32) (local v128)
+        (set_local 2 (v128.load offset=0 align=4 (get_local 0)))
         (set_local 2 (f64x2.neg (get_local 2)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 2))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 2))
     )
 )

+ 102 - 102
test/wasm.simd/replace.wast

@@ -6,207 +6,207 @@
 (module
     (import "dummy" "memory" (memory 1))
 
-        (func (export "i32x4_replace0") (param i32 i32) (local m128)
+        (func (export "i32x4_replace0") (param i32 i32) (local v128)
             (set_local 2 (i32x4.splat (get_local 0)))
-            (set_local 2 (i32x4.replace_lane lane=0 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i32x4.replace_lane 0 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i32x4_replace1") (param i32 i32) (local m128)
+        (func (export "i32x4_replace1") (param i32 i32) (local v128)
             (set_local 2 (i32x4.splat (get_local 0)))
-            (set_local 2 (i32x4.replace_lane lane=1 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i32x4.replace_lane 1 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i32x4_replace2") (param i32 i32) (local m128)
+        (func (export "i32x4_replace2") (param i32 i32) (local v128)
             (set_local 2 (i32x4.splat (get_local 0)))
-            (set_local 2 (i32x4.replace_lane lane=2 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i32x4.replace_lane 2 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i32x4_replace3") (param i32 i32) (local m128)
+        (func (export "i32x4_replace3") (param i32 i32) (local v128)
             (set_local 2 (i32x4.splat (get_local 0)))
-            (set_local 2 (i32x4.replace_lane lane=3 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i32x4.replace_lane 3 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i16x8_replace0") (param i32 i32) (local m128)
+        (func (export "i16x8_replace0") (param i32 i32) (local v128)
             (set_local 2 (i16x8.splat (get_local 0)))
-            (set_local 2 (i16x8.replace_lane lane=0 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i16x8.replace_lane 0 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i16x8_replace1") (param i32 i32) (local m128)
+        (func (export "i16x8_replace1") (param i32 i32) (local v128)
             (set_local 2 (i16x8.splat (get_local 0)))
-            (set_local 2 (i16x8.replace_lane lane=1 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i16x8.replace_lane 1 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i16x8_replace2") (param i32 i32) (local m128)
+        (func (export "i16x8_replace2") (param i32 i32) (local v128)
             (set_local 2 (i16x8.splat (get_local 0)))
-            (set_local 2 (i16x8.replace_lane lane=2 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i16x8.replace_lane 2 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i16x8_replace3") (param i32 i32) (local m128)
+        (func (export "i16x8_replace3") (param i32 i32) (local v128)
             (set_local 2 (i16x8.splat (get_local 0)))
-            (set_local 2 (i16x8.replace_lane lane=3 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i16x8.replace_lane 3 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i16x8_replace4") (param i32 i32) (local m128)
+        (func (export "i16x8_replace4") (param i32 i32) (local v128)
             (set_local 2 (i16x8.splat (get_local 0)))
-            (set_local 2 (i16x8.replace_lane lane=4 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i16x8.replace_lane 4 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i16x8_replace5") (param i32 i32) (local m128)
+        (func (export "i16x8_replace5") (param i32 i32) (local v128)
             (set_local 2 (i16x8.splat (get_local 0)))
-            (set_local 2 (i16x8.replace_lane lane=5 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i16x8.replace_lane 5 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i16x8_replace6") (param i32 i32) (local m128)
+        (func (export "i16x8_replace6") (param i32 i32) (local v128)
             (set_local 2 (i16x8.splat (get_local 0)))
-            (set_local 2 (i16x8.replace_lane lane=6 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i16x8.replace_lane 6 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i16x8_replace7") (param i32 i32) (local m128)
+        (func (export "i16x8_replace7") (param i32 i32) (local v128)
             (set_local 2 (i16x8.splat (get_local 0)))
-            (set_local 2 (i16x8.replace_lane lane=7 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i16x8.replace_lane 7 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace0") (param i32 i32) (local m128)
+        (func (export "i8x16_replace0") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=0 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 0 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace1") (param i32 i32) (local m128)
+        (func (export "i8x16_replace1") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=1 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 1 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace2") (param i32 i32) (local m128)
+        (func (export "i8x16_replace2") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=2 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 2 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace3") (param i32 i32) (local m128)
+        (func (export "i8x16_replace3") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=3 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 3 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace4") (param i32 i32) (local m128)
+        (func (export "i8x16_replace4") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=4 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 4 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace5") (param i32 i32) (local m128)
+        (func (export "i8x16_replace5") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=5 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 5 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace6") (param i32 i32) (local m128)
+        (func (export "i8x16_replace6") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=6 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 6 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace7") (param i32 i32) (local m128)
+        (func (export "i8x16_replace7") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=7 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 7 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace8") (param i32 i32) (local m128)
+        (func (export "i8x16_replace8") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=8 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 8 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace9") (param i32 i32) (local m128)
+        (func (export "i8x16_replace9") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=9 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 9 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace10") (param i32 i32) (local m128)
+        (func (export "i8x16_replace10") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=10 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 10 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace11") (param i32 i32) (local m128)
+        (func (export "i8x16_replace11") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=11 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 11 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace12") (param i32 i32) (local m128)
+        (func (export "i8x16_replace12") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=12 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 12 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace13") (param i32 i32) (local m128)
+        (func (export "i8x16_replace13") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=13 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 13 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace14") (param i32 i32) (local m128)
+        (func (export "i8x16_replace14") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=14 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 14 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "i8x16_replace15") (param i32 i32) (local m128)
+        (func (export "i8x16_replace15") (param i32 i32) (local v128)
             (set_local 2 (i8x16.splat (get_local 0)))
-            (set_local 2 (i8x16.replace_lane lane=15 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (i8x16.replace_lane 15 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "f32x4_replace0") (param f32 f32) (local m128)
+        (func (export "f32x4_replace0") (param f32 f32) (local v128)
             (set_local 2 (f32x4.splat (get_local 0)))
-            (set_local 2 (f32x4.replace_lane lane=0 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (f32x4.replace_lane 0 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "f32x4_replace1") (param f32 f32) (local m128)
+        (func (export "f32x4_replace1") (param f32 f32) (local v128)
             (set_local 2 (f32x4.splat (get_local 0)))
-            (set_local 2 (f32x4.replace_lane lane=1 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (f32x4.replace_lane 1 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "f32x4_replace2") (param f32 f32) (local m128)
+        (func (export "f32x4_replace2") (param f32 f32) (local v128)
             (set_local 2 (f32x4.splat (get_local 0)))
-            (set_local 2 (f32x4.replace_lane lane=2 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (f32x4.replace_lane 2 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "f32x4_replace3") (param f32 f32) (local m128)
+        (func (export "f32x4_replace3") (param f32 f32) (local v128)
             (set_local 2 (f32x4.splat (get_local 0)))
-            (set_local 2 (f32x4.replace_lane lane=3 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (f32x4.replace_lane 3 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "f64x2_replace0") (param f64 f64) (local m128)
+        (func (export "f64x2_replace0") (param f64 f64) (local v128)
             (set_local 2 (f64x2.splat (get_local 0)))
-            (set_local 2 (f64x2.replace_lane lane=0 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (f64x2.replace_lane 0 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 
-        (func (export "f64x2_replace1") (param f64 f64) (local m128)
+        (func (export "f64x2_replace1") (param f64 f64) (local v128)
             (set_local 2 (f64x2.splat (get_local 0)))
-            (set_local 2 (f64x2.replace_lane lane=1 (get_local 2) (get_local 1)))
-            (m128.store offset=0 align=4 (i32.const 0) (get_local 2))
+            (set_local 2 (f64x2.replace_lane 1 (get_local 2) (get_local 1)))
+            (v128.store offset=0 align=4 (i32.const 0) (get_local 2))
         )
 )

+ 6 - 0
test/wasm.simd/rlexe.xml

@@ -60,4 +60,10 @@
     <compile-flags> -wasm -wasmsimd</compile-flags>
   </default>
 </test>
+<test>
+  <default>
+    <files>buildExtractTests.js</files>
+    <compile-flags> -wasm -wasmsimd</compile-flags>
+  </default>
+</test>
 </regress-exe>

+ 10 - 10
test/wasm.simd/splat.wast

@@ -6,28 +6,28 @@
 (module
     (import "dummy" "memory" (memory 1))
 
-    (func (export "i32x4_splat") (param i32 i32) (local m128)
+    (func (export "i32x4_splat") (param i32 i32) (local v128)
         (set_local 2 (i32x4.splat (get_local 1)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 2))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 2))
     )
 
-    (func (export "i16x8_splat") (param i32 i32) (local m128)
+    (func (export "i16x8_splat") (param i32 i32) (local v128)
         (set_local 2 (i16x8.splat (get_local 1)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 2))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 2))
     )
 
-    (func (export "i8x16_splat") (param i32 i32) (local m128)
+    (func (export "i8x16_splat") (param i32 i32) (local v128)
         (set_local 2 (i8x16.splat (get_local 1)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 2))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 2))
     )
 
-    (func (export "f32x4_splat") (param i32 f32) (local m128)
+    (func (export "f32x4_splat") (param i32 f32) (local v128)
         (set_local 2 (f32x4.splat (get_local 1)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 2))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 2))
     )
 
-    (func (export "f64x2_splat") (param i32 f64) (local m128)
+    (func (export "f64x2_splat") (param i32 f64) (local v128)
         (set_local 2 (f64x2.splat (get_local 1)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 2))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 2))
     )
 )

+ 6 - 6
test/wasm.simd/stores.wast

@@ -6,13 +6,13 @@
 (module
     (import "dummy" "memory" (memory 1))
 
-    (func (export "m128_store4") (param i32 i32 i32 i32 i32) (local m128)
-        (set_local 5 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=0 align=4 (get_local 0) (get_local 5))
+    (func (export "m128_store4") (param i32 i32 i32 i32 i32) (local v128)
+        (set_local 5 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=0 align=4 (get_local 0) (get_local 5))
     )
 
-    (func (export "m128_store4_offset") (param i32 i32 i32 i32 i32) (local m128)
-        (set_local 5 (m128.load offset=0 align=4 (i32.const 16)))
-        (m128.store offset=16 align=4 (get_local 0) (get_local 5))
+    (func (export "m128_store4_offset") (param i32 i32 i32 i32 i32) (local v128)
+        (set_local 5 (v128.load offset=0 align=4 (i32.const 16)))
+        (v128.store offset=16 align=4 (get_local 0) (get_local 5))
     )
 )

+ 12 - 12
test/wasm.simd/truncconv.wast

@@ -6,23 +6,23 @@
 (module
     (import "dummy" "memory" (memory 1))
 
-            (func (export "i32x4_trunc_s") (local $v1 m128)
-                (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-                (m128.store offset=0 (i32.const 0) (i32x4.trunc_s (get_local $v1)))
+            (func (export "i32x4_trunc_s") (local $v1 v128)
+                (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+                (v128.store offset=0 align=4 (i32.const 0) (i32x4.trunc_s/f32x4:sat (get_local $v1)))
             )
 
-            (func (export "i32x4_trunc_u") (local $v1 m128)
-                (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-                (m128.store offset=0 (i32.const 0) (i32x4.trunc_u (get_local $v1)))
+            (func (export "i32x4_trunc_u") (local $v1 v128)
+                (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+                (v128.store offset=0 align=4 (i32.const 0) (i32x4.trunc_u/f32x4:sat (get_local $v1)))
             )
 
-            (func (export "f32x4_convert_s") (local $v1 m128)
-                (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-                (m128.store offset=0 (i32.const 0) (f32x4.convert_s (get_local $v1)))
+            (func (export "f32x4_convert_s") (local $v1 v128)
+                (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+                (v128.store offset=0 align=4 (i32.const 0) (f32x4.convert_s/i32x4 (get_local $v1)))
             )
 
-            (func (export "f32x4_convert_u") (local $v1 m128)
-                (set_local $v1 (m128.load offset=0 align=4 (i32.const 0)))
-                (m128.store offset=0 (i32.const 0) (f32x4.convert_u (get_local $v1)))
+            (func (export "f32x4_convert_u") (local $v1 v128)
+                (set_local $v1 (v128.load offset=0 align=4 (i32.const 0)))
+                (v128.store offset=0 align=4 (i32.const 0) (f32x4.convert_u/i32x4 (get_local $v1)))
             )
 )