1 ;; Unsigned LEB128 can have non-minimal length
3 "\00asm" "\01\00\00\00"
4 "\05\04\01" ;; Memory section with 1 entry
5 "\00\82\00" ;; no max, minimum 2
8 "\00asm" "\01\00\00\00"
9 "\05\07\01" ;; Memory section with 1 entry
10 "\00\82\80\80\80\00" ;; no max, minimum 2
13 "\00asm" "\01\00\00\00"
14 "\05\06\01" ;; Memory section with 1 entry
15 "\01\82\00" ;; minimum 2
19 "\00asm" "\01\00\00\00"
20 "\05\09\01" ;; Memory section with 1 entry
21 "\01\82\00" ;; minimum 2
22 "\82\80\80\80\00" ;; max 2
25 "\00asm" "\01\00\00\00"
26 "\05\03\01" ;; Memory section with 1 entry
27 "\00\00" ;; no max, minimum 0
28 "\0b\07\01" ;; Data section with 1 entry
29 "\80\00" ;; Memory index 0, encoded with 2 bytes
30 "\41\00\0b\00" ;; (i32.const 0) with contents ""
33 "\00asm" "\01\00\00\00"
34 "\04\04\01" ;; Table section with 1 entry
35 "\70\00\00" ;; no max, minimum 0, funcref
36 "\09\07\01" ;; Element section with 1 entry
37 "\80\00" ;; Table index 0, encoded with 2 bytes
38 "\41\00\0b\00" ;; (i32.const 0) with no elements
41 "\00asm" "\01\00\00\00"
42 "\00" ;; custom section
43 "\8a\00" ;; section size 10, encoded with 2 bytes
44 "\01" ;; name byte count
46 "23456789" ;; sequence of bytes
49 "\00asm" "\01\00\00\00"
50 "\00" ;; custom section
52 "\88\00" ;; name byte count 8, encoded with 2 bytes
54 "9" ;; sequence of bytes
57 "\00asm" "\01\00\00\00"
58 "\01\08\01" ;; type section
60 "\82\00" ;; num params 2, encoded with 2 bytes
61 "\7f\7e" ;; param type
66 "\00asm" "\01\00\00\00"
67 "\01\08\01" ;; type section
70 "\7f\7e" ;; param type
71 "\81\00" ;; num results 1, encoded with 2 bytes
75 "\00asm" "\01\00\00\00"
76 "\01\05\01" ;; type section
77 "\60\01\7f\00" ;; function type
78 "\02\17\01" ;; import section
79 "\88\00" ;; module name length 8, encoded with 2 bytes
80 "\73\70\65\63\74\65\73\74" ;; module name
81 "\09" ;; entity name length
82 "\70\72\69\6e\74\5f\69\33\32" ;; entity name
84 "\00" ;; import signature index
87 "\00asm" "\01\00\00\00"
88 "\01\05\01" ;; type section
89 "\60\01\7f\00" ;; function type
90 "\02\17\01" ;; import section
91 "\08" ;; module name length
92 "\73\70\65\63\74\65\73\74" ;; module name
93 "\89\00" ;; entity name length 9, encoded with 2 bytes
94 "\70\72\69\6e\74\5f\69\33\32" ;; entity name
96 "\00" ;; import signature index
99 "\00asm" "\01\00\00\00"
100 "\01\05\01" ;; type section
101 "\60\01\7f\00" ;; function type
102 "\02\17\01" ;; import section
103 "\08" ;; module name length
104 "\73\70\65\63\74\65\73\74" ;; module name
105 "\09" ;; entity name length 9
106 "\70\72\69\6e\74\5f\69\33\32" ;; entity name
108 "\80\00" ;; import signature index, encoded with 2 bytes
111 "\00asm" "\01\00\00\00"
112 "\01\04\01" ;; type section
113 "\60\00\00" ;; function type
114 "\03\03\01" ;; function section
115 "\80\00" ;; function 0 signature index, encoded with 2 bytes
116 "\0a\04\01" ;; code section
117 "\02\00\0b" ;; function body
120 "\00asm" "\01\00\00\00"
121 "\01\04\01" ;; type section
122 "\60\00\00" ;; fun type
123 "\03\02\01\00" ;; function section
124 "\07\07\01" ;; export section
125 "\82\00" ;; string length 2, encoded with 2 bytes
126 "\66\31" ;; export name f1
128 "\00" ;; export func index
129 "\0a\04\01" ;; code section
130 "\02\00\0b" ;; function body
133 "\00asm" "\01\00\00\00"
134 "\01\04\01" ;; type section
135 "\60\00\00" ;; fun type
136 "\03\02\01\00" ;; function section
137 "\07\07\01" ;; export section
138 "\02" ;; string length 2
139 "\66\31" ;; export name f1
141 "\80\00" ;; export func index, encoded with 2 bytes
142 "\0a\04\01" ;; code section
143 "\02\00\0b" ;; function body
146 "\00asm" "\01\00\00\00"
147 "\01\04\01" ;; type section
148 "\60\00\00" ;; fun type
149 "\03\02\01\00" ;; function section
150 "\0a" ;; code section
151 "\05" ;; section size
152 "\81\00" ;; num functions, encoded with 2 bytes
153 "\02\00\0b" ;; function body
156 ;; Signed LEB128 can have non-minimal length
158 "\00asm" "\01\00\00\00"
159 "\06\07\01" ;; Global section with 1 entry
160 "\7f\00" ;; i32, immutable
161 "\41\80\00" ;; i32.const 0
165 "\00asm" "\01\00\00\00"
166 "\06\07\01" ;; Global section with 1 entry
167 "\7f\00" ;; i32, immutable
168 "\41\ff\7f" ;; i32.const -1
172 "\00asm" "\01\00\00\00"
173 "\06\0a\01" ;; Global section with 1 entry
174 "\7f\00" ;; i32, immutable
175 "\41\80\80\80\80\00" ;; i32.const 0
179 "\00asm" "\01\00\00\00"
180 "\06\0a\01" ;; Global section with 1 entry
181 "\7f\00" ;; i32, immutable
182 "\41\ff\ff\ff\ff\7f" ;; i32.const -1
187 "\00asm" "\01\00\00\00"
188 "\06\07\01" ;; Global section with 1 entry
189 "\7e\00" ;; i64, immutable
190 "\42\80\00" ;; i64.const 0 with unused bits set
194 "\00asm" "\01\00\00\00"
195 "\06\07\01" ;; Global section with 1 entry
196 "\7e\00" ;; i64, immutable
197 "\42\ff\7f" ;; i64.const -1 with unused bits unset
201 "\00asm" "\01\00\00\00"
202 "\06\0f\01" ;; Global section with 1 entry
203 "\7e\00" ;; i64, immutable
204 "\42\80\80\80\80\80\80\80\80\80\00" ;; i64.const 0 with unused bits set
208 "\00asm" "\01\00\00\00"
209 "\06\0f\01" ;; Global section with 1 entry
210 "\7e\00" ;; i64, immutable
211 "\42\ff\ff\ff\ff\ff\ff\ff\ff\ff\7f" ;; i64.const -1 with unused bits unset
215 ;; Unsigned LEB128 must not be overlong
218 "\00asm" "\01\00\00\00"
219 "\05\08\01" ;; Memory section with 1 entry
220 "\00\82\80\80\80\80\80\80\80\80\80\00" ;; no max, minimum 2 with one byte too many
222 "integer representation too long"
226 "\00asm" "\01\00\00\00"
227 "\05\0a\01" ;; Memory section with 1 entry
228 "\01\82\00" ;; minimum 2
229 "\82\80\80\80\80\80\80\80\80\80\00" ;; max 2 with one byte too many
231 "integer representation too long"
235 "\00asm" "\01\00\00\00"
236 "\05\03\01" ;; Memory section with 1 entry
237 "\00\00" ;; no max, minimum 0
238 "\0b\0b\01" ;; Data section with 1 entry
239 "\80\80\80\80\80\00" ;; Memory index 0 with one byte too many
240 "\41\00\0b\00" ;; (i32.const 0) with contents ""
242 "integer representation too long"
246 "\00asm" "\01\00\00\00"
247 "\04\04\01" ;; Table section with 1 entry
248 "\70\00\00" ;; no max, minimum 0, funcref
249 "\09\0b\01" ;; Element section with 1 entry
250 "\80\80\80\80\80\00" ;; Table index 0 with one byte too many
251 "\41\00\0b\00" ;; (i32.const 0) with no elements
253 "integer representation too long"
257 "\00asm" "\01\00\00\00"
258 "\00" ;; custom section
259 "\83\80\80\80\80\00" ;; section size 3 with one byte too many
260 "\01" ;; name byte count
262 "2" ;; sequence of bytes
264 "integer representation too long"
268 "\00asm" "\01\00\00\00"
269 "\00" ;; custom section
270 "\0A" ;; section size
271 "\83\80\80\80\80\00" ;; name byte count 3 with one byte too many
273 "4" ;; sequence of bytes
275 "integer representation too long"
279 "\00asm" "\01\00\00\00"
280 "\01\0c\01" ;; type section
282 "\82\80\80\80\80\00" ;; num params 2 with one byte too many
283 "\7f\7e" ;; param type
287 "integer representation too long"
291 "\00asm" "\01\00\00\00"
292 "\01\08\01" ;; type section
295 "\7f\7e" ;; param type
296 "\81\80\80\80\80\00" ;; num result 1 with one byte too many
299 "integer representation too long"
303 "\00asm" "\01\00\00\00"
304 "\01\05\01" ;; type section
305 "\60\01\7f\00" ;; function type
306 "\02\1b\01" ;; import section
307 "\88\80\80\80\80\00" ;; module name length 8 with one byte too many
308 "\73\70\65\63\74\65\73\74" ;; module name
309 "\09" ;; entity name length
310 "\70\72\69\6e\74\5f\69\33\32" ;; entity name
312 "\00" ;; import signature index
314 "integer representation too long"
318 "\00asm" "\01\00\00\00"
319 "\01\05\01" ;; type section
320 "\60\01\7f\00" ;; function type
321 "\02\1b\01" ;; import section
322 "\08" ;; module name length
323 "\73\70\65\63\74\65\73\74" ;; module name
324 "\89\80\80\80\80\00" ;; entity name length 9 with one byte too many
325 "\70\72\69\6e\74\5f\69\33\32" ;; entity name
327 "\00" ;; import signature index
329 "integer representation too long"
333 "\00asm" "\01\00\00\00"
334 "\01\05\01" ;; type section
335 "\60\01\7f\00" ;; function type
336 "\02\1b\01" ;; import section
337 "\08" ;; module name length
338 "\73\70\65\63\74\65\73\74" ;; module name
339 "\09" ;; entity name length 9
340 "\70\72\69\6e\74\5f\69\33\32" ;; entity name
342 "\80\80\80\80\80\00" ;; import signature index 0 with one byte too many
344 "integer representation too long"
348 "\00asm" "\01\00\00\00"
349 "\01\04\01" ;; type section
350 "\60\00\00" ;; function type
351 "\03\03\01" ;; function section
352 "\80\80\80\80\80\00" ;; function 0 signature index with one byte too many
353 "\0a\04\01" ;; code section
354 "\02\00\0b" ;; function body
356 "integer representation too long"
360 "\00asm" "\01\00\00\00"
361 "\01\04\01" ;; type section
362 "\60\00\00" ;; fun type
363 "\03\02\01\00" ;; function section
364 "\07\0b\01" ;; export section
365 "\82\80\80\80\80\00" ;; string length 2 with one byte too many
366 "\66\31" ;; export name f1
368 "\00" ;; export func index
369 "\0a\04\01" ;; code section
370 "\02\00\0b" ;; function body
372 "integer representation too long"
376 "\00asm" "\01\00\00\00"
377 "\01\04\01" ;; type section
378 "\60\00\00" ;; fun type
379 "\03\02\01\00" ;; function section
380 "\07\0b\01" ;; export section
381 "\02" ;; string length 2
382 "\66\31" ;; export name f1
384 "\80\80\80\80\80\00" ;; export func index 0 with one byte too many
385 "\0a\04\01" ;; code section
386 "\02\00\0b" ;; function body
388 "integer representation too long"
392 "\00asm" "\01\00\00\00"
393 "\01\04\01" ;; type section
394 "\60\00\00" ;; fun type
395 "\03\02\01\00" ;; function section
396 "\0a" ;; code section
397 "\05" ;; section size
398 "\81\80\80\80\80\00" ;; num functions 1 with one byte too many
399 "\02\00\0b" ;; function body
401 "integer representation too long"
405 "\00asm" "\01\00\00\00"
406 "\01\04\01\60\00\00" ;; Type section
407 "\03\02\01\00" ;; Function section
408 "\05\03\01\00\01" ;; Memory section
409 "\0a\11\01" ;; Code section
411 "\0f\01\01" ;; local type count
413 "\41\00" ;; i32.const 0
416 "\82\80\80\80\80\80\80\80\80\80\00" ;; offset 2 with one byte too many
420 "integer representation too long"
424 "\00asm" "\01\00\00\00"
425 "\01\04\01\60\00\00" ;; Type section
426 "\03\02\01\00" ;; Function section
427 "\05\03\01\00\01" ;; Memory section
428 "\0a\11\01" ;; Code section
430 "\0f\01\01" ;; local type count
432 "\41\00" ;; i32.const 0
434 "\82\80\80\80\80\00" ;; alignment 2 with one byte too many
439 "integer representation too long"
443 "\00asm" "\01\00\00\00"
444 "\01\04\01\60\00\00" ;; Type section
445 "\03\02\01\00" ;; Function section
446 "\05\03\01\00\01" ;; Memory section
447 "\0a\12\01" ;; Code section
449 "\10\01\01" ;; local type count
451 "\41\00" ;; i32.const 0
452 "\41\03" ;; i32.const 3
454 "\82\80\80\80\80\00" ;; alignment 2 with one byte too many
458 "integer representation too long"
462 "\00asm" "\01\00\00\00"
463 "\01\04\01\60\00\00" ;; Type section
464 "\03\02\01\00" ;; Function section
465 "\05\03\01\00\01" ;; Memory section
466 "\0a\12\01" ;; Code section
468 "\10\01\01" ;; local type count
470 "\41\00" ;; i32.const 0
471 "\41\03" ;; i32.const 3
474 "\82\80\80\80\80\80\80\80\80\80\00" ;; offset 2 with one byte too many
477 "integer representation too long"
480 ;; Signed LEB128 must not be overlong
483 "\00asm" "\01\00\00\00"
484 "\06\0b\01" ;; Global section with 1 entry
485 "\7f\00" ;; i32, immutable
486 "\41\80\80\80\80\80\00" ;; i32.const 0 with one byte too many
489 "integer representation too long"
493 "\00asm" "\01\00\00\00"
494 "\06\0b\01" ;; Global section with 1 entry
495 "\7f\00" ;; i32, immutable
496 "\41\ff\ff\ff\ff\ff\7f" ;; i32.const -1 with one byte too many
499 "integer representation too long"
504 "\00asm" "\01\00\00\00"
505 "\06\10\01" ;; Global section with 1 entry
506 "\7e\00" ;; i64, immutable
507 "\42\80\80\80\80\80\80\80\80\80\80\00" ;; i64.const 0 with one byte too many
510 "integer representation too long"
514 "\00asm" "\01\00\00\00"
515 "\06\10\01" ;; Global section with 1 entry
516 "\7e\00" ;; i64, immutable
517 "\42\ff\ff\ff\ff\ff\ff\ff\ff\ff\ff\7f" ;; i64.const -1 with one byte too many
520 "integer representation too long"
523 ;; Unsigned LEB128s zero-extend
526 "\00asm" "\01\00\00\00"
527 "\05\07\01" ;; Memory section with 1 entry
528 "\00\82\80\80\80\80\80\80\80\80\70" ;; no max, minimum 2 with unused bits set
534 "\00asm" "\01\00\00\00"
535 "\05\07\01" ;; Memory section with 1 entry
536 "\00\82\80\80\80\80\80\80\80\80\40" ;; no max, minimum 2 with some unused bits set
542 "\00asm" "\01\00\00\00"
543 "\05\09\01" ;; Memory section with 1 entry
544 "\01\82\00" ;; minimum 2
545 "\82\80\80\80\80\80\80\80\80\10" ;; max 2 with unused bits set
551 "\00asm" "\01\00\00\00"
552 "\05\09\01" ;; Memory section with 1 entry
553 "\01\82\00" ;; minimum 2
554 "\82\80\80\80\80\80\80\80\80\40" ;; max 2 with some unused bits set
560 "\00asm" "\01\00\00\00"
561 "\05\03\01" ;; Memory section with 1 entry
562 "\00\00" ;; no max, minimum 0
563 "\0b\0a\01" ;; Data section with 1 entry
564 "\80\80\80\80\10" ;; Memory index 0 with unused bits set
565 "\41\00\0b\00" ;; (i32.const 0) with contents ""
571 "\00asm" "\01\00\00\00"
572 "\04\04\01" ;; Table section with 1 entry
573 "\70\00\00" ;; no max, minimum 0, funcref
574 "\09\0a\01" ;; Element section with 1 entry
575 "\80\80\80\80\10" ;; Table index 0 with unused bits set
576 "\41\00\0b\00" ;; (i32.const 0) with no elements
582 "\00asm" "\01\00\00\00"
583 "\00" ;; custom section
584 "\83\80\80\80\10" ;; section size 3 with unused bits set
585 "\01" ;; name byte count
587 "2" ;; sequence of bytes
593 "\00asm" "\01\00\00\00"
594 "\00" ;; custom section
595 "\09" ;; section size
596 "\83\80\80\80\40" ;; name byte count 3 with unused bits set
598 "4" ;; sequence of bytes
604 "\00asm" "\01\00\00\00"
605 "\01\0b\01" ;; type section
607 "\82\80\80\80\10" ;; num params 2 with unused bits set
608 "\7f\7e" ;; param type
616 "\00asm" "\01\00\00\00"
617 "\01\0b\01" ;; type section
620 "\7f\7e" ;; param type
621 "\81\80\80\80\40" ;; num result 1 with unused bits set
628 "\00asm" "\01\00\00\00"
629 "\01\05\01" ;; type section
630 "\60\01\7f\00" ;; function type
631 "\02\1a\01" ;; import section
632 "\88\80\80\80\10" ;; module name length 8 with unused bits set
633 "\73\70\65\63\74\65\73\74" ;; module name
634 "\09" ;; entity name length
635 "\70\72\69\6e\74\5f\69\33\32" ;; entity name
637 "\00" ;; import signature index
643 "\00asm" "\01\00\00\00"
644 "\01\05\01" ;; type section
645 "\60\01\7f\00" ;; function type
646 "\02\1a\01" ;; import section
647 "\08" ;; module name length
648 "\73\70\65\63\74\65\73\74" ;; module name
649 "\89\80\80\80\40" ;; entity name length 9 with unused bits set
650 "\70\72\69\6e\74\5f\69\33\32" ;; entity name
652 "\00" ;; import signature index
658 "\00asm" "\01\00\00\00"
659 "\01\05\01" ;; type section
660 "\60\01\7f\00" ;; function type
661 "\02\1a\01" ;; import section
662 "\08" ;; module name length
663 "\73\70\65\63\74\65\73\74" ;; module name
664 "\09" ;; entity name length 9
665 "\70\72\69\6e\74\5f\69\33\32" ;; entity name
667 "\80\80\80\80\10" ;; import signature index 0 with unused bits set
673 "\00asm" "\01\00\00\00"
674 "\01\04\01" ;; type section
675 "\60\00\00" ;; function type
676 "\03\06\01" ;; function section
677 "\80\80\80\80\10" ;; function 0 signature index with unused bits set
678 "\0a\04\01" ;; code section
679 "\02\00\0b" ;; function body
686 "\00asm" "\01\00\00\00"
687 "\01\04\01" ;; type section
688 "\60\00\00" ;; fun type
689 "\03\02\01\00" ;; function section
690 "\07\0a\01" ;; export section
691 "\82\80\80\80\10" ;; string length 2 with unused bits set
692 "\66\31" ;; export name f1
694 "\00" ;; export func index
695 "\0a\04\01" ;; code section
696 "\02\00\0b" ;; function body
702 "\00asm" "\01\00\00\00"
703 "\01\04\01" ;; type section
704 "\60\00\00" ;; fun type
705 "\03\02\01\00" ;; function section
706 "\07\0a\01" ;; export section
707 "\02" ;; string length 2
708 "\66\31" ;; export name f1
710 "\80\80\80\80\10" ;; export func index with unused bits set
711 "\0a\04\01" ;; code section
712 "\02\00\0b" ;; function body
718 "\00asm" "\01\00\00\00"
719 "\01\04\01" ;; type section
720 "\60\00\00" ;; fun type
721 "\03\02\01\00" ;; function section
722 "\0a" ;; code section
723 "\08" ;; section size
724 "\81\80\80\80\10" ;; num functions 1 with unused bits set
725 "\02\00\0b" ;; function body
731 "\00asm" "\01\00\00\00"
732 "\01\04\01\60\00\00" ;; Type section
733 "\03\02\01\00" ;; Function section
734 "\05\03\01\00\01" ;; Memory section
735 "\0a\10\01" ;; Code section
737 "\0e\01\01" ;; local type count
739 "\41\00" ;; i32.const 0
742 "\82\80\80\80\80\80\80\80\80\10" ;; offset 2 with unused bits set
750 "\00asm" "\01\00\00\00"
751 "\01\04\01\60\00\00" ;; Type section
752 "\03\02\01\00" ;; Function section
753 "\05\03\01\00\01" ;; Memory section
754 "\0a\10\01" ;; Code section
756 "\0e\01\01" ;; local type count
758 "\41\00" ;; i32.const 0
761 "\82\80\80\80\80\80\80\80\80\40" ;; offset 2 with some unused bits set
769 "\00asm" "\01\00\00\00"
770 "\01\04\01\60\00\00" ;; Type section
771 "\03\02\01\00" ;; Function section
772 "\05\03\01\00\01" ;; Memory section
773 "\0a\10\01" ;; Code section
774 "\0e\01\01" ;; local type count
776 "\41\00" ;; i32.const 0
778 "\82\80\80\80\10" ;; alignment 2 with unused bits set
787 "\00asm" "\01\00\00\00"
788 "\01\04\01\60\00\00" ;; Type section
789 "\03\02\01\00" ;; Function section
790 "\05\03\01\00\01" ;; Memory section
791 "\0a\10\01" ;; Code section
793 "\0e\01\01" ;; local type count
795 "\41\00" ;; i32.const 0
797 "\82\80\80\80\40" ;; alignment 2 with some unused bits set
806 "\00asm" "\01\00\00\00"
807 "\01\04\01\60\00\00" ;; Type section
808 "\03\02\01\00" ;; Function section
809 "\05\03\01\00\01" ;; Memory section
810 "\0a\11\01" ;; Code section
812 "\0f\01\01" ;; local type count
814 "\41\00" ;; i32.const 0
815 "\41\03" ;; i32.const 3
817 "\82\80\80\80\10" ;; alignment 2 with unused bits set
825 "\00asm" "\01\00\00\00"
826 "\01\04\01\60\00\00" ;; Type section
827 "\03\02\01\00" ;; Function section
828 "\05\03\01\00\01" ;; Memory section
829 "\0a\11\01" ;; Code section
831 "\0f\01\01" ;; local type count
833 "\41\00" ;; i32.const 0
834 "\41\03" ;; i32.const 3
836 "\82\80\80\80\40" ;; alignment 2 with some unused bits set
844 "\00asm" "\01\00\00\00"
845 "\01\04\01\60\00\00" ;; Type section
846 "\03\02\01\00" ;; Function section
847 "\05\03\01\00\01" ;; Memory section
848 "\0a\11\01" ;; Code section
850 "\0f\01\01" ;; local type count
852 "\41\00" ;; i32.const 0
853 "\41\03" ;; i32.const 3
856 "\82\80\80\80\80\80\80\80\80\10" ;; offset 2 with unused bits set
863 "\00asm" "\01\00\00\00"
864 "\01\04\01\60\00\00" ;; Type section
865 "\03\02\01\00" ;; Function section
866 "\05\03\01\00\01" ;; Memory section
867 "\0a\11\01" ;; Code section
870 "\0f\01\01" ;; local type count
872 "\41\00" ;; i32.const 0
873 "\41\03" ;; i32.const 3
876 "\82\80\80\80\80\80\80\80\80\40" ;; offset 2 with some unused bits set
882 ;; Signed LEB128s sign-extend
885 "\00asm" "\01\00\00\00"
886 "\06\0a\01" ;; Global section with 1 entry
887 "\7f\00" ;; i32, immutable
888 "\41\80\80\80\80\70" ;; i32.const 0 with unused bits set
895 "\00asm" "\01\00\00\00"
896 "\06\0a\01" ;; Global section with 1 entry
897 "\7f\00" ;; i32, immutable
898 "\41\ff\ff\ff\ff\0f" ;; i32.const -1 with unused bits unset
905 "\00asm" "\01\00\00\00"
906 "\06\0a\01" ;; Global section with 1 entry
907 "\7f\00" ;; i32, immutable
908 "\41\80\80\80\80\1f" ;; i32.const 0 with some unused bits set
915 "\00asm" "\01\00\00\00"
916 "\06\0a\01" ;; Global section with 1 entry
917 "\7f\00" ;; i32, immutable
918 "\41\ff\ff\ff\ff\4f" ;; i32.const -1 with some unused bits unset
926 "\00asm" "\01\00\00\00"
927 "\06\0f\01" ;; Global section with 1 entry
928 "\7e\00" ;; i64, immutable
929 "\42\80\80\80\80\80\80\80\80\80\7e" ;; i64.const 0 with unused bits set
936 "\00asm" "\01\00\00\00"
937 "\06\0f\01" ;; Global section with 1 entry
938 "\7e\00" ;; i64, immutable
939 "\42\ff\ff\ff\ff\ff\ff\ff\ff\ff\01" ;; i64.const -1 with unused bits unset
946 "\00asm" "\01\00\00\00"
947 "\06\0f\01" ;; Global section with 1 entry
948 "\7e\00" ;; i64, immutable
949 "\42\80\80\80\80\80\80\80\80\80\02" ;; i64.const 0 with some unused bits set
956 "\00asm" "\01\00\00\00"
957 "\06\0f\01" ;; Global section with 1 entry
958 "\7e\00" ;; i64, immutable
959 "\42\ff\ff\ff\ff\ff\ff\ff\ff\ff\41" ;; i64.const -1 with some unused bits unset
967 "\00asm" "\01\00\00\00"
968 "\01\04\01" ;; type section
969 "\60\00\00" ;; empty function type
970 "\03\02\01" ;; function section
971 "\00" ;; function 0, type 0
972 "\0a\1b\01\19" ;; code section
975 "\fc\80\00" ;; i32_trunc_sat_f32_s with 2 bytes
977 "\fc\81\80\00" ;; i32_trunc_sat_f32_u with 3 bytes
979 "\fc\86\80\80\00" ;; i64_trunc_sat_f64_s with 4 bytes
981 "\fc\87\80\80\80\00" ;; i64_trunc_sat_f64_u with 5 bytes
988 "\00asm" "\01\00\00\00"
989 "\01\04\01" ;; type section
990 "\60\00\00" ;; empty function type
991 "\03\02\01" ;; function section
992 "\00" ;; function 0, type 0
993 "\0a\0d\01\0b" ;; code section
996 "\fc\87\80\80\80\80\00" ;; i64_trunc_sat_f64_u with 6 bytes
1000 "integer representation too long"