-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathsimd_load_splat.bin.wast
963 lines (963 loc) · 22.3 KB
/
simd_load_splat.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
(module binary
"\00\61\73\6d\01\00\00\00\01\86\80\80\80\00\01\60"
"\01\7f\01\7b\03\9d\80\80\80\00\1c\00\00\00\00\00"
"\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
"\00\00\00\00\00\00\00\05\83\80\80\80\00\01\00\01"
"\07\b4\84\80\80\00\1c\10\76\31\32\38\2e\6c\6f\61"
"\64\38\5f\73\70\6c\61\74\00\00\11\76\31\32\38\2e"
"\6c\6f\61\64\31\36\5f\73\70\6c\61\74\00\01\11\76"
"\31\32\38\2e\6c\6f\61\64\33\32\5f\73\70\6c\61\74"
"\00\02\11\76\31\32\38\2e\6c\6f\61\64\36\34\5f\73"
"\70\6c\61\74\00\03\0d\76\38\78\31\36\2e\6f\66\66"
"\73\65\74\30\00\04\0c\76\38\78\31\36\2e\61\6c\69"
"\67\6e\31\00\05\14\76\38\78\31\36\2e\6f\66\66\73"
"\65\74\31\5f\61\6c\69\67\6e\31\00\06\14\76\38\78"
"\31\36\2e\6f\66\66\73\65\74\32\5f\61\6c\69\67\6e"
"\31\00\07\15\76\38\78\31\36\2e\6f\66\66\73\65\74"
"\31\35\5f\61\6c\69\67\6e\31\00\08\0d\76\31\36\78"
"\38\2e\6f\66\66\73\65\74\30\00\09\0c\76\31\36\78"
"\38\2e\61\6c\69\67\6e\31\00\0a\14\76\31\36\78\38"
"\2e\6f\66\66\73\65\74\31\5f\61\6c\69\67\6e\31\00"
"\0b\14\76\31\36\78\38\2e\6f\66\66\73\65\74\32\5f"
"\61\6c\69\67\6e\31\00\0c\15\76\31\36\78\38\2e\6f"
"\66\66\73\65\74\31\35\5f\61\6c\69\67\6e\32\00\0d"
"\0d\76\33\32\78\34\2e\6f\66\66\73\65\74\30\00\0e"
"\0c\76\33\32\78\34\2e\61\6c\69\67\6e\31\00\0f\14"
"\76\33\32\78\34\2e\6f\66\66\73\65\74\31\5f\61\6c"
"\69\67\6e\31\00\10\14\76\33\32\78\34\2e\6f\66\66"
"\73\65\74\32\5f\61\6c\69\67\6e\32\00\11\15\76\33"
"\32\78\34\2e\6f\66\66\73\65\74\31\35\5f\61\6c\69"
"\67\6e\34\00\12\0d\76\36\34\78\32\2e\6f\66\66\73"
"\65\74\30\00\13\0c\76\36\34\78\32\2e\61\6c\69\67"
"\6e\31\00\14\14\76\36\34\78\32\2e\6f\66\66\73\65"
"\74\31\5f\61\6c\69\67\6e\32\00\15\14\76\36\34\78"
"\32\2e\6f\66\66\73\65\74\32\5f\61\6c\69\67\6e\34"
"\00\16\15\76\36\34\78\32\2e\6f\66\66\73\65\74\31"
"\35\5f\61\6c\69\67\6e\38\00\17\11\76\38\78\31\36"
"\2e\6f\66\66\73\65\74\36\35\35\33\36\00\18\11\76"
"\31\36\78\38\2e\6f\66\66\73\65\74\36\35\35\33\35"
"\00\19\11\76\33\32\78\34\2e\6f\66\66\73\65\74\36"
"\35\35\33\33\00\1a\11\76\36\34\78\32\2e\6f\66\66"
"\73\65\74\36\35\35\32\39\00\1b\0a\f5\82\80\80\00"
"\1c\88\80\80\80\00\00\20\00\fd\07\00\00\0b\88\80"
"\80\80\00\00\20\00\fd\08\01\00\0b\88\80\80\80\00"
"\00\20\00\fd\09\02\00\0b\88\80\80\80\00\00\20\00"
"\fd\0a\03\00\0b\88\80\80\80\00\00\20\00\fd\07\00"
"\00\0b\88\80\80\80\00\00\20\00\fd\07\00\00\0b\88"
"\80\80\80\00\00\20\00\fd\07\00\01\0b\88\80\80\80"
"\00\00\20\00\fd\07\00\02\0b\88\80\80\80\00\00\20"
"\00\fd\07\00\0f\0b\88\80\80\80\00\00\20\00\fd\08"
"\01\00\0b\88\80\80\80\00\00\20\00\fd\08\00\00\0b"
"\88\80\80\80\00\00\20\00\fd\08\00\01\0b\88\80\80"
"\80\00\00\20\00\fd\08\00\02\0b\88\80\80\80\00\00"
"\20\00\fd\08\01\0f\0b\88\80\80\80\00\00\20\00\fd"
"\09\02\00\0b\88\80\80\80\00\00\20\00\fd\09\00\00"
"\0b\88\80\80\80\00\00\20\00\fd\09\00\01\0b\88\80"
"\80\80\00\00\20\00\fd\09\01\02\0b\88\80\80\80\00"
"\00\20\00\fd\09\02\0f\0b\88\80\80\80\00\00\20\00"
"\fd\0a\03\00\0b\88\80\80\80\00\00\20\00\fd\0a\00"
"\00\0b\88\80\80\80\00\00\20\00\fd\0a\01\01\0b\88"
"\80\80\80\00\00\20\00\fd\0a\02\02\0b\88\80\80\80"
"\00\00\20\00\fd\0a\03\0f\0b\8a\80\80\80\00\00\20"
"\00\fd\07\00\80\80\04\0b\8a\80\80\80\00\00\20\00"
"\fd\08\01\ff\ff\03\0b\8a\80\80\80\00\00\20\00\fd"
"\09\02\fd\ff\03\0b\8a\80\80\80\00\00\20\00\fd\0a"
"\03\f9\ff\03\0b\0b\ad\80\80\80\00\02\00\41\00\0b"
"\10\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e"
"\0f\00\41\f0\ff\03\0b\10\10\11\12\13\14\15\16\17"
"\18\19\1a\1b\1c\1d\1e\1f"
)
(assert_return
(invoke "v128.load8_splat" (i32.const 0x0))
(v128.const i8x16
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
)
)
(assert_return
(invoke "v128.load8_splat" (i32.const 0x1))
(v128.const i8x16
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
)
)
(assert_return
(invoke "v128.load8_splat" (i32.const 0x2))
(v128.const i8x16
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
)
)
(assert_return
(invoke "v128.load8_splat" (i32.const 0x3))
(v128.const i8x16
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
)
)
(assert_return
(invoke "v128.load8_splat" (i32.const 0xffff))
(v128.const i8x16
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
)
)
(assert_return
(invoke "v128.load16_splat" (i32.const 0x4))
(v128.const i16x8 0x504 0x504 0x504 0x504 0x504 0x504 0x504 0x504)
)
(assert_return
(invoke "v128.load16_splat" (i32.const 0x5))
(v128.const i16x8 0x605 0x605 0x605 0x605 0x605 0x605 0x605 0x605)
)
(assert_return
(invoke "v128.load16_splat" (i32.const 0x6))
(v128.const i16x8 0x706 0x706 0x706 0x706 0x706 0x706 0x706 0x706)
)
(assert_return
(invoke "v128.load16_splat" (i32.const 0x7))
(v128.const i16x8 0x807 0x807 0x807 0x807 0x807 0x807 0x807 0x807)
)
(assert_return
(invoke "v128.load16_splat" (i32.const 0xfffe))
(v128.const i16x8 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e)
)
(assert_return
(invoke "v128.load32_splat" (i32.const 0x8))
(v128.const i32x4 0xb0a_0908 0xb0a_0908 0xb0a_0908 0xb0a_0908)
)
(assert_return
(invoke "v128.load32_splat" (i32.const 0x9))
(v128.const i32x4 0xc0b_0a09 0xc0b_0a09 0xc0b_0a09 0xc0b_0a09)
)
(assert_return
(invoke "v128.load32_splat" (i32.const 0xa))
(v128.const i32x4 0xd0c_0b0a 0xd0c_0b0a 0xd0c_0b0a 0xd0c_0b0a)
)
(assert_return
(invoke "v128.load32_splat" (i32.const 0xb))
(v128.const i32x4 0xe0d_0c0b 0xe0d_0c0b 0xe0d_0c0b 0xe0d_0c0b)
)
(assert_return
(invoke "v128.load32_splat" (i32.const 0xfffc))
(v128.const i32x4 0x1f1e_1d1c 0x1f1e_1d1c 0x1f1e_1d1c 0x1f1e_1d1c)
)
(assert_return
(invoke "v128.load64_splat" (i32.const 0xc))
(v128.const i64x2 0xf0e_0d0c 0xf0e_0d0c)
)
(assert_return
(invoke "v128.load64_splat" (i32.const 0xd))
(v128.const i64x2 0xf_0e0d 0xf_0e0d)
)
(assert_return
(invoke "v128.load64_splat" (i32.const 0xe))
(v128.const i64x2 0xf0e 0xf0e)
)
(assert_return
(invoke "v128.load64_splat" (i32.const 0xf))
(v128.const i64x2 0xf 0xf)
)
(assert_return
(invoke "v128.load64_splat" (i32.const 0xfff8))
(v128.const i64x2 0x1f1e_1d1c_1b1a_1918 0x1f1e_1d1c_1b1a_1918)
)
(assert_return
(invoke "v8x16.offset0" (i32.const 0x0))
(v128.const i8x16
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
)
)
(assert_return
(invoke "v8x16.align1" (i32.const 0x0))
(v128.const i8x16
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
)
)
(assert_return
(invoke "v8x16.offset1_align1" (i32.const 0x0))
(v128.const i8x16
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
)
)
(assert_return
(invoke "v8x16.offset2_align1" (i32.const 0x0))
(v128.const i8x16
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
)
)
(assert_return
(invoke "v8x16.offset15_align1" (i32.const 0x0))
(v128.const i8x16
0xf
0xf
0xf
0xf
0xf
0xf
0xf
0xf
0xf
0xf
0xf
0xf
0xf
0xf
0xf
0xf
)
)
(assert_return
(invoke "v8x16.offset0" (i32.const 0x1))
(v128.const i8x16
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
)
)
(assert_return
(invoke "v8x16.align1" (i32.const 0x1))
(v128.const i8x16
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
0x1
)
)
(assert_return
(invoke "v8x16.offset1_align1" (i32.const 0x1))
(v128.const i8x16
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
0x2
)
)
(assert_return
(invoke "v8x16.offset2_align1" (i32.const 0x1))
(v128.const i8x16
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
)
)
(assert_return
(invoke "v8x16.offset15_align1" (i32.const 0x1))
(v128.const i8x16
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
)
)
(assert_return
(invoke "v8x16.offset0" (i32.const 0xffff))
(v128.const i8x16
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
)
)
(assert_return
(invoke "v8x16.align1" (i32.const 0xffff))
(v128.const i8x16
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
)
)
(assert_return
(invoke "v16x8.offset0" (i32.const 0x0))
(v128.const i16x8 0x100 0x100 0x100 0x100 0x100 0x100 0x100 0x100)
)
(assert_return
(invoke "v16x8.align1" (i32.const 0x0))
(v128.const i16x8 0x100 0x100 0x100 0x100 0x100 0x100 0x100 0x100)
)
(assert_return
(invoke "v16x8.offset1_align1" (i32.const 0x0))
(v128.const i16x8 0x201 0x201 0x201 0x201 0x201 0x201 0x201 0x201)
)
(assert_return
(invoke "v16x8.offset2_align1" (i32.const 0x0))
(v128.const i16x8 0x302 0x302 0x302 0x302 0x302 0x302 0x302 0x302)
)
(assert_return
(invoke "v16x8.offset15_align2" (i32.const 0x0))
(v128.const i16x8 0xf 0xf 0xf 0xf 0xf 0xf 0xf 0xf)
)
(assert_return
(invoke "v16x8.offset0" (i32.const 0x1))
(v128.const i16x8 0x201 0x201 0x201 0x201 0x201 0x201 0x201 0x201)
)
(assert_return
(invoke "v16x8.align1" (i32.const 0x1))
(v128.const i16x8 0x201 0x201 0x201 0x201 0x201 0x201 0x201 0x201)
)
(assert_return
(invoke "v16x8.offset1_align1" (i32.const 0x1))
(v128.const i16x8 0x302 0x302 0x302 0x302 0x302 0x302 0x302 0x302)
)
(assert_return
(invoke "v16x8.offset2_align1" (i32.const 0x1))
(v128.const i16x8 0x403 0x403 0x403 0x403 0x403 0x403 0x403 0x403)
)
(assert_return
(invoke "v16x8.offset15_align2" (i32.const 0x1))
(v128.const i16x8 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0)
)
(assert_return
(invoke "v16x8.offset0" (i32.const 0xfffe))
(v128.const i16x8 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e)
)
(assert_return
(invoke "v16x8.align1" (i32.const 0xfffe))
(v128.const i16x8 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e 0x1f1e)
)
(assert_return
(invoke "v32x4.offset0" (i32.const 0x0))
(v128.const i32x4 0x302_0100 0x302_0100 0x302_0100 0x302_0100)
)
(assert_return
(invoke "v32x4.align1" (i32.const 0x0))
(v128.const i32x4 0x302_0100 0x302_0100 0x302_0100 0x302_0100)
)
(assert_return
(invoke "v32x4.offset1_align1" (i32.const 0x0))
(v128.const i32x4 0x403_0201 0x403_0201 0x403_0201 0x403_0201)
)
(assert_return
(invoke "v32x4.offset2_align2" (i32.const 0x0))
(v128.const i32x4 0x504_0302 0x504_0302 0x504_0302 0x504_0302)
)
(assert_return
(invoke "v32x4.offset15_align4" (i32.const 0x0))
(v128.const i32x4 0xf 0xf 0xf 0xf)
)
(assert_return
(invoke "v32x4.offset0" (i32.const 0x1))
(v128.const i32x4 0x403_0201 0x403_0201 0x403_0201 0x403_0201)
)
(assert_return
(invoke "v32x4.align1" (i32.const 0x1))
(v128.const i32x4 0x403_0201 0x403_0201 0x403_0201 0x403_0201)
)
(assert_return
(invoke "v32x4.offset1_align1" (i32.const 0x1))
(v128.const i32x4 0x504_0302 0x504_0302 0x504_0302 0x504_0302)
)
(assert_return
(invoke "v32x4.offset2_align2" (i32.const 0x1))
(v128.const i32x4 0x605_0403 0x605_0403 0x605_0403 0x605_0403)
)
(assert_return
(invoke "v32x4.offset15_align4" (i32.const 0x1))
(v128.const i32x4 0x0 0x0 0x0 0x0)
)
(assert_return
(invoke "v32x4.offset0" (i32.const 0xfffc))
(v128.const i32x4 0x1f1e_1d1c 0x1f1e_1d1c 0x1f1e_1d1c 0x1f1e_1d1c)
)
(assert_return
(invoke "v32x4.align1" (i32.const 0xfffc))
(v128.const i32x4 0x1f1e_1d1c 0x1f1e_1d1c 0x1f1e_1d1c 0x1f1e_1d1c)
)
(assert_return
(invoke "v64x2.offset0" (i32.const 0x0))
(v128.const i64x2 0x706_0504_0302_0100 0x706_0504_0302_0100)
)
(assert_return
(invoke "v64x2.align1" (i32.const 0x0))
(v128.const i64x2 0x706_0504_0302_0100 0x706_0504_0302_0100)
)
(assert_return
(invoke "v64x2.offset1_align2" (i32.const 0x0))
(v128.const i64x2 0x807_0605_0403_0201 0x807_0605_0403_0201)
)
(assert_return
(invoke "v64x2.offset2_align4" (i32.const 0x0))
(v128.const i64x2 0x908_0706_0504_0302 0x908_0706_0504_0302)
)
(assert_return
(invoke "v64x2.offset15_align8" (i32.const 0x0))
(v128.const i64x2 0xf 0xf)
)
(assert_return
(invoke "v64x2.offset0" (i32.const 0x1))
(v128.const i64x2 0x807_0605_0403_0201 0x807_0605_0403_0201)
)
(assert_return
(invoke "v64x2.align1" (i32.const 0x1))
(v128.const i64x2 0x807_0605_0403_0201 0x807_0605_0403_0201)
)
(assert_return
(invoke "v64x2.offset1_align2" (i32.const 0x1))
(v128.const i64x2 0x908_0706_0504_0302 0x908_0706_0504_0302)
)
(assert_return
(invoke "v64x2.offset2_align4" (i32.const 0x1))
(v128.const i64x2 0xa09_0807_0605_0403 0xa09_0807_0605_0403)
)
(assert_return
(invoke "v64x2.offset15_align8" (i32.const 0x1))
(v128.const i64x2 0x0 0x0)
)
(assert_return
(invoke "v64x2.offset0" (i32.const 0xfff8))
(v128.const i64x2 0x1f1e_1d1c_1b1a_1918 0x1f1e_1d1c_1b1a_1918)
)
(assert_return
(invoke "v64x2.align1" (i32.const 0xfff8))
(v128.const i64x2 0x1f1e_1d1c_1b1a_1918 0x1f1e_1d1c_1b1a_1918)
)
(assert_trap
(invoke "v128.load8_splat" (i32.const 0xffff_ffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v128.load16_splat" (i32.const 0xffff_ffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v128.load32_splat" (i32.const 0xffff_ffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v128.load64_splat" (i32.const 0xffff_ffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v128.load8_splat" (i32.const 0x1_0000))
"out of bounds memory access"
)
(assert_trap
(invoke "v128.load16_splat" (i32.const 0xffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v128.load32_splat" (i32.const 0xfffd))
"out of bounds memory access"
)
(assert_trap
(invoke "v128.load64_splat" (i32.const 0xfff9))
"out of bounds memory access"
)
(assert_trap
(invoke "v8x16.offset1_align1" (i32.const 0xffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v8x16.offset2_align1" (i32.const 0xffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v8x16.offset15_align1" (i32.const 0xffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v16x8.offset1_align1" (i32.const 0xfffe))
"out of bounds memory access"
)
(assert_trap
(invoke "v16x8.offset2_align1" (i32.const 0xfffe))
"out of bounds memory access"
)
(assert_trap
(invoke "v16x8.offset15_align2" (i32.const 0xfffe))
"out of bounds memory access"
)
(assert_trap
(invoke "v32x4.offset1_align1" (i32.const 0xfffc))
"out of bounds memory access"
)
(assert_trap
(invoke "v32x4.offset2_align2" (i32.const 0xfffc))
"out of bounds memory access"
)
(assert_trap
(invoke "v32x4.offset15_align4" (i32.const 0xfffc))
"out of bounds memory access"
)
(assert_trap
(invoke "v64x2.offset1_align2" (i32.const 0xfff8))
"out of bounds memory access"
)
(assert_trap
(invoke "v64x2.offset2_align4" (i32.const 0xfff8))
"out of bounds memory access"
)
(assert_trap
(invoke "v64x2.offset15_align8" (i32.const 0xfff8))
"out of bounds memory access"
)
(assert_trap
(invoke "v8x16.offset1_align1" (i32.const 0xffff_ffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v16x8.offset1_align1" (i32.const 0xffff_ffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v32x4.offset1_align1" (i32.const 0xffff_ffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v64x2.offset1_align2" (i32.const 0xffff_ffff))
"out of bounds memory access"
)
(assert_trap
(invoke "v8x16.offset65536" (i32.const 0x0))
"out of bounds memory access"
)
(assert_trap
(invoke "v16x8.offset65535" (i32.const 0x0))
"out of bounds memory access"
)
(assert_trap
(invoke "v32x4.offset65533" (i32.const 0x0))
"out of bounds memory access"
)
(assert_trap
(invoke "v64x2.offset65529" (i32.const 0x0))
"out of bounds memory access"
)
(assert_trap
(invoke "v8x16.offset65536" (i32.const 0x1))
"out of bounds memory access"
)
(assert_trap
(invoke "v16x8.offset65535" (i32.const 0x1))
"out of bounds memory access"
)
(assert_trap
(invoke "v32x4.offset65533" (i32.const 0x1))
"out of bounds memory access"
)
(assert_trap
(invoke "v64x2.offset65529" (i32.const 0x1))
"out of bounds memory access"
)
(module binary
"\00\61\73\6d\01\00\00\00\01\89\80\80\80\00\02\60"
"\00\01\7b\60\00\01\7f\03\8d\80\80\80\00\0c\00\00"
"\00\00\00\00\00\00\01\01\01\01\05\83\80\80\80\00"
"\01\00\01\07\9e\83\80\80\00\0c\19\76\31\32\38\2e"
"\6c\6f\61\64\38\5f\73\70\6c\61\74\2d\69\6e\2d\62"
"\6c\6f\63\6b\00\00\1a\76\31\32\38\2e\6c\6f\61\64"
"\31\36\5f\73\70\6c\61\74\2d\69\6e\2d\62\6c\6f\63"
"\6b\00\01\1a\76\31\32\38\2e\6c\6f\61\64\33\32\5f"
"\73\70\6c\61\74\2d\69\6e\2d\62\6c\6f\63\6b\00\02"
"\1a\76\31\32\38\2e\6c\6f\61\64\36\34\5f\73\70\6c"
"\61\74\2d\69\6e\2d\62\6c\6f\63\6b\00\03\1c\76\31"
"\32\38\2e\6c\6f\61\64\38\5f\73\70\6c\61\74\2d\61"
"\73\2d\62\72\2d\76\61\6c\75\65\00\04\1d\76\31\32"
"\38\2e\6c\6f\61\64\31\36\5f\73\70\6c\61\74\2d\61"
"\73\2d\62\72\2d\76\61\6c\75\65\00\05\1d\76\31\32"
"\38\2e\6c\6f\61\64\33\32\5f\73\70\6c\61\74\2d\61"
"\73\2d\62\72\2d\76\61\6c\75\65\00\06\1d\76\31\32"
"\38\2e\6c\6f\61\64\36\34\5f\73\70\6c\61\74\2d\61"
"\73\2d\62\72\2d\76\61\6c\75\65\00\07\27\76\31\32"
"\38\2e\6c\6f\61\64\38\5f\73\70\6c\61\74\2d\65\78"
"\74\72\61\63\74\5f\6c\61\6e\65\5f\73\2d\6f\70\65"
"\72\61\6e\64\00\08\28\76\31\32\38\2e\6c\6f\61\64"
"\31\36\5f\73\70\6c\61\74\2d\65\78\74\72\61\63\74"
"\5f\6c\61\6e\65\5f\73\2d\6f\70\65\72\61\6e\64\00"
"\09\28\76\31\32\38\2e\6c\6f\61\64\33\32\5f\73\70"
"\6c\61\74\2d\65\78\74\72\61\63\74\5f\6c\61\6e\65"
"\5f\73\2d\6f\70\65\72\61\6e\64\00\0a\28\76\31\32"
"\38\2e\6c\6f\61\64\36\34\5f\73\70\6c\61\74\2d\65"
"\78\74\72\61\63\74\5f\6c\61\6e\65\5f\73\2d\6f\70"
"\65\72\61\6e\64\00\0b\0a\d5\81\80\80\00\0c\8e\80"
"\80\80\00\00\02\7b\02\7b\41\00\fd\07\00\00\0b\0b"
"\0b\8e\80\80\80\00\00\02\7b\02\7b\41\01\fd\08\01"
"\00\0b\0b\0b\8e\80\80\80\00\00\02\7b\02\7b\41\02"
"\fd\09\02\00\0b\0b\0b\8e\80\80\80\00\00\02\7b\02"
"\7b\41\09\fd\0a\03\00\0b\0b\0b\8d\80\80\80\00\00"
"\02\7b\41\03\fd\07\00\00\0c\00\0b\0b\8d\80\80\80"
"\00\00\02\7b\41\04\fd\08\01\00\0c\00\0b\0b\8d\80"
"\80\80\00\00\02\7b\41\05\fd\09\02\00\0c\00\0b\0b"
"\8d\80\80\80\00\00\02\7b\41\0a\fd\0a\03\00\0c\00"
"\0b\0b\8b\80\80\80\00\00\41\06\fd\07\00\00\fd\15"
"\00\0b\8b\80\80\80\00\00\41\07\fd\08\01\00\fd\15"
"\00\0b\8b\80\80\80\00\00\41\08\fd\09\02\00\fd\15"
"\00\0b\8b\80\80\80\00\00\41\0b\fd\0a\03\00\fd\15"
"\00\0b\0b\91\80\80\80\00\01\00\41\00\0b\0b\00\01"
"\02\03\04\05\06\07\08\09\0a"
)
(assert_return
(invoke "v128.load8_splat-in-block")
(v128.const i8x16
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
)
)
(assert_return
(invoke "v128.load16_splat-in-block")
(v128.const i16x8 0x201 0x201 0x201 0x201 0x201 0x201 0x201 0x201)
)
(assert_return
(invoke "v128.load32_splat-in-block")
(v128.const i32x4 0x504_0302 0x504_0302 0x504_0302 0x504_0302)
)
(assert_return
(invoke "v128.load64_splat-in-block")
(v128.const i64x2 0xa09 0xa09)
)
(assert_return
(invoke "v128.load8_splat-as-br-value")
(v128.const i8x16
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
0x3
)
)
(assert_return
(invoke "v128.load16_splat-as-br-value")
(v128.const i16x8 0x504 0x504 0x504 0x504 0x504 0x504 0x504 0x504)
)
(assert_return
(invoke "v128.load32_splat-as-br-value")
(v128.const i32x4 0x807_0605 0x807_0605 0x807_0605 0x807_0605)
)
(assert_return
(invoke "v128.load64_splat-as-br-value")
(v128.const i64x2 0xa 0xa)
)
(assert_return
(invoke "v128.load8_splat-extract_lane_s-operand")
(i32.const 0x6)
)
(assert_return
(invoke "v128.load16_splat-extract_lane_s-operand")
(i32.const 0x7)
)
(assert_return
(invoke "v128.load32_splat-extract_lane_s-operand")
(i32.const 0x8)
)
(assert_return
(invoke "v128.load64_splat-extract_lane_s-operand")
(i32.const 0x0)
)
(assert_invalid
(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\00\0a\9e\80\80\80\00\01\98\80\80\80\00"
"\00\fd\0c\00\00\00\00\00\00\00\00\00\00\00\00\00"
"\00\00\00\fd\07\00\00\0b"
)
"type mismatch"
)
(assert_invalid
(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\00\0a\9e\80\80\80\00\01\98\80\80\80\00"
"\00\fd\0c\00\00\00\00\00\00\00\00\00\00\00\00\00"
"\00\00\00\fd\08\01\00\0b"
)
"type mismatch"
)
(assert_invalid
(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\00\0a\9e\80\80\80\00\01\98\80\80\80\00"
"\00\fd\0c\00\00\00\00\00\00\00\00\00\00\00\00\00"
"\00\00\00\fd\09\02\00\0b"
)
"type mismatch"
)
(assert_invalid
(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\00\0a\9e\80\80\80\00\01\98\80\80\80\00"
"\00\fd\0c\00\00\00\00\00\00\00\00\00\00\00\00\00"
"\00\00\00\fd\0a\03\00\0b"
)
"type mismatch"
)
(assert_invalid
(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\00\0a\8c\80\80\80\00\01\86\80\80\80\00"
"\00\fd\07\00\00\0b"
)
"type mismatch"
)
(assert_invalid
(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\00\0a\8c\80\80\80\00\01\86\80\80\80\00"
"\00\fd\08\01\00\0b"
)
"type mismatch"
)
(assert_invalid
(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\00\0a\8c\80\80\80\00\01\86\80\80\80\00"
"\00\fd\09\02\00\0b"
)
"type mismatch"
)
(assert_invalid
(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\00\0a\8c\80\80\80\00\01\86\80\80\80\00"
"\00\fd\0a\03\00\0b"
)
"type mismatch"
)