-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathsimd_load.bin.wast
83 lines (83 loc) · 2.03 KB
/
simd_load.bin.wast
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
(module binary
"\00\61\73\6d\01\00\00\00\01\85\80\80\80\00\01\60"
"\00\01\7b\03\82\80\80\80\00\01\00\05\83\80\80\80"
"\00\01\00\01\07\8d\80\80\80\00\01\09\76\31\32\38"
"\2e\6c\6f\61\64\00\00\0a\8e\80\80\80\00\01\88\80"
"\80\80\00\00\41\00\fd\00\04\00\0b\0b\9a\80\80\80"
"\00\01\00\41\00\0b\14\00\01\02\03\04\05\06\07\08"
"\09\0a\0b\0c\0d\0e\0f\00\01\02\03"
)
(assert_return
(invoke "v128.load")
(v128.const i8x16
0x0
0x1
0x2
0x3
0x4
0x5
0x6
0x7
0x8
0x9
0xa
0xb
0xc
0xd
0xe
0xf
)
)
(assert_return
(invoke "v128.load")
(v128.const i16x8 0x100 0x302 0x504 0x706 0x908 0xb0a 0xd0c 0xf0e)
)
(assert_return
(invoke "v128.load")
(v128.const i32x4 0x302_0100 0x706_0504 0xb0a_0908 0xf0e_0d0c)
)
(assert_invalid
(module binary
"\00\61\73\6d\01\00\00\00\01\84\80\80\80\00\01\60"
"\00\00\03\82\80\80\80\00\01\00\05\83\80\80\80\00"
"\01\00\01\0a\94\80\80\80\00\01\8e\80\80\80\00\01"
"\01\7b\43\00\00\00\00\fd\00\04\00\1a\0b"
)
"type mismatch"
)
(assert_invalid
(module binary
"\00\61\73\6d\01\00\00\00\01\84\80\80\80\00\01\60"
"\00\00\03\82\80\80\80\00\01\00\05\83\80\80\80\00"
"\01\00\01\0a\95\80\80\80\00\01\8f\80\80\80\00\01"
"\01\7b\02\40\41\00\fd\00\04\00\0d\00\0b\0b"
)
"type mismatch"
)
(assert_invalid
(module binary
"\00\61\73\6d\01\00\00\00\01\84\80\80\80\00\01\60"
"\00\00\03\82\80\80\80\00\01\00\05\83\80\80\80\00"
"\01\00\01\0a\90\80\80\80\00\01\8a\80\80\80\00\01"
"\01\7b\41\00\fd\00\04\00\0b"
)
"type mismatch"
)
(assert_invalid
(module binary
"\00\61\73\6d\01\00\00\00\01\84\80\80\80\00\01\60"
"\00\00\03\82\80\80\80\00\01\00\05\83\80\80\80\00"
"\01\00\01\0a\8f\80\80\80\00\01\89\80\80\80\00\00"
"\20\02\fd\00\04\00\1a\0b"
)
"unknown local 2"
)
(assert_invalid
(module binary
"\00\61\73\6d\01\00\00\00\01\84\80\80\80\00\01\60"
"\00\00\03\82\80\80\80\00\01\00\05\83\80\80\80\00"
"\01\00\01\0a\8d\80\80\80\00\01\87\80\80\80\00\00"
"\fd\00\04\00\1a\0b"
)
"type mismatch"
)