From 2e8ca7fb8b99ac299dd7e94a4c7da8e55d315163 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Wed, 28 Aug 2024 23:49:00 -0400 Subject: [PATCH 1/2] wasmprinter: print function bodies with code section --- crates/wasmprinter/src/lib.rs | 125 +- .../print-code-section-overflow.wat.stderr | 2 +- .../print-deprecated-exceptions.wat.stdout | 2 +- .../print-deprecated-exceptions2.wat.stdout | 2 +- tests/cli/print-skeleton.wat.stdout | 2 +- tests/snapshots/local/anyref1.wat.print | 40 +- tests/snapshots/local/atomics.wast/1.print | 2 +- .../local/br_if-loop-stack.wat.print | 2 +- .../local/component-model/adapt.wast/0.print | 12 +- .../local/component-model/adapt.wast/13.print | 10 +- .../local/component-model/big.wast/0.print | 2 +- .../component-model/example.wast/0.print | 8 +- .../local/component-model/func.wast/6.print | 6 +- .../component-model/instantiate.wast/37.print | 4 +- .../component-model/instantiate.wast/60.print | 2 +- .../local/component-model/link.wast/0.print | 2 +- .../lots-of-aliases.wast/0.print | 2 +- .../component-model/module-link.wast/1.print | 4 +- .../nested-modules.wast/3.print | 4 +- .../component-model/resources.wast/3.print | 2 +- .../local/component-model/string.wast/0.print | 4 +- .../type-export-restrictions.wast/24.print | 2 +- .../type-export-restrictions.wast/25.print | 2 +- .../type-export-restrictions.wast/26.print | 2 +- .../component-model/virtualize.wast/0.print | 14 +- .../custom-page-sizes.wast/19.print | 4 +- .../custom-page-sizes.wast/23.print | 12 +- .../custom-page-sizes.wast/4.print | 10 +- tests/snapshots/local/floate2.wat.print | 2 +- .../call_ref/br_on_non_null.wast/0.print | 10 +- .../call_ref/br_on_non_null.wast/6.print | 6 +- .../call_ref/br_on_null.wast/0.print | 10 +- .../call_ref/br_on_null.wast/6.print | 6 +- .../call_ref/call_ref.wast/0.print | 34 +- .../call_ref/call_ref.wast/25.print | 2 +- .../call_ref/call_ref.wast/27.print | 4 +- .../call_ref/call_ref.wast/29.print | 4 +- .../call_ref/ref_as_non_null.wast/0.print | 10 +- .../call_ref/return_call_ref.wast/0.print | 76 +- .../call_ref/return_call_ref.wast/33.print | 2 +- .../call_ref/return_call_ref.wast/40.print | 2 +- .../call_ref/return_call_ref.wast/42.print | 4 +- .../call_ref/return_call_ref.wast/44.print | 4 +- .../table-nonnull.wast/0.print | 14 +- tests/snapshots/local/fuzz1.wat.print | 22 +- tests/snapshots/local/gc/gc-array.wat.print | 2 +- tests/snapshots/local/gc/gc-ref.wat.print | 4 +- .../local/gc/rec-group-local.wat.print | 2 +- .../local/gc/type-equivalence.wast/11.print | 4 +- .../local/gc/type-equivalence.wast/4.print | 6 +- .../local/gc/type-equivalence.wast/6.print | 6 +- .../local/gc/type-equivalence.wast/8.print | 2 +- .../local/gc/type-subtyping.wast/11.print | 2 +- .../local/gc/type-subtyping.wast/12.print | 2 +- .../local/gc/type-subtyping.wast/13.print | 8 +- .../local/gc/type-subtyping.wast/14.print | 12 +- .../local/gc/type-subtyping.wast/17.print | 18 +- .../local/gc/type-subtyping.wast/25.print | 12 +- .../local/gc/type-subtyping.wast/30.print | 4 +- .../local/gc/type-subtyping.wast/32.print | 4 +- .../local/gc/type-subtyping.wast/34.print | 6 +- .../local/gc/type-subtyping.wast/36.print | 6 +- .../local/gc/type-subtyping.wast/42.print | 4 +- .../local/gc/type-subtyping.wast/46.print | 2 +- .../local/gc/type-subtyping.wast/49.print | 2 +- .../local/gc/type-subtyping.wast/52.print | 2 +- .../local/gc/type-subtyping.wast/55.print | 2 +- .../local/gc/type-subtyping.wast/58.print | 2 +- .../local/gc/type-subtyping.wast/61.print | 4 +- .../local/gc/type-subtyping.wast/64.print | 4 +- .../local/gc/type-subtyping.wast/67.print | 2 +- .../local/gc/type-subtyping.wast/70.print | 2 +- .../local/gc/type-subtyping.wast/8.print | 2 +- .../local/gc/type-subtyping.wast/9.print | 2 +- tests/snapshots/local/instance.wast/10.print | 10 +- tests/snapshots/local/instance.wast/18.print | 10 +- tests/snapshots/local/instance.wast/5.print | 10 +- .../legacy-exceptions.wat.print | 2 +- .../legacy-exceptions/rethrow.wast/0.print | 18 +- .../legacy-exceptions/throw.wast/0.print | 22 +- .../legacy-exceptions/try_catch.wast/0.print | 6 +- .../legacy-exceptions/try_catch.wast/2.print | 52 +- .../legacy-exceptions/try_catch.wast/33.print | 4 +- .../try_delegate.wast/0.print | 38 +- .../snapshots/local/memory-discard.wat.print | 2 +- tests/snapshots/local/memory64.wast/0.print | 2 +- .../snapshots/local/multi-memory.wast/0.print | 4 +- .../local/multi-memory64.wast/0.print | 4 +- .../local/multi-memory64.wast/1.print | 6 +- tests/snapshots/local/naming.wat.print | 62 +- tests/snapshots/local/ref.wat.print | 2 +- .../arrays.wast/18.print | 2 +- .../arrays.wast/19.print | 2 +- .../arrays.wast/20.print | 2 +- .../arrays.wast/21.print | 2 +- .../arrays.wast/22.print | 2 +- .../arrays.wast/23.print | 2 +- .../arrays.wast/24.print | 2 +- .../arrays.wast/25.print | 2 +- .../arrays.wast/26.print | 2 +- .../arrays.wast/27.print | 2 +- .../arrays.wast/28.print | 2 +- .../arrays.wast/29.print | 2 +- .../arrays.wast/30.print | 2 +- .../arrays.wast/31.print | 2 +- .../arrays.wast/32.print | 2 +- .../arrays.wast/33.print | 2 +- .../arrays.wast/34.print | 2 +- .../arrays.wast/35.print | 2 +- .../arrays.wast/36.print | 2 +- .../arrays.wast/37.print | 2 +- .../arrays.wast/38.print | 2 +- .../arrays.wast/39.print | 2 +- .../arrays.wast/40.print | 2 +- .../arrays.wast/41.print | 2 +- .../arrays.wast/42.print | 2 +- .../arrays.wast/43.print | 2 +- .../arrays.wast/44.print | 2 +- .../arrays.wast/45.print | 2 +- .../arrays.wast/46.print | 2 +- .../arrays.wast/47.print | 2 +- .../arrays.wast/48.print | 2 +- .../arrays.wast/49.print | 2 +- .../arrays.wast/50.print | 2 +- .../arrays.wast/51.print | 2 +- .../arrays.wast/52.print | 2 +- .../arrays.wast/53.print | 2 +- .../arrays.wast/54.print | 2 +- .../arrays.wast/55.print | 2 +- .../arrays.wast/56.print | 2 +- .../arrays.wast/57.print | 2 +- .../arrays.wast/58.print | 2 +- .../arrays.wast/59.print | 2 +- .../arrays.wast/60.print | 2 +- .../arrays.wast/61.print | 2 +- .../arrays.wast/62.print | 2 +- .../arrays.wast/63.print | 2 +- .../arrays.wast/64.print | 2 +- .../arrays.wast/65.print | 2 +- .../arrays.wast/66.print | 2 +- .../arrays.wast/67.print | 2 +- .../arrays.wast/68.print | 2 +- .../arrays.wast/69.print | 2 +- .../arrays.wast/70.print | 2 +- .../arrays.wast/71.print | 2 +- .../arrays.wast/72.print | 2 +- .../arrays.wast/73.print | 2 +- .../arrays.wast/8.print | 2 +- .../arrays.wast/9.print | 2 +- .../globals.wast/23.print | 58 +- .../globals.wast/24.print | 58 +- .../globals.wast/28.print | 2 +- .../globals.wast/3.print | 12 +- .../globals.wast/30.print | 2 +- .../i31.wast/0.print | 18 +- .../i31.wast/23.print | 18 +- .../i31.wast/44.print | 4 +- .../i31.wast/48.print | 4 +- .../i31.wast/50.print | 8 +- .../i31.wast/54.print | 18 +- .../ref-equivalence.wast/0.print | 6 +- .../structs.wast/18.print | 112 +- .../tables.wast/7.print | 34 +- .../tables.wast/8.print | 26 +- tests/snapshots/local/simd.wat.print | 10 +- tests/snapshots/local/table-copy.wat.print | 10 +- tests/snapshots/local/table-opt-idx.wat.print | 4 +- .../local/unreachable-valid.wast/0.print | 2 +- .../local/upstream-threads/LB.wast/1001.print | 2 +- .../local/upstream-threads/LB.wast/2001.print | 2 +- .../local/upstream-threads/LB.wast/5.print | 2 +- .../LB_atomic.wast/1001.print | 2 +- .../LB_atomic.wast/2001.print | 2 +- .../upstream-threads/LB_atomic.wast/5.print | 2 +- .../local/upstream-threads/MP.wast/1001.print | 2 +- .../local/upstream-threads/MP.wast/2001.print | 2 +- .../local/upstream-threads/MP.wast/5.print | 2 +- .../MP_atomic.wast/1001.print | 2 +- .../MP_atomic.wast/2001.print | 2 +- .../upstream-threads/MP_atomic.wast/5.print | 2 +- .../upstream-threads/MP_wait.wast/1001.print | 2 +- .../upstream-threads/MP_wait.wast/2001.print | 2 +- .../upstream-threads/MP_wait.wast/5.print | 2 +- .../local/upstream-threads/SB.wast/1001.print | 2 +- .../local/upstream-threads/SB.wast/2001.print | 2 +- .../local/upstream-threads/SB.wast/5.print | 2 +- .../SB_atomic.wast/1001.print | 2 +- .../SB_atomic.wast/2001.print | 2 +- .../upstream-threads/SB_atomic.wast/5.print | 2 +- .../wait_notify.wast/1001.print | 2 +- .../wait_notify.wast/2001.print | 4 +- .../snapshots/testsuite/address.wast/0.print | 62 +- .../testsuite/address.wast/220.print | 14 +- .../testsuite/address.wast/240.print | 14 +- .../snapshots/testsuite/address.wast/93.print | 86 +- tests/snapshots/testsuite/align.wast/0.print | 2 +- tests/snapshots/testsuite/align.wast/1.print | 2 +- tests/snapshots/testsuite/align.wast/10.print | 2 +- .../snapshots/testsuite/align.wast/106.print | 10 +- tests/snapshots/testsuite/align.wast/11.print | 2 +- tests/snapshots/testsuite/align.wast/12.print | 2 +- tests/snapshots/testsuite/align.wast/13.print | 2 +- tests/snapshots/testsuite/align.wast/14.print | 2 +- tests/snapshots/testsuite/align.wast/15.print | 2 +- .../snapshots/testsuite/align.wast/153.print | 6 +- tests/snapshots/testsuite/align.wast/16.print | 2 +- tests/snapshots/testsuite/align.wast/17.print | 2 +- tests/snapshots/testsuite/align.wast/18.print | 2 +- tests/snapshots/testsuite/align.wast/19.print | 2 +- tests/snapshots/testsuite/align.wast/2.print | 2 +- tests/snapshots/testsuite/align.wast/20.print | 2 +- tests/snapshots/testsuite/align.wast/21.print | 2 +- tests/snapshots/testsuite/align.wast/22.print | 2 +- tests/snapshots/testsuite/align.wast/3.print | 2 +- tests/snapshots/testsuite/align.wast/4.print | 2 +- tests/snapshots/testsuite/align.wast/5.print | 2 +- tests/snapshots/testsuite/align.wast/6.print | 2 +- tests/snapshots/testsuite/align.wast/7.print | 2 +- tests/snapshots/testsuite/align.wast/8.print | 2 +- tests/snapshots/testsuite/align.wast/9.print | 2 +- .../testsuite/binary-leb128.wast/14.print | 2 +- .../testsuite/binary-leb128.wast/15.print | 2 +- .../snapshots/testsuite/binary.wast/110.print | 2 +- .../snapshots/testsuite/binary.wast/68.print | 2 +- .../snapshots/testsuite/binary.wast/69.print | 2 +- .../snapshots/testsuite/binary.wast/99.print | 2 +- tests/snapshots/testsuite/block.wast/0.print | 112 +- tests/snapshots/testsuite/br.wast/0.print | 152 +- tests/snapshots/testsuite/br_if.wast/0.print | 128 +- .../snapshots/testsuite/br_table.wast/0.print | 144 +- tests/snapshots/testsuite/bulk.wast/1.print | 4 +- tests/snapshots/testsuite/bulk.wast/18.print | 6 +- tests/snapshots/testsuite/bulk.wast/2.print | 6 +- tests/snapshots/testsuite/bulk.wast/47.print | 6 +- tests/snapshots/testsuite/bulk.wast/60.print | 10 +- tests/snapshots/testsuite/bulk.wast/73.print | 8 +- tests/snapshots/testsuite/bulk.wast/85.print | 14 +- tests/snapshots/testsuite/bulk.wast/96.print | 6 +- tests/snapshots/testsuite/bulk.wast/97.print | 2 +- tests/snapshots/testsuite/bulk.wast/98.print | 8 +- tests/snapshots/testsuite/call.wast/0.print | 120 +- .../testsuite/call_indirect.wast/0.print | 126 +- .../testsuite/call_indirect.wast/123.print | 20 +- .../testsuite/call_indirect.wast/169.print | 2 +- .../snapshots/testsuite/comments.wast/4.print | 6 +- .../snapshots/testsuite/const.wast/178.print | 2 +- .../snapshots/testsuite/const.wast/180.print | 2 +- .../snapshots/testsuite/const.wast/182.print | 2 +- .../snapshots/testsuite/const.wast/184.print | 2 +- .../snapshots/testsuite/const.wast/186.print | 2 +- .../snapshots/testsuite/const.wast/188.print | 2 +- .../snapshots/testsuite/const.wast/190.print | 2 +- .../snapshots/testsuite/const.wast/192.print | 2 +- .../snapshots/testsuite/const.wast/194.print | 2 +- .../snapshots/testsuite/const.wast/196.print | 2 +- .../snapshots/testsuite/const.wast/198.print | 2 +- .../snapshots/testsuite/const.wast/200.print | 2 +- .../snapshots/testsuite/const.wast/202.print | 2 +- .../snapshots/testsuite/const.wast/204.print | 2 +- .../snapshots/testsuite/const.wast/206.print | 2 +- .../snapshots/testsuite/const.wast/208.print | 2 +- .../snapshots/testsuite/const.wast/210.print | 2 +- .../snapshots/testsuite/const.wast/212.print | 2 +- .../snapshots/testsuite/const.wast/214.print | 2 +- .../snapshots/testsuite/const.wast/216.print | 2 +- .../snapshots/testsuite/const.wast/218.print | 2 +- .../snapshots/testsuite/const.wast/220.print | 2 +- .../snapshots/testsuite/const.wast/222.print | 2 +- .../snapshots/testsuite/const.wast/224.print | 2 +- .../snapshots/testsuite/const.wast/226.print | 2 +- .../snapshots/testsuite/const.wast/228.print | 2 +- .../snapshots/testsuite/const.wast/230.print | 2 +- .../snapshots/testsuite/const.wast/232.print | 2 +- .../snapshots/testsuite/const.wast/234.print | 2 +- .../snapshots/testsuite/const.wast/236.print | 2 +- .../snapshots/testsuite/const.wast/238.print | 2 +- .../snapshots/testsuite/const.wast/240.print | 2 +- .../snapshots/testsuite/const.wast/242.print | 2 +- .../snapshots/testsuite/const.wast/244.print | 2 +- .../snapshots/testsuite/const.wast/246.print | 2 +- .../snapshots/testsuite/const.wast/248.print | 2 +- .../snapshots/testsuite/const.wast/250.print | 2 +- .../snapshots/testsuite/const.wast/252.print | 2 +- .../snapshots/testsuite/const.wast/254.print | 2 +- .../snapshots/testsuite/const.wast/256.print | 2 +- .../snapshots/testsuite/const.wast/258.print | 2 +- .../snapshots/testsuite/const.wast/260.print | 2 +- .../snapshots/testsuite/const.wast/262.print | 2 +- .../snapshots/testsuite/const.wast/264.print | 2 +- .../snapshots/testsuite/const.wast/266.print | 2 +- .../snapshots/testsuite/const.wast/268.print | 2 +- .../snapshots/testsuite/const.wast/270.print | 2 +- .../snapshots/testsuite/const.wast/272.print | 2 +- .../snapshots/testsuite/const.wast/274.print | 2 +- .../snapshots/testsuite/const.wast/276.print | 2 +- .../snapshots/testsuite/const.wast/278.print | 2 +- .../snapshots/testsuite/const.wast/280.print | 2 +- .../snapshots/testsuite/const.wast/282.print | 2 +- .../snapshots/testsuite/const.wast/284.print | 2 +- .../snapshots/testsuite/const.wast/286.print | 2 +- .../snapshots/testsuite/const.wast/288.print | 2 +- .../snapshots/testsuite/const.wast/290.print | 2 +- .../snapshots/testsuite/const.wast/292.print | 2 +- .../snapshots/testsuite/const.wast/294.print | 2 +- .../snapshots/testsuite/const.wast/296.print | 2 +- .../snapshots/testsuite/const.wast/298.print | 2 +- .../snapshots/testsuite/const.wast/300.print | 2 +- .../snapshots/testsuite/const.wast/302.print | 2 +- .../snapshots/testsuite/const.wast/304.print | 2 +- .../snapshots/testsuite/const.wast/306.print | 2 +- .../snapshots/testsuite/const.wast/308.print | 2 +- .../snapshots/testsuite/const.wast/310.print | 2 +- .../snapshots/testsuite/const.wast/312.print | 2 +- .../snapshots/testsuite/const.wast/314.print | 2 +- .../snapshots/testsuite/const.wast/316.print | 2 +- .../snapshots/testsuite/const.wast/318.print | 2 +- .../snapshots/testsuite/const.wast/320.print | 2 +- .../snapshots/testsuite/const.wast/322.print | 2 +- .../snapshots/testsuite/const.wast/324.print | 2 +- .../snapshots/testsuite/const.wast/326.print | 2 +- .../snapshots/testsuite/const.wast/328.print | 2 +- .../snapshots/testsuite/const.wast/330.print | 2 +- .../snapshots/testsuite/const.wast/332.print | 2 +- .../snapshots/testsuite/const.wast/334.print | 2 +- .../snapshots/testsuite/const.wast/336.print | 2 +- .../snapshots/testsuite/const.wast/338.print | 2 +- .../snapshots/testsuite/const.wast/340.print | 2 +- .../snapshots/testsuite/const.wast/342.print | 2 +- .../snapshots/testsuite/const.wast/344.print | 2 +- .../snapshots/testsuite/const.wast/346.print | 2 +- .../snapshots/testsuite/const.wast/348.print | 2 +- .../snapshots/testsuite/const.wast/350.print | 2 +- .../snapshots/testsuite/const.wast/352.print | 2 +- .../snapshots/testsuite/const.wast/354.print | 2 +- .../snapshots/testsuite/const.wast/356.print | 2 +- .../snapshots/testsuite/const.wast/358.print | 2 +- .../snapshots/testsuite/const.wast/360.print | 2 +- .../snapshots/testsuite/const.wast/362.print | 2 +- .../snapshots/testsuite/const.wast/364.print | 2 +- .../snapshots/testsuite/const.wast/366.print | 2 +- .../snapshots/testsuite/const.wast/368.print | 2 +- .../snapshots/testsuite/const.wast/370.print | 2 +- .../snapshots/testsuite/const.wast/372.print | 2 +- .../snapshots/testsuite/const.wast/374.print | 2 +- .../snapshots/testsuite/const.wast/376.print | 2 +- .../snapshots/testsuite/const.wast/378.print | 2 +- .../snapshots/testsuite/const.wast/380.print | 2 +- .../snapshots/testsuite/const.wast/382.print | 2 +- .../snapshots/testsuite/const.wast/384.print | 2 +- .../snapshots/testsuite/const.wast/386.print | 2 +- .../snapshots/testsuite/const.wast/388.print | 2 +- .../snapshots/testsuite/const.wast/390.print | 2 +- .../snapshots/testsuite/const.wast/392.print | 2 +- .../snapshots/testsuite/const.wast/394.print | 2 +- .../snapshots/testsuite/const.wast/396.print | 2 +- .../snapshots/testsuite/const.wast/398.print | 2 +- .../snapshots/testsuite/const.wast/400.print | 2 +- .../snapshots/testsuite/const.wast/402.print | 2 +- .../snapshots/testsuite/const.wast/404.print | 2 +- .../snapshots/testsuite/const.wast/406.print | 2 +- .../snapshots/testsuite/const.wast/408.print | 2 +- .../snapshots/testsuite/const.wast/410.print | 2 +- .../snapshots/testsuite/const.wast/412.print | 2 +- .../snapshots/testsuite/const.wast/414.print | 2 +- .../snapshots/testsuite/const.wast/416.print | 2 +- .../snapshots/testsuite/const.wast/418.print | 2 +- .../snapshots/testsuite/const.wast/420.print | 2 +- .../snapshots/testsuite/const.wast/422.print | 2 +- .../snapshots/testsuite/const.wast/424.print | 2 +- .../snapshots/testsuite/const.wast/426.print | 2 +- .../snapshots/testsuite/const.wast/428.print | 2 +- .../snapshots/testsuite/const.wast/430.print | 2 +- .../snapshots/testsuite/const.wast/432.print | 2 +- .../snapshots/testsuite/const.wast/434.print | 2 +- .../snapshots/testsuite/const.wast/436.print | 2 +- .../snapshots/testsuite/const.wast/438.print | 2 +- .../snapshots/testsuite/const.wast/440.print | 2 +- .../snapshots/testsuite/const.wast/442.print | 2 +- .../snapshots/testsuite/const.wast/444.print | 2 +- .../snapshots/testsuite/const.wast/446.print | 2 +- .../snapshots/testsuite/const.wast/448.print | 2 +- .../snapshots/testsuite/const.wast/450.print | 2 +- .../snapshots/testsuite/const.wast/452.print | 2 +- .../snapshots/testsuite/const.wast/454.print | 2 +- .../snapshots/testsuite/const.wast/456.print | 2 +- .../snapshots/testsuite/const.wast/458.print | 2 +- .../snapshots/testsuite/const.wast/460.print | 2 +- .../snapshots/testsuite/const.wast/462.print | 2 +- .../snapshots/testsuite/const.wast/464.print | 2 +- .../snapshots/testsuite/const.wast/466.print | 2 +- .../snapshots/testsuite/const.wast/468.print | 2 +- .../snapshots/testsuite/const.wast/470.print | 2 +- .../snapshots/testsuite/const.wast/472.print | 2 +- .../snapshots/testsuite/const.wast/474.print | 2 +- .../snapshots/testsuite/const.wast/476.print | 2 +- .../snapshots/testsuite/const.wast/478.print | 2 +- .../snapshots/testsuite/const.wast/480.print | 2 +- .../snapshots/testsuite/const.wast/482.print | 2 +- .../snapshots/testsuite/const.wast/484.print | 2 +- .../snapshots/testsuite/const.wast/486.print | 2 +- .../snapshots/testsuite/const.wast/488.print | 2 +- .../snapshots/testsuite/const.wast/490.print | 2 +- .../snapshots/testsuite/const.wast/492.print | 2 +- .../snapshots/testsuite/const.wast/494.print | 2 +- .../snapshots/testsuite/const.wast/496.print | 2 +- .../snapshots/testsuite/const.wast/498.print | 2 +- .../snapshots/testsuite/const.wast/500.print | 2 +- .../snapshots/testsuite/const.wast/502.print | 2 +- .../snapshots/testsuite/const.wast/504.print | 2 +- .../snapshots/testsuite/const.wast/506.print | 2 +- .../snapshots/testsuite/const.wast/508.print | 2 +- .../snapshots/testsuite/const.wast/510.print | 2 +- .../snapshots/testsuite/const.wast/512.print | 2 +- .../snapshots/testsuite/const.wast/514.print | 2 +- .../snapshots/testsuite/const.wast/516.print | 2 +- .../snapshots/testsuite/const.wast/518.print | 2 +- .../snapshots/testsuite/const.wast/520.print | 2 +- .../snapshots/testsuite/const.wast/522.print | 2 +- .../snapshots/testsuite/const.wast/524.print | 2 +- .../snapshots/testsuite/const.wast/526.print | 2 +- .../snapshots/testsuite/const.wast/528.print | 2 +- .../snapshots/testsuite/const.wast/530.print | 2 +- .../snapshots/testsuite/const.wast/532.print | 2 +- .../snapshots/testsuite/const.wast/534.print | 2 +- .../snapshots/testsuite/const.wast/536.print | 2 +- .../snapshots/testsuite/const.wast/538.print | 2 +- .../snapshots/testsuite/const.wast/540.print | 2 +- .../snapshots/testsuite/const.wast/542.print | 2 +- .../snapshots/testsuite/const.wast/544.print | 2 +- .../snapshots/testsuite/const.wast/546.print | 2 +- .../snapshots/testsuite/const.wast/548.print | 2 +- .../snapshots/testsuite/const.wast/550.print | 2 +- .../snapshots/testsuite/const.wast/552.print | 2 +- .../snapshots/testsuite/const.wast/554.print | 2 +- .../snapshots/testsuite/const.wast/556.print | 2 +- .../snapshots/testsuite/const.wast/558.print | 2 +- .../snapshots/testsuite/const.wast/560.print | 2 +- .../snapshots/testsuite/const.wast/562.print | 2 +- .../snapshots/testsuite/const.wast/564.print | 2 +- .../snapshots/testsuite/const.wast/566.print | 2 +- .../snapshots/testsuite/const.wast/568.print | 2 +- .../snapshots/testsuite/const.wast/570.print | 2 +- .../snapshots/testsuite/const.wast/572.print | 2 +- .../snapshots/testsuite/const.wast/574.print | 2 +- .../snapshots/testsuite/const.wast/576.print | 2 +- .../snapshots/testsuite/const.wast/578.print | 2 +- .../snapshots/testsuite/const.wast/580.print | 2 +- .../snapshots/testsuite/const.wast/582.print | 2 +- .../snapshots/testsuite/const.wast/584.print | 2 +- .../snapshots/testsuite/const.wast/586.print | 2 +- .../snapshots/testsuite/const.wast/588.print | 2 +- .../snapshots/testsuite/const.wast/590.print | 2 +- .../snapshots/testsuite/const.wast/592.print | 2 +- .../snapshots/testsuite/const.wast/594.print | 2 +- .../snapshots/testsuite/const.wast/596.print | 2 +- .../snapshots/testsuite/const.wast/598.print | 2 +- .../snapshots/testsuite/const.wast/600.print | 2 +- .../snapshots/testsuite/const.wast/602.print | 2 +- .../snapshots/testsuite/const.wast/604.print | 2 +- .../snapshots/testsuite/const.wast/606.print | 2 +- .../snapshots/testsuite/const.wast/608.print | 2 +- .../snapshots/testsuite/const.wast/610.print | 2 +- .../snapshots/testsuite/const.wast/612.print | 2 +- .../snapshots/testsuite/const.wast/614.print | 2 +- .../snapshots/testsuite/const.wast/616.print | 2 +- .../snapshots/testsuite/const.wast/618.print | 2 +- .../snapshots/testsuite/const.wast/620.print | 2 +- .../snapshots/testsuite/const.wast/622.print | 2 +- .../snapshots/testsuite/const.wast/624.print | 2 +- .../snapshots/testsuite/const.wast/626.print | 2 +- .../snapshots/testsuite/const.wast/628.print | 2 +- .../snapshots/testsuite/const.wast/630.print | 2 +- .../snapshots/testsuite/const.wast/632.print | 2 +- .../snapshots/testsuite/const.wast/634.print | 2 +- .../snapshots/testsuite/const.wast/636.print | 2 +- .../snapshots/testsuite/const.wast/638.print | 2 +- .../snapshots/testsuite/const.wast/640.print | 2 +- .../snapshots/testsuite/const.wast/642.print | 2 +- .../snapshots/testsuite/const.wast/644.print | 2 +- .../snapshots/testsuite/const.wast/646.print | 2 +- .../snapshots/testsuite/const.wast/648.print | 2 +- .../snapshots/testsuite/const.wast/650.print | 2 +- .../snapshots/testsuite/const.wast/652.print | 2 +- .../snapshots/testsuite/const.wast/654.print | 2 +- .../snapshots/testsuite/const.wast/656.print | 2 +- .../snapshots/testsuite/const.wast/658.print | 2 +- .../snapshots/testsuite/const.wast/660.print | 2 +- .../snapshots/testsuite/const.wast/662.print | 2 +- .../snapshots/testsuite/const.wast/664.print | 2 +- .../snapshots/testsuite/const.wast/666.print | 2 +- .../snapshots/testsuite/const.wast/668.print | 2 +- .../snapshots/testsuite/const.wast/670.print | 2 +- .../snapshots/testsuite/const.wast/672.print | 2 +- .../snapshots/testsuite/const.wast/674.print | 2 +- .../snapshots/testsuite/const.wast/676.print | 2 +- .../snapshots/testsuite/const.wast/678.print | 2 +- .../snapshots/testsuite/const.wast/680.print | 2 +- .../snapshots/testsuite/const.wast/682.print | 2 +- .../snapshots/testsuite/const.wast/684.print | 2 +- .../snapshots/testsuite/const.wast/686.print | 2 +- .../snapshots/testsuite/const.wast/688.print | 2 +- .../snapshots/testsuite/const.wast/690.print | 2 +- .../snapshots/testsuite/const.wast/692.print | 2 +- .../snapshots/testsuite/const.wast/694.print | 2 +- .../snapshots/testsuite/const.wast/696.print | 2 +- .../snapshots/testsuite/const.wast/698.print | 2 +- .../snapshots/testsuite/const.wast/700.print | 2 +- .../snapshots/testsuite/const.wast/702.print | 2 +- .../snapshots/testsuite/const.wast/704.print | 2 +- .../snapshots/testsuite/const.wast/706.print | 2 +- .../snapshots/testsuite/const.wast/708.print | 2 +- .../snapshots/testsuite/const.wast/710.print | 2 +- .../snapshots/testsuite/const.wast/712.print | 2 +- .../snapshots/testsuite/const.wast/714.print | 2 +- .../snapshots/testsuite/const.wast/716.print | 2 +- .../snapshots/testsuite/const.wast/718.print | 2 +- .../snapshots/testsuite/const.wast/720.print | 2 +- .../snapshots/testsuite/const.wast/722.print | 2 +- .../snapshots/testsuite/const.wast/724.print | 2 +- .../snapshots/testsuite/const.wast/726.print | 2 +- .../snapshots/testsuite/const.wast/728.print | 2 +- .../snapshots/testsuite/const.wast/730.print | 2 +- .../snapshots/testsuite/const.wast/732.print | 2 +- .../snapshots/testsuite/const.wast/734.print | 2 +- .../snapshots/testsuite/const.wast/736.print | 2 +- .../snapshots/testsuite/const.wast/738.print | 2 +- .../snapshots/testsuite/const.wast/740.print | 2 +- .../snapshots/testsuite/const.wast/742.print | 2 +- .../snapshots/testsuite/const.wast/744.print | 2 +- .../snapshots/testsuite/const.wast/746.print | 2 +- .../snapshots/testsuite/const.wast/748.print | 2 +- .../snapshots/testsuite/const.wast/750.print | 2 +- .../snapshots/testsuite/const.wast/752.print | 2 +- .../snapshots/testsuite/const.wast/754.print | 2 +- .../snapshots/testsuite/const.wast/756.print | 2 +- .../snapshots/testsuite/const.wast/758.print | 2 +- .../snapshots/testsuite/const.wast/760.print | 2 +- .../snapshots/testsuite/const.wast/762.print | 2 +- .../snapshots/testsuite/const.wast/764.print | 2 +- .../snapshots/testsuite/const.wast/766.print | 2 +- .../snapshots/testsuite/const.wast/768.print | 2 +- .../snapshots/testsuite/const.wast/770.print | 2 +- .../snapshots/testsuite/const.wast/772.print | 2 +- .../snapshots/testsuite/const.wast/774.print | 2 +- .../snapshots/testsuite/const.wast/776.print | 2 +- .../testsuite/conversions.wast/0.print | 66 +- tests/snapshots/testsuite/custom.wast/2.print | 2 +- tests/snapshots/testsuite/elem.wast/0.print | 4 +- tests/snapshots/testsuite/elem.wast/1.print | 4 +- tests/snapshots/testsuite/elem.wast/11.print | 10 +- tests/snapshots/testsuite/elem.wast/16.print | 2 +- tests/snapshots/testsuite/elem.wast/17.print | 2 +- tests/snapshots/testsuite/elem.wast/2.print | 2 +- tests/snapshots/testsuite/elem.wast/22.print | 2 +- tests/snapshots/testsuite/elem.wast/23.print | 2 +- tests/snapshots/testsuite/elem.wast/24.print | 2 +- tests/snapshots/testsuite/elem.wast/25.print | 2 +- tests/snapshots/testsuite/elem.wast/3.print | 2 +- tests/snapshots/testsuite/elem.wast/38.print | 6 +- tests/snapshots/testsuite/elem.wast/4.print | 2 +- tests/snapshots/testsuite/elem.wast/40.print | 6 +- tests/snapshots/testsuite/elem.wast/5.print | 2 +- tests/snapshots/testsuite/elem.wast/6.print | 2 +- tests/snapshots/testsuite/elem.wast/62.print | 8 +- tests/snapshots/testsuite/elem.wast/64.print | 6 +- tests/snapshots/testsuite/elem.wast/66.print | 14 +- tests/snapshots/testsuite/elem.wast/7.print | 2 +- tests/snapshots/testsuite/elem.wast/71.print | 4 +- tests/snapshots/testsuite/elem.wast/75.print | 4 +- tests/snapshots/testsuite/elem.wast/8.print | 10 +- tests/snapshots/testsuite/elem.wast/83.print | 8 +- tests/snapshots/testsuite/elem.wast/94.print | 4 +- tests/snapshots/testsuite/elem.wast/96.print | 6 +- .../testsuite/endianness.wast/0.print | 36 +- .../snapshots/testsuite/exports.wast/0.print | 2 +- .../snapshots/testsuite/exports.wast/1.print | 2 +- .../snapshots/testsuite/exports.wast/10.print | 2 +- .../snapshots/testsuite/exports.wast/11.print | 2 +- .../snapshots/testsuite/exports.wast/17.print | 6 +- .../snapshots/testsuite/exports.wast/2.print | 4 +- .../snapshots/testsuite/exports.wast/3.print | 2 +- .../snapshots/testsuite/exports.wast/4.print | 2 +- .../snapshots/testsuite/exports.wast/5.print | 2 +- .../snapshots/testsuite/exports.wast/6.print | 2 +- .../snapshots/testsuite/exports.wast/7.print | 2 +- .../snapshots/testsuite/exports.wast/8.print | 2 +- .../snapshots/testsuite/exports.wast/9.print | 2 +- tests/snapshots/testsuite/f32.wast/0.print | 22 +- .../testsuite/f32_bitwise.wast/0.print | 6 +- .../snapshots/testsuite/f32_cmp.wast/0.print | 12 +- tests/snapshots/testsuite/f64.wast/0.print | 22 +- .../testsuite/f64_bitwise.wast/0.print | 6 +- .../snapshots/testsuite/f64_cmp.wast/0.print | 12 +- tests/snapshots/testsuite/fac.wast/0.print | 12 +- .../testsuite/float_exprs.wast/0.print | 2 +- .../testsuite/float_exprs.wast/105.print | 4 +- .../testsuite/float_exprs.wast/116.print | 4 +- .../testsuite/float_exprs.wast/127.print | 4 +- .../testsuite/float_exprs.wast/138.print | 4 +- .../testsuite/float_exprs.wast/149.print | 4 +- .../testsuite/float_exprs.wast/160.print | 4 +- .../testsuite/float_exprs.wast/17.print | 4 +- .../testsuite/float_exprs.wast/177.print | 4 +- .../testsuite/float_exprs.wast/194.print | 4 +- .../testsuite/float_exprs.wast/205.print | 2 +- .../testsuite/float_exprs.wast/211.print | 4 +- .../testsuite/float_exprs.wast/22.print | 4 +- .../testsuite/float_exprs.wast/222.print | 2 +- .../testsuite/float_exprs.wast/228.print | 8 +- .../testsuite/float_exprs.wast/241.print | 4 +- .../testsuite/float_exprs.wast/252.print | 4 +- .../testsuite/float_exprs.wast/263.print | 4 +- .../testsuite/float_exprs.wast/27.print | 4 +- .../testsuite/float_exprs.wast/274.print | 4 +- .../testsuite/float_exprs.wast/285.print | 4 +- .../testsuite/float_exprs.wast/288.print | 2 +- .../testsuite/float_exprs.wast/294.print | 2 +- .../testsuite/float_exprs.wast/30.print | 4 +- .../testsuite/float_exprs.wast/308.print | 4 +- .../testsuite/float_exprs.wast/319.print | 4 +- .../testsuite/float_exprs.wast/330.print | 4 +- .../testsuite/float_exprs.wast/341.print | 4 +- .../testsuite/float_exprs.wast/352.print | 32 +- .../testsuite/float_exprs.wast/385.print | 8 +- .../testsuite/float_exprs.wast/39.print | 4 +- .../testsuite/float_exprs.wast/399.print | 8 +- .../testsuite/float_exprs.wast/413.print | 16 +- .../testsuite/float_exprs.wast/42.print | 4 +- .../testsuite/float_exprs.wast/446.print | 16 +- .../testsuite/float_exprs.wast/479.print | 16 +- .../testsuite/float_exprs.wast/51.print | 4 +- .../testsuite/float_exprs.wast/512.print | 16 +- .../testsuite/float_exprs.wast/54.print | 4 +- .../testsuite/float_exprs.wast/545.print | 16 +- .../testsuite/float_exprs.wast/57.print | 4 +- .../testsuite/float_exprs.wast/578.print | 4 +- .../testsuite/float_exprs.wast/581.print | 2 +- .../testsuite/float_exprs.wast/583.print | 2 +- .../testsuite/float_exprs.wast/585.print | 2 +- .../testsuite/float_exprs.wast/587.print | 2 +- .../testsuite/float_exprs.wast/589.print | 2 +- .../testsuite/float_exprs.wast/591.print | 6 +- .../testsuite/float_exprs.wast/595.print | 2 +- .../testsuite/float_exprs.wast/597.print | 4 +- .../testsuite/float_exprs.wast/6.print | 4 +- .../testsuite/float_exprs.wast/60.print | 4 +- .../testsuite/float_exprs.wast/600.print | 4 +- .../testsuite/float_exprs.wast/619.print | 4 +- .../testsuite/float_exprs.wast/63.print | 4 +- .../testsuite/float_exprs.wast/630.print | 4 +- .../testsuite/float_exprs.wast/641.print | 6 +- .../testsuite/float_exprs.wast/647.print | 6 +- .../testsuite/float_exprs.wast/653.print | 6 +- .../testsuite/float_exprs.wast/656.print | 6 +- .../testsuite/float_exprs.wast/659.print | 4 +- .../testsuite/float_exprs.wast/66.print | 4 +- .../testsuite/float_exprs.wast/668.print | 4 +- .../testsuite/float_exprs.wast/677.print | 4 +- .../testsuite/float_exprs.wast/686.print | 4 +- .../testsuite/float_exprs.wast/69.print | 4 +- .../testsuite/float_exprs.wast/695.print | 4 +- .../testsuite/float_exprs.wast/706.print | 4 +- .../testsuite/float_exprs.wast/717.print | 4 +- .../testsuite/float_exprs.wast/728.print | 4 +- .../testsuite/float_exprs.wast/739.print | 4 +- .../testsuite/float_exprs.wast/74.print | 4 +- .../testsuite/float_exprs.wast/750.print | 4 +- .../testsuite/float_exprs.wast/761.print | 4 +- .../testsuite/float_exprs.wast/772.print | 4 +- .../testsuite/float_exprs.wast/783.print | 4 +- .../testsuite/float_exprs.wast/786.print | 14 +- .../testsuite/float_exprs.wast/800.print | 4 +- .../testsuite/float_exprs.wast/803.print | 4 +- .../testsuite/float_exprs.wast/806.print | 20 +- .../testsuite/float_exprs.wast/821.print | 4 +- .../testsuite/float_exprs.wast/824.print | 4 +- .../testsuite/float_exprs.wast/827.print | 8 +- .../testsuite/float_exprs.wast/83.print | 4 +- .../testsuite/float_exprs.wast/832.print | 16 +- .../testsuite/float_exprs.wast/841.print | 4 +- .../testsuite/float_exprs.wast/844.print | 4 +- .../testsuite/float_exprs.wast/847.print | 16 +- .../testsuite/float_exprs.wast/856.print | 38 +- .../testsuite/float_exprs.wast/890.print | 4 +- .../testsuite/float_exprs.wast/893.print | 4 +- .../testsuite/float_exprs.wast/900.print | 4 +- .../testsuite/float_exprs.wast/903.print | 4 +- .../testsuite/float_exprs.wast/906.print | 4 +- .../testsuite/float_exprs.wast/919.print | 2 +- .../testsuite/float_exprs.wast/921.print | 2 +- .../testsuite/float_exprs.wast/924.print | 4 +- .../testsuite/float_exprs.wast/94.print | 4 +- .../testsuite/float_literals.wast/0.print | 196 +- .../testsuite/float_literals.wast/99.print | 2 +- .../testsuite/float_memory.wast/0.print | 12 +- .../testsuite/float_memory.wast/15.print | 12 +- .../testsuite/float_memory.wast/30.print | 12 +- .../testsuite/float_memory.wast/45.print | 12 +- .../testsuite/float_memory.wast/60.print | 12 +- .../testsuite/float_memory.wast/75.print | 12 +- .../testsuite/float_misc.wast/0.print | 56 +- .../snapshots/testsuite/forward.wast/0.print | 4 +- tests/snapshots/testsuite/func.wast/0.print | 140 +- tests/snapshots/testsuite/func.wast/93.print | 6 +- tests/snapshots/testsuite/func.wast/97.print | 12 +- .../testsuite/func_ptrs.wast/0.print | 8 +- .../testsuite/func_ptrs.wast/12.print | 8 +- .../testsuite/func_ptrs.wast/33.print | 6 +- tests/snapshots/testsuite/global.wast/0.print | 126 +- tests/snapshots/testsuite/i32.wast/0.print | 62 +- tests/snapshots/testsuite/i64.wast/0.print | 64 +- tests/snapshots/testsuite/if.wast/0.print | 108 +- .../snapshots/testsuite/imports.wast/0.print | 30 +- .../testsuite/imports.wast/117.print | 2 +- .../testsuite/imports.wast/122.print | 2 +- .../testsuite/imports.wast/153.print | 2 +- .../snapshots/testsuite/imports.wast/2.print | 20 +- .../snapshots/testsuite/imports.wast/41.print | 14 +- .../snapshots/testsuite/imports.wast/6.print | 2 +- .../snapshots/testsuite/imports.wast/72.print | 4 +- .../snapshots/testsuite/imports.wast/78.print | 4 +- .../snapshots/testsuite/imports.wast/8.print | 2 +- .../testsuite/inline-module.wast/0.print | 4 +- .../testsuite/int_exprs.wast/0.print | 8 +- .../testsuite/int_exprs.wast/10.print | 8 +- .../testsuite/int_exprs.wast/105.print | 4 +- .../testsuite/int_exprs.wast/15.print | 8 +- .../testsuite/int_exprs.wast/20.print | 8 +- .../testsuite/int_exprs.wast/25.print | 8 +- .../testsuite/int_exprs.wast/30.print | 8 +- .../testsuite/int_exprs.wast/35.print | 8 +- .../testsuite/int_exprs.wast/40.print | 4 +- .../testsuite/int_exprs.wast/43.print | 4 +- .../testsuite/int_exprs.wast/46.print | 8 +- .../testsuite/int_exprs.wast/5.print | 2 +- .../testsuite/int_exprs.wast/51.print | 8 +- .../testsuite/int_exprs.wast/60.print | 8 +- .../testsuite/int_exprs.wast/69.print | 8 +- .../testsuite/int_exprs.wast/78.print | 8 +- .../testsuite/int_exprs.wast/8.print | 2 +- .../testsuite/int_exprs.wast/87.print | 8 +- .../testsuite/int_exprs.wast/96.print | 8 +- .../testsuite/int_literals.wast/0.print | 60 +- tests/snapshots/testsuite/labels.wast/0.print | 36 +- .../testsuite/left-to-right.wast/0.print | 196 +- .../snapshots/testsuite/linking.wast/0.print | 2 +- .../testsuite/linking.wast/100.print | 6 +- .../testsuite/linking.wast/104.print | 2 +- .../snapshots/testsuite/linking.wast/11.print | 14 +- .../testsuite/linking.wast/111.print | 2 +- .../testsuite/linking.wast/127.print | 12 +- .../snapshots/testsuite/linking.wast/13.print | 6 +- .../snapshots/testsuite/linking.wast/2.print | 6 +- .../snapshots/testsuite/linking.wast/38.print | 10 +- .../snapshots/testsuite/linking.wast/40.print | 10 +- .../snapshots/testsuite/linking.wast/59.print | 4 +- .../snapshots/testsuite/linking.wast/80.print | 2 +- .../snapshots/testsuite/linking.wast/98.print | 6 +- tests/snapshots/testsuite/load.wast/0.print | 82 +- .../testsuite/local_get.wast/0.print | 38 +- .../testsuite/local_set.wast/0.print | 38 +- .../testsuite/local_tee.wast/0.print | 118 +- tests/snapshots/testsuite/loop.wast/0.print | 114 +- .../snapshots/testsuite/memory.wast/10.print | 4 +- .../snapshots/testsuite/memory.wast/12.print | 4 +- .../snapshots/testsuite/memory.wast/33.print | 26 +- .../snapshots/testsuite/memory.wast/79.print | 8 +- tests/snapshots/testsuite/memory.wast/8.print | 4 +- .../testsuite/memory_copy.wast/0.print | 8 +- .../testsuite/memory_copy.wast/128.print | 8 +- .../testsuite/memory_copy.wast/1310.print | 8 +- .../testsuite/memory_copy.wast/160.print | 8 +- .../testsuite/memory_copy.wast/1662.print | 8 +- .../testsuite/memory_copy.wast/192.print | 8 +- .../testsuite/memory_copy.wast/2013.print | 8 +- .../testsuite/memory_copy.wast/224.print | 8 +- .../testsuite/memory_copy.wast/2364.print | 8 +- .../testsuite/memory_copy.wast/256.print | 8 +- .../testsuite/memory_copy.wast/2715.print | 8 +- .../testsuite/memory_copy.wast/3066.print | 8 +- .../testsuite/memory_copy.wast/32.print | 8 +- .../testsuite/memory_copy.wast/3417.print | 8 +- .../testsuite/memory_copy.wast/3768.print | 8 +- .../testsuite/memory_copy.wast/4183.print | 6 +- .../testsuite/memory_copy.wast/4188.print | 6 +- .../testsuite/memory_copy.wast/4193.print | 4 +- .../testsuite/memory_copy.wast/4195.print | 4 +- .../testsuite/memory_copy.wast/4197.print | 4 +- .../testsuite/memory_copy.wast/4199.print | 4 +- .../testsuite/memory_copy.wast/4201.print | 6 +- .../testsuite/memory_copy.wast/4205.print | 4 +- .../testsuite/memory_copy.wast/4207.print | 4 +- .../testsuite/memory_copy.wast/4209.print | 4 +- .../testsuite/memory_copy.wast/4211.print | 4 +- .../testsuite/memory_copy.wast/4213.print | 4 +- .../testsuite/memory_copy.wast/4215.print | 4 +- .../testsuite/memory_copy.wast/4217.print | 6 +- .../testsuite/memory_copy.wast/607.print | 8 +- .../testsuite/memory_copy.wast/64.print | 8 +- .../testsuite/memory_copy.wast/959.print | 8 +- .../testsuite/memory_copy.wast/96.print | 8 +- .../testsuite/memory_fill.wast/0.print | 6 +- .../testsuite/memory_fill.wast/11.print | 6 +- .../testsuite/memory_fill.wast/13.print | 6 +- .../testsuite/memory_fill.wast/15.print | 6 +- .../testsuite/memory_fill.wast/20.print | 6 +- .../testsuite/memory_fill.wast/4.print | 6 +- .../testsuite/memory_fill.wast/6.print | 6 +- .../testsuite/memory_fill.wast/8.print | 6 +- .../testsuite/memory_fill.wast/91.print | 6 +- .../testsuite/memory_fill.wast/94.print | 6 +- .../testsuite/memory_fill.wast/97.print | 6 +- .../testsuite/memory_grow.wast/0.print | 14 +- .../testsuite/memory_grow.wast/21.print | 4 +- .../testsuite/memory_grow.wast/30.print | 4 +- .../testsuite/memory_grow.wast/39.print | 6 +- .../testsuite/memory_grow.wast/51.print | 82 +- .../testsuite/memory_grow.wast/89.print | 6 +- .../testsuite/memory_grow.wast/92.print | 4 +- .../testsuite/memory_grow.wast/95.print | 2 +- .../testsuite/memory_init.wast/0.print | 8 +- .../testsuite/memory_init.wast/130.print | 4 +- .../testsuite/memory_init.wast/132.print | 4 +- .../testsuite/memory_init.wast/134.print | 4 +- .../testsuite/memory_init.wast/138.print | 4 +- .../testsuite/memory_init.wast/140.print | 4 +- .../testsuite/memory_init.wast/142.print | 4 +- .../testsuite/memory_init.wast/144.print | 4 +- .../testsuite/memory_init.wast/146.print | 4 +- .../testsuite/memory_init.wast/148.print | 4 +- .../testsuite/memory_init.wast/150.print | 4 +- .../testsuite/memory_init.wast/152.print | 4 +- .../testsuite/memory_init.wast/154.print | 4 +- .../testsuite/memory_init.wast/156.print | 4 +- .../testsuite/memory_init.wast/221.print | 6 +- .../testsuite/memory_init.wast/224.print | 6 +- .../testsuite/memory_init.wast/227.print | 6 +- .../testsuite/memory_init.wast/230.print | 6 +- .../testsuite/memory_init.wast/233.print | 6 +- .../testsuite/memory_init.wast/236.print | 6 +- .../testsuite/memory_init.wast/239.print | 2 +- .../testsuite/memory_init.wast/32.print | 8 +- .../testsuite/memory_init.wast/64.print | 8 +- .../testsuite/memory_init.wast/96.print | 8 +- .../testsuite/memory_redundancy.wast/0.print | 14 +- .../testsuite/memory_size.wast/0.print | 6 +- .../testsuite/memory_size.wast/16.print | 6 +- .../testsuite/memory_size.wast/28.print | 6 +- .../testsuite/memory_size.wast/8.print | 6 +- .../testsuite/memory_trap.wast/0.print | 8 +- .../testsuite/memory_trap.wast/14.print | 48 +- tests/snapshots/testsuite/names.wast/0.print | 2 +- tests/snapshots/testsuite/names.wast/2.print | 2 +- tests/snapshots/testsuite/names.wast/4.print | 2874 ++++++++--------- .../snapshots/testsuite/names.wast/484.print | 2 +- tests/snapshots/testsuite/nop.wast/0.print | 168 +- .../annotations/annotations.wast/71.print | 18 +- .../annotations/simd_lane.wast/0.print | 72 +- .../annotations/simd_lane.wast/360.print | 36 +- .../annotations/simd_lane.wast/379.print | 36 +- .../annotations/simd_lane.wast/399.print | 14 +- .../annotations/simd_lane.wast/406.print | 20 +- .../proposals/annotations/token.wast/8.print | 2 +- .../proposals/annotations/token.wast/9.print | 2 +- .../exception-handling/binary.wast/110.print | 2 +- .../exception-handling/binary.wast/68.print | 2 +- .../exception-handling/binary.wast/69.print | 2 +- .../exception-handling/binary.wast/99.print | 2 +- .../exception-handling/exports.wast/0.print | 2 +- .../exception-handling/exports.wast/1.print | 2 +- .../exception-handling/exports.wast/10.print | 2 +- .../exception-handling/exports.wast/11.print | 2 +- .../exception-handling/exports.wast/17.print | 6 +- .../exception-handling/exports.wast/2.print | 4 +- .../exception-handling/exports.wast/3.print | 2 +- .../exception-handling/exports.wast/4.print | 2 +- .../exception-handling/exports.wast/5.print | 2 +- .../exception-handling/exports.wast/6.print | 2 +- .../exception-handling/exports.wast/7.print | 2 +- .../exception-handling/exports.wast/8.print | 2 +- .../exception-handling/exports.wast/9.print | 2 +- .../exception-handling/imports.wast/0.print | 30 +- .../exception-handling/imports.wast/123.print | 2 +- .../exception-handling/imports.wast/128.print | 2 +- .../exception-handling/imports.wast/159.print | 2 +- .../exception-handling/imports.wast/2.print | 20 +- .../exception-handling/imports.wast/47.print | 14 +- .../exception-handling/imports.wast/6.print | 2 +- .../exception-handling/imports.wast/78.print | 4 +- .../exception-handling/imports.wast/8.print | 2 +- .../exception-handling/imports.wast/84.print | 4 +- .../exception-handling/ref_null.wast/0.print | 12 +- .../exception-handling/throw.wast/0.print | 26 +- .../exception-handling/throw_ref.wast/0.print | 18 +- .../exception-handling/try_table.wast/0.print | 6 +- .../exception-handling/try_table.wast/2.print | 56 +- .../try_table.wast/41.print | 4 +- .../try_table.wast/45.print | 2 +- .../extended-const/elem.wast/0.print | 4 +- .../extended-const/elem.wast/1.print | 4 +- .../extended-const/elem.wast/102.print | 6 +- .../extended-const/elem.wast/105.print | 6 +- .../extended-const/elem.wast/108.print | 6 +- .../extended-const/elem.wast/11.print | 10 +- .../extended-const/elem.wast/16.print | 2 +- .../extended-const/elem.wast/17.print | 2 +- .../extended-const/elem.wast/2.print | 2 +- .../extended-const/elem.wast/22.print | 2 +- .../extended-const/elem.wast/23.print | 2 +- .../extended-const/elem.wast/24.print | 2 +- .../extended-const/elem.wast/25.print | 2 +- .../extended-const/elem.wast/3.print | 2 +- .../extended-const/elem.wast/38.print | 6 +- .../extended-const/elem.wast/4.print | 2 +- .../extended-const/elem.wast/40.print | 6 +- .../extended-const/elem.wast/5.print | 2 +- .../extended-const/elem.wast/6.print | 2 +- .../extended-const/elem.wast/63.print | 8 +- .../extended-const/elem.wast/65.print | 6 +- .../extended-const/elem.wast/67.print | 14 +- .../extended-const/elem.wast/7.print | 2 +- .../extended-const/elem.wast/72.print | 4 +- .../extended-const/elem.wast/76.print | 4 +- .../extended-const/elem.wast/8.print | 10 +- .../extended-const/elem.wast/84.print | 8 +- .../extended-const/elem.wast/95.print | 4 +- .../extended-const/elem.wast/97.print | 6 +- .../extended-const/elem.wast/99.print | 6 +- .../extended-const/global.wast/0.print | 142 +- .../function-references/binary.wast/110.print | 2 +- .../function-references/binary.wast/68.print | 2 +- .../function-references/binary.wast/69.print | 2 +- .../function-references/binary.wast/99.print | 2 +- .../br_on_non_null.wast/0.print | 10 +- .../br_on_non_null.wast/6.print | 6 +- .../br_on_null.wast/0.print | 10 +- .../br_on_null.wast/6.print | 6 +- .../function-references/br_table.wast/0.print | 162 +- .../function-references/call_ref.wast/0.print | 34 +- .../call_ref.wast/25.print | 2 +- .../call_ref.wast/27.print | 4 +- .../call_ref.wast/29.print | 4 +- .../function-references/custom.wast/2.print | 2 +- .../function-references/elem.wast/0.print | 4 +- .../function-references/elem.wast/1.print | 4 +- .../function-references/elem.wast/102.print | 8 +- .../function-references/elem.wast/104.print | 6 +- .../function-references/elem.wast/106.print | 14 +- .../function-references/elem.wast/111.print | 4 +- .../function-references/elem.wast/115.print | 4 +- .../function-references/elem.wast/12.print | 10 +- .../function-references/elem.wast/123.print | 8 +- .../function-references/elem.wast/134.print | 4 +- .../function-references/elem.wast/136.print | 6 +- .../function-references/elem.wast/15.print | 2 +- .../function-references/elem.wast/16.print | 2 +- .../function-references/elem.wast/2.print | 4 +- .../function-references/elem.wast/21.print | 2 +- .../function-references/elem.wast/22.print | 2 +- .../function-references/elem.wast/23.print | 2 +- .../function-references/elem.wast/24.print | 2 +- .../function-references/elem.wast/25.print | 2 +- .../function-references/elem.wast/26.print | 2 +- .../function-references/elem.wast/27.print | 2 +- .../function-references/elem.wast/28.print | 2 +- .../function-references/elem.wast/29.print | 2 +- .../function-references/elem.wast/3.print | 2 +- .../function-references/elem.wast/30.print | 2 +- .../function-references/elem.wast/31.print | 2 +- .../function-references/elem.wast/32.print | 2 +- .../function-references/elem.wast/33.print | 2 +- .../function-references/elem.wast/34.print | 2 +- .../function-references/elem.wast/35.print | 2 +- .../function-references/elem.wast/36.print | 2 +- .../function-references/elem.wast/37.print | 2 +- .../function-references/elem.wast/38.print | 2 +- .../function-references/elem.wast/39.print | 2 +- .../function-references/elem.wast/4.print | 2 +- .../function-references/elem.wast/40.print | 2 +- .../function-references/elem.wast/41.print | 2 +- .../function-references/elem.wast/42.print | 2 +- .../function-references/elem.wast/43.print | 2 +- .../function-references/elem.wast/44.print | 2 +- .../function-references/elem.wast/45.print | 2 +- .../function-references/elem.wast/46.print | 2 +- .../function-references/elem.wast/47.print | 2 +- .../function-references/elem.wast/48.print | 2 +- .../function-references/elem.wast/49.print | 2 +- .../function-references/elem.wast/5.print | 2 +- .../function-references/elem.wast/50.print | 2 +- .../function-references/elem.wast/51.print | 2 +- .../function-references/elem.wast/52.print | 2 +- .../function-references/elem.wast/53.print | 2 +- .../function-references/elem.wast/54.print | 2 +- .../function-references/elem.wast/55.print | 2 +- .../function-references/elem.wast/56.print | 2 +- .../function-references/elem.wast/59.print | 2 +- .../function-references/elem.wast/6.print | 2 +- .../function-references/elem.wast/60.print | 2 +- .../function-references/elem.wast/61.print | 2 +- .../function-references/elem.wast/62.print | 2 +- .../function-references/elem.wast/63.print | 2 +- .../function-references/elem.wast/64.print | 2 +- .../function-references/elem.wast/7.print | 2 +- .../function-references/elem.wast/77.print | 6 +- .../function-references/elem.wast/79.print | 6 +- .../function-references/elem.wast/8.print | 2 +- .../function-references/elem.wast/9.print | 10 +- .../function-references/func.wast/0.print | 140 +- .../function-references/func.wast/93.print | 6 +- .../function-references/func.wast/97.print | 12 +- .../function-references/global.wast/0.print | 126 +- .../function-references/if.wast/0.print | 108 +- .../function-references/linking.wast/0.print | 2 +- .../function-references/linking.wast/11.print | 14 +- .../linking.wast/111.print | 2 +- .../function-references/linking.wast/13.print | 6 +- .../linking.wast/133.print | 6 +- .../linking.wast/135.print | 6 +- .../linking.wast/139.print | 2 +- .../linking.wast/146.print | 2 +- .../linking.wast/162.print | 12 +- .../function-references/linking.wast/2.print | 6 +- .../function-references/linking.wast/31.print | 2 +- .../function-references/linking.wast/69.print | 10 +- .../function-references/linking.wast/71.print | 10 +- .../function-references/linking.wast/90.print | 4 +- .../local_get.wast/0.print | 38 +- .../local_init.wast/0.print | 6 +- .../local_init.wast/8.print | 2 +- .../ref_as_non_null.wast/0.print | 10 +- .../function-references/ref_func.wast/0.print | 2 +- .../ref_func.wast/14.print | 14 +- .../function-references/ref_func.wast/2.print | 34 +- .../ref_is_null.wast/0.print | 26 +- .../function-references/ref_null.wast/0.print | 12 +- .../return_call.wast/0.print | 32 +- .../return_call_indirect.wast/0.print | 50 +- .../return_call_indirect.wast/64.print | 2 +- .../return_call_indirect.wast/65.print | 2 +- .../return_call_ref.wast/0.print | 76 +- .../return_call_ref.wast/33.print | 2 +- .../return_call_ref.wast/40.print | 2 +- .../return_call_ref.wast/42.print | 4 +- .../return_call_ref.wast/44.print | 4 +- .../function-references/select.wast/0.print | 112 +- .../function-references/select.wast/156.print | 2 +- .../table-sub.wast/0.print | 6 +- .../function-references/table.wast/29.print | 2 +- .../function-references/table.wast/31.print | 20 +- .../type-equivalence.wast/11.print | 4 +- .../type-equivalence.wast/4.print | 6 +- .../type-equivalence.wast/6.print | 6 +- .../type-equivalence.wast/8.print | 2 +- .../unreached-valid.wast/0.print | 16 +- .../unreached-valid.wast/10.print | 2 +- .../proposals/gc/array.wast/13.print | 10 +- .../proposals/gc/array.wast/21.print | 10 +- .../proposals/gc/array.wast/31.print | 10 +- .../proposals/gc/array.wast/43.print | 4 +- .../testsuite/proposals/gc/array.wast/5.print | 12 +- .../proposals/gc/array_copy.wast/4.print | 16 +- .../proposals/gc/array_fill.wast/3.print | 10 +- .../proposals/gc/array_init_data.wast/2.print | 18 +- .../proposals/gc/array_init_elem.wast/3.print | 16 +- .../proposals/gc/binary.wast/110.print | 2 +- .../proposals/gc/binary.wast/68.print | 2 +- .../proposals/gc/binary.wast/69.print | 2 +- .../proposals/gc/binary.wast/99.print | 2 +- .../testsuite/proposals/gc/br_if.wast/0.print | 128 +- .../proposals/gc/br_on_cast.wast/0.print | 16 +- .../proposals/gc/br_on_cast.wast/27.print | 6 +- .../proposals/gc/br_on_cast_fail.wast/0.print | 16 +- .../gc/br_on_cast_fail.wast/27.print | 6 +- .../proposals/gc/br_on_non_null.wast/0.print | 10 +- .../proposals/gc/br_on_non_null.wast/6.print | 6 +- .../proposals/gc/br_on_null.wast/0.print | 10 +- .../proposals/gc/br_on_null.wast/6.print | 6 +- .../proposals/gc/br_table.wast/0.print | 162 +- .../proposals/gc/call_ref.wast/0.print | 34 +- .../proposals/gc/call_ref.wast/25.print | 2 +- .../proposals/gc/call_ref.wast/27.print | 4 +- .../proposals/gc/call_ref.wast/29.print | 4 +- .../testsuite/proposals/gc/elem.wast/0.print | 4 +- .../testsuite/proposals/gc/elem.wast/1.print | 4 +- .../proposals/gc/elem.wast/104.print | 8 +- .../proposals/gc/elem.wast/106.print | 6 +- .../proposals/gc/elem.wast/108.print | 14 +- .../proposals/gc/elem.wast/113.print | 4 +- .../proposals/gc/elem.wast/117.print | 4 +- .../testsuite/proposals/gc/elem.wast/12.print | 10 +- .../proposals/gc/elem.wast/125.print | 8 +- .../proposals/gc/elem.wast/136.print | 4 +- .../proposals/gc/elem.wast/138.print | 6 +- .../testsuite/proposals/gc/elem.wast/15.print | 2 +- .../testsuite/proposals/gc/elem.wast/16.print | 2 +- .../testsuite/proposals/gc/elem.wast/17.print | 2 +- .../testsuite/proposals/gc/elem.wast/18.print | 2 +- .../testsuite/proposals/gc/elem.wast/2.print | 4 +- .../testsuite/proposals/gc/elem.wast/23.print | 2 +- .../testsuite/proposals/gc/elem.wast/24.print | 2 +- .../testsuite/proposals/gc/elem.wast/25.print | 2 +- .../testsuite/proposals/gc/elem.wast/26.print | 2 +- .../testsuite/proposals/gc/elem.wast/27.print | 2 +- .../testsuite/proposals/gc/elem.wast/28.print | 2 +- .../testsuite/proposals/gc/elem.wast/29.print | 2 +- .../testsuite/proposals/gc/elem.wast/3.print | 2 +- .../testsuite/proposals/gc/elem.wast/30.print | 2 +- .../testsuite/proposals/gc/elem.wast/31.print | 2 +- .../testsuite/proposals/gc/elem.wast/32.print | 2 +- .../testsuite/proposals/gc/elem.wast/33.print | 2 +- .../testsuite/proposals/gc/elem.wast/34.print | 2 +- .../testsuite/proposals/gc/elem.wast/35.print | 2 +- .../testsuite/proposals/gc/elem.wast/36.print | 2 +- .../testsuite/proposals/gc/elem.wast/37.print | 2 +- .../testsuite/proposals/gc/elem.wast/38.print | 2 +- .../testsuite/proposals/gc/elem.wast/39.print | 2 +- .../testsuite/proposals/gc/elem.wast/4.print | 2 +- .../testsuite/proposals/gc/elem.wast/40.print | 2 +- .../testsuite/proposals/gc/elem.wast/41.print | 2 +- .../testsuite/proposals/gc/elem.wast/42.print | 2 +- .../testsuite/proposals/gc/elem.wast/43.print | 2 +- .../testsuite/proposals/gc/elem.wast/44.print | 2 +- .../testsuite/proposals/gc/elem.wast/45.print | 2 +- .../testsuite/proposals/gc/elem.wast/46.print | 2 +- .../testsuite/proposals/gc/elem.wast/47.print | 2 +- .../testsuite/proposals/gc/elem.wast/48.print | 2 +- .../testsuite/proposals/gc/elem.wast/49.print | 2 +- .../testsuite/proposals/gc/elem.wast/5.print | 2 +- .../testsuite/proposals/gc/elem.wast/50.print | 2 +- .../testsuite/proposals/gc/elem.wast/51.print | 2 +- .../testsuite/proposals/gc/elem.wast/52.print | 2 +- .../testsuite/proposals/gc/elem.wast/53.print | 2 +- .../testsuite/proposals/gc/elem.wast/54.print | 2 +- .../testsuite/proposals/gc/elem.wast/55.print | 2 +- .../testsuite/proposals/gc/elem.wast/56.print | 2 +- .../testsuite/proposals/gc/elem.wast/57.print | 2 +- .../testsuite/proposals/gc/elem.wast/58.print | 2 +- .../testsuite/proposals/gc/elem.wast/6.print | 2 +- .../testsuite/proposals/gc/elem.wast/61.print | 2 +- .../testsuite/proposals/gc/elem.wast/62.print | 2 +- .../testsuite/proposals/gc/elem.wast/63.print | 2 +- .../testsuite/proposals/gc/elem.wast/64.print | 2 +- .../testsuite/proposals/gc/elem.wast/65.print | 2 +- .../testsuite/proposals/gc/elem.wast/66.print | 2 +- .../testsuite/proposals/gc/elem.wast/7.print | 2 +- .../testsuite/proposals/gc/elem.wast/79.print | 6 +- .../testsuite/proposals/gc/elem.wast/8.print | 2 +- .../testsuite/proposals/gc/elem.wast/81.print | 6 +- .../testsuite/proposals/gc/elem.wast/9.print | 10 +- .../proposals/gc/extern.wast/0.print | 14 +- .../testsuite/proposals/gc/func.wast/0.print | 140 +- .../testsuite/proposals/gc/func.wast/93.print | 6 +- .../testsuite/proposals/gc/func.wast/97.print | 12 +- .../proposals/gc/global.wast/0.print | 126 +- .../proposals/gc/global.wast/109.print | 18 +- .../testsuite/proposals/gc/i31.wast/0.print | 18 +- .../testsuite/proposals/gc/i31.wast/23.print | 18 +- .../testsuite/proposals/gc/i31.wast/44.print | 4 +- .../testsuite/proposals/gc/i31.wast/48.print | 4 +- .../testsuite/proposals/gc/i31.wast/50.print | 8 +- .../testsuite/proposals/gc/i31.wast/54.print | 18 +- .../testsuite/proposals/gc/if.wast/0.print | 108 +- .../proposals/gc/linking.wast/0.print | 2 +- .../proposals/gc/linking.wast/107.print | 2 +- .../proposals/gc/linking.wast/11.print | 14 +- .../proposals/gc/linking.wast/129.print | 6 +- .../proposals/gc/linking.wast/13.print | 6 +- .../proposals/gc/linking.wast/131.print | 6 +- .../proposals/gc/linking.wast/135.print | 2 +- .../proposals/gc/linking.wast/142.print | 2 +- .../proposals/gc/linking.wast/158.print | 12 +- .../proposals/gc/linking.wast/2.print | 6 +- .../proposals/gc/linking.wast/31.print | 2 +- .../proposals/gc/linking.wast/65.print | 10 +- .../proposals/gc/linking.wast/67.print | 10 +- .../proposals/gc/linking.wast/86.print | 4 +- .../proposals/gc/local_get.wast/0.print | 38 +- .../proposals/gc/local_init.wast/0.print | 6 +- .../proposals/gc/local_init.wast/8.print | 2 +- .../proposals/gc/local_tee.wast/0.print | 118 +- .../proposals/gc/ref_as_non_null.wast/0.print | 10 +- .../proposals/gc/ref_cast.wast/0.print | 16 +- .../proposals/gc/ref_cast.wast/42.print | 6 +- .../proposals/gc/ref_eq.wast/0.print | 6 +- .../proposals/gc/ref_is_null.wast/0.print | 26 +- .../proposals/gc/ref_null.wast/0.print | 12 +- .../proposals/gc/ref_null.wast/4.print | 42 +- .../proposals/gc/ref_test.wast/0.print | 30 +- .../proposals/gc/ref_test.wast/68.print | 6 +- .../proposals/gc/return_call.wast/0.print | 32 +- .../gc/return_call_indirect.wast/0.print | 50 +- .../gc/return_call_indirect.wast/64.print | 2 +- .../gc/return_call_indirect.wast/65.print | 2 +- .../proposals/gc/return_call_ref.wast/0.print | 76 +- .../gc/return_call_ref.wast/33.print | 2 +- .../gc/return_call_ref.wast/40.print | 2 +- .../gc/return_call_ref.wast/42.print | 4 +- .../gc/return_call_ref.wast/44.print | 4 +- .../proposals/gc/select.wast/0.print | 112 +- .../proposals/gc/select.wast/156.print | 2 +- .../proposals/gc/struct.wast/16.print | 4 +- .../proposals/gc/struct.wast/19.print | 28 +- .../proposals/gc/struct.wast/7.print | 18 +- .../proposals/gc/table-sub.wast/0.print | 6 +- .../proposals/gc/table.wast/29.print | 2 +- .../proposals/gc/table.wast/31.print | 20 +- .../gc/type-equivalence.wast/10.print | 6 +- .../gc/type-equivalence.wast/12.print | 6 +- .../gc/type-equivalence.wast/14.print | 2 +- .../gc/type-equivalence.wast/17.print | 4 +- .../gc/type-equivalence.wast/20.print | 2 +- .../gc/type-equivalence.wast/23.print | 6 +- .../gc/type-equivalence.wast/26.print | 6 +- .../gc/type-equivalence.wast/29.print | 6 +- .../gc/type-equivalence.wast/6.print | 6 +- .../gc/type-equivalence.wast/8.print | 6 +- .../proposals/gc/type-rec.wast/0.print | 2 +- .../proposals/gc/type-rec.wast/1.print | 2 +- .../proposals/gc/type-rec.wast/11.print | 6 +- .../proposals/gc/type-rec.wast/13.print | 6 +- .../proposals/gc/type-rec.wast/15.print | 6 +- .../proposals/gc/type-rec.wast/17.print | 2 +- .../proposals/gc/type-rec.wast/6.print | 2 +- .../proposals/gc/type-subtyping.wast/11.print | 2 +- .../proposals/gc/type-subtyping.wast/12.print | 2 +- .../proposals/gc/type-subtyping.wast/13.print | 8 +- .../proposals/gc/type-subtyping.wast/14.print | 12 +- .../proposals/gc/type-subtyping.wast/17.print | 18 +- .../proposals/gc/type-subtyping.wast/25.print | 12 +- .../proposals/gc/type-subtyping.wast/30.print | 10 +- .../proposals/gc/type-subtyping.wast/34.print | 4 +- .../proposals/gc/type-subtyping.wast/36.print | 4 +- .../proposals/gc/type-subtyping.wast/38.print | 4 +- .../proposals/gc/type-subtyping.wast/40.print | 4 +- .../proposals/gc/type-subtyping.wast/42.print | 4 +- .../proposals/gc/type-subtyping.wast/44.print | 6 +- .../proposals/gc/type-subtyping.wast/46.print | 6 +- .../proposals/gc/type-subtyping.wast/48.print | 4 +- .../proposals/gc/type-subtyping.wast/50.print | 4 +- .../proposals/gc/type-subtyping.wast/52.print | 6 +- .../proposals/gc/type-subtyping.wast/58.print | 4 +- .../proposals/gc/type-subtyping.wast/62.print | 2 +- .../proposals/gc/type-subtyping.wast/65.print | 2 +- .../proposals/gc/type-subtyping.wast/68.print | 2 +- .../proposals/gc/type-subtyping.wast/71.print | 2 +- .../proposals/gc/type-subtyping.wast/74.print | 2 +- .../proposals/gc/type-subtyping.wast/77.print | 4 +- .../proposals/gc/type-subtyping.wast/8.print | 2 +- .../proposals/gc/type-subtyping.wast/80.print | 4 +- .../proposals/gc/type-subtyping.wast/83.print | 2 +- .../proposals/gc/type-subtyping.wast/86.print | 2 +- .../proposals/gc/type-subtyping.wast/9.print | 2 +- .../proposals/gc/unreached-valid.wast/0.print | 16 +- .../gc/unreached-valid.wast/10.print | 2 +- .../proposals/memory64/address.wast/0.print | 62 +- .../proposals/memory64/address.wast/220.print | 14 +- .../proposals/memory64/address.wast/240.print | 14 +- .../proposals/memory64/address.wast/93.print | 86 +- .../proposals/memory64/address0.wast/0.print | 64 +- .../proposals/memory64/address1.wast/0.print | 94 +- .../proposals/memory64/address64.wast/0.print | 62 +- .../memory64/address64.wast/206.print | 14 +- .../memory64/address64.wast/224.print | 14 +- .../memory64/address64.wast/86.print | 86 +- .../proposals/memory64/align.wast/0.print | 2 +- .../proposals/memory64/align.wast/1.print | 2 +- .../proposals/memory64/align.wast/10.print | 2 +- .../proposals/memory64/align.wast/106.print | 10 +- .../proposals/memory64/align.wast/11.print | 2 +- .../proposals/memory64/align.wast/12.print | 2 +- .../proposals/memory64/align.wast/13.print | 2 +- .../proposals/memory64/align.wast/14.print | 2 +- .../proposals/memory64/align.wast/15.print | 2 +- .../proposals/memory64/align.wast/153.print | 6 +- .../proposals/memory64/align.wast/16.print | 2 +- .../proposals/memory64/align.wast/17.print | 2 +- .../proposals/memory64/align.wast/18.print | 2 +- .../proposals/memory64/align.wast/19.print | 2 +- .../proposals/memory64/align.wast/2.print | 2 +- .../proposals/memory64/align.wast/20.print | 2 +- .../proposals/memory64/align.wast/21.print | 2 +- .../proposals/memory64/align.wast/22.print | 2 +- .../proposals/memory64/align.wast/3.print | 2 +- .../proposals/memory64/align.wast/4.print | 2 +- .../proposals/memory64/align.wast/5.print | 2 +- .../proposals/memory64/align.wast/6.print | 2 +- .../proposals/memory64/align.wast/7.print | 2 +- .../proposals/memory64/align.wast/8.print | 2 +- .../proposals/memory64/align.wast/9.print | 2 +- .../proposals/memory64/align0.wast/0.print | 8 +- .../proposals/memory64/align64.wast/0.print | 2 +- .../proposals/memory64/align64.wast/1.print | 2 +- .../proposals/memory64/align64.wast/10.print | 2 +- .../proposals/memory64/align64.wast/106.print | 10 +- .../proposals/memory64/align64.wast/11.print | 2 +- .../proposals/memory64/align64.wast/12.print | 2 +- .../proposals/memory64/align64.wast/13.print | 2 +- .../proposals/memory64/align64.wast/14.print | 2 +- .../proposals/memory64/align64.wast/15.print | 2 +- .../proposals/memory64/align64.wast/153.print | 6 +- .../proposals/memory64/align64.wast/16.print | 2 +- .../proposals/memory64/align64.wast/17.print | 2 +- .../proposals/memory64/align64.wast/18.print | 2 +- .../proposals/memory64/align64.wast/19.print | 2 +- .../proposals/memory64/align64.wast/2.print | 2 +- .../proposals/memory64/align64.wast/20.print | 2 +- .../proposals/memory64/align64.wast/21.print | 2 +- .../proposals/memory64/align64.wast/22.print | 2 +- .../proposals/memory64/align64.wast/3.print | 2 +- .../proposals/memory64/align64.wast/4.print | 2 +- .../proposals/memory64/align64.wast/5.print | 2 +- .../proposals/memory64/align64.wast/6.print | 2 +- .../proposals/memory64/align64.wast/7.print | 2 +- .../proposals/memory64/align64.wast/8.print | 2 +- .../proposals/memory64/align64.wast/9.print | 2 +- .../memory64/annotations.wast/71.print | 18 +- .../proposals/memory64/array.wast/13.print | 10 +- .../proposals/memory64/array.wast/21.print | 10 +- .../proposals/memory64/array.wast/31.print | 10 +- .../proposals/memory64/array.wast/43.print | 4 +- .../proposals/memory64/array.wast/5.print | 12 +- .../memory64/array_copy.wast/4.print | 16 +- .../memory64/array_fill.wast/3.print | 10 +- .../memory64/array_init_data.wast/2.print | 18 +- .../memory64/array_init_elem.wast/3.print | 16 +- .../memory64/binary-leb128.wast/14.print | 2 +- .../memory64/binary-leb128.wast/15.print | 2 +- .../memory64/binary-leb128.wast/73.print | 2 +- .../proposals/memory64/binary.wast/100.print | 2 +- .../proposals/memory64/binary.wast/58.print | 2 +- .../proposals/memory64/binary.wast/59.print | 2 +- .../proposals/memory64/binary.wast/89.print | 2 +- .../proposals/memory64/br_if.wast/0.print | 128 +- .../memory64/br_on_cast.wast/0.print | 16 +- .../memory64/br_on_cast.wast/27.print | 6 +- .../memory64/br_on_cast_fail.wast/0.print | 16 +- .../memory64/br_on_cast_fail.wast/27.print | 6 +- .../memory64/br_on_non_null.wast/0.print | 10 +- .../memory64/br_on_non_null.wast/6.print | 6 +- .../memory64/br_on_null.wast/0.print | 10 +- .../memory64/br_on_null.wast/6.print | 6 +- .../proposals/memory64/br_table.wast/0.print | 162 +- .../memory64/call_indirect.wast/0.print | 132 +- .../memory64/call_indirect.wast/124.print | 20 +- .../memory64/call_indirect.wast/170.print | 2 +- .../proposals/memory64/call_ref.wast/0.print | 34 +- .../proposals/memory64/call_ref.wast/25.print | 2 +- .../proposals/memory64/call_ref.wast/27.print | 4 +- .../proposals/memory64/call_ref.wast/29.print | 4 +- .../memory64/data_drop0.wast/0.print | 14 +- .../proposals/memory64/elem.wast/0.print | 4 +- .../proposals/memory64/elem.wast/1.print | 4 +- .../proposals/memory64/elem.wast/103.print | 8 +- .../proposals/memory64/elem.wast/105.print | 6 +- .../proposals/memory64/elem.wast/107.print | 14 +- .../proposals/memory64/elem.wast/112.print | 4 +- .../proposals/memory64/elem.wast/116.print | 4 +- .../proposals/memory64/elem.wast/12.print | 10 +- .../proposals/memory64/elem.wast/124.print | 8 +- .../proposals/memory64/elem.wast/135.print | 4 +- .../proposals/memory64/elem.wast/137.print | 6 +- .../proposals/memory64/elem.wast/139.print | 6 +- .../proposals/memory64/elem.wast/142.print | 6 +- .../proposals/memory64/elem.wast/145.print | 6 +- .../proposals/memory64/elem.wast/148.print | 6 +- .../proposals/memory64/elem.wast/15.print | 2 +- .../proposals/memory64/elem.wast/16.print | 2 +- .../proposals/memory64/elem.wast/17.print | 2 +- .../proposals/memory64/elem.wast/18.print | 2 +- .../proposals/memory64/elem.wast/2.print | 4 +- .../proposals/memory64/elem.wast/23.print | 2 +- .../proposals/memory64/elem.wast/24.print | 2 +- .../proposals/memory64/elem.wast/25.print | 2 +- .../proposals/memory64/elem.wast/26.print | 2 +- .../proposals/memory64/elem.wast/27.print | 2 +- .../proposals/memory64/elem.wast/28.print | 2 +- .../proposals/memory64/elem.wast/29.print | 2 +- .../proposals/memory64/elem.wast/3.print | 2 +- .../proposals/memory64/elem.wast/30.print | 2 +- .../proposals/memory64/elem.wast/31.print | 2 +- .../proposals/memory64/elem.wast/32.print | 2 +- .../proposals/memory64/elem.wast/33.print | 2 +- .../proposals/memory64/elem.wast/34.print | 2 +- .../proposals/memory64/elem.wast/35.print | 2 +- .../proposals/memory64/elem.wast/36.print | 2 +- .../proposals/memory64/elem.wast/37.print | 2 +- .../proposals/memory64/elem.wast/38.print | 2 +- .../proposals/memory64/elem.wast/39.print | 2 +- .../proposals/memory64/elem.wast/4.print | 2 +- .../proposals/memory64/elem.wast/40.print | 2 +- .../proposals/memory64/elem.wast/41.print | 2 +- .../proposals/memory64/elem.wast/42.print | 2 +- .../proposals/memory64/elem.wast/43.print | 2 +- .../proposals/memory64/elem.wast/44.print | 2 +- .../proposals/memory64/elem.wast/45.print | 2 +- .../proposals/memory64/elem.wast/46.print | 2 +- .../proposals/memory64/elem.wast/47.print | 2 +- .../proposals/memory64/elem.wast/48.print | 2 +- .../proposals/memory64/elem.wast/49.print | 2 +- .../proposals/memory64/elem.wast/5.print | 2 +- .../proposals/memory64/elem.wast/50.print | 2 +- .../proposals/memory64/elem.wast/51.print | 2 +- .../proposals/memory64/elem.wast/52.print | 2 +- .../proposals/memory64/elem.wast/53.print | 2 +- .../proposals/memory64/elem.wast/54.print | 2 +- .../proposals/memory64/elem.wast/55.print | 2 +- .../proposals/memory64/elem.wast/56.print | 2 +- .../proposals/memory64/elem.wast/57.print | 2 +- .../proposals/memory64/elem.wast/58.print | 2 +- .../proposals/memory64/elem.wast/6.print | 2 +- .../proposals/memory64/elem.wast/61.print | 2 +- .../proposals/memory64/elem.wast/62.print | 2 +- .../proposals/memory64/elem.wast/63.print | 2 +- .../proposals/memory64/elem.wast/64.print | 2 +- .../proposals/memory64/elem.wast/65.print | 2 +- .../proposals/memory64/elem.wast/66.print | 2 +- .../proposals/memory64/elem.wast/7.print | 2 +- .../proposals/memory64/elem.wast/79.print | 6 +- .../proposals/memory64/elem.wast/8.print | 2 +- .../proposals/memory64/elem.wast/81.print | 6 +- .../proposals/memory64/elem.wast/9.print | 10 +- .../memory64/endianness64.wast/0.print | 36 +- .../proposals/memory64/exports.wast/0.print | 2 +- .../proposals/memory64/exports.wast/1.print | 2 +- .../proposals/memory64/exports.wast/10.print | 2 +- .../proposals/memory64/exports.wast/11.print | 2 +- .../proposals/memory64/exports.wast/17.print | 6 +- .../proposals/memory64/exports.wast/2.print | 4 +- .../proposals/memory64/exports.wast/3.print | 2 +- .../proposals/memory64/exports.wast/4.print | 2 +- .../proposals/memory64/exports.wast/5.print | 2 +- .../proposals/memory64/exports.wast/6.print | 2 +- .../proposals/memory64/exports.wast/7.print | 2 +- .../proposals/memory64/exports.wast/8.print | 2 +- .../proposals/memory64/exports.wast/9.print | 2 +- .../proposals/memory64/extern.wast/0.print | 14 +- .../memory64/float_exprs0.wast/0.print | 12 +- .../memory64/float_exprs1.wast/0.print | 22 +- .../memory64/float_memory0.wast/0.print | 22 +- .../memory64/float_memory0.wast/15.print | 14 +- .../memory64/float_memory64.wast/0.print | 12 +- .../memory64/float_memory64.wast/15.print | 12 +- .../memory64/float_memory64.wast/30.print | 12 +- .../memory64/float_memory64.wast/45.print | 12 +- .../memory64/float_memory64.wast/60.print | 12 +- .../memory64/float_memory64.wast/75.print | 12 +- .../proposals/memory64/func.wast/0.print | 140 +- .../proposals/memory64/func.wast/93.print | 6 +- .../proposals/memory64/func.wast/97.print | 12 +- .../proposals/memory64/global.wast/0.print | 142 +- .../proposals/memory64/global.wast/113.print | 18 +- .../proposals/memory64/i31.wast/0.print | 18 +- .../proposals/memory64/i31.wast/23.print | 18 +- .../proposals/memory64/i31.wast/44.print | 4 +- .../proposals/memory64/i31.wast/48.print | 4 +- .../proposals/memory64/i31.wast/50.print | 8 +- .../proposals/memory64/i31.wast/54.print | 18 +- .../proposals/memory64/if.wast/0.print | 108 +- .../proposals/memory64/imports.wast/0.print | 30 +- .../proposals/memory64/imports.wast/123.print | 2 +- .../proposals/memory64/imports.wast/128.print | 2 +- .../proposals/memory64/imports.wast/156.print | 2 +- .../proposals/memory64/imports.wast/162.print | 6 +- .../proposals/memory64/imports.wast/165.print | 4 +- .../proposals/memory64/imports.wast/168.print | 2 +- .../proposals/memory64/imports.wast/2.print | 20 +- .../proposals/memory64/imports.wast/47.print | 14 +- .../proposals/memory64/imports.wast/6.print | 2 +- .../proposals/memory64/imports.wast/78.print | 4 +- .../proposals/memory64/imports.wast/8.print | 2 +- .../proposals/memory64/imports.wast/84.print | 4 +- .../proposals/memory64/imports0.wast/0.print | 30 +- .../proposals/memory64/imports1.wast/0.print | 2 +- .../proposals/memory64/imports2.wast/2.print | 2 +- .../proposals/memory64/imports2.wast/7.print | 2 +- .../proposals/memory64/imports3.wast/0.print | 30 +- .../proposals/memory64/imports4.wast/11.print | 8 +- .../proposals/memory64/imports4.wast/14.print | 6 +- .../proposals/memory64/imports4.wast/2.print | 2 +- .../proposals/memory64/imports4.wast/8.print | 8 +- .../proposals/memory64/linking.wast/0.print | 2 +- .../proposals/memory64/linking.wast/107.print | 2 +- .../proposals/memory64/linking.wast/11.print | 14 +- .../proposals/memory64/linking.wast/129.print | 6 +- .../proposals/memory64/linking.wast/13.print | 6 +- .../proposals/memory64/linking.wast/131.print | 6 +- .../proposals/memory64/linking.wast/135.print | 2 +- .../proposals/memory64/linking.wast/142.print | 2 +- .../proposals/memory64/linking.wast/158.print | 12 +- .../proposals/memory64/linking.wast/2.print | 6 +- .../proposals/memory64/linking.wast/31.print | 2 +- .../proposals/memory64/linking.wast/65.print | 10 +- .../proposals/memory64/linking.wast/67.print | 10 +- .../proposals/memory64/linking.wast/86.print | 4 +- .../proposals/memory64/linking0.wast/0.print | 10 +- .../proposals/memory64/linking1.wast/0.print | 8 +- .../proposals/memory64/linking1.wast/2.print | 6 +- .../proposals/memory64/linking1.wast/6.print | 2 +- .../proposals/memory64/linking2.wast/0.print | 8 +- .../proposals/memory64/linking2.wast/2.print | 2 +- .../proposals/memory64/linking3.wast/0.print | 8 +- .../proposals/memory64/linking3.wast/9.print | 12 +- .../proposals/memory64/load.wast/0.print | 8 +- .../proposals/memory64/load.wast/21.print | 82 +- .../proposals/memory64/load.wast/3.print | 6 +- .../proposals/memory64/load.wast/5.print | 6 +- .../proposals/memory64/load0.wast/0.print | 8 +- .../proposals/memory64/load1.wast/0.print | 6 +- .../proposals/memory64/load1.wast/2.print | 6 +- .../proposals/memory64/load2.wast/0.print | 88 +- .../proposals/memory64/load64.wast/0.print | 82 +- .../proposals/memory64/local_get.wast/0.print | 38 +- .../memory64/local_init.wast/0.print | 6 +- .../memory64/local_init.wast/8.print | 2 +- .../proposals/memory64/local_tee.wast/0.print | 118 +- .../memory64/memory-multi.wast/0.print | 8 +- .../memory64/memory-multi.wast/3.print | 8 +- .../proposals/memory64/memory.wast/10.print | 4 +- .../proposals/memory64/memory.wast/31.print | 26 +- .../proposals/memory64/memory.wast/6.print | 4 +- .../proposals/memory64/memory.wast/77.print | 8 +- .../proposals/memory64/memory.wast/8.print | 4 +- .../proposals/memory64/memory64.wast/20.print | 26 +- .../proposals/memory64/memory64.wast/4.print | 4 +- .../proposals/memory64/memory64.wast/6.print | 4 +- .../proposals/memory64/memory64.wast/8.print | 4 +- .../memory64/memory_copy.wast/0.print | 8 +- .../memory64/memory_copy.wast/128.print | 8 +- .../memory64/memory_copy.wast/1310.print | 8 +- .../memory64/memory_copy.wast/160.print | 8 +- .../memory64/memory_copy.wast/1662.print | 8 +- .../memory64/memory_copy.wast/192.print | 8 +- .../memory64/memory_copy.wast/2013.print | 8 +- .../memory64/memory_copy.wast/224.print | 8 +- .../memory64/memory_copy.wast/2364.print | 8 +- .../memory64/memory_copy.wast/256.print | 8 +- .../memory64/memory_copy.wast/2715.print | 8 +- .../memory64/memory_copy.wast/3066.print | 8 +- .../memory64/memory_copy.wast/32.print | 8 +- .../memory64/memory_copy.wast/3417.print | 8 +- .../memory64/memory_copy.wast/3768.print | 8 +- .../memory64/memory_copy.wast/4183.print | 6 +- .../memory64/memory_copy.wast/4188.print | 6 +- .../memory64/memory_copy.wast/4193.print | 4 +- .../memory64/memory_copy.wast/4195.print | 4 +- .../memory64/memory_copy.wast/4197.print | 4 +- .../memory64/memory_copy.wast/4199.print | 4 +- .../memory64/memory_copy.wast/4201.print | 6 +- .../memory64/memory_copy.wast/4205.print | 4 +- .../memory64/memory_copy.wast/4207.print | 4 +- .../memory64/memory_copy.wast/4209.print | 4 +- .../memory64/memory_copy.wast/4211.print | 4 +- .../memory64/memory_copy.wast/4213.print | 4 +- .../memory64/memory_copy.wast/4215.print | 4 +- .../memory64/memory_copy.wast/4217.print | 6 +- .../memory64/memory_copy.wast/4450.print | 8 +- .../memory64/memory_copy.wast/4482.print | 8 +- .../memory64/memory_copy.wast/4514.print | 8 +- .../memory64/memory_copy.wast/4546.print | 8 +- .../memory64/memory_copy.wast/4578.print | 8 +- .../memory64/memory_copy.wast/4610.print | 8 +- .../memory64/memory_copy.wast/4642.print | 8 +- .../memory64/memory_copy.wast/4674.print | 8 +- .../memory64/memory_copy.wast/4706.print | 8 +- .../memory64/memory_copy.wast/5057.print | 8 +- .../memory64/memory_copy.wast/5409.print | 8 +- .../memory64/memory_copy.wast/5760.print | 8 +- .../memory64/memory_copy.wast/607.print | 8 +- .../memory64/memory_copy.wast/6112.print | 8 +- .../memory64/memory_copy.wast/64.print | 8 +- .../memory64/memory_copy.wast/6463.print | 8 +- .../memory64/memory_copy.wast/6814.print | 8 +- .../memory64/memory_copy.wast/7165.print | 8 +- .../memory64/memory_copy.wast/7516.print | 8 +- .../memory64/memory_copy.wast/7867.print | 8 +- .../memory64/memory_copy.wast/8218.print | 8 +- .../memory64/memory_copy.wast/8633.print | 6 +- .../memory64/memory_copy.wast/8638.print | 6 +- .../memory64/memory_copy.wast/8643.print | 4 +- .../memory64/memory_copy.wast/8645.print | 4 +- .../memory64/memory_copy.wast/8647.print | 4 +- .../memory64/memory_copy.wast/8649.print | 4 +- .../memory64/memory_copy.wast/8651.print | 6 +- .../memory64/memory_copy.wast/8655.print | 4 +- .../memory64/memory_copy.wast/8657.print | 4 +- .../memory64/memory_copy.wast/8659.print | 4 +- .../memory64/memory_copy.wast/8661.print | 4 +- .../memory64/memory_copy.wast/8663.print | 4 +- .../memory64/memory_copy.wast/8665.print | 4 +- .../memory64/memory_copy.wast/8667.print | 6 +- .../memory64/memory_copy.wast/959.print | 8 +- .../memory64/memory_copy.wast/96.print | 8 +- .../memory64/memory_copy0.wast/0.print | 12 +- .../memory64/memory_copy1.wast/0.print | 12 +- .../memory64/memory_fill.wast/0.print | 6 +- .../memory64/memory_fill.wast/100.print | 6 +- .../memory64/memory_fill.wast/104.print | 6 +- .../memory64/memory_fill.wast/106.print | 6 +- .../memory64/memory_fill.wast/108.print | 6 +- .../memory64/memory_fill.wast/11.print | 6 +- .../memory64/memory_fill.wast/111.print | 6 +- .../memory64/memory_fill.wast/113.print | 6 +- .../memory64/memory_fill.wast/115.print | 6 +- .../memory64/memory_fill.wast/120.print | 6 +- .../memory64/memory_fill.wast/13.print | 6 +- .../memory64/memory_fill.wast/15.print | 6 +- .../memory64/memory_fill.wast/191.print | 6 +- .../memory64/memory_fill.wast/194.print | 6 +- .../memory64/memory_fill.wast/197.print | 6 +- .../memory64/memory_fill.wast/20.print | 6 +- .../memory64/memory_fill.wast/4.print | 6 +- .../memory64/memory_fill.wast/6.print | 6 +- .../memory64/memory_fill.wast/8.print | 6 +- .../memory64/memory_fill.wast/91.print | 6 +- .../memory64/memory_fill.wast/94.print | 6 +- .../memory64/memory_fill.wast/97.print | 6 +- .../memory64/memory_fill0.wast/0.print | 10 +- .../memory64/memory_grow.wast/0.print | 4 +- .../memory64/memory_grow.wast/132.print | 12 +- .../memory64/memory_grow.wast/18.print | 6 +- .../memory64/memory_grow.wast/30.print | 14 +- .../memory64/memory_grow.wast/53.print | 20 +- .../memory64/memory_grow.wast/9.print | 4 +- .../memory64/memory_grow.wast/94.print | 82 +- .../memory64/memory_grow64.wast/0.print | 14 +- .../memory64/memory_grow64.wast/21.print | 4 +- .../memory64/memory_grow64.wast/28.print | 4 +- .../memory64/memory_grow64.wast/37.print | 6 +- .../memory64/memory_init.wast/0.print | 8 +- .../memory64/memory_init.wast/130.print | 4 +- .../memory64/memory_init.wast/132.print | 4 +- .../memory64/memory_init.wast/134.print | 4 +- .../memory64/memory_init.wast/138.print | 4 +- .../memory64/memory_init.wast/140.print | 4 +- .../memory64/memory_init.wast/142.print | 4 +- .../memory64/memory_init.wast/144.print | 4 +- .../memory64/memory_init.wast/146.print | 4 +- .../memory64/memory_init.wast/148.print | 4 +- .../memory64/memory_init.wast/150.print | 4 +- .../memory64/memory_init.wast/152.print | 4 +- .../memory64/memory_init.wast/154.print | 4 +- .../memory64/memory_init.wast/156.print | 4 +- .../memory64/memory_init.wast/221.print | 6 +- .../memory64/memory_init.wast/224.print | 6 +- .../memory64/memory_init.wast/227.print | 6 +- .../memory64/memory_init.wast/230.print | 6 +- .../memory64/memory_init.wast/233.print | 6 +- .../memory64/memory_init.wast/236.print | 6 +- .../memory64/memory_init.wast/239.print | 2 +- .../memory64/memory_init.wast/240.print | 8 +- .../memory64/memory_init.wast/272.print | 8 +- .../memory64/memory_init.wast/304.print | 8 +- .../memory64/memory_init.wast/32.print | 8 +- .../memory64/memory_init.wast/336.print | 8 +- .../memory64/memory_init.wast/370.print | 4 +- .../memory64/memory_init.wast/372.print | 4 +- .../memory64/memory_init.wast/374.print | 4 +- .../memory64/memory_init.wast/378.print | 4 +- .../memory64/memory_init.wast/380.print | 4 +- .../memory64/memory_init.wast/382.print | 4 +- .../memory64/memory_init.wast/384.print | 4 +- .../memory64/memory_init.wast/386.print | 4 +- .../memory64/memory_init.wast/388.print | 4 +- .../memory64/memory_init.wast/390.print | 4 +- .../memory64/memory_init.wast/392.print | 4 +- .../memory64/memory_init.wast/394.print | 4 +- .../memory64/memory_init.wast/396.print | 4 +- .../memory64/memory_init.wast/461.print | 6 +- .../memory64/memory_init.wast/464.print | 6 +- .../memory64/memory_init.wast/467.print | 6 +- .../memory64/memory_init.wast/470.print | 6 +- .../memory64/memory_init.wast/473.print | 6 +- .../memory64/memory_init.wast/476.print | 6 +- .../memory64/memory_init.wast/479.print | 2 +- .../memory64/memory_init.wast/64.print | 8 +- .../memory64/memory_init.wast/96.print | 8 +- .../memory64/memory_init0.wast/0.print | 12 +- .../memory64/memory_redundancy64.wast/0.print | 14 +- .../memory64/memory_size.wast/0.print | 6 +- .../memory64/memory_size.wast/16.print | 6 +- .../memory64/memory_size.wast/28.print | 6 +- .../memory64/memory_size.wast/42.print | 12 +- .../memory64/memory_size.wast/8.print | 6 +- .../memory64/memory_size0.wast/0.print | 14 +- .../memory64/memory_size1.wast/0.print | 18 +- .../memory64/memory_size2.wast/0.print | 16 +- .../memory64/memory_trap0.wast/0.print | 12 +- .../memory64/memory_trap1.wast/0.print | 52 +- .../memory64/memory_trap64.wast/0.print | 8 +- .../memory64/memory_trap64.wast/13.print | 48 +- .../memory64/ref_as_non_null.wast/0.print | 10 +- .../proposals/memory64/ref_cast.wast/0.print | 16 +- .../proposals/memory64/ref_cast.wast/42.print | 6 +- .../proposals/memory64/ref_eq.wast/0.print | 6 +- .../memory64/ref_is_null.wast/0.print | 26 +- .../proposals/memory64/ref_null.wast/0.print | 20 +- .../proposals/memory64/ref_null.wast/6.print | 54 +- .../proposals/memory64/ref_test.wast/0.print | 30 +- .../proposals/memory64/ref_test.wast/68.print | 6 +- .../memory64/return_call.wast/0.print | 32 +- .../return_call_indirect.wast/0.print | 50 +- .../return_call_indirect.wast/64.print | 2 +- .../return_call_indirect.wast/65.print | 2 +- .../memory64/return_call_ref.wast/0.print | 76 +- .../memory64/return_call_ref.wast/33.print | 2 +- .../memory64/return_call_ref.wast/40.print | 2 +- .../memory64/return_call_ref.wast/42.print | 4 +- .../memory64/return_call_ref.wast/44.print | 4 +- .../proposals/memory64/select.wast/0.print | 112 +- .../proposals/memory64/select.wast/156.print | 2 +- .../memory64/simd_address.wast/0.print | 26 +- .../memory64/simd_address.wast/41.print | 4 +- .../memory64/simd_address.wast/44.print | 4 +- .../proposals/memory64/simd_lane.wast/0.print | 72 +- .../memory64/simd_lane.wast/360.print | 36 +- .../memory64/simd_lane.wast/379.print | 36 +- .../memory64/simd_lane.wast/399.print | 14 +- .../memory64/simd_lane.wast/406.print | 20 +- .../memory64/simd_memory-multi.wast/0.print | 4 +- .../proposals/memory64/start0.wast/0.print | 14 +- .../proposals/memory64/store.wast/0.print | 12 +- .../proposals/memory64/store.wast/13.print | 8 +- .../proposals/memory64/store.wast/20.print | 10 +- .../proposals/memory64/store.wast/43.print | 20 +- .../proposals/memory64/store.wast/5.print | 8 +- .../proposals/memory64/store.wast/7.print | 8 +- .../proposals/memory64/store0.wast/0.print | 12 +- .../proposals/memory64/store1.wast/0.print | 8 +- .../proposals/memory64/store1.wast/2.print | 8 +- .../proposals/memory64/store1.wast/8.print | 8 +- .../proposals/memory64/struct.wast/16.print | 4 +- .../proposals/memory64/struct.wast/19.print | 28 +- .../proposals/memory64/struct.wast/7.print | 18 +- .../proposals/memory64/table-sub.wast/0.print | 6 +- .../proposals/memory64/table.wast/42.print | 2 +- .../proposals/memory64/table.wast/44.print | 20 +- .../memory64/table_copy.wast/0.print | 10 +- .../memory64/table_copy.wast/1056.print | 22 +- .../memory64/table_copy.wast/1118.print | 14 +- .../memory64/table_copy.wast/1120.print | 14 +- .../memory64/table_copy.wast/1122.print | 14 +- .../memory64/table_copy.wast/1124.print | 14 +- .../memory64/table_copy.wast/1126.print | 14 +- .../memory64/table_copy.wast/1128.print | 14 +- .../memory64/table_copy.wast/1130.print | 14 +- .../memory64/table_copy.wast/1132.print | 14 +- .../memory64/table_copy.wast/1134.print | 14 +- .../memory64/table_copy.wast/1136.print | 14 +- .../memory64/table_copy.wast/1138.print | 14 +- .../memory64/table_copy.wast/1140.print | 14 +- .../memory64/table_copy.wast/1142.print | 14 +- .../memory64/table_copy.wast/1144.print | 14 +- .../memory64/table_copy.wast/1146.print | 14 +- .../memory64/table_copy.wast/1148.print | 14 +- .../memory64/table_copy.wast/1150.print | 14 +- .../memory64/table_copy.wast/1152.print | 14 +- .../memory64/table_copy.wast/1154.print | 14 +- .../memory64/table_copy.wast/1156.print | 14 +- .../memory64/table_copy.wast/1158.print | 14 +- .../memory64/table_copy.wast/1160.print | 14 +- .../memory64/table_copy.wast/1162.print | 14 +- .../memory64/table_copy.wast/1164.print | 14 +- .../memory64/table_copy.wast/1166.print | 14 +- .../memory64/table_copy.wast/1168.print | 14 +- .../memory64/table_copy.wast/1170.print | 14 +- .../memory64/table_copy.wast/1172.print | 14 +- .../memory64/table_copy.wast/1174.print | 14 +- .../memory64/table_copy.wast/1176.print | 14 +- .../memory64/table_copy.wast/1178.print | 14 +- .../memory64/table_copy.wast/1180.print | 14 +- .../memory64/table_copy.wast/1182.print | 14 +- .../memory64/table_copy.wast/1184.print | 14 +- .../memory64/table_copy.wast/1186.print | 14 +- .../memory64/table_copy.wast/1188.print | 14 +- .../memory64/table_copy.wast/1190.print | 14 +- .../memory64/table_copy.wast/1192.print | 14 +- .../memory64/table_copy.wast/1194.print | 14 +- .../memory64/table_copy.wast/1196.print | 14 +- .../memory64/table_copy.wast/1198.print | 14 +- .../memory64/table_copy.wast/1200.print | 14 +- .../memory64/table_copy.wast/1202.print | 14 +- .../memory64/table_copy.wast/1204.print | 14 +- .../memory64/table_copy.wast/1206.print | 40 +- .../memory64/table_copy.wast/1240.print | 40 +- .../memory64/table_copy.wast/126.print | 22 +- .../memory64/table_copy.wast/1274.print | 40 +- .../memory64/table_copy.wast/1308.print | 40 +- .../memory64/table_copy.wast/1342.print | 40 +- .../memory64/table_copy.wast/1376.print | 40 +- .../memory64/table_copy.wast/1410.print | 40 +- .../memory64/table_copy.wast/1444.print | 40 +- .../memory64/table_copy.wast/1478.print | 40 +- .../memory64/table_copy.wast/1512.print | 40 +- .../memory64/table_copy.wast/1642.print | 40 +- .../memory64/table_copy.wast/188.print | 22 +- .../memory64/table_copy.wast/2.print | 22 +- .../memory64/table_copy.wast/250.print | 22 +- .../memory64/table_copy.wast/312.print | 22 +- .../memory64/table_copy.wast/374.print | 22 +- .../memory64/table_copy.wast/436.print | 22 +- .../memory64/table_copy.wast/498.print | 22 +- .../memory64/table_copy.wast/560.print | 22 +- .../memory64/table_copy.wast/622.print | 22 +- .../memory64/table_copy.wast/64.print | 22 +- .../memory64/table_copy.wast/684.print | 22 +- .../memory64/table_copy.wast/746.print | 22 +- .../memory64/table_copy.wast/808.print | 22 +- .../memory64/table_copy.wast/870.print | 22 +- .../memory64/table_copy.wast/932.print | 22 +- .../memory64/table_copy.wast/994.print | 22 +- .../memory64/table_copy_mixed.wast/0.print | 12 +- .../memory64/table_fill.wast/0.print | 14 +- .../proposals/memory64/table_get.wast/0.print | 18 +- .../memory64/table_grow.wast/0.print | 22 +- .../memory64/table_grow.wast/43.print | 6 +- .../memory64/table_grow.wast/45.print | 4 +- .../memory64/table_grow.wast/51.print | 4 +- .../memory64/table_grow.wast/60.print | 8 +- .../memory64/table_init.wast/0.print | 10 +- .../memory64/table_init.wast/130.print | 18 +- .../memory64/table_init.wast/162.print | 18 +- .../memory64/table_init.wast/194.print | 18 +- .../memory64/table_init.wast/2.print | 18 +- .../memory64/table_init.wast/226.print | 18 +- .../memory64/table_init.wast/258.print | 18 +- .../memory64/table_init.wast/294.print | 14 +- .../memory64/table_init.wast/296.print | 14 +- .../memory64/table_init.wast/298.print | 14 +- .../memory64/table_init.wast/300.print | 14 +- .../memory64/table_init.wast/302.print | 14 +- .../memory64/table_init.wast/304.print | 14 +- .../memory64/table_init.wast/306.print | 14 +- .../memory64/table_init.wast/308.print | 14 +- .../memory64/table_init.wast/310.print | 14 +- .../memory64/table_init.wast/312.print | 14 +- .../memory64/table_init.wast/314.print | 14 +- .../memory64/table_init.wast/316.print | 14 +- .../memory64/table_init.wast/318.print | 14 +- .../memory64/table_init.wast/320.print | 14 +- .../memory64/table_init.wast/322.print | 14 +- .../memory64/table_init.wast/324.print | 14 +- .../memory64/table_init.wast/326.print | 14 +- .../memory64/table_init.wast/328.print | 14 +- .../memory64/table_init.wast/330.print | 14 +- .../memory64/table_init.wast/332.print | 14 +- .../memory64/table_init.wast/334.print | 14 +- .../memory64/table_init.wast/34.print | 18 +- .../memory64/table_init.wast/399.print | 40 +- .../memory64/table_init.wast/433.print | 40 +- .../memory64/table_init.wast/467.print | 40 +- .../memory64/table_init.wast/629.print | 40 +- .../memory64/table_init.wast/66.print | 18 +- .../memory64/table_init.wast/791.print | 40 +- .../memory64/table_init.wast/857.print | 40 +- .../memory64/table_init.wast/875.print | 12 +- .../memory64/table_init.wast/98.print | 18 +- .../proposals/memory64/table_set.wast/0.print | 24 +- .../memory64/table_size.wast/0.print | 28 +- .../proposals/memory64/throw.wast/0.print | 26 +- .../proposals/memory64/throw_ref.wast/0.print | 18 +- .../proposals/memory64/token.wast/8.print | 2 +- .../proposals/memory64/token.wast/9.print | 2 +- .../proposals/memory64/traps0.wast/0.print | 34 +- .../proposals/memory64/try_table.wast/0.print | 6 +- .../proposals/memory64/try_table.wast/2.print | 56 +- .../memory64/try_table.wast/41.print | 4 +- .../memory64/try_table.wast/45.print | 2 +- .../memory64/try_table.wast/53.print | 14 +- .../memory64/type-equivalence.wast/10.print | 6 +- .../memory64/type-equivalence.wast/12.print | 6 +- .../memory64/type-equivalence.wast/14.print | 2 +- .../memory64/type-equivalence.wast/17.print | 4 +- .../memory64/type-equivalence.wast/20.print | 2 +- .../memory64/type-equivalence.wast/23.print | 6 +- .../memory64/type-equivalence.wast/26.print | 6 +- .../memory64/type-equivalence.wast/29.print | 6 +- .../memory64/type-equivalence.wast/6.print | 6 +- .../memory64/type-equivalence.wast/8.print | 6 +- .../proposals/memory64/type-rec.wast/0.print | 2 +- .../proposals/memory64/type-rec.wast/1.print | 2 +- .../proposals/memory64/type-rec.wast/11.print | 6 +- .../proposals/memory64/type-rec.wast/13.print | 6 +- .../proposals/memory64/type-rec.wast/15.print | 6 +- .../proposals/memory64/type-rec.wast/17.print | 2 +- .../proposals/memory64/type-rec.wast/6.print | 2 +- .../memory64/type-subtyping.wast/11.print | 2 +- .../memory64/type-subtyping.wast/12.print | 2 +- .../memory64/type-subtyping.wast/13.print | 8 +- .../memory64/type-subtyping.wast/14.print | 12 +- .../memory64/type-subtyping.wast/17.print | 18 +- .../memory64/type-subtyping.wast/25.print | 12 +- .../memory64/type-subtyping.wast/30.print | 10 +- .../memory64/type-subtyping.wast/34.print | 4 +- .../memory64/type-subtyping.wast/36.print | 4 +- .../memory64/type-subtyping.wast/38.print | 4 +- .../memory64/type-subtyping.wast/40.print | 4 +- .../memory64/type-subtyping.wast/42.print | 4 +- .../memory64/type-subtyping.wast/44.print | 6 +- .../memory64/type-subtyping.wast/46.print | 6 +- .../memory64/type-subtyping.wast/48.print | 4 +- .../memory64/type-subtyping.wast/50.print | 4 +- .../memory64/type-subtyping.wast/52.print | 6 +- .../memory64/type-subtyping.wast/58.print | 4 +- .../memory64/type-subtyping.wast/62.print | 2 +- .../memory64/type-subtyping.wast/65.print | 2 +- .../memory64/type-subtyping.wast/68.print | 2 +- .../memory64/type-subtyping.wast/71.print | 2 +- .../memory64/type-subtyping.wast/74.print | 2 +- .../memory64/type-subtyping.wast/77.print | 4 +- .../memory64/type-subtyping.wast/8.print | 2 +- .../memory64/type-subtyping.wast/80.print | 4 +- .../memory64/type-subtyping.wast/83.print | 2 +- .../memory64/type-subtyping.wast/86.print | 2 +- .../memory64/type-subtyping.wast/9.print | 2 +- .../memory64/unreached-valid.wast/0.print | 16 +- .../memory64/unreached-valid.wast/10.print | 2 +- .../multi-memory/address0.wast/0.print | 64 +- .../multi-memory/address1.wast/0.print | 94 +- .../multi-memory/align0.wast/0.print | 8 +- .../multi-memory/binary.wast/100.print | 2 +- .../multi-memory/binary.wast/58.print | 2 +- .../multi-memory/binary.wast/59.print | 2 +- .../multi-memory/binary.wast/89.print | 2 +- .../multi-memory/data_drop0.wast/0.print | 14 +- .../multi-memory/float_exprs0.wast/0.print | 12 +- .../multi-memory/float_exprs1.wast/0.print | 22 +- .../multi-memory/float_memory0.wast/0.print | 22 +- .../multi-memory/float_memory0.wast/15.print | 14 +- .../multi-memory/imports.wast/0.print | 30 +- .../multi-memory/imports.wast/117.print | 2 +- .../multi-memory/imports.wast/122.print | 2 +- .../multi-memory/imports.wast/150.print | 2 +- .../multi-memory/imports.wast/156.print | 6 +- .../multi-memory/imports.wast/159.print | 4 +- .../multi-memory/imports.wast/162.print | 2 +- .../multi-memory/imports.wast/2.print | 20 +- .../multi-memory/imports.wast/41.print | 14 +- .../multi-memory/imports.wast/6.print | 2 +- .../multi-memory/imports.wast/72.print | 4 +- .../multi-memory/imports.wast/78.print | 4 +- .../multi-memory/imports.wast/8.print | 2 +- .../multi-memory/imports0.wast/0.print | 30 +- .../multi-memory/imports1.wast/0.print | 2 +- .../multi-memory/imports2.wast/2.print | 2 +- .../multi-memory/imports2.wast/7.print | 2 +- .../multi-memory/imports3.wast/0.print | 30 +- .../multi-memory/imports4.wast/11.print | 8 +- .../multi-memory/imports4.wast/14.print | 6 +- .../multi-memory/imports4.wast/2.print | 2 +- .../multi-memory/imports4.wast/8.print | 8 +- .../multi-memory/linking0.wast/0.print | 10 +- .../multi-memory/linking1.wast/0.print | 8 +- .../multi-memory/linking1.wast/2.print | 6 +- .../multi-memory/linking1.wast/6.print | 2 +- .../multi-memory/linking2.wast/0.print | 8 +- .../multi-memory/linking2.wast/2.print | 2 +- .../multi-memory/linking3.wast/0.print | 8 +- .../multi-memory/linking3.wast/9.print | 12 +- .../proposals/multi-memory/load.wast/0.print | 8 +- .../proposals/multi-memory/load.wast/21.print | 82 +- .../proposals/multi-memory/load.wast/3.print | 6 +- .../proposals/multi-memory/load.wast/5.print | 6 +- .../proposals/multi-memory/load0.wast/0.print | 8 +- .../proposals/multi-memory/load1.wast/0.print | 6 +- .../proposals/multi-memory/load1.wast/2.print | 6 +- .../proposals/multi-memory/load2.wast/0.print | 88 +- .../multi-memory/memory-multi.wast/0.print | 8 +- .../multi-memory/memory-multi.wast/3.print | 8 +- .../multi-memory/memory.wast/10.print | 4 +- .../multi-memory/memory.wast/31.print | 26 +- .../multi-memory/memory.wast/6.print | 4 +- .../multi-memory/memory.wast/77.print | 8 +- .../multi-memory/memory.wast/8.print | 4 +- .../multi-memory/memory_copy0.wast/0.print | 12 +- .../multi-memory/memory_copy1.wast/0.print | 12 +- .../multi-memory/memory_fill0.wast/0.print | 10 +- .../multi-memory/memory_grow.wast/0.print | 4 +- .../multi-memory/memory_grow.wast/132.print | 12 +- .../multi-memory/memory_grow.wast/18.print | 6 +- .../multi-memory/memory_grow.wast/30.print | 14 +- .../multi-memory/memory_grow.wast/53.print | 20 +- .../multi-memory/memory_grow.wast/9.print | 4 +- .../multi-memory/memory_grow.wast/94.print | 82 +- .../multi-memory/memory_init0.wast/0.print | 12 +- .../multi-memory/memory_size.wast/0.print | 6 +- .../multi-memory/memory_size.wast/16.print | 6 +- .../multi-memory/memory_size.wast/28.print | 6 +- .../multi-memory/memory_size.wast/42.print | 12 +- .../multi-memory/memory_size.wast/8.print | 6 +- .../multi-memory/memory_size0.wast/0.print | 14 +- .../multi-memory/memory_size1.wast/0.print | 18 +- .../multi-memory/memory_size2.wast/0.print | 16 +- .../multi-memory/memory_trap0.wast/0.print | 12 +- .../multi-memory/memory_trap1.wast/0.print | 52 +- .../simd_memory-multi.wast/0.print | 4 +- .../multi-memory/start0.wast/0.print | 14 +- .../proposals/multi-memory/store.wast/0.print | 12 +- .../multi-memory/store.wast/13.print | 8 +- .../multi-memory/store.wast/20.print | 10 +- .../multi-memory/store.wast/43.print | 20 +- .../proposals/multi-memory/store.wast/5.print | 8 +- .../proposals/multi-memory/store.wast/7.print | 8 +- .../multi-memory/store0.wast/0.print | 12 +- .../multi-memory/store1.wast/0.print | 8 +- .../multi-memory/store1.wast/2.print | 8 +- .../multi-memory/store1.wast/8.print | 8 +- .../multi-memory/traps0.wast/0.print | 34 +- .../i16x8_relaxed_q15mulr_s.wast/0.print | 4 +- .../i32x4_relaxed_trunc.wast/0.print | 16 +- .../i8x16_relaxed_swizzle.wast/0.print | 4 +- .../relaxed_dot_product.wast/0.print | 8 +- .../relaxed_laneselect.wast/0.print | 16 +- .../relaxed_madd_nmadd.wast/0.print | 16 +- .../relaxed_madd_nmadd.wast/17.print | 2 +- .../relaxed-simd/relaxed_min_max.wast/0.print | 16 +- .../tail-call/return_call.wast/0.print | 32 +- .../return_call_indirect.wast/0.print | 50 +- .../return_call_indirect.wast/64.print | 2 +- .../return_call_indirect.wast/65.print | 2 +- .../proposals/threads/atomic.wast/0.print | 130 +- .../proposals/threads/atomic.wast/243.print | 10 +- .../proposals/threads/atomic.wast/248.print | 2 +- .../proposals/threads/exports.wast/0.print | 2 +- .../proposals/threads/exports.wast/1.print | 2 +- .../proposals/threads/exports.wast/10.print | 2 +- .../proposals/threads/exports.wast/11.print | 2 +- .../proposals/threads/exports.wast/2.print | 4 +- .../proposals/threads/exports.wast/3.print | 2 +- .../proposals/threads/exports.wast/4.print | 2 +- .../proposals/threads/exports.wast/5.print | 2 +- .../proposals/threads/exports.wast/6.print | 2 +- .../proposals/threads/exports.wast/7.print | 2 +- .../proposals/threads/exports.wast/8.print | 2 +- .../proposals/threads/exports.wast/9.print | 2 +- .../proposals/threads/imports.wast/0.print | 30 +- .../proposals/threads/imports.wast/124.print | 2 +- .../proposals/threads/imports.wast/2.print | 20 +- .../proposals/threads/imports.wast/37.print | 8 +- .../proposals/threads/imports.wast/52.print | 4 +- .../proposals/threads/imports.wast/58.print | 4 +- .../proposals/threads/imports.wast/88.print | 2 +- .../proposals/threads/imports.wast/93.print | 2 +- .../proposals/threads/memory.wast/11.print | 4 +- .../proposals/threads/memory.wast/13.print | 4 +- .../proposals/threads/memory.wast/15.print | 4 +- .../proposals/threads/memory.wast/36.print | 26 +- .../snapshots/testsuite/ref_func.wast/0.print | 2 +- .../testsuite/ref_func.wast/14.print | 14 +- .../snapshots/testsuite/ref_func.wast/2.print | 34 +- .../testsuite/ref_is_null.wast/0.print | 18 +- .../snapshots/testsuite/ref_null.wast/0.print | 8 +- tests/snapshots/testsuite/return.wast/0.print | 126 +- tests/snapshots/testsuite/select.wast/0.print | 98 +- .../snapshots/testsuite/select.wast/147.print | 2 +- .../testsuite/simd_address.wast/0.print | 26 +- .../testsuite/simd_address.wast/41.print | 4 +- .../testsuite/simd_address.wast/44.print | 4 +- .../testsuite/simd_align.wast/0.print | 2 +- .../testsuite/simd_align.wast/1.print | 2 +- .../testsuite/simd_align.wast/10.print | 2 +- .../testsuite/simd_align.wast/11.print | 2 +- .../testsuite/simd_align.wast/12.print | 2 +- .../testsuite/simd_align.wast/13.print | 2 +- .../testsuite/simd_align.wast/14.print | 2 +- .../testsuite/simd_align.wast/15.print | 2 +- .../testsuite/simd_align.wast/16.print | 2 +- .../testsuite/simd_align.wast/17.print | 2 +- .../testsuite/simd_align.wast/18.print | 2 +- .../testsuite/simd_align.wast/19.print | 2 +- .../testsuite/simd_align.wast/2.print | 2 +- .../testsuite/simd_align.wast/20.print | 2 +- .../testsuite/simd_align.wast/21.print | 2 +- .../testsuite/simd_align.wast/22.print | 2 +- .../testsuite/simd_align.wast/23.print | 2 +- .../testsuite/simd_align.wast/24.print | 2 +- .../testsuite/simd_align.wast/25.print | 2 +- .../testsuite/simd_align.wast/26.print | 2 +- .../testsuite/simd_align.wast/27.print | 2 +- .../testsuite/simd_align.wast/28.print | 2 +- .../testsuite/simd_align.wast/29.print | 2 +- .../testsuite/simd_align.wast/3.print | 2 +- .../testsuite/simd_align.wast/30.print | 2 +- .../testsuite/simd_align.wast/31.print | 2 +- .../testsuite/simd_align.wast/32.print | 2 +- .../testsuite/simd_align.wast/33.print | 2 +- .../testsuite/simd_align.wast/34.print | 2 +- .../testsuite/simd_align.wast/35.print | 2 +- .../testsuite/simd_align.wast/36.print | 2 +- .../testsuite/simd_align.wast/37.print | 2 +- .../testsuite/simd_align.wast/38.print | 2 +- .../testsuite/simd_align.wast/39.print | 2 +- .../testsuite/simd_align.wast/4.print | 2 +- .../testsuite/simd_align.wast/40.print | 2 +- .../testsuite/simd_align.wast/41.print | 2 +- .../testsuite/simd_align.wast/42.print | 2 +- .../testsuite/simd_align.wast/43.print | 2 +- .../testsuite/simd_align.wast/5.print | 2 +- .../testsuite/simd_align.wast/6.print | 2 +- .../testsuite/simd_align.wast/7.print | 2 +- .../testsuite/simd_align.wast/8.print | 2 +- .../testsuite/simd_align.wast/9.print | 2 +- .../testsuite/simd_align.wast/90.print | 6 +- .../testsuite/simd_align.wast/95.print | 10 +- .../testsuite/simd_bit_shift.wast/0.print | 48 +- .../testsuite/simd_bit_shift.wast/188.print | 50 +- .../testsuite/simd_bitwise.wast/0.print | 12 +- .../testsuite/simd_bitwise.wast/143.print | 28 +- .../testsuite/simd_boolean.wast/0.print | 22 +- .../testsuite/simd_boolean.wast/80.print | 134 +- .../testsuite/simd_const.wast/197.print | 2 +- .../testsuite/simd_const.wast/199.print | 2 +- .../testsuite/simd_const.wast/201.print | 2 +- .../testsuite/simd_const.wast/203.print | 2 +- .../testsuite/simd_const.wast/205.print | 2 +- .../testsuite/simd_const.wast/207.print | 2 +- .../testsuite/simd_const.wast/209.print | 2 +- .../testsuite/simd_const.wast/211.print | 2 +- .../testsuite/simd_const.wast/213.print | 2 +- .../testsuite/simd_const.wast/215.print | 2 +- .../testsuite/simd_const.wast/217.print | 2 +- .../testsuite/simd_const.wast/219.print | 2 +- .../testsuite/simd_const.wast/221.print | 2 +- .../testsuite/simd_const.wast/223.print | 2 +- .../testsuite/simd_const.wast/225.print | 2 +- .../testsuite/simd_const.wast/227.print | 2 +- .../testsuite/simd_const.wast/229.print | 2 +- .../testsuite/simd_const.wast/231.print | 2 +- .../testsuite/simd_const.wast/233.print | 2 +- .../testsuite/simd_const.wast/235.print | 2 +- .../testsuite/simd_const.wast/237.print | 2 +- .../testsuite/simd_const.wast/239.print | 2 +- .../testsuite/simd_const.wast/241.print | 2 +- .../testsuite/simd_const.wast/243.print | 2 +- .../testsuite/simd_const.wast/245.print | 2 +- .../testsuite/simd_const.wast/247.print | 2 +- .../testsuite/simd_const.wast/249.print | 2 +- .../testsuite/simd_const.wast/251.print | 2 +- .../testsuite/simd_const.wast/253.print | 2 +- .../testsuite/simd_const.wast/255.print | 2 +- .../testsuite/simd_const.wast/257.print | 2 +- .../testsuite/simd_const.wast/259.print | 2 +- .../testsuite/simd_const.wast/261.print | 2 +- .../testsuite/simd_const.wast/263.print | 2 +- .../testsuite/simd_const.wast/265.print | 2 +- .../testsuite/simd_const.wast/267.print | 2 +- .../testsuite/simd_const.wast/269.print | 2 +- .../testsuite/simd_const.wast/271.print | 2 +- .../testsuite/simd_const.wast/273.print | 2 +- .../testsuite/simd_const.wast/275.print | 2 +- .../testsuite/simd_const.wast/277.print | 2 +- .../testsuite/simd_const.wast/279.print | 2 +- .../testsuite/simd_const.wast/281.print | 2 +- .../testsuite/simd_const.wast/283.print | 2 +- .../testsuite/simd_const.wast/285.print | 2 +- .../testsuite/simd_const.wast/287.print | 2 +- .../testsuite/simd_const.wast/289.print | 2 +- .../testsuite/simd_const.wast/291.print | 2 +- .../testsuite/simd_const.wast/293.print | 2 +- .../testsuite/simd_const.wast/295.print | 2 +- .../testsuite/simd_const.wast/297.print | 2 +- .../testsuite/simd_const.wast/299.print | 2 +- .../testsuite/simd_const.wast/301.print | 2 +- .../testsuite/simd_const.wast/303.print | 2 +- .../testsuite/simd_const.wast/305.print | 2 +- .../testsuite/simd_const.wast/307.print | 2 +- .../testsuite/simd_const.wast/309.print | 2 +- .../testsuite/simd_const.wast/311.print | 2 +- .../testsuite/simd_const.wast/313.print | 2 +- .../testsuite/simd_const.wast/315.print | 2 +- .../testsuite/simd_const.wast/317.print | 2 +- .../testsuite/simd_const.wast/319.print | 2 +- .../testsuite/simd_const.wast/321.print | 2 +- .../testsuite/simd_const.wast/323.print | 2 +- .../testsuite/simd_const.wast/325.print | 2 +- .../testsuite/simd_const.wast/327.print | 2 +- .../testsuite/simd_const.wast/329.print | 2 +- .../testsuite/simd_const.wast/331.print | 2 +- .../testsuite/simd_const.wast/333.print | 2 +- .../testsuite/simd_const.wast/335.print | 2 +- .../testsuite/simd_const.wast/337.print | 2 +- .../testsuite/simd_const.wast/339.print | 2 +- .../testsuite/simd_const.wast/341.print | 2 +- .../testsuite/simd_const.wast/343.print | 2 +- .../testsuite/simd_const.wast/345.print | 2 +- .../testsuite/simd_const.wast/347.print | 2 +- .../testsuite/simd_const.wast/349.print | 2 +- .../testsuite/simd_const.wast/351.print | 2 +- .../testsuite/simd_const.wast/353.print | 2 +- .../testsuite/simd_const.wast/355.print | 2 +- .../testsuite/simd_const.wast/357.print | 2 +- .../testsuite/simd_const.wast/359.print | 2 +- .../testsuite/simd_const.wast/361.print | 2 +- .../testsuite/simd_const.wast/363.print | 2 +- .../testsuite/simd_const.wast/365.print | 2 +- .../testsuite/simd_const.wast/367.print | 2 +- .../testsuite/simd_const.wast/369.print | 2 +- .../testsuite/simd_const.wast/371.print | 2 +- .../testsuite/simd_const.wast/373.print | 2 +- .../testsuite/simd_const.wast/375.print | 2 +- .../testsuite/simd_const.wast/377.print | 2 +- .../testsuite/simd_const.wast/379.print | 2 +- .../testsuite/simd_const.wast/381.print | 2 +- .../testsuite/simd_const.wast/383.print | 2 +- .../testsuite/simd_const.wast/385.print | 2 +- .../testsuite/simd_const.wast/387.print | 2 +- .../testsuite/simd_const.wast/389.print | 2 +- .../testsuite/simd_const.wast/391.print | 2 +- .../testsuite/simd_const.wast/393.print | 2 +- .../testsuite/simd_const.wast/395.print | 2 +- .../testsuite/simd_const.wast/397.print | 2 +- .../testsuite/simd_const.wast/399.print | 2 +- .../testsuite/simd_const.wast/401.print | 2 +- .../testsuite/simd_const.wast/403.print | 2 +- .../testsuite/simd_const.wast/405.print | 2 +- .../testsuite/simd_const.wast/407.print | 2 +- .../testsuite/simd_const.wast/409.print | 2 +- .../testsuite/simd_const.wast/411.print | 2 +- .../testsuite/simd_const.wast/413.print | 2 +- .../testsuite/simd_const.wast/415.print | 2 +- .../testsuite/simd_const.wast/417.print | 2 +- .../testsuite/simd_const.wast/419.print | 2 +- .../testsuite/simd_const.wast/421.print | 2 +- .../testsuite/simd_const.wast/423.print | 2 +- .../testsuite/simd_const.wast/425.print | 2 +- .../testsuite/simd_const.wast/427.print | 2 +- .../testsuite/simd_const.wast/429.print | 2 +- .../testsuite/simd_const.wast/431.print | 2 +- .../testsuite/simd_const.wast/433.print | 2 +- .../testsuite/simd_const.wast/435.print | 2 +- .../testsuite/simd_const.wast/437.print | 2 +- .../testsuite/simd_const.wast/439.print | 2 +- .../testsuite/simd_const.wast/441.print | 2 +- .../testsuite/simd_const.wast/443.print | 2 +- .../testsuite/simd_const.wast/445.print | 2 +- .../testsuite/simd_const.wast/447.print | 2 +- .../testsuite/simd_const.wast/449.print | 2 +- .../testsuite/simd_const.wast/451.print | 2 +- .../testsuite/simd_const.wast/453.print | 2 +- .../testsuite/simd_const.wast/455.print | 2 +- .../testsuite/simd_const.wast/457.print | 2 +- .../testsuite/simd_const.wast/459.print | 2 +- .../testsuite/simd_const.wast/461.print | 2 +- .../testsuite/simd_const.wast/463.print | 2 +- .../testsuite/simd_const.wast/465.print | 2 +- .../testsuite/simd_const.wast/467.print | 2 +- .../testsuite/simd_const.wast/469.print | 2 +- .../testsuite/simd_const.wast/471.print | 2 +- .../testsuite/simd_const.wast/473.print | 2 +- .../testsuite/simd_const.wast/475.print | 2 +- .../testsuite/simd_const.wast/477.print | 2 +- .../testsuite/simd_const.wast/479.print | 2 +- .../testsuite/simd_const.wast/481.print | 2 +- .../testsuite/simd_const.wast/483.print | 2 +- .../testsuite/simd_const.wast/485.print | 2 +- .../testsuite/simd_const.wast/487.print | 2 +- .../testsuite/simd_const.wast/489.print | 2 +- .../testsuite/simd_const.wast/491.print | 2 +- .../testsuite/simd_const.wast/493.print | 2 +- .../testsuite/simd_const.wast/495.print | 2 +- .../testsuite/simd_const.wast/497.print | 2 +- .../testsuite/simd_const.wast/499.print | 2 +- .../testsuite/simd_const.wast/501.print | 2 +- .../testsuite/simd_const.wast/503.print | 2 +- .../testsuite/simd_const.wast/505.print | 2 +- .../testsuite/simd_const.wast/507.print | 2 +- .../testsuite/simd_const.wast/509.print | 2 +- .../testsuite/simd_const.wast/511.print | 2 +- .../testsuite/simd_const.wast/513.print | 2 +- .../testsuite/simd_const.wast/515.print | 2 +- .../testsuite/simd_const.wast/517.print | 2 +- .../testsuite/simd_const.wast/519.print | 2 +- .../testsuite/simd_const.wast/521.print | 2 +- .../testsuite/simd_const.wast/523.print | 2 +- .../testsuite/simd_const.wast/525.print | 2 +- .../testsuite/simd_const.wast/527.print | 2 +- .../testsuite/simd_const.wast/529.print | 2 +- .../testsuite/simd_const.wast/531.print | 2 +- .../testsuite/simd_const.wast/533.print | 2 +- .../testsuite/simd_const.wast/535.print | 2 +- .../testsuite/simd_const.wast/537.print | 2 +- .../testsuite/simd_const.wast/539.print | 2 +- .../testsuite/simd_const.wast/541.print | 2 +- .../testsuite/simd_const.wast/543.print | 2 +- .../testsuite/simd_const.wast/545.print | 2 +- .../testsuite/simd_const.wast/547.print | 2 +- .../testsuite/simd_const.wast/549.print | 2 +- .../testsuite/simd_const.wast/551.print | 2 +- .../testsuite/simd_const.wast/553.print | 2 +- .../testsuite/simd_const.wast/555.print | 2 +- .../testsuite/simd_const.wast/557.print | 2 +- .../testsuite/simd_const.wast/559.print | 2 +- .../testsuite/simd_const.wast/561.print | 2 +- .../testsuite/simd_const.wast/563.print | 2 +- .../testsuite/simd_const.wast/565.print | 2 +- .../testsuite/simd_const.wast/567.print | 2 +- .../testsuite/simd_const.wast/569.print | 2 +- .../testsuite/simd_const.wast/571.print | 2 +- .../testsuite/simd_const.wast/573.print | 46 +- .../testsuite/simd_const.wast/594.print | 10 +- .../testsuite/simd_const.wast/599.print | 26 +- .../testsuite/simd_const.wast/605.print | 44 +- .../testsuite/simd_const.wast/648.print | 40 +- .../testsuite/simd_const.wast/745.print | 2 +- .../testsuite/simd_const.wast/747.print | 2 +- .../testsuite/simd_const.wast/749.print | 2 +- .../testsuite/simd_const.wast/751.print | 2 +- .../testsuite/simd_const.wast/753.print | 2 +- .../testsuite/simd_const.wast/755.print | 2 +- .../testsuite/simd_conversions.wast/0.print | 20 +- .../testsuite/simd_conversions.wast/252.print | 38 +- .../testsuite/simd_f32x4.wast/0.print | 40 +- .../testsuite/simd_f32x4.wast/785.print | 8 +- .../testsuite/simd_f32x4_arith.wast/0.print | 12 +- .../simd_f32x4_arith.wast/1785.print | 6 +- .../simd_f32x4_arith.wast/1805.print | 32 +- .../testsuite/simd_f32x4_cmp.wast/0.print | 12 +- .../testsuite/simd_f32x4_cmp.wast/2581.print | 28 +- .../simd_f32x4_pmin_pmax.wast/0.print | 4 +- .../simd_f32x4_rounding.wast/0.print | 8 +- .../testsuite/simd_f64x2.wast/0.print | 74 +- .../testsuite/simd_f64x2.wast/798.print | 8 +- .../testsuite/simd_f64x2_arith.wast/0.print | 12 +- .../simd_f64x2_arith.wast/1785.print | 12 +- .../simd_f64x2_arith.wast/1808.print | 32 +- .../testsuite/simd_f64x2_cmp.wast/0.print | 12 +- .../testsuite/simd_f64x2_cmp.wast/2671.print | 28 +- .../simd_f64x2_pmin_pmax.wast/0.print | 4 +- .../simd_f64x2_rounding.wast/0.print | 8 +- .../testsuite/simd_i16x8_arith.wast/0.print | 8 +- .../testsuite/simd_i16x8_arith.wast/186.print | 14 +- .../testsuite/simd_i16x8_arith2.wast/0.print | 54 +- .../simd_i16x8_arith2.wast/135.print | 72 +- .../testsuite/simd_i16x8_cmp.wast/0.print | 20 +- .../testsuite/simd_i16x8_cmp.wast/431.print | 28 +- .../0.print | 4 +- .../simd_i16x8_extmul_i8x16.wast/0.print | 8 +- .../simd_i16x8_q15mulr_sat_s.wast/0.print | 2 +- .../simd_i16x8_sat_arith.wast/0.print | 8 +- .../simd_i16x8_sat_arith.wast/213.print | 16 +- .../testsuite/simd_i32x4_arith.wast/0.print | 8 +- .../testsuite/simd_i32x4_arith.wast/186.print | 14 +- .../testsuite/simd_i32x4_arith2.wast/0.print | 44 +- .../simd_i32x4_arith2.wast/123.print | 50 +- .../testsuite/simd_i32x4_cmp.wast/0.print | 20 +- .../testsuite/simd_i32x4_cmp.wast/431.print | 28 +- .../simd_i32x4_dot_i16x8.wast/0.print | 2 +- .../0.print | 4 +- .../simd_i32x4_extmul_i16x8.wast/0.print | 8 +- .../simd_i32x4_trunc_sat_f32x4.wast/0.print | 4 +- .../simd_i32x4_trunc_sat_f64x2.wast/0.print | 4 +- .../testsuite/simd_i64x2_arith.wast/0.print | 8 +- .../testsuite/simd_i64x2_arith.wast/192.print | 14 +- .../testsuite/simd_i64x2_arith2.wast/0.print | 4 +- .../testsuite/simd_i64x2_arith2.wast/23.print | 2 +- .../testsuite/simd_i64x2_cmp.wast/0.print | 12 +- .../simd_i64x2_extmul_i32x4.wast/0.print | 8 +- .../testsuite/simd_i8x16_arith.wast/0.print | 6 +- .../testsuite/simd_i8x16_arith.wast/126.print | 8 +- .../testsuite/simd_i8x16_arith2.wast/0.print | 58 +- .../simd_i8x16_arith2.wast/161.print | 98 +- .../testsuite/simd_i8x16_cmp.wast/0.print | 20 +- .../testsuite/simd_i8x16_cmp.wast/411.print | 28 +- .../simd_i8x16_sat_arith.wast/0.print | 8 +- .../simd_i8x16_sat_arith.wast/205.print | 16 +- .../simd_int_to_int_extend.wast/0.print | 24 +- .../testsuite/simd_lane.wast/0.print | 72 +- .../testsuite/simd_lane.wast/360.print | 36 +- .../testsuite/simd_lane.wast/379.print | 36 +- .../testsuite/simd_lane.wast/399.print | 14 +- .../testsuite/simd_lane.wast/406.print | 20 +- .../testsuite/simd_load.wast/0.print | 4 +- .../testsuite/simd_load.wast/11.print | 4 +- .../testsuite/simd_load.wast/13.print | 4 +- .../testsuite/simd_load.wast/15.print | 4 +- .../testsuite/simd_load.wast/17.print | 4 +- .../testsuite/simd_load.wast/19.print | 4 +- .../testsuite/simd_load.wast/21.print | 4 +- .../testsuite/simd_load.wast/23.print | 4 +- .../testsuite/simd_load.wast/25.print | 4 +- .../testsuite/simd_load.wast/27.print | 4 +- .../testsuite/simd_load.wast/29.print | 4 +- .../testsuite/simd_load.wast/4.print | 4 +- .../testsuite/simd_load.wast/6.print | 4 +- .../testsuite/simd_load.wast/8.print | 6 +- .../testsuite/simd_load16_lane.wast/0.print | 66 +- .../testsuite/simd_load32_lane.wast/0.print | 42 +- .../testsuite/simd_load64_lane.wast/0.print | 26 +- .../testsuite/simd_load8_lane.wast/0.print | 98 +- .../testsuite/simd_load_extend.wast/0.print | 98 +- .../testsuite/simd_load_extend.wast/85.print | 38 +- .../testsuite/simd_load_splat.wast/0.print | 58 +- .../testsuite/simd_load_splat.wast/101.print | 26 +- .../testsuite/simd_load_zero.wast/0.print | 32 +- .../testsuite/simd_load_zero.wast/32.print | 14 +- .../testsuite/simd_splat.wast/0.print | 12 +- .../testsuite/simd_splat.wast/120.print | 12 +- .../testsuite/simd_splat.wast/126.print | 86 +- .../testsuite/simd_splat.wast/170.print | 18 +- .../testsuite/simd_store.wast/0.print | 18 +- .../testsuite/simd_store.wast/9.print | 20 +- .../testsuite/simd_store16_lane.wast/0.print | 68 +- .../testsuite/simd_store32_lane.wast/0.print | 44 +- .../testsuite/simd_store64_lane.wast/0.print | 28 +- .../testsuite/simd_store8_lane.wast/0.print | 100 +- .../skip-stack-guard-page.wast/0.print | 4 +- tests/snapshots/testsuite/stack.wast/0.print | 14 +- tests/snapshots/testsuite/stack.wast/6.print | 2 +- tests/snapshots/testsuite/start.wast/15.print | 2 +- tests/snapshots/testsuite/start.wast/16.print | 2 +- tests/snapshots/testsuite/start.wast/3.print | 8 +- tests/snapshots/testsuite/start.wast/9.print | 8 +- tests/snapshots/testsuite/store.wast/0.print | 20 +- tests/snapshots/testsuite/switch.wast/0.print | 8 +- .../testsuite/table_copy.wast/0.print | 10 +- .../testsuite/table_copy.wast/1056.print | 22 +- .../testsuite/table_copy.wast/1118.print | 14 +- .../testsuite/table_copy.wast/1120.print | 14 +- .../testsuite/table_copy.wast/1122.print | 14 +- .../testsuite/table_copy.wast/1124.print | 14 +- .../testsuite/table_copy.wast/1126.print | 14 +- .../testsuite/table_copy.wast/1128.print | 14 +- .../testsuite/table_copy.wast/1130.print | 14 +- .../testsuite/table_copy.wast/1132.print | 14 +- .../testsuite/table_copy.wast/1134.print | 14 +- .../testsuite/table_copy.wast/1136.print | 14 +- .../testsuite/table_copy.wast/1138.print | 14 +- .../testsuite/table_copy.wast/1140.print | 14 +- .../testsuite/table_copy.wast/1142.print | 14 +- .../testsuite/table_copy.wast/1144.print | 14 +- .../testsuite/table_copy.wast/1146.print | 14 +- .../testsuite/table_copy.wast/1148.print | 14 +- .../testsuite/table_copy.wast/1150.print | 14 +- .../testsuite/table_copy.wast/1152.print | 14 +- .../testsuite/table_copy.wast/1154.print | 14 +- .../testsuite/table_copy.wast/1156.print | 14 +- .../testsuite/table_copy.wast/1158.print | 14 +- .../testsuite/table_copy.wast/1160.print | 14 +- .../testsuite/table_copy.wast/1162.print | 40 +- .../testsuite/table_copy.wast/1196.print | 40 +- .../testsuite/table_copy.wast/1230.print | 40 +- .../testsuite/table_copy.wast/126.print | 22 +- .../testsuite/table_copy.wast/1264.print | 40 +- .../testsuite/table_copy.wast/1298.print | 40 +- .../testsuite/table_copy.wast/1332.print | 40 +- .../testsuite/table_copy.wast/1366.print | 40 +- .../testsuite/table_copy.wast/1400.print | 40 +- .../testsuite/table_copy.wast/1434.print | 40 +- .../testsuite/table_copy.wast/1468.print | 40 +- .../testsuite/table_copy.wast/1598.print | 40 +- .../testsuite/table_copy.wast/188.print | 22 +- .../testsuite/table_copy.wast/2.print | 22 +- .../testsuite/table_copy.wast/250.print | 22 +- .../testsuite/table_copy.wast/312.print | 22 +- .../testsuite/table_copy.wast/374.print | 22 +- .../testsuite/table_copy.wast/436.print | 22 +- .../testsuite/table_copy.wast/498.print | 22 +- .../testsuite/table_copy.wast/560.print | 22 +- .../testsuite/table_copy.wast/622.print | 22 +- .../testsuite/table_copy.wast/64.print | 22 +- .../testsuite/table_copy.wast/684.print | 22 +- .../testsuite/table_copy.wast/746.print | 22 +- .../testsuite/table_copy.wast/808.print | 22 +- .../testsuite/table_copy.wast/870.print | 22 +- .../testsuite/table_copy.wast/932.print | 22 +- .../testsuite/table_copy.wast/994.print | 22 +- .../testsuite/table_fill.wast/0.print | 8 +- .../testsuite/table_get.wast/0.print | 14 +- .../testsuite/table_grow.wast/0.print | 12 +- .../testsuite/table_grow.wast/22.print | 6 +- .../testsuite/table_grow.wast/24.print | 4 +- .../testsuite/table_grow.wast/30.print | 4 +- .../testsuite/table_grow.wast/39.print | 8 +- .../testsuite/table_grow.wast/43.print | 6 +- .../testsuite/table_grow.wast/46.print | 4 +- .../testsuite/table_grow.wast/49.print | 2 +- .../testsuite/table_init.wast/0.print | 10 +- .../testsuite/table_init.wast/130.print | 16 +- .../testsuite/table_init.wast/162.print | 16 +- .../testsuite/table_init.wast/198.print | 14 +- .../testsuite/table_init.wast/2.print | 16 +- .../testsuite/table_init.wast/200.print | 14 +- .../testsuite/table_init.wast/202.print | 14 +- .../testsuite/table_init.wast/204.print | 14 +- .../testsuite/table_init.wast/206.print | 14 +- .../testsuite/table_init.wast/208.print | 14 +- .../testsuite/table_init.wast/210.print | 14 +- .../testsuite/table_init.wast/212.print | 14 +- .../testsuite/table_init.wast/214.print | 14 +- .../testsuite/table_init.wast/216.print | 14 +- .../testsuite/table_init.wast/218.print | 14 +- .../testsuite/table_init.wast/220.print | 14 +- .../testsuite/table_init.wast/222.print | 14 +- .../testsuite/table_init.wast/224.print | 14 +- .../testsuite/table_init.wast/226.print | 14 +- .../testsuite/table_init.wast/228.print | 14 +- .../testsuite/table_init.wast/230.print | 14 +- .../testsuite/table_init.wast/232.print | 14 +- .../testsuite/table_init.wast/234.print | 14 +- .../testsuite/table_init.wast/236.print | 14 +- .../testsuite/table_init.wast/238.print | 14 +- .../testsuite/table_init.wast/303.print | 40 +- .../testsuite/table_init.wast/337.print | 40 +- .../testsuite/table_init.wast/34.print | 16 +- .../testsuite/table_init.wast/371.print | 40 +- .../testsuite/table_init.wast/533.print | 40 +- .../testsuite/table_init.wast/66.print | 16 +- .../testsuite/table_init.wast/695.print | 40 +- .../testsuite/table_init.wast/761.print | 40 +- .../testsuite/table_init.wast/779.print | 12 +- .../testsuite/table_init.wast/98.print | 16 +- .../testsuite/table_set.wast/0.print | 18 +- .../testsuite/table_size.wast/0.print | 24 +- tests/snapshots/testsuite/token.wast/8.print | 2 +- tests/snapshots/testsuite/token.wast/9.print | 2 +- tests/snapshots/testsuite/traps.wast/0.print | 8 +- tests/snapshots/testsuite/traps.wast/12.print | 16 +- tests/snapshots/testsuite/traps.wast/21.print | 30 +- tests/snapshots/testsuite/traps.wast/7.print | 8 +- .../testsuite/unreachable.wast/0.print | 124 +- .../testsuite/unreached-valid.wast/0.print | 14 +- .../testsuite/unreached-valid.wast/5.print | 2 +- tests/snapshots/testsuite/unwind.wast/0.print | 98 +- 2523 files changed, 14789 insertions(+), 14804 deletions(-) diff --git a/crates/wasmprinter/src/lib.rs b/crates/wasmprinter/src/lib.rs index 40422e9fae..855ccd8917 100644 --- a/crates/wasmprinter/src/lib.rs +++ b/crates/wasmprinter/src/lib.rs @@ -258,12 +258,11 @@ impl Config { } impl Printer<'_, '_> { - fn read_names_and_code<'a>( + fn read_names<'a>( &mut self, mut bytes: &'a [u8], mut parser: Parser, state: &mut State, - code: &mut Vec>, ) -> Result<()> { loop { let payload = match parser.parse(bytes, true)? { @@ -275,18 +274,12 @@ impl Printer<'_, '_> { }; match payload { - Payload::FunctionSection(s) => { - if s.count() > MAX_WASM_FUNCTIONS { - bail!( - "module contains {} functions which exceeds the limit of {}", - s.count(), - MAX_WASM_FUNCTIONS - ); + Payload::CodeSectionStart { size, .. } => { + if size as usize > bytes.len() { + bail!("invalid code section size"); } - code.reserve(s.count() as usize); - } - Payload::CodeSectionEntry(f) => { - code.push(f); + bytes = &bytes[size as usize..]; + parser.skip_section(); } Payload::ModuleSection { unchecked_range: range, @@ -350,8 +343,7 @@ impl Printer<'_, '_> { let mut states: Vec = Vec::new(); let mut parser = Parser::new(0); let mut parsers = Vec::new(); - let mut code = Vec::new(); - let mut code_printed = false; + let mut func_reader = None; loop { let payload = match parser.parse(bytes, true)? { @@ -407,11 +399,8 @@ impl Printer<'_, '_> { let state = states.last_mut().unwrap(); // First up try to find the `name` subsection which we'll use to print - // pretty names everywhere. Also look for the `code` section so we can - // print out functions as soon as we hit the function section. - code.clear(); - code_printed = false; - self.read_names_and_code(bytes, parser.clone(), state, &mut code)?; + // pretty names everywhere. + self.read_names(bytes, parser.clone(), state)?; if len == 1 { if let Some(name) = state.name.as_ref() { @@ -470,13 +459,14 @@ impl Printer<'_, '_> { Payload::FunctionSection(reader) => { self.update_custom_section_place(&mut states, "after func"); Self::ensure_module(&states)?; - if mem::replace(&mut code_printed, true) { - bail!("function section appeared twice in module"); - } - if reader.count() == 0 { - continue; + if reader.count() > MAX_WASM_FUNCTIONS { + bail!( + "module contains {} functions which exceeds the limit of {}", + reader.count(), + MAX_WASM_FUNCTIONS + ); } - self.print_code(states.last_mut().unwrap(), &code, reader)?; + func_reader = Some(reader.into_iter()); } Payload::TableSection(s) => { self.update_custom_section_place(&mut states, "after table"); @@ -516,15 +506,17 @@ impl Printer<'_, '_> { Self::ensure_module(&states)?; self.print_elems(states.last_mut().unwrap(), s)?; } - // printed with the `Function` section, so we - // skip this section - Payload::CodeSectionStart { size, .. } => { + Payload::CodeSectionStart { .. } => { self.update_custom_section_place(&mut states, "after code"); Self::ensure_module(&states)?; - bytes = &bytes[size as usize..]; - parser.skip_section(); } - Payload::CodeSectionEntry(_) => unreachable!(), + Payload::CodeSectionEntry(body) => { + if let Some(ref mut reader) = func_reader { + if let Some(Ok(ty)) = reader.next() { + self.print_code_section_entry(states.last_mut().unwrap(), &body, ty)? + } + } + } Payload::DataCountSection { .. } => { Self::ensure_module(&states)?; // not part of the text format @@ -1257,48 +1249,41 @@ impl Printer<'_, '_> { Ok(()) } - fn print_code( + fn print_code_section_entry( &mut self, state: &mut State, - code: &[FunctionBody<'_>], - funcs: FunctionSectionReader<'_>, + body: &FunctionBody<'_>, + ty: u32, ) -> Result<()> { - if funcs.count() != code.len() as u32 { - bail!("mismatch in function and code section counts"); - } - for (body, ty) in code.iter().zip(funcs) { - let mut body = body.get_binary_reader(); - let offset = body.original_position(); - let ty = ty?; - self.newline(offset)?; - self.start_group("func ")?; - let func_idx = state.core.funcs; - self.print_name(&state.core.func_names, func_idx)?; - self.result.write_str(" ")?; - let params = self - .print_core_functype_idx(state, ty, Some(func_idx))? - .unwrap_or(0); - - // Hints are stored on `self` in reverse order of function index so - // check the last one and see if it matches this function. - let hints = match self.code_section_hints.last() { - Some((f, _)) if *f == func_idx => { - let (_, hints) = self.code_section_hints.pop().unwrap(); - hints - } - _ => Vec::new(), - }; - - if self.config.print_skeleton { - self.result.write_str(" ...")?; - } else { - self.print_func_body(state, func_idx, params, &mut body, &hints)?; - } - - self.end_group()?; + let mut body = body.get_binary_reader(); + let offset = body.original_position(); + self.newline(offset)?; + self.start_group("func ")?; + let func_idx = state.core.funcs; + self.print_name(&state.core.func_names, func_idx)?; + self.result.write_str(" ")?; + let params = self + .print_core_functype_idx(state, ty, Some(func_idx))? + .unwrap_or(0); + + // Hints are stored on `self` in reverse order of function index so + // check the last one and see if it matches this function. + let hints = match self.code_section_hints.last() { + Some((f, _)) if *f == func_idx => { + let (_, hints) = self.code_section_hints.pop().unwrap(); + hints + } + _ => Vec::new(), + }; - state.core.funcs += 1; + if self.config.print_skeleton { + self.result.write_str(" ...")?; + } else { + self.print_func_body(state, func_idx, params, &mut body, &hints)?; } + + self.end_group()?; + state.core.funcs += 1; Ok(()) } @@ -2721,7 +2706,7 @@ impl Printer<'_, '_> { self.print_dylink0_section(s) } - // These are parsed during `read_names_and_code` and are part of + // These are parsed during `read_names` and are part of // printing elsewhere, so don't print them. KnownCustom::Name(_) | KnownCustom::ComponentName(_) | KnownCustom::BranchHints(_) => { Ok(()) diff --git a/tests/cli/print-code-section-overflow.wat.stderr b/tests/cli/print-code-section-overflow.wat.stderr index e01193c6c9..165859a27d 100644 --- a/tests/cli/print-code-section-overflow.wat.stderr +++ b/tests/cli/print-code-section-overflow.wat.stderr @@ -1 +1 @@ -error: unexpected end-of-file (at offset 0xb) +error: invalid code section size diff --git a/tests/cli/print-deprecated-exceptions.wat.stdout b/tests/cli/print-deprecated-exceptions.wat.stdout index 71a376bd36..d31220fa53 100644 --- a/tests/cli/print-deprecated-exceptions.wat.stdout +++ b/tests/cli/print-deprecated-exceptions.wat.stdout @@ -5,6 +5,7 @@ (type (;3;) (func (result i32 i64))) (type (;4;) (func (param i32) (result i32 i64))) (import "m" "t" (tag (;0;) (type 0) (param i32 i64))) + (tag (;1;) (type 1) (param i32)) (func $check-throw (;0;) (type 2) i32.const 1 i64.const 2 @@ -46,5 +47,4 @@ end end ) - (tag (;1;) (type 1) (param i32)) ) diff --git a/tests/cli/print-deprecated-exceptions2.wat.stdout b/tests/cli/print-deprecated-exceptions2.wat.stdout index ec61614338..cb35635603 100644 --- a/tests/cli/print-deprecated-exceptions2.wat.stdout +++ b/tests/cli/print-deprecated-exceptions2.wat.stdout @@ -1,6 +1,7 @@ (module $m (type (;0;) (func)) (type (;1;) (func (result i32))) + (tag (;0;) (type 0)) (func (;0;) (type 0) try ;; label = @1 end @@ -43,5 +44,4 @@ i32.const 42 end ) - (tag (;0;) (type 0)) ) diff --git a/tests/cli/print-skeleton.wat.stdout b/tests/cli/print-skeleton.wat.stdout index ce7fa3613a..6dc0ab41ce 100644 --- a/tests/cli/print-skeleton.wat.stdout +++ b/tests/cli/print-skeleton.wat.stdout @@ -1,9 +1,9 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0) ...) (table (;0;) 1 funcref) (memory (;0;) 0) (elem (;0;) (i32.const 0) ...) + (func $f (;0;) (type 0) ...) (data (;0;) (i32.const 0) ...) (@custom "hello" (after data) ...) ) diff --git a/tests/snapshots/local/anyref1.wat.print b/tests/snapshots/local/anyref1.wat.print index f8bd504a91..83a883908e 100644 --- a/tests/snapshots/local/anyref1.wat.print +++ b/tests/snapshots/local/anyref1.wat.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/local/atomics.wast/1.print b/tests/snapshots/local/atomics.wast/1.print index 8af273d3c7..7a2eb22c7b 100644 --- a/tests/snapshots/local/atomics.wast/1.print +++ b/tests/snapshots/local/atomics.wast/1.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 1) (func (;0;) (type 0) (result i32) i32.const 0 i32.const 0 memory.atomic.notify ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/local/br_if-loop-stack.wat.print b/tests/snapshots/local/br_if-loop-stack.wat.print index 689c804f86..34ffdb5288 100644 --- a/tests/snapshots/local/br_if-loop-stack.wat.print +++ b/tests/snapshots/local/br_if-loop-stack.wat.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (result i32))) + (export "main" (func $main)) (func $main (;0;) (type 0) (result i32) block (result i32) ;; label = @1 loop (result i32) ;; label = @2 @@ -10,5 +11,4 @@ end end ) - (export "main" (func $main)) ) diff --git a/tests/snapshots/local/component-model/adapt.wast/0.print b/tests/snapshots/local/component-model/adapt.wast/0.print index b7539b11cd..a1ee7e2b4f 100644 --- a/tests/snapshots/local/component-model/adapt.wast/0.print +++ b/tests/snapshots/local/component-model/adapt.wast/0.print @@ -3,18 +3,21 @@ (import "log" (func $log (;0;) (type 0))) (core module $libc (;0;) (type (;0;) (func (param i32 i32 i32 i32) (result i32))) - (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) - unreachable - ) (memory (;0;) 1) (export "memory" (memory 0)) (export "canonical_abi_realloc" (func 0)) + (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) + unreachable + ) ) (core module $my_module (;1;) (type (;0;) (func (param i32 i32))) (import "env" "log-utf8" (func $log_utf8 (;0;) (type 0))) (import "env" "log-utf16" (func $log_utf16 (;1;) (type 0))) (import "env" "log-compact-utf16" (func $log_compact_utf16 (;2;) (type 0))) + (export "log-utf8" (func 3)) + (export "log-utf16" (func 4)) + (export "log-compact-utf16" (func 5)) (func (;3;) (type 0) (param i32 i32) local.get 0 local.get 1 @@ -30,9 +33,6 @@ local.get 1 call $log_compact_utf16 ) - (export "log-utf8" (func 3)) - (export "log-utf16" (func 4)) - (export "log-compact-utf16" (func 5)) ) (core instance $libc (;0;) (instantiate $libc)) (alias core export $libc "canonical_abi_realloc" (core func $realloc (;0;))) diff --git a/tests/snapshots/local/component-model/adapt.wast/13.print b/tests/snapshots/local/component-model/adapt.wast/13.print index 1cdc266a5b..33ae157f20 100644 --- a/tests/snapshots/local/component-model/adapt.wast/13.print +++ b/tests/snapshots/local/component-model/adapt.wast/13.print @@ -3,6 +3,11 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (type (;2;) (func (param i32))) + (memory (;0;) 1) + (export "m" (memory 0)) + (export "f" (func 0)) + (export "r" (func 1)) + (export "p" (func 2)) (func (;0;) (type 0) (result i32) unreachable ) @@ -10,11 +15,6 @@ unreachable ) (func (;2;) (type 2) (param i32)) - (memory (;0;) 1) - (export "m" (memory 0)) - (export "f" (func 0)) - (export "r" (func 1)) - (export "p" (func 2)) ) (core instance $i (;0;) (instantiate $m)) (type (;0;) (func (result string))) diff --git a/tests/snapshots/local/component-model/big.wast/0.print b/tests/snapshots/local/component-model/big.wast/0.print index eb6c547d5d..ef288908e3 100644 --- a/tests/snapshots/local/component-model/big.wast/0.print +++ b/tests/snapshots/local/component-model/big.wast/0.print @@ -26,13 +26,13 @@ (import "libc" "memory" (memory (;0;) 1)) (import "libc" "realloc" (func (;0;) (type 0))) (import "wasi-logging" "log" (func $log (;1;) (type 1))) + (export "run" (func 2)) (func (;2;) (type 2) (param i32 i32) (result i32) local.get 0 local.get 1 call $log unreachable ) - (export "run" (func 2)) ) (core instance (;1;) (export "log" (func $log)) diff --git a/tests/snapshots/local/component-model/example.wast/0.print b/tests/snapshots/local/component-model/example.wast/0.print index b6cf0e63a7..da345ee68a 100644 --- a/tests/snapshots/local/component-model/example.wast/0.print +++ b/tests/snapshots/local/component-model/example.wast/0.print @@ -2,34 +2,34 @@ (component (;0;) (core module (;0;) (type (;0;) (func (result i32))) + (export "one" (func 0)) (func (;0;) (type 0) (result i32) i32.const 1 ) - (export "one" (func 0)) ) (core module (;1;) (type (;0;) (func (result f32))) + (export "two" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1p+1 (;=2;) ) - (export "two" (func 0)) ) ) (core module (;0;) (type (;0;) (func (result i64))) + (export "three" (func 0)) (func (;0;) (type 0) (result i64) i64.const 3 ) - (export "three" (func 0)) ) (component (;1;) (component (;0;) (core module (;0;) (type (;0;) (func (result f64))) + (export "four" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1p+2 (;=4;) ) - (export "four" (func 0)) ) ) ) diff --git a/tests/snapshots/local/component-model/func.wast/6.print b/tests/snapshots/local/component-model/func.wast/6.print index c417c7f111..6fb511ceb1 100644 --- a/tests/snapshots/local/component-model/func.wast/6.print +++ b/tests/snapshots/local/component-model/func.wast/6.print @@ -1,12 +1,12 @@ (component (core module $m (;0;) (type (;0;) (func (result i32))) - (func (;0;) (type 0) (result i32) - unreachable - ) (memory (;0;) 1) (export "memory" (memory 0)) (export "ret-list" (func 0)) + (func (;0;) (type 0) (result i32) + unreachable + ) ) (core instance $i (;0;) (instantiate $m)) (type (;0;) (list u8)) diff --git a/tests/snapshots/local/component-model/instantiate.wast/37.print b/tests/snapshots/local/component-model/instantiate.wast/37.print index 036caebc2c..2fac146de4 100644 --- a/tests/snapshots/local/component-model/instantiate.wast/37.print +++ b/tests/snapshots/local/component-model/instantiate.wast/37.print @@ -2,10 +2,10 @@ (component $m (;0;) (core module $sub (;0;) (type (;0;) (func (result i32))) + (export "" (func $f)) (func $f (;0;) (type 0) (result i32) i32.const 5 ) - (export "" (func $f)) ) (export (;1;) "module" (core module $sub)) ) @@ -15,10 +15,10 @@ (core module $final (;1;) (type (;0;) (func (result i32))) (import "" "" (func $b (;0;) (type 0))) + (export "get" (func 1)) (func (;1;) (type 0) (result i32) call $b ) - (export "get" (func 1)) ) (core instance (;1;) (instantiate $final (with "" (instance $b)) diff --git a/tests/snapshots/local/component-model/instantiate.wast/60.print b/tests/snapshots/local/component-model/instantiate.wast/60.print index aeb1a947f9..46184ecc29 100644 --- a/tests/snapshots/local/component-model/instantiate.wast/60.print +++ b/tests/snapshots/local/component-model/instantiate.wast/60.print @@ -1,7 +1,6 @@ (component (core module $m (;0;) (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (memory (;0;) 1) (global (;0;) i32 i32.const 0) @@ -9,6 +8,7 @@ (export "2" (memory 0)) (export "3" (table 0)) (export "4" (global 0)) + (func (;0;) (type 0)) ) (core instance $i (;0;) (instantiate $m)) (alias core export $i "1" (core func (;0;))) diff --git a/tests/snapshots/local/component-model/link.wast/0.print b/tests/snapshots/local/component-model/link.wast/0.print index 2e81055e7b..3a3bb00f69 100644 --- a/tests/snapshots/local/component-model/link.wast/0.print +++ b/tests/snapshots/local/component-model/link.wast/0.print @@ -1,10 +1,10 @@ (component (core module $A (;0;) (type (;0;) (func (result i32))) + (export "one" (func 0)) (func (;0;) (type 0) (result i32) i32.const 1 ) - (export "one" (func 0)) ) (core module $B (;1;) (type (;0;) (func (result i32))) diff --git a/tests/snapshots/local/component-model/lots-of-aliases.wast/0.print b/tests/snapshots/local/component-model/lots-of-aliases.wast/0.print index cb9b6fb046..abbe6873a6 100644 --- a/tests/snapshots/local/component-model/lots-of-aliases.wast/0.print +++ b/tests/snapshots/local/component-model/lots-of-aliases.wast/0.print @@ -1,7 +1,6 @@ (component (core module $m (;0;) (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (memory (;0;) 1) (global (;0;) i32 i32.const 0) @@ -9,6 +8,7 @@ (export "t" (table 0)) (export "g" (global 0)) (export "f" (func 0)) + (func (;0;) (type 0)) ) (core instance $i (;0;) (instantiate $m)) (alias core export $i "m" (core memory (;0;))) diff --git a/tests/snapshots/local/component-model/module-link.wast/1.print b/tests/snapshots/local/component-model/module-link.wast/1.print index 07b8e7f412..4d69fe6ff0 100644 --- a/tests/snapshots/local/component-model/module-link.wast/1.print +++ b/tests/snapshots/local/component-model/module-link.wast/1.print @@ -10,8 +10,8 @@ (import "wasi" (instance (;0;) (type $Wasi))) (core module $m (;0;) (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) (core instance $i (;0;) (instantiate $m)) (type (;1;) (func)) @@ -42,8 +42,8 @@ (core module $b (;0;) (type (;0;) (func)) (import "a" "a" (func (;0;) (type 0))) - (func (;1;) (type 0)) (export "b" (func 1)) + (func (;1;) (type 0)) ) (core instance (;0;) (export "a" (func $lower)) diff --git a/tests/snapshots/local/component-model/nested-modules.wast/3.print b/tests/snapshots/local/component-model/nested-modules.wast/3.print index 7949f6f7ae..2707d6bb5d 100644 --- a/tests/snapshots/local/component-model/nested-modules.wast/3.print +++ b/tests/snapshots/local/component-model/nested-modules.wast/3.print @@ -1,8 +1,8 @@ (component (core module (;0;) (type (;0;) (func)) - (func (;0;) (type 0)) (export "" (func 0)) + (func (;0;) (type 0)) ) (core type (;0;) (module) @@ -10,10 +10,10 @@ (import "a" (core module (;1;) (type 0))) (core module (;2;) (type (;0;) (func (result i32))) + (export "" (func 0)) (func (;0;) (type 0) (result i32) i32.const 5 ) - (export "" (func 0)) ) (type (;0;) (instance diff --git a/tests/snapshots/local/component-model/resources.wast/3.print b/tests/snapshots/local/component-model/resources.wast/3.print index 6b012d83bd..28b749ac58 100644 --- a/tests/snapshots/local/component-model/resources.wast/3.print +++ b/tests/snapshots/local/component-model/resources.wast/3.print @@ -1,8 +1,8 @@ (component (core module $m (;0;) (type (;0;) (func (param i32))) - (func (;0;) (type 0) (param i32)) (export "dtor" (func 0)) + (func (;0;) (type 0) (param i32)) ) (core instance $m (;0;) (instantiate $m)) (alias core export $m "dtor" (core func (;0;))) diff --git a/tests/snapshots/local/component-model/string.wast/0.print b/tests/snapshots/local/component-model/string.wast/0.print index 054ab0bb06..8abd9f1471 100644 --- a/tests/snapshots/local/component-model/string.wast/0.print +++ b/tests/snapshots/local/component-model/string.wast/0.print @@ -17,12 +17,12 @@ (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32))) (import "libc" "memory" (memory (;0;) 1)) + (export "start" (func 0)) + (export "start-post-return" (func 1)) (func (;0;) (type 0) (param i32 i32) (result i32) unreachable ) (func (;1;) (type 1) (param i32)) - (export "start" (func 0)) - (export "start-post-return" (func 1)) ) (core instance $main (;1;) (instantiate $Main (with "libc" (instance $libc)) diff --git a/tests/snapshots/local/component-model/type-export-restrictions.wast/24.print b/tests/snapshots/local/component-model/type-export-restrictions.wast/24.print index a82e232540..75e0232b86 100644 --- a/tests/snapshots/local/component-model/type-export-restrictions.wast/24.print +++ b/tests/snapshots/local/component-model/type-export-restrictions.wast/24.print @@ -7,8 +7,8 @@ (alias export $i "t" (type $t (;1;))) (core module $m (;0;) (type (;0;) (func (param i32))) - (func $f (;0;) (type 0) (param i32)) (export "f" (func $f)) + (func $f (;0;) (type 0) (param i32)) ) (core instance $i (;0;) (instantiate $m)) (type (;2;) (func (param "f" $t))) diff --git a/tests/snapshots/local/component-model/type-export-restrictions.wast/25.print b/tests/snapshots/local/component-model/type-export-restrictions.wast/25.print index a583d7f7ef..bbea0377f8 100644 --- a/tests/snapshots/local/component-model/type-export-restrictions.wast/25.print +++ b/tests/snapshots/local/component-model/type-export-restrictions.wast/25.print @@ -8,8 +8,8 @@ (alias export $i "t" (type $t (;0;))) (core module $m (;0;) (type (;0;) (func (param i32))) - (func $f (;0;) (type 0) (param i32)) (export "f" (func $f)) + (func $f (;0;) (type 0) (param i32)) ) (core instance $i (;0;) (instantiate $m)) (type (;1;) (func (param "f" $t))) diff --git a/tests/snapshots/local/component-model/type-export-restrictions.wast/26.print b/tests/snapshots/local/component-model/type-export-restrictions.wast/26.print index 5e4dcd6317..bfa5178617 100644 --- a/tests/snapshots/local/component-model/type-export-restrictions.wast/26.print +++ b/tests/snapshots/local/component-model/type-export-restrictions.wast/26.print @@ -2,8 +2,8 @@ (type $t (;0;) (record (field "f" u32))) (core module $m (;0;) (type (;0;) (func (param i32))) - (func (;0;) (type 0) (param i32)) (export "f" (func 0)) + (func (;0;) (type 0) (param i32)) ) (core instance $i (;0;) (instantiate $m)) (type (;1;) (func (param "x" $t))) diff --git a/tests/snapshots/local/component-model/virtualize.wast/0.print b/tests/snapshots/local/component-model/virtualize.wast/0.print index 6ffa2d5b52..618e7a9c92 100644 --- a/tests/snapshots/local/component-model/virtualize.wast/0.print +++ b/tests/snapshots/local/component-model/virtualize.wast/0.print @@ -1,12 +1,12 @@ (component (core module $libc (;0;) (type (;0;) (func (param i32 i32 i32 i32) (result i32))) - (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) - unreachable - ) (memory (;0;) 0) (export "mem" (memory 0)) (export "realloc" (func 0)) + (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) + unreachable + ) ) (core instance $libc (;0;) (instantiate $libc)) (component $child (;0;) @@ -27,10 +27,10 @@ (type (;0;) (func (param i32 i32))) (type (;1;) (func)) (import "wasi-file" "read" (func $read (;0;) (type 0))) + (export "play" (func $play)) (func $play (;1;) (type 1) unreachable ) - (export "play" (func $play)) ) (alias export $wasi-file "read" (func (;0;))) (alias core export $libc "mem" (core memory (;0;))) @@ -128,23 +128,23 @@ (type (;0;) (func (param i32 i32))) (type (;1;) (func)) (import "wasi-file" "read" (func $wasi-file (;0;) (type 0))) + (export "play" (func $play)) (func $play (;1;) (type 1) unreachable ) - (export "play" (func $play)) ) (core module $VIRTUALIZE (;2;) (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32 i32 i32))) (import "wasi-file" "read" (func (;0;) (type 0))) + (export "read" (func 1)) + (export "write" (func 2)) (func (;1;) (type 0) (param i32 i32) unreachable ) (func (;2;) (type 1) (param i32 i32 i32) unreachable ) - (export "read" (func 1)) - (export "write" (func 2)) ) (alias export $real-wasi "read" (func (;0;))) (alias core export $libc "mem" (core memory (;0;))) diff --git a/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/19.print b/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/19.print index 9d393fba79..b04b65a1e5 100644 --- a/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/19.print +++ b/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/19.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 0 (pagesize 0x10000)) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (memory (;0;) 0 (pagesize 0x10000)) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/23.print b/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/23.print index c247b5f533..b9f6e4e4a9 100644 --- a/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/23.print +++ b/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/23.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory $small (;0;) 10 (pagesize 0x1)) + (memory $large (;1;) 1 (pagesize 0x10000)) + (export "copy-small-to-large" (func 0)) + (export "copy-large-to-small" (func 1)) + (export "load8-small" (func 2)) + (export "load8-large" (func 3)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -21,12 +27,6 @@ local.get 0 i32.load8_u ) - (memory $small (;0;) 10 (pagesize 0x1)) - (memory $large (;1;) 1 (pagesize 0x10000)) - (export "copy-small-to-large" (func 0)) - (export "copy-large-to-small" (func 1)) - (export "load8-small" (func 2)) - (export "load8-large" (func 3)) (data (;0;) (i32.const 0) "\11\223D") (data (;1;) (memory $large) (i32.const 0) "Ufw\88") ) diff --git a/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/4.print b/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/4.print index 71c30c5fdc..7ea42eb4db 100644 --- a/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/4.print +++ b/tests/snapshots/local/custom-page-sizes/custom-page-sizes.wast/4.print @@ -2,6 +2,11 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (memory (;0;) 0 (pagesize 0x1)) + (export "size" (func 0)) + (export "grow" (func 1)) + (export "load" (func 2)) + (export "store" (func 3)) (func (;0;) (type 0) (result i32) memory.size ) @@ -18,9 +23,4 @@ local.get 1 i32.store ) - (memory (;0;) 0 (pagesize 0x1)) - (export "size" (func 0)) - (export "grow" (func 1)) - (export "load" (func 2)) - (export "store" (func 3)) ) diff --git a/tests/snapshots/local/floate2.wat.print b/tests/snapshots/local/floate2.wat.print index fe5508d055..12f1f5a219 100644 --- a/tests/snapshots/local/floate2.wat.print +++ b/tests/snapshots/local/floate2.wat.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-148 (;=0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/local/function-references/call_ref/br_on_non_null.wast/0.print b/tests/snapshots/local/function-references/call_ref/br_on_non_null.wast/0.print index 06ea0e4c4f..47e16dba63 100644 --- a/tests/snapshots/local/function-references/call_ref/br_on_non_null.wast/0.print +++ b/tests/snapshots/local/function-references/call_ref/br_on_non_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) block $l (result (ref $t)) local.get $r @@ -44,9 +49,4 @@ end i32.const -1 ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/local/function-references/call_ref/br_on_non_null.wast/6.print b/tests/snapshots/local/function-references/call_ref/br_on_non_null.wast/6.print index fd25db678c..80cea5ec37 100644 --- a/tests/snapshots/local/function-references/call_ref/br_on_non_null.wast/6.print +++ b/tests/snapshots/local/function-references/call_ref/br_on_non_null.wast/6.print @@ -2,6 +2,9 @@ (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 (ref null $t)) (result i32))) (type (;2;) (func (result i32 (ref $t)))) + (export "args-null" (func 2)) + (export "args-f" (func 3)) + (elem (;0;) func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 local.get 0 @@ -26,7 +29,4 @@ ref.func $f call $a ) - (export "args-null" (func 2)) - (export "args-f" (func 3)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/local/function-references/call_ref/br_on_null.wast/0.print b/tests/snapshots/local/function-references/call_ref/br_on_null.wast/0.print index be60e9af88..8d9be86a0a 100644 --- a/tests/snapshots/local/function-references/call_ref/br_on_null.wast/0.print +++ b/tests/snapshots/local/function-references/call_ref/br_on_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) block $l local.get $r @@ -44,9 +49,4 @@ end i32.const -1 ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/local/function-references/call_ref/br_on_null.wast/6.print b/tests/snapshots/local/function-references/call_ref/br_on_null.wast/6.print index ffab737fcf..b7124d4dac 100644 --- a/tests/snapshots/local/function-references/call_ref/br_on_null.wast/6.print +++ b/tests/snapshots/local/function-references/call_ref/br_on_null.wast/6.print @@ -1,6 +1,9 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 (ref null $t)) (result i32))) + (export "args-null" (func 2)) + (export "args-f" (func 3)) + (elem (;0;) func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 local.get 0 @@ -25,7 +28,4 @@ ref.func $f call $a ) - (export "args-null" (func 2)) - (export "args-f" (func 3)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/local/function-references/call_ref/call_ref.wast/0.print b/tests/snapshots/local/function-references/call_ref/call_ref.wast/0.print index b983464ae1..1c26a475dc 100644 --- a/tests/snapshots/local/function-references/call_ref/call_ref.wast/0.print +++ b/tests/snapshots/local/function-references/call_ref/call_ref.wast/0.print @@ -4,6 +4,23 @@ (type $lll (;2;) (func (param i64 i64) (result i64))) (type (;3;) (func (param (ref $ii) i32) (result i32))) (type (;4;) (func (result i32))) + (global $fac (;0;) (ref $ll) ref.func $fac) + (global $fac-acc (;1;) (ref $lll) ref.func $fac-acc) + (global $fib (;2;) (ref $ll) ref.func $fib) + (global $even (;3;) (ref $ll) ref.func $even) + (global $odd (;4;) (ref $ll) ref.func $odd) + (export "run" (func 3)) + (export "null" (func 4)) + (export "fac" (func $fac)) + (export "fac-acc" (func $fac-acc)) + (export "fib" (func $fib)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) declare func $f $g) + (elem (;1;) declare func $fac) + (elem (;2;) declare func $fac-acc) + (elem (;3;) declare func $fib) + (elem (;4;) declare func $even $odd) (func $apply (;0;) (type 3) (param $f (ref $ii)) (param $x i32) (result i32) local.get $x local.get $f @@ -113,21 +130,4 @@ call_ref $ll end ) - (global $fac (;0;) (ref $ll) ref.func $fac) - (global $fac-acc (;1;) (ref $lll) ref.func $fac-acc) - (global $fib (;2;) (ref $ll) ref.func $fib) - (global $even (;3;) (ref $ll) ref.func $even) - (global $odd (;4;) (ref $ll) ref.func $odd) - (export "run" (func 3)) - (export "null" (func 4)) - (export "fac" (func $fac)) - (export "fac-acc" (func $fac-acc)) - (export "fib" (func $fib)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) declare func $f $g) - (elem (;1;) declare func $fac) - (elem (;2;) declare func $fac-acc) - (elem (;3;) declare func $fib) - (elem (;4;) declare func $even $odd) ) diff --git a/tests/snapshots/local/function-references/call_ref/call_ref.wast/25.print b/tests/snapshots/local/function-references/call_ref/call_ref.wast/25.print index 5908d8dfc5..e48a6f1dc3 100644 --- a/tests/snapshots/local/function-references/call_ref/call_ref.wast/25.print +++ b/tests/snapshots/local/function-references/call_ref/call_ref.wast/25.print @@ -1,9 +1,9 @@ (module (type $t (;0;) (func)) (type (;1;) (func (result i32))) + (export "unreachable" (func 0)) (func (;0;) (type 1) (result i32) unreachable call_ref $t ) - (export "unreachable" (func 0)) ) diff --git a/tests/snapshots/local/function-references/call_ref/call_ref.wast/27.print b/tests/snapshots/local/function-references/call_ref/call_ref.wast/27.print index cc20d75bd2..fc7b7707a2 100644 --- a/tests/snapshots/local/function-references/call_ref/call_ref.wast/27.print +++ b/tests/snapshots/local/function-references/call_ref/call_ref.wast/27.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -9,6 +11,4 @@ ref.func $f call_ref $t ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/local/function-references/call_ref/call_ref.wast/29.print b/tests/snapshots/local/function-references/call_ref/call_ref.wast/29.print index e159e08980..ab1a399a40 100644 --- a/tests/snapshots/local/function-references/call_ref/call_ref.wast/29.print +++ b/tests/snapshots/local/function-references/call_ref/call_ref.wast/29.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -12,6 +14,4 @@ drop i32.const 0 ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/local/function-references/call_ref/ref_as_non_null.wast/0.print b/tests/snapshots/local/function-references/call_ref/ref_as_non_null.wast/0.print index d4861f7951..8f70c457c5 100644 --- a/tests/snapshots/local/function-references/call_ref/ref_as_non_null.wast/0.print +++ b/tests/snapshots/local/function-references/call_ref/ref_as_non_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) local.get $r ref.as_non_null @@ -32,9 +37,4 @@ ref.as_non_null call $nn ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/0.print b/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/0.print index 451693d9de..9aa4084243 100644 --- a/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/0.print +++ b/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/0.print @@ -13,6 +13,44 @@ (type $f64-f32 (;11;) (func (param f64 f32) (result f32))) (type $i64-f64 (;12;) (func (param i64 f64) (result f64))) (type $i64i64-i64 (;13;) (func (param i64 i64) (result i64))) + (global $const-i32 (;0;) (ref $-i32) ref.func $const-i32) + (global $const-i64 (;1;) (ref $-i64) ref.func $const-i64) + (global $const-f32 (;2;) (ref $-f32) ref.func $const-f32) + (global $const-f64 (;3;) (ref $-f64) ref.func $const-f64) + (global $id-i32 (;4;) (ref $i32-i32) ref.func $id-i32) + (global $id-i64 (;5;) (ref $i64-i64) ref.func $id-i64) + (global $id-f32 (;6;) (ref $f32-f32) ref.func $id-f32) + (global $id-f64 (;7;) (ref $f64-f64) ref.func $id-f64) + (global $f32-i32 (;8;) (ref $f32-i32) ref.func $f32-i32) + (global $i32-i64 (;9;) (ref $i32-i64) ref.func $i32-i64) + (global $f64-f32 (;10;) (ref $f64-f32) ref.func $f64-f32) + (global $i64-f64 (;11;) (ref $i64-f64) ref.func $i64-f64) + (global $fac-acc (;12;) (ref $i64i64-i64) ref.func $fac-acc) + (global $count (;13;) (ref $i64-i64) ref.func $count) + (global $even (;14;) (ref $i64-i64) ref.func $even) + (global $odd (;15;) (ref $i64-i64) ref.func $odd) + (export "type-i32" (func 12)) + (export "type-i64" (func 13)) + (export "type-f32" (func 14)) + (export "type-f64" (func 15)) + (export "type-first-i32" (func 16)) + (export "type-first-i64" (func 17)) + (export "type-first-f32" (func 18)) + (export "type-first-f64" (func 19)) + (export "type-second-i32" (func 20)) + (export "type-second-i64" (func 21)) + (export "type-second-f32" (func 22)) + (export "type-second-f64" (func 23)) + (export "null" (func 24)) + (export "fac-acc" (func $fac-acc)) + (export "count" (func $count)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) declare func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64) + (elem (;1;) declare func $fac-acc) + (elem (;2;) declare func $count) + (elem (;3;) declare func $even) + (elem (;4;) declare func $odd) (func $const-i32 (;0;) (type $-i32) (result i32) i32.const 306 ) @@ -168,42 +206,4 @@ return_call_ref $i64-i64 end ) - (global $const-i32 (;0;) (ref $-i32) ref.func $const-i32) - (global $const-i64 (;1;) (ref $-i64) ref.func $const-i64) - (global $const-f32 (;2;) (ref $-f32) ref.func $const-f32) - (global $const-f64 (;3;) (ref $-f64) ref.func $const-f64) - (global $id-i32 (;4;) (ref $i32-i32) ref.func $id-i32) - (global $id-i64 (;5;) (ref $i64-i64) ref.func $id-i64) - (global $id-f32 (;6;) (ref $f32-f32) ref.func $id-f32) - (global $id-f64 (;7;) (ref $f64-f64) ref.func $id-f64) - (global $f32-i32 (;8;) (ref $f32-i32) ref.func $f32-i32) - (global $i32-i64 (;9;) (ref $i32-i64) ref.func $i32-i64) - (global $f64-f32 (;10;) (ref $f64-f32) ref.func $f64-f32) - (global $i64-f64 (;11;) (ref $i64-f64) ref.func $i64-f64) - (global $fac-acc (;12;) (ref $i64i64-i64) ref.func $fac-acc) - (global $count (;13;) (ref $i64-i64) ref.func $count) - (global $even (;14;) (ref $i64-i64) ref.func $even) - (global $odd (;15;) (ref $i64-i64) ref.func $odd) - (export "type-i32" (func 12)) - (export "type-i64" (func 13)) - (export "type-f32" (func 14)) - (export "type-f64" (func 15)) - (export "type-first-i32" (func 16)) - (export "type-first-i64" (func 17)) - (export "type-first-f32" (func 18)) - (export "type-first-f64" (func 19)) - (export "type-second-i32" (func 20)) - (export "type-second-i64" (func 21)) - (export "type-second-f32" (func 22)) - (export "type-second-f64" (func 23)) - (export "null" (func 24)) - (export "fac-acc" (func $fac-acc)) - (export "count" (func $count)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) declare func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64) - (elem (;1;) declare func $fac-acc) - (elem (;2;) declare func $count) - (elem (;3;) declare func $even) - (elem (;4;) declare func $odd) ) diff --git a/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/33.print b/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/33.print index 11dc25a989..737330a1d8 100644 --- a/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/33.print +++ b/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/33.print @@ -4,6 +4,7 @@ (type $t2 (;2;) (func (result (ref null $t)))) (type $t3 (;3;) (func (result (ref func)))) (type $t4 (;4;) (func (result funcref))) + (elem (;0;) declare func $f11 $f22 $f33 $f44) (func $f11 (;0;) (type $t1) (result (ref $t)) ref.func $f11 return_call_ref $t1 @@ -40,5 +41,4 @@ ref.func $f44 return_call_ref $t4 ) - (elem (;0;) declare func $f11 $f22 $f33 $f44) ) diff --git a/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/40.print b/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/40.print index 182b29b127..fe1559354e 100644 --- a/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/40.print +++ b/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/40.print @@ -1,8 +1,8 @@ (module (type $t (;0;) (func (result i32))) + (export "unreachable" (func 0)) (func (;0;) (type $t) (result i32) unreachable return_call_ref $t ) - (export "unreachable" (func 0)) ) diff --git a/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/42.print b/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/42.print index d7a4a98905..5dd9aceb2e 100644 --- a/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/42.print +++ b/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/42.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -9,6 +11,4 @@ ref.func $f return_call_ref $t ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/44.print b/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/44.print index 49bfa9ac42..43026ed34a 100644 --- a/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/44.print +++ b/tests/snapshots/local/function-references/call_ref/return_call_ref.wast/44.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -11,6 +13,4 @@ return_call_ref $t i32.const 0 ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/local/function-references/table-nonnull.wast/0.print b/tests/snapshots/local/function-references/table-nonnull.wast/0.print index b181fafad5..59a73e3d0d 100644 --- a/tests/snapshots/local/function-references/table-nonnull.wast/0.print +++ b/tests/snapshots/local/function-references/table-nonnull.wast/0.print @@ -1,6 +1,13 @@ (module (type $dummy (;0;) (func)) (type (;1;) (func (result funcref))) + (table $t1 (;0;) 10 funcref) + (table $t2 (;1;) 10 funcref ref.func $dummy) + (table $t3 (;2;) 10 (ref $dummy) ref.func $dummy) + (table $t4 (;3;) 10 (ref func) ref.func $dummy) + (export "get1" (func 1)) + (export "get2" (func 2)) + (export "get3" (func 3)) (func $dummy (;0;) (type $dummy)) (func (;1;) (type 1) (result funcref) i32.const 1 @@ -14,11 +21,4 @@ i32.const 7 table.get $t3 ) - (table $t1 (;0;) 10 funcref) - (table $t2 (;1;) 10 funcref ref.func $dummy) - (table $t3 (;2;) 10 (ref $dummy) ref.func $dummy) - (table $t4 (;3;) 10 (ref func) ref.func $dummy) - (export "get1" (func 1)) - (export "get2" (func 2)) - (export "get3" (func 3)) ) diff --git a/tests/snapshots/local/fuzz1.wat.print b/tests/snapshots/local/fuzz1.wat.print index 105ce38fb9..397f175f32 100644 --- a/tests/snapshots/local/fuzz1.wat.print +++ b/tests/snapshots/local/fuzz1.wat.print @@ -10,6 +10,17 @@ (import "fuzzing-support" "log-i64" (func $log-i64 (;1;) (type $FUNCSIG$vj))) (import "fuzzing-support" "log-f32" (func $log-f32 (;2;) (type $FUNCSIG$vf))) (import "fuzzing-support" "log-f64" (func $log-f64 (;3;) (type $FUNCSIG$vd))) + (table $0 (;0;) 0 0 funcref) + (memory $0 (;0;) 1 1) + (global $global$0 (;0;) (mut i32) i32.const -65536) + (global $global$1 (;1;) (mut f32) f32.const 0x1.fffffep+127 (;=340282350000000000000000000000000000000;)) + (global $global$2 (;2;) (mut f32) f32.const -0x1.744e6cp+117 (;=-241640630000000000000000000000000000;)) + (global $global$3 (;3;) (mut f64) f64.const -nan:0xfffffffffac1b (;=NaN;)) + (global $hangLimit (;4;) (mut i32) i32.const 10) + (export "hashMemory" (func $hashMemory)) + (export "memory" (memory $0)) + (export "func_5" (func $func_5)) + (export "hangLimitInitializer" (func $hangLimitInitializer)) (func $hashMemory (;4;) (type $FUNCSIG$i) (result i32) (local $0 i32) i32.const 5381 @@ -236,16 +247,5 @@ i32.const 10 global.set $hangLimit ) - (table $0 (;0;) 0 0 funcref) - (memory $0 (;0;) 1 1) - (global $global$0 (;0;) (mut i32) i32.const -65536) - (global $global$1 (;1;) (mut f32) f32.const 0x1.fffffep+127 (;=340282350000000000000000000000000000000;)) - (global $global$2 (;2;) (mut f32) f32.const -0x1.744e6cp+117 (;=-241640630000000000000000000000000000;)) - (global $global$3 (;3;) (mut f64) f64.const -nan:0xfffffffffac1b (;=NaN;)) - (global $hangLimit (;4;) (mut i32) i32.const 10) - (export "hashMemory" (func $hashMemory)) - (export "memory" (memory $0)) - (export "func_5" (func $func_5)) - (export "hangLimitInitializer" (func $hangLimitInitializer)) (data (;0;) (i32.const 0) "\00\00\00\00") ) diff --git a/tests/snapshots/local/gc/gc-array.wat.print b/tests/snapshots/local/gc/gc-array.wat.print index d95dba7643..08b8758e1a 100644 --- a/tests/snapshots/local/gc/gc-array.wat.print +++ b/tests/snapshots/local/gc/gc-array.wat.print @@ -4,6 +4,7 @@ (type $c (;2;) (array (mut funcref))) (type (;3;) (func)) (type (;4;) (func (param (ref $a) (ref $b)))) + (elem $elem (;0;) func $func) (func $func (;0;) (type 3)) (func (;1;) (type 4) (param (ref $a) (ref $b)) i32.const 1 @@ -40,6 +41,5 @@ i32.const 1 array.copy $b $b ) - (elem $elem (;0;) func $func) (data $data (;0;) "\5c0\5c1\5c2\5c3") ) diff --git a/tests/snapshots/local/gc/gc-ref.wat.print b/tests/snapshots/local/gc/gc-ref.wat.print index 3d8eea3dee..fa05279e34 100644 --- a/tests/snapshots/local/gc/gc-ref.wat.print +++ b/tests/snapshots/local/gc/gc-ref.wat.print @@ -6,6 +6,8 @@ (type (;4;) (func (param (ref $a)))) (type (;5;) (func (result (ref $a)))) (type (;6;) (func)) + (global (;0;) (ref null $a) ref.null $a) + (global (;1;) (ref null $b) ref.null $b) (func (;0;) (type $f1) (param (ref $a))) (func (;1;) (type 4) (param (ref $a))) (func (;2;) (type $f1) (param (ref $a))) @@ -69,6 +71,4 @@ end drop ) - (global (;0;) (ref null $a) ref.null $a) - (global (;1;) (ref null $b) ref.null $b) ) diff --git a/tests/snapshots/local/gc/rec-group-local.wat.print b/tests/snapshots/local/gc/rec-group-local.wat.print index 908b22799d..aa0337a3fa 100644 --- a/tests/snapshots/local/gc/rec-group-local.wat.print +++ b/tests/snapshots/local/gc/rec-group-local.wat.print @@ -4,10 +4,10 @@ (type $g (;1;) (func)) ) (type (;2;) (func (param (ref $f) (ref $g)))) + (export "run" (func 0)) (func (;0;) (type 2) (param (ref $f) (ref $g)) local.get 1 local.get 0 call_ref $f ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/gc/type-equivalence.wast/11.print b/tests/snapshots/local/gc/type-equivalence.wast/11.print index 66a9157ef6..603776e583 100644 --- a/tests/snapshots/local/gc/type-equivalence.wast/11.print +++ b/tests/snapshots/local/gc/type-equivalence.wast/11.print @@ -5,8 +5,8 @@ (type $t1 (;3;) (func (param (ref $s1)) (result (ref $s2)))) (type $t2 (;4;) (func (param (ref $s2)) (result (ref $s1)))) (type (;5;) (func (param (ref $t1)))) - (func (;0;) (type 5) (param (ref $t1))) - (func (;1;) (type 5) (param (ref $t1))) (export "f1" (func 0)) (export "f2" (func 1)) + (func (;0;) (type 5) (param (ref $t1))) + (func (;1;) (type 5) (param (ref $t1))) ) diff --git a/tests/snapshots/local/gc/type-equivalence.wast/4.print b/tests/snapshots/local/gc/type-equivalence.wast/4.print index c60b8bd8ea..ecb7350560 100644 --- a/tests/snapshots/local/gc/type-equivalence.wast/4.print +++ b/tests/snapshots/local/gc/type-equivalence.wast/4.print @@ -2,6 +2,9 @@ (type $t1 (;0;) (func (param f32 f32))) (type $t2 (;1;) (func (param f32 f32))) (type (;2;) (func)) + (table (;0;) 2 2 funcref) + (export "run" (func 2)) + (elem (;0;) (i32.const 0) func $f1 $f2) (func $f1 (;0;) (type $t1) (param f32 f32)) (func $f2 (;1;) (type $t2) (param f32 f32)) (func (;2;) (type 2) @@ -14,7 +17,4 @@ i32.const 0 call_indirect (type $t2) ) - (table (;0;) 2 2 funcref) - (export "run" (func 2)) - (elem (;0;) (i32.const 0) func $f1 $f2) ) diff --git a/tests/snapshots/local/gc/type-equivalence.wast/6.print b/tests/snapshots/local/gc/type-equivalence.wast/6.print index 7a8741b793..a9fed0f084 100644 --- a/tests/snapshots/local/gc/type-equivalence.wast/6.print +++ b/tests/snapshots/local/gc/type-equivalence.wast/6.print @@ -5,6 +5,9 @@ (type $t1 (;3;) (func (param (ref $s1)))) (type $t2 (;4;) (func (param (ref $s2)))) (type (;5;) (func)) + (table (;0;) 4 4 funcref) + (export "run" (func 4)) + (elem (;0;) (i32.const 0) func $f1 $f2 $s1 $s2) (func $s1 (;0;) (type $s1) (param i32 (ref $s0))) (func $s2 (;1;) (type $s2) (param i32 (ref $s0))) (func $f1 (;2;) (type $t1) (param (ref $s1))) @@ -35,7 +38,4 @@ i32.const 1 call_indirect (type $t2) ) - (table (;0;) 4 4 funcref) - (export "run" (func 4)) - (elem (;0;) (i32.const 0) func $f1 $f2 $s1 $s2) ) diff --git a/tests/snapshots/local/gc/type-equivalence.wast/8.print b/tests/snapshots/local/gc/type-equivalence.wast/8.print index f9f69387ba..98744111b1 100644 --- a/tests/snapshots/local/gc/type-equivalence.wast/8.print +++ b/tests/snapshots/local/gc/type-equivalence.wast/8.print @@ -1,6 +1,6 @@ (module (type $t1 (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param (ref $t1)))) - (func (;0;) (type 1) (param (ref $t1))) (export "f" (func 0)) + (func (;0;) (type 1) (param (ref $t1))) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/11.print b/tests/snapshots/local/gc/type-subtyping.wast/11.print index 818a6c3a4f..defb31edb5 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/11.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/11.print @@ -11,6 +11,6 @@ (type $g (;4;) (sub $f1 (func))) (type (;5;) (struct)) ) - (func $g (;0;) (type $g)) (global (;0;) (ref $f1) ref.func $g) + (func $g (;0;) (type $g)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/12.print b/tests/snapshots/local/gc/type-subtyping.wast/12.print index e349860da2..8600cdfc4a 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/12.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/12.print @@ -19,7 +19,7 @@ (type $h (;8;) (sub $g2 (func))) (type (;9;) (struct)) ) - (func $h (;0;) (type $h)) (global (;0;) (ref $f1) ref.func $h) (global (;1;) (ref $g1) ref.func $h) + (func $h (;0;) (type $h)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/13.print b/tests/snapshots/local/gc/type-subtyping.wast/13.print index f98f044e99..aa4f19f7ed 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/13.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/13.print @@ -7,14 +7,14 @@ (type $f21 (;2;) (sub (func (result (ref func))))) (type $f22 (;3;) (sub $f21 (func (result (ref $f21))))) ) + (global (;0;) (ref $f11) ref.func $f11) + (global (;1;) (ref $f21) ref.func $f11) + (global (;2;) (ref $f12) ref.func $f12) + (global (;3;) (ref $f22) ref.func $f12) (func $f11 (;0;) (type $f11) (result (ref func)) unreachable ) (func $f12 (;1;) (type $f12) (result (ref $f11)) unreachable ) - (global (;0;) (ref $f11) ref.func $f11) - (global (;1;) (ref $f21) ref.func $f11) - (global (;2;) (ref $f12) ref.func $f12) - (global (;3;) (ref $f22) ref.func $f12) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/14.print b/tests/snapshots/local/gc/type-subtyping.wast/14.print index 8961773ebc..77aaa04e76 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/14.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/14.print @@ -15,12 +15,6 @@ (type $g21 (;6;) (sub $f21 (func (result (ref func))))) (type $g22 (;7;) (sub $g21 (func (result (ref $g21))))) ) - (func $g11 (;0;) (type $g11) (result (ref func)) - unreachable - ) - (func $g12 (;1;) (type $g12) (result (ref $g11)) - unreachable - ) (global (;0;) (ref $f11) ref.func $g11) (global (;1;) (ref $f21) ref.func $g11) (global (;2;) (ref $f11) ref.func $g12) @@ -29,4 +23,10 @@ (global (;5;) (ref $g21) ref.func $g11) (global (;6;) (ref $g12) ref.func $g12) (global (;7;) (ref $g22) ref.func $g12) + (func $g11 (;0;) (type $g11) (result (ref func)) + unreachable + ) + (func $g12 (;1;) (type $g12) (result (ref $g11)) + unreachable + ) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/17.print b/tests/snapshots/local/gc/type-subtyping.wast/17.print index 98ebf663e9..068b22b0cf 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/17.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/17.print @@ -7,6 +7,15 @@ (type $t2 (;2;) (sub $t1 (func (result (ref null $t2))))) ) (type (;3;) (func)) + (table (;0;) 3 3 funcref) + (export "run" (func 3)) + (export "fail1" (func 4)) + (export "fail2" (func 5)) + (export "fail3" (func 6)) + (export "fail4" (func 7)) + (export "fail5" (func 8)) + (export "fail6" (func 9)) + (elem (;0;) (i32.const 0) func $f0 $f1 $f2) (func $f0 (;0;) (type $t0) (result funcref) ref.null func ) @@ -112,13 +121,4 @@ ref.cast (ref $t2) br 0 ) - (table (;0;) 3 3 funcref) - (export "run" (func 3)) - (export "fail1" (func 4)) - (export "fail2" (func 5)) - (export "fail3" (func 6)) - (export "fail4" (func 7)) - (export "fail5" (func 8)) - (export "fail6" (func 9)) - (elem (;0;) (i32.const 0) func $f0 $f1 $f2) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/25.print b/tests/snapshots/local/gc/type-subtyping.wast/25.print index 7a3c81e1ed..5ba9c153d9 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/25.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/25.print @@ -1,6 +1,12 @@ (module (type $t1 (;0;) (sub (func))) (type $t2 (;1;) (func)) + (table (;0;) 2 2 funcref) + (export "fail1" (func 2)) + (export "fail2" (func 3)) + (export "fail3" (func 4)) + (export "fail4" (func 5)) + (elem (;0;) (i32.const 0) func $f1 $f2) (func $f1 (;0;) (type $t1)) (func $f2 (;1;) (type $t2)) (func (;2;) (type $t1) @@ -27,10 +33,4 @@ ref.cast (ref $t2) drop ) - (table (;0;) 2 2 funcref) - (export "fail1" (func 2)) - (export "fail2" (func 3)) - (export "fail3" (func 4)) - (export "fail4" (func 5)) - (elem (;0;) (i32.const 0) func $f1 $f2) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/30.print b/tests/snapshots/local/gc/type-subtyping.wast/30.print index 52fbaef1df..2a35106a41 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/30.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/30.print @@ -16,11 +16,11 @@ (type (;7;) (struct)) ) (type (;8;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $g) (func $g (;0;) (type $g2)) (func (;1;) (type 8) (result i32) ref.func $g ref.test (ref $g1) ) - (export "run" (func 1)) - (elem (;0;) declare func $g) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/32.print b/tests/snapshots/local/gc/type-subtyping.wast/32.print index 73d9873650..8176feb999 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/32.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/32.print @@ -16,11 +16,11 @@ (type (;7;) (sub $s2 (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2))))) ) (type (;8;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $g) (func $g (;0;) (type $g2)) (func (;1;) (type 8) (result i32) ref.func $g ref.test (ref $g1) ) - (export "run" (func 1)) - (elem (;0;) declare func $g) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/34.print b/tests/snapshots/local/gc/type-subtyping.wast/34.print index 26645c88d5..c9fae9e43d 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/34.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/34.print @@ -8,6 +8,9 @@ (type $f22 (;3;) (sub $f21 (func (result (ref $f21))))) ) (type (;4;) (func (result i32 i32 i32 i32))) + (export "run" (func 2)) + (elem (;0;) declare func $f11) + (elem (;1;) declare func $f12) (func $f11 (;0;) (type $f11) (result (ref func)) unreachable ) @@ -24,7 +27,4 @@ ref.func $f12 ref.test (ref $f22) ) - (export "run" (func 2)) - (elem (;0;) declare func $f11) - (elem (;1;) declare func $f12) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/36.print b/tests/snapshots/local/gc/type-subtyping.wast/36.print index 5b1fc39f0e..7b1919bed3 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/36.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/36.print @@ -6,6 +6,9 @@ (rec (type $t2 (;2;) (sub $t1 (func (result (ref null $t2))))) ) + (export "f0" (func 0)) + (export "f1" (func 1)) + (export "f2" (func 2)) (func (;0;) (type $t0) (result funcref) ref.null func ) @@ -15,7 +18,4 @@ (func (;2;) (type $t2) (result (ref null $t2)) ref.null $t2 ) - (export "f0" (func 0)) - (export "f1" (func 1)) - (export "f2" (func 2)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/42.print b/tests/snapshots/local/gc/type-subtyping.wast/42.print index 17442b2ced..4fd6647b51 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/42.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/42.print @@ -1,8 +1,8 @@ (module (type $t1 (;0;) (sub (func))) (type $t2 (;1;) (func)) - (func (;0;) (type $t1)) - (func (;1;) (type $t2)) (export "f1" (func 0)) (export "f2" (func 1)) + (func (;0;) (type $t1)) + (func (;1;) (type $t2)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/46.print b/tests/snapshots/local/gc/type-subtyping.wast/46.print index 166d73dbbd..01474d2e24 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/46.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/46.print @@ -7,6 +7,6 @@ (type $g2 (;2;) (sub $f2 (func))) (type (;3;) (struct)) ) - (func (;0;) (type $g2)) (export "g" (func 0)) + (func (;0;) (type $g2)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/49.print b/tests/snapshots/local/gc/type-subtyping.wast/49.print index 311eba83f7..b58299ea5c 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/49.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/49.print @@ -11,6 +11,6 @@ (type $g2 (;4;) (sub $f2 (func))) (type (;5;) (sub $s2 (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2))))) ) - (func (;0;) (type $g2)) (export "g" (func 0)) + (func (;0;) (type $g2)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/52.print b/tests/snapshots/local/gc/type-subtyping.wast/52.print index 4933f3415d..26d9bf3393 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/52.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/52.print @@ -11,6 +11,6 @@ (type $g2 (;4;) (sub $f2 (func))) (type (;5;) (struct)) ) - (func (;0;) (type $g2)) (export "g" (func 0)) + (func (;0;) (type $g2)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/55.print b/tests/snapshots/local/gc/type-subtyping.wast/55.print index 650668d0a2..0dda8366d8 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/55.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/55.print @@ -11,6 +11,6 @@ (type $g (;4;) (sub $f1 (func))) (type (;5;) (struct)) ) - (func (;0;) (type $g)) (export "g" (func 0)) + (func (;0;) (type $g)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/58.print b/tests/snapshots/local/gc/type-subtyping.wast/58.print index 678221f7d9..3552c862df 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/58.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/58.print @@ -15,6 +15,6 @@ (type $h (;6;) (sub $g2 (func))) (type (;7;) (struct)) ) - (func (;0;) (type $h)) (export "h" (func 0)) + (func (;0;) (type $h)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/61.print b/tests/snapshots/local/gc/type-subtyping.wast/61.print index 9940d23b0e..4e5e40a636 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/61.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/61.print @@ -7,12 +7,12 @@ (type $f21 (;2;) (sub (func (result (ref func))))) (type $f22 (;3;) (sub $f21 (func (result (ref $f21))))) ) + (export "f11" (func 0)) + (export "f12" (func 1)) (func (;0;) (type $f11) (result (ref func)) unreachable ) (func (;1;) (type $f12) (result (ref $f11)) unreachable ) - (export "f11" (func 0)) - (export "f12" (func 1)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/64.print b/tests/snapshots/local/gc/type-subtyping.wast/64.print index e46030e6f6..05b9e26836 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/64.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/64.print @@ -15,12 +15,12 @@ (type $g21 (;6;) (sub $f21 (func (result (ref func))))) (type $g22 (;7;) (sub $g21 (func (result (ref $g21))))) ) + (export "g11" (func 0)) + (export "g12" (func 1)) (func (;0;) (type $g11) (result (ref func)) unreachable ) (func (;1;) (type $g12) (result (ref $g11)) unreachable ) - (export "g11" (func 0)) - (export "g12" (func 1)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/67.print b/tests/snapshots/local/gc/type-subtyping.wast/67.print index 7036cc5420..752d548a65 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/67.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/67.print @@ -7,6 +7,6 @@ (type $f21 (;2;) (sub (func))) (type $f22 (;3;) (sub $f11 (func))) ) - (func (;0;) (type $f21)) (export "f" (func 0)) + (func (;0;) (type $f21)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/70.print b/tests/snapshots/local/gc/type-subtyping.wast/70.print index 2b83232510..1333a6d633 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/70.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/70.print @@ -11,6 +11,6 @@ (type $f21 (;4;) (sub (func))) (type $f22 (;5;) (sub $f11 (func))) ) - (func (;0;) (type $f21)) (export "f" (func 0)) + (func (;0;) (type $f21)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/8.print b/tests/snapshots/local/gc/type-subtyping.wast/8.print index 20d055b5b4..9a3a31faf2 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/8.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/8.print @@ -15,6 +15,6 @@ (type $g2 (;6;) (sub $f2 (func))) (type (;7;) (struct)) ) - (func $g (;0;) (type $g2)) (global (;0;) (ref $g1) ref.func $g) + (func $g (;0;) (type $g2)) ) diff --git a/tests/snapshots/local/gc/type-subtyping.wast/9.print b/tests/snapshots/local/gc/type-subtyping.wast/9.print index f8b1d74433..cf8030ee26 100644 --- a/tests/snapshots/local/gc/type-subtyping.wast/9.print +++ b/tests/snapshots/local/gc/type-subtyping.wast/9.print @@ -15,6 +15,6 @@ (type $g2 (;6;) (sub $f2 (func))) (type (;7;) (sub $s2 (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2))))) ) - (func $g (;0;) (type $g2)) (global (;0;) (ref $g1) ref.func $g) + (func $g (;0;) (type $g2)) ) diff --git a/tests/snapshots/local/instance.wast/10.print b/tests/snapshots/local/instance.wast/10.print index e847b035f5..a74c1222d1 100644 --- a/tests/snapshots/local/instance.wast/10.print +++ b/tests/snapshots/local/instance.wast/10.print @@ -10,6 +10,11 @@ (import "I1" "mem" (memory $mem2 (;1;) 1)) (import "I1" "tag" (tag $tag1 (;0;) (type 0))) (import "I1" "tag" (tag $tag2 (;1;) (type 0))) + (export "glob" (func 1)) + (export "tab" (func 2)) + (export "mem" (func 3)) + (export "tag" (func 4)) + (elem (;0;) declare func $f) (func $f (;0;) (type 0)) (func (;1;) (type 1) (result i32) i32.const 1 @@ -44,9 +49,4 @@ i32.const 1 return ) - (export "glob" (func 1)) - (export "tab" (func 2)) - (export "mem" (func 3)) - (export "tag" (func 4)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/local/instance.wast/18.print b/tests/snapshots/local/instance.wast/18.print index 7b9f2a497c..b12898c6c7 100644 --- a/tests/snapshots/local/instance.wast/18.print +++ b/tests/snapshots/local/instance.wast/18.print @@ -10,6 +10,11 @@ (import "I" "mem2" (memory $mem2 (;1;) 1)) (import "I" "tag1" (tag $tag1 (;0;) (type 0))) (import "I" "tag2" (tag $tag2 (;1;) (type 0))) + (export "glob" (func 1)) + (export "tab" (func 2)) + (export "mem" (func 3)) + (export "tag" (func 4)) + (elem (;0;) declare func $f) (func $f (;0;) (type 0)) (func (;1;) (type 1) (result i32) i32.const 1 @@ -44,9 +49,4 @@ i32.const 1 return ) - (export "glob" (func 1)) - (export "tab" (func 2)) - (export "mem" (func 3)) - (export "tag" (func 4)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/local/instance.wast/5.print b/tests/snapshots/local/instance.wast/5.print index fe723dcfab..21e9dd0675 100644 --- a/tests/snapshots/local/instance.wast/5.print +++ b/tests/snapshots/local/instance.wast/5.print @@ -10,6 +10,11 @@ (import "I2" "mem" (memory $mem2 (;1;) 1)) (import "I1" "tag" (tag $tag1 (;0;) (type 0))) (import "I2" "tag" (tag $tag2 (;1;) (type 0))) + (export "glob" (func 1)) + (export "tab" (func 2)) + (export "mem" (func 3)) + (export "tag" (func 4)) + (elem (;0;) declare func $f) (func $f (;0;) (type 0)) (func (;1;) (type 1) (result i32) i32.const 1 @@ -44,9 +49,4 @@ i32.const 1 return ) - (export "glob" (func 1)) - (export "tab" (func 2)) - (export "mem" (func 3)) - (export "tag" (func 4)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/local/legacy-exceptions/legacy-exceptions.wat.print b/tests/snapshots/local/legacy-exceptions/legacy-exceptions.wat.print index 8ae9aa1a02..790d21baae 100644 --- a/tests/snapshots/local/legacy-exceptions/legacy-exceptions.wat.print +++ b/tests/snapshots/local/legacy-exceptions/legacy-exceptions.wat.print @@ -1,5 +1,6 @@ (module (type (;0;) (func)) + (tag (;0;) (type 0)) (func (;0;) (type 0) try ;; label = @1 try ;; label = @2 @@ -12,5 +13,4 @@ catch 0 end ) - (tag (;0;) (type 0)) ) diff --git a/tests/snapshots/local/legacy-exceptions/rethrow.wast/0.print b/tests/snapshots/local/legacy-exceptions/rethrow.wast/0.print index 998341854e..6f4dcaeaa7 100644 --- a/tests/snapshots/local/legacy-exceptions/rethrow.wast/0.print +++ b/tests/snapshots/local/legacy-exceptions/rethrow.wast/0.print @@ -1,6 +1,15 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (tag $e0 (;0;) (type 0)) + (tag $e1 (;1;) (type 0)) + (export "catch-rethrow-0" (func 0)) + (export "catch-rethrow-1" (func 1)) + (export "catchall-rethrow-0" (func 2)) + (export "catchall-rethrow-1" (func 3)) + (export "rethrow-nested" (func 4)) + (export "rethrow-recatch" (func 5)) + (export "rethrow-stack-polymorphism" (func 6)) (func (;0;) (type 0) try ;; label = @1 throw $e0 @@ -86,13 +95,4 @@ rethrow 0 (;@1;) end ) - (tag $e0 (;0;) (type 0)) - (tag $e1 (;1;) (type 0)) - (export "catch-rethrow-0" (func 0)) - (export "catch-rethrow-1" (func 1)) - (export "catchall-rethrow-0" (func 2)) - (export "catchall-rethrow-1" (func 3)) - (export "rethrow-nested" (func 4)) - (export "rethrow-recatch" (func 5)) - (export "rethrow-stack-polymorphism" (func 6)) ) diff --git a/tests/snapshots/local/legacy-exceptions/throw.wast/0.print b/tests/snapshots/local/legacy-exceptions/throw.wast/0.print index afaf56a81e..f6c0ce375f 100644 --- a/tests/snapshots/local/legacy-exceptions/throw.wast/0.print +++ b/tests/snapshots/local/legacy-exceptions/throw.wast/0.print @@ -6,6 +6,17 @@ (type (;4;) (func (param f64))) (type (;5;) (func (param i32 i32))) (type (;6;) (func (param i32) (result i32))) + (tag $e0 (;0;) (type 0)) + (tag $e-i32 (;1;) (type 1) (param i32)) + (tag $e-f32 (;2;) (type 2) (param f32)) + (tag $e-i64 (;3;) (type 3) (param i64)) + (tag $e-f64 (;4;) (type 4) (param f64)) + (tag $e-i32-i32 (;5;) (type 5) (param i32 i32)) + (export "throw-if" (func $throw-if)) + (export "throw-param-f32" (func 1)) + (export "throw-param-i64" (func 2)) + (export "throw-param-f64" (func 3)) + (export "test-throw-1-2" (func 5)) (func $throw-if (;0;) (type 6) (param i32) (result i32) local.get 0 i32.const 0 @@ -48,15 +59,4 @@ end end ) - (tag $e0 (;0;) (type 0)) - (tag $e-i32 (;1;) (type 1) (param i32)) - (tag $e-f32 (;2;) (type 2) (param f32)) - (tag $e-i64 (;3;) (type 3) (param i64)) - (tag $e-f64 (;4;) (type 4) (param f64)) - (tag $e-i32-i32 (;5;) (type 5) (param i32 i32)) - (export "throw-if" (func $throw-if)) - (export "throw-param-f32" (func 1)) - (export "throw-param-i64" (func 2)) - (export "throw-param-f64" (func 3)) - (export "test-throw-1-2" (func 5)) ) diff --git a/tests/snapshots/local/legacy-exceptions/try_catch.wast/0.print b/tests/snapshots/local/legacy-exceptions/try_catch.wast/0.print index 121840d85f..0fa6ea6f37 100644 --- a/tests/snapshots/local/legacy-exceptions/try_catch.wast/0.print +++ b/tests/snapshots/local/legacy-exceptions/try_catch.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) - (func (;0;) (type 0) - throw $e0 - ) (tag $e0 (;0;) (type 0)) (export "e0" (tag 0)) (export "throw" (func 0)) + (func (;0;) (type 0) + throw $e0 + ) ) diff --git a/tests/snapshots/local/legacy-exceptions/try_catch.wast/2.print b/tests/snapshots/local/legacy-exceptions/try_catch.wast/2.print index dc973cca06..41d02947da 100644 --- a/tests/snapshots/local/legacy-exceptions/try_catch.wast/2.print +++ b/tests/snapshots/local/legacy-exceptions/try_catch.wast/2.print @@ -12,6 +12,32 @@ (type (;10;) (func (result i32))) (import "test" "e0" (tag $imported-e0 (;0;) (type 0))) (import "test" "throw" (func $imported-throw (;0;) (type 0))) + (table (;0;) 1 1 funcref) + (tag $e0 (;1;) (type 0)) + (tag $e1 (;2;) (type 0)) + (tag $e2 (;3;) (type 0)) + (tag $e-i32 (;4;) (type 1) (param i32)) + (tag $e-f32 (;5;) (type 2) (param f32)) + (tag $e-i64 (;6;) (type 3) (param i64)) + (tag $e-f64 (;7;) (type 4) (param f64)) + (export "empty-catch" (func 2)) + (export "simple-throw-catch" (func 3)) + (export "unreachable-not-caught" (func 4)) + (export "trap-in-callee" (func 6)) + (export "catch-complex-1" (func 7)) + (export "catch-complex-2" (func 8)) + (export "throw-catch-param-i32" (func 9)) + (export "throw-catch-param-f32" (func 10)) + (export "throw-catch-param-i64" (func 11)) + (export "throw-catch-param-f64" (func 12)) + (export "catch-param-i32" (func 14)) + (export "catch-imported" (func 15)) + (export "catchless-try" (func 16)) + (export "return-call-in-try-catch" (func 18)) + (export "return-call-indirect-in-try-catch" (func 19)) + (export "break-try-catch" (func 20)) + (export "break-try-catch_all" (func 21)) + (elem (;0;) (i32.const 0) func $throw-void) (func $throw-if (;1;) (type 5) (param i32) (result i32) local.get 0 i32.const 0 @@ -200,30 +226,4 @@ catch_all end ) - (table (;0;) 1 1 funcref) - (tag $e0 (;1;) (type 0)) - (tag $e1 (;2;) (type 0)) - (tag $e2 (;3;) (type 0)) - (tag $e-i32 (;4;) (type 1) (param i32)) - (tag $e-f32 (;5;) (type 2) (param f32)) - (tag $e-i64 (;6;) (type 3) (param i64)) - (tag $e-f64 (;7;) (type 4) (param f64)) - (export "empty-catch" (func 2)) - (export "simple-throw-catch" (func 3)) - (export "unreachable-not-caught" (func 4)) - (export "trap-in-callee" (func 6)) - (export "catch-complex-1" (func 7)) - (export "catch-complex-2" (func 8)) - (export "throw-catch-param-i32" (func 9)) - (export "throw-catch-param-f32" (func 10)) - (export "throw-catch-param-i64" (func 11)) - (export "throw-catch-param-f64" (func 12)) - (export "catch-param-i32" (func 14)) - (export "catch-imported" (func 15)) - (export "catchless-try" (func 16)) - (export "return-call-in-try-catch" (func 18)) - (export "return-call-indirect-in-try-catch" (func 19)) - (export "break-try-catch" (func 20)) - (export "break-try-catch_all" (func 21)) - (elem (;0;) (i32.const 0) func $throw-void) ) diff --git a/tests/snapshots/local/legacy-exceptions/try_catch.wast/33.print b/tests/snapshots/local/legacy-exceptions/try_catch.wast/33.print index 8210510b56..3f7bbf757a 100644 --- a/tests/snapshots/local/legacy-exceptions/try_catch.wast/33.print +++ b/tests/snapshots/local/legacy-exceptions/try_catch.wast/33.print @@ -2,6 +2,8 @@ (type (;0;) (func)) (type (;1;) (func (result i32))) (import "test" "throw" (func $imported-throw (;0;) (type 0))) + (tag $e0 (;0;) (type 0)) + (export "imported-mismatch" (func 1)) (func (;1;) (type 1) (result i32) try (result i32) ;; label = @1 try (result i32) ;; label = @2 @@ -14,6 +16,4 @@ i32.const 3 end ) - (tag $e0 (;0;) (type 0)) - (export "imported-mismatch" (func 1)) ) diff --git a/tests/snapshots/local/legacy-exceptions/try_delegate.wast/0.print b/tests/snapshots/local/legacy-exceptions/try_delegate.wast/0.print index 7144255ea7..35e071a8bb 100644 --- a/tests/snapshots/local/legacy-exceptions/try_delegate.wast/0.print +++ b/tests/snapshots/local/legacy-exceptions/try_delegate.wast/0.print @@ -4,6 +4,25 @@ (type (;2;) (func (param i32))) (type (;3;) (func (param i32) (result i32))) (type (;4;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (tag $e0 (;0;) (type 0)) + (tag $e1 (;1;) (type 0)) + (export "delegate-no-throw" (func 0)) + (export "delegate-throw" (func 2)) + (export "delegate-skip" (func 3)) + (export "delegate-to-block" (func 4)) + (export "delegate-to-catch" (func 5)) + (export "delegate-to-caller-trivial" (func 6)) + (export "delegate-to-caller-skipping" (func 7)) + (export "delegate-merge" (func 9)) + (export "delegate-throw-no-catch" (func 10)) + (export "delegate-correct-targets" (func 11)) + (export "return-call-in-try-delegate" (func 13)) + (export "return-call-indirect-in-try-delegate" (func 14)) + (export "break-try-delegate" (func 15)) + (export "break-and-call-throw" (func 16)) + (export "break-and-throw" (func 17)) + (elem (;0;) (i32.const 0) func $throw-void) (func (;0;) (type 1) (result i32) try (result i32) ;; label = @1 try (result i32) ;; label = @2 @@ -205,23 +224,4 @@ i32.const 2 end ) - (table (;0;) 1 1 funcref) - (tag $e0 (;0;) (type 0)) - (tag $e1 (;1;) (type 0)) - (export "delegate-no-throw" (func 0)) - (export "delegate-throw" (func 2)) - (export "delegate-skip" (func 3)) - (export "delegate-to-block" (func 4)) - (export "delegate-to-catch" (func 5)) - (export "delegate-to-caller-trivial" (func 6)) - (export "delegate-to-caller-skipping" (func 7)) - (export "delegate-merge" (func 9)) - (export "delegate-throw-no-catch" (func 10)) - (export "delegate-correct-targets" (func 11)) - (export "return-call-in-try-delegate" (func 13)) - (export "return-call-indirect-in-try-delegate" (func 14)) - (export "break-try-delegate" (func 15)) - (export "break-and-call-throw" (func 16)) - (export "break-and-throw" (func 17)) - (elem (;0;) (i32.const 0) func $throw-void) ) diff --git a/tests/snapshots/local/memory-discard.wat.print b/tests/snapshots/local/memory-discard.wat.print index 800e1cb5b5..e4659c0996 100644 --- a/tests/snapshots/local/memory-discard.wat.print +++ b/tests/snapshots/local/memory-discard.wat.print @@ -1,5 +1,6 @@ (module (type (;0;) (func)) + (memory $m (;0;) 2) (func (;0;) (type 0) i32.const 0 i32.const 65536 @@ -15,5 +16,4 @@ i32.const 65536 memory.discard ) - (memory $m (;0;) 2) ) diff --git a/tests/snapshots/local/memory64.wast/0.print b/tests/snapshots/local/memory64.wast/0.print index 3906cb41ec..7076c76d21 100644 --- a/tests/snapshots/local/memory64.wast/0.print +++ b/tests/snapshots/local/memory64.wast/0.print @@ -2,6 +2,7 @@ (type (;0;) (func (result i64))) (type (;1;) (func (param i64) (result i64))) (type (;2;) (func)) + (memory (;0;) i64 1) (func (;0;) (type 0) (result i64) memory.size ) @@ -398,7 +399,6 @@ i8x16.splat v128.store ) - (memory (;0;) i64 1) (data (;0;) (i64.const 0) "..") (data $seg (;1;) "..") ) diff --git a/tests/snapshots/local/multi-memory.wast/0.print b/tests/snapshots/local/multi-memory.wast/0.print index c1c416f816..6dd20bc41c 100644 --- a/tests/snapshots/local/multi-memory.wast/0.print +++ b/tests/snapshots/local/multi-memory.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func)) + (memory $a (;0;) 0) + (memory $b (;1;) 0) (func $foo (;0;) (type 0) i32.const 0 i32.load @@ -458,7 +460,5 @@ i8x16.splat v128.store $b ) - (memory $a (;0;) 0) - (memory $b (;1;) 0) (data $seg (;0;) "") ) diff --git a/tests/snapshots/local/multi-memory64.wast/0.print b/tests/snapshots/local/multi-memory64.wast/0.print index 96ed82ff26..f1d77c2a2c 100644 --- a/tests/snapshots/local/multi-memory64.wast/0.print +++ b/tests/snapshots/local/multi-memory64.wast/0.print @@ -1,5 +1,7 @@ (module $copy_between_memories (type (;0;) (func)) + (memory $m64 (;0;) i64 1) + (memory $m32 (;1;) 1) (func (;0;) (type 0) i32.const 0 i32.const 0 @@ -18,6 +20,4 @@ i64.const 0 memory.copy ) - (memory $m64 (;0;) i64 1) - (memory $m32 (;1;) 1) ) diff --git a/tests/snapshots/local/multi-memory64.wast/1.print b/tests/snapshots/local/multi-memory64.wast/1.print index fb62cae44b..5d8fcba43e 100644 --- a/tests/snapshots/local/multi-memory64.wast/1.print +++ b/tests/snapshots/local/multi-memory64.wast/1.print @@ -1,5 +1,8 @@ (module $copy_between_memories (type (;0;) (func)) + (memory $a (;0;) 1 1) + (memory $b (;1;) 1 1) + (memory $c (;2;) i64 1 1) (func (;0;) (type 0) i32.const 0 i32.load @@ -11,9 +14,6 @@ i32.load $c drop ) - (memory $a (;0;) 1 1) - (memory $b (;1;) 1 1) - (memory $c (;2;) i64 1 1) (data (;0;) (i32.const 0) "...") (data (;1;) (memory $b) (i32.const 0) "...") (data (;2;) (memory $c) (i64.const 0) "...") diff --git a/tests/snapshots/local/naming.wat.print b/tests/snapshots/local/naming.wat.print index 187204376a..31bd99b2c9 100644 --- a/tests/snapshots/local/naming.wat.print +++ b/tests/snapshots/local/naming.wat.print @@ -17,6 +17,37 @@ (import "env" "table" (table (;0;) 0 0 funcref)) (import "env" "memoryBase" (global (;9;) i32)) (import "env" "tableBase" (global (;10;) i32)) + (global (;11;) (mut i32) global.get 0) + (global (;12;) (mut i32) global.get 1) + (global (;13;) (mut i32) global.get 2) + (global (;14;) (mut i32) global.get 3) + (global (;15;) (mut i32) global.get 4) + (global (;16;) (mut i32) global.get 5) + (global (;17;) (mut i32) global.get 6) + (global (;18;) (mut i32) i32.const 0) + (global (;19;) (mut i32) i32.const 0) + (global (;20;) (mut i32) i32.const 0) + (global (;21;) (mut i32) i32.const 0) + (global (;22;) (mut f64) global.get 7) + (global (;23;) (mut f64) global.get 8) + (global (;24;) (mut i32) i32.const 0) + (global (;25;) (mut i32) i32.const 0) + (global (;26;) (mut i32) i32.const 0) + (global (;27;) (mut i32) i32.const 0) + (global (;28;) (mut f64) f64.const 0x0p+0 (;=0;)) + (global (;29;) (mut i32) i32.const 0) + (global (;30;) (mut i32) i32.const 0) + (global (;31;) (mut i32) i32.const 0) + (global (;32;) (mut f64) f64.const 0x0p+0 (;=0;)) + (global (;33;) (mut i32) i32.const 0) + (global (;34;) (mut f64) f64.const 0x0p+0 (;=0;)) + (export "setThrew" (func $setThrew)) + (export "runPostSets" (func $runPostSets)) + (export "establishStackSpace" (func $establishStackSpace)) + (export "stackSave" (func $stackSave)) + (export "stackRestore" (func $stackRestore)) + (export "_fib" (func $_fib)) + (export "stackAlloc" (func $stackAlloc)) (func $stackAlloc (;0;) (type 1) (param i32) (result i32) (local i32) block ;; label = @1 @@ -130,35 +161,4 @@ (local i32) nop ) - (global (;11;) (mut i32) global.get 0) - (global (;12;) (mut i32) global.get 1) - (global (;13;) (mut i32) global.get 2) - (global (;14;) (mut i32) global.get 3) - (global (;15;) (mut i32) global.get 4) - (global (;16;) (mut i32) global.get 5) - (global (;17;) (mut i32) global.get 6) - (global (;18;) (mut i32) i32.const 0) - (global (;19;) (mut i32) i32.const 0) - (global (;20;) (mut i32) i32.const 0) - (global (;21;) (mut i32) i32.const 0) - (global (;22;) (mut f64) global.get 7) - (global (;23;) (mut f64) global.get 8) - (global (;24;) (mut i32) i32.const 0) - (global (;25;) (mut i32) i32.const 0) - (global (;26;) (mut i32) i32.const 0) - (global (;27;) (mut i32) i32.const 0) - (global (;28;) (mut f64) f64.const 0x0p+0 (;=0;)) - (global (;29;) (mut i32) i32.const 0) - (global (;30;) (mut i32) i32.const 0) - (global (;31;) (mut i32) i32.const 0) - (global (;32;) (mut f64) f64.const 0x0p+0 (;=0;)) - (global (;33;) (mut i32) i32.const 0) - (global (;34;) (mut f64) f64.const 0x0p+0 (;=0;)) - (export "setThrew" (func $setThrew)) - (export "runPostSets" (func $runPostSets)) - (export "establishStackSpace" (func $establishStackSpace)) - (export "stackSave" (func $stackSave)) - (export "stackRestore" (func $stackRestore)) - (export "_fib" (func $_fib)) - (export "stackAlloc" (func $stackAlloc)) ) diff --git a/tests/snapshots/local/ref.wat.print b/tests/snapshots/local/ref.wat.print index e006f2c8ad..d775e0cf46 100644 --- a/tests/snapshots/local/ref.wat.print +++ b/tests/snapshots/local/ref.wat.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (type (;1;) (func (param funcref))) + (global (;0;) externref ref.null extern) (func (;0;) (type 0) (local externref funcref) ref.null extern @@ -54,5 +55,4 @@ drop end ) - (global (;0;) externref ref.null extern) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/18.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/18.print index f3d308bd71..f0cd910d05 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/18.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/18.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32) (result i32))) + (export "array-atomic-get-i32-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i32) local.get $x local.get $y array.atomic.get seq_cst $a ) - (export "array-atomic-get-i32-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/19.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/19.print index f733e00572..dc2790d7a4 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/19.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/19.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32) (result i64))) + (export "array-atomic-get-i64-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i64) local.get $x local.get $y array.atomic.get seq_cst $a ) - (export "array-atomic-get-i64-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/20.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/20.print index 76dbd3ecb7..787da9a448 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/20.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/20.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut (ref null (shared any)))))) (type (;1;) (func (param (ref null $a) i32) (result (ref null (shared any))))) + (export "array-atomic-get-anyref-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result (ref null (shared any))) local.get $x local.get $y array.atomic.get seq_cst $a ) - (export "array-atomic-get-anyref-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/21.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/21.print index 5cf5608397..703ea625eb 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/21.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/21.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32) (result i32))) + (export "array-atomic-get-i32-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i32) local.get $x local.get $y array.atomic.get acq_rel $a ) - (export "array-atomic-get-i32-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/22.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/22.print index b4b3919e6f..a6ae9922fe 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/22.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/22.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32) (result i64))) + (export "array-atomic-get-i64-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i64) local.get $x local.get $y array.atomic.get acq_rel $a ) - (export "array-atomic-get-i64-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/23.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/23.print index 189c2ea090..8bb37158ac 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/23.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/23.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut (ref null (shared any)))))) (type (;1;) (func (param (ref null $a) i32) (result (ref null (shared any))))) + (export "array-atomic-get-anyref-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result (ref null (shared any))) local.get $x local.get $y array.atomic.get acq_rel $a ) - (export "array-atomic-get-anyref-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/24.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/24.print index 00e0b30082..b109126dbe 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/24.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/24.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i8)))) (type (;1;) (func (param (ref null $a) i32) (result i32))) + (export "array-atomic-get_s-i8-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i32) local.get $x local.get $y array.atomic.get_s seq_cst $a ) - (export "array-atomic-get_s-i8-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/25.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/25.print index 82d7db16b1..63217549c3 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/25.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/25.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i16)))) (type (;1;) (func (param (ref null $a) i32) (result i32))) + (export "array-atomic-get_s-i16-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i32) local.get $x local.get $y array.atomic.get_s seq_cst $a ) - (export "array-atomic-get_s-i16-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/26.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/26.print index 0794e77851..5445eb1e13 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/26.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/26.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i8)))) (type (;1;) (func (param (ref null $a) i32) (result i32))) + (export "array-atomic-get_s-i8-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i32) local.get $x local.get $y array.atomic.get_s acq_rel $a ) - (export "array-atomic-get_s-i8-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/27.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/27.print index f7a27cdcd8..ea3b30803d 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/27.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/27.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i16)))) (type (;1;) (func (param (ref null $a) i32) (result i32))) + (export "array-atomic-get_s-i16-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i32) local.get $x local.get $y array.atomic.get_s acq_rel $a ) - (export "array-atomic-get_s-i16-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/28.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/28.print index 2ccc59945c..e5d89a9e98 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/28.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/28.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i8)))) (type (;1;) (func (param (ref null $a) i32) (result i32))) + (export "array-atomic-get_u-i8-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i32) local.get $x local.get $y array.atomic.get_u seq_cst $a ) - (export "array-atomic-get_u-i8-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/29.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/29.print index 144068c536..48f4e03959 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/29.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/29.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i16)))) (type (;1;) (func (param (ref null $a) i32) (result i32))) + (export "array-atomic-get_u-i16-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i32) local.get $x local.get $y array.atomic.get_u seq_cst $a ) - (export "array-atomic-get_u-i16-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/30.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/30.print index e5bed640b9..7dac211dbb 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/30.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/30.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i8)))) (type (;1;) (func (param (ref null $a) i32) (result i32))) + (export "array-atomic-get_u-i8-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i32) local.get $x local.get $y array.atomic.get_u acq_rel $a ) - (export "array-atomic-get_u-i8-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/31.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/31.print index 069d3eb673..689a1c559a 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/31.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/31.print @@ -1,10 +1,10 @@ (module (type $a (;0;) (shared(array (mut i16)))) (type (;1;) (func (param (ref null $a) i32) (result i32))) + (export "array-atomic-get_u-i16-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (result i32) local.get $x local.get $y array.atomic.get_u acq_rel $a ) - (export "array-atomic-get_u-i16-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/32.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/32.print index b1727c3227..f8586f978e 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/32.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/32.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i8)))) (type (;1;) (func (param (ref null $a) i32 i32))) + (export "array-atomic-set-i8-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) local.get $x local.get $y local.get $z array.atomic.set seq_cst $a ) - (export "array-atomic-set-i8-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/33.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/33.print index 95641f947b..f7ca4a3603 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/33.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/33.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i16)))) (type (;1;) (func (param (ref null $a) i32 i32))) + (export "array-atomic-set-i16-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) local.get $x local.get $y local.get $z array.atomic.set seq_cst $a ) - (export "array-atomic-set-i16-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/34.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/34.print index b8e21b1aa8..0dee78fb11 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/34.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/34.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32))) + (export "array-atomic-set-i32-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) local.get $x local.get $y local.get $z array.atomic.set seq_cst $a ) - (export "array-atomic-set-i32-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/35.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/35.print index 6e11fb3a41..74afdcebf9 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/35.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/35.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64))) + (export "array-atomic-set-i64-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) local.get $x local.get $y local.get $z array.atomic.set seq_cst $a ) - (export "array-atomic-set-i64-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/36.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/36.print index db65bed132..db3cc5b7ab 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/36.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/36.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut (ref null (shared any)))))) (type (;1;) (func (param (ref null $a) i32 (ref null (shared any))))) + (export "array-atomic-set-anyref-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z (ref null (shared any))) local.get $x local.get $y local.get $z array.atomic.set seq_cst $a ) - (export "array-atomic-set-anyref-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/37.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/37.print index 941e3f0d84..7c3dca671a 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/37.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/37.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i8)))) (type (;1;) (func (param (ref null $a) i32 i32))) + (export "array-atomic-set-i8-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) local.get $x local.get $y local.get $z array.atomic.set acq_rel $a ) - (export "array-atomic-set-i8-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/38.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/38.print index 4e3d7c91cd..0d358b938e 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/38.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/38.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i16)))) (type (;1;) (func (param (ref null $a) i32 i32))) + (export "array-atomic-set-i16-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) local.get $x local.get $y local.get $z array.atomic.set acq_rel $a ) - (export "array-atomic-set-i16-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/39.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/39.print index 17aec3ab82..909c54e07b 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/39.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/39.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32))) + (export "array-atomic-set-i32-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) local.get $x local.get $y local.get $z array.atomic.set acq_rel $a ) - (export "array-atomic-set-i32-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/40.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/40.print index 43139589ed..f35d783453 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/40.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/40.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64))) + (export "array-atomic-set-i64-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) local.get $x local.get $y local.get $z array.atomic.set acq_rel $a ) - (export "array-atomic-set-i64-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/41.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/41.print index ed1acbaf33..dad32035f6 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/41.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/41.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut (ref null (shared any)))))) (type (;1;) (func (param (ref null $a) i32 (ref null (shared any))))) + (export "array-atomic-set-anyref-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z (ref null (shared any))) local.get $x local.get $y local.get $z array.atomic.set acq_rel $a ) - (export "array-atomic-set-anyref-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/42.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/42.print index d230670ccd..90aadacff7 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/42.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/42.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.add-i32-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.add seq_cst $a ) - (export "array-atomic-rmw.add-i32-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/43.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/43.print index 28ea109420..df1d5c4412 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/43.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/43.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.add-i64-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.add seq_cst $a ) - (export "array-atomic-rmw.add-i64-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/44.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/44.print index 8cc27f279f..452a6f79ef 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/44.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/44.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.add-i32-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.add acq_rel $a ) - (export "array-atomic-rmw.add-i32-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/45.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/45.print index 3be7d18db2..3448e810c6 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/45.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/45.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.add-i64-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.add acq_rel $a ) - (export "array-atomic-rmw.add-i64-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/46.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/46.print index 36af9d868b..6345ff94ed 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/46.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/46.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.sub-i32-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.sub seq_cst $a ) - (export "array-atomic-rmw.sub-i32-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/47.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/47.print index 5bb94f29a1..cfb64b464f 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/47.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/47.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.sub-i64-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.sub seq_cst $a ) - (export "array-atomic-rmw.sub-i64-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/48.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/48.print index 0b4badbb86..e79b5c4b46 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/48.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/48.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.sub-i32-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.sub acq_rel $a ) - (export "array-atomic-rmw.sub-i32-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/49.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/49.print index ba01772628..902150729d 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/49.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/49.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.sub-i64-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.sub acq_rel $a ) - (export "array-atomic-rmw.sub-i64-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/50.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/50.print index 5c61030757..d05deca22f 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/50.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/50.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.and-i32-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.and seq_cst $a ) - (export "array-atomic-rmw.and-i32-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/51.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/51.print index 2edfd317cf..98f6287be1 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/51.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/51.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.and-i64-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.and seq_cst $a ) - (export "array-atomic-rmw.and-i64-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/52.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/52.print index 9a6e89fc15..cdb583b595 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/52.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/52.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.and-i32-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.and acq_rel $a ) - (export "array-atomic-rmw.and-i32-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/53.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/53.print index f82346cddb..1dfd8f2bb2 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/53.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/53.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.and-i64-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.and acq_rel $a ) - (export "array-atomic-rmw.and-i64-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/54.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/54.print index 59adfe733b..af504cd852 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/54.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/54.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.or-i32-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.or seq_cst $a ) - (export "array-atomic-rmw.or-i32-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/55.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/55.print index 13dd111893..553d2642c7 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/55.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/55.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.or-i64-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.or seq_cst $a ) - (export "array-atomic-rmw.or-i64-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/56.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/56.print index ffca25c496..9ac7f0889b 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/56.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/56.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.or-i32-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.or acq_rel $a ) - (export "array-atomic-rmw.or-i32-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/57.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/57.print index 94fbc49ce6..6c29694aa8 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/57.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/57.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.or-i64-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.or acq_rel $a ) - (export "array-atomic-rmw.or-i64-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/58.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/58.print index 0e6016a7ab..ab170a826e 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/58.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/58.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.xor-i32-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.xor seq_cst $a ) - (export "array-atomic-rmw.xor-i32-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/59.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/59.print index 446233a0e1..5ea551b707 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/59.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/59.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.xor-i64-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.xor seq_cst $a ) - (export "array-atomic-rmw.xor-i64-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/60.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/60.print index 7867026121..8d40dde7e9 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/60.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/60.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.xor-i32-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.xor acq_rel $a ) - (export "array-atomic-rmw.xor-i32-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/61.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/61.print index 1e8eb5b9ef..400824c880 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/61.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/61.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.xor-i64-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.xor acq_rel $a ) - (export "array-atomic-rmw.xor-i64-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/62.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/62.print index 71e2c7a8c2..76ccc5742f 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/62.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/62.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.xchg-i32-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.xchg seq_cst $a ) - (export "array-atomic-rmw.xchg-i32-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/63.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/63.print index 1770c9685c..70fe9c99b9 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/63.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/63.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.xchg-i64-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.xchg seq_cst $a ) - (export "array-atomic-rmw.xchg-i64-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/64.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/64.print index 6ca3ea8062..801f1e97c4 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/64.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/64.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut (ref null (shared any)))))) (type (;1;) (func (param (ref null $a) i32 (ref null (shared any))) (result (ref null (shared any))))) + (export "array-atomic-rmw.xchg-anyref-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z (ref null (shared any))) (result (ref null (shared any))) local.get $x local.get $y local.get $z array.atomic.rmw.xchg seq_cst $a ) - (export "array-atomic-rmw.xchg-anyref-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/65.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/65.print index 2a03171eae..d5e9490eb0 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/65.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/65.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32) (result i32))) + (export "array-atomic-rmw.xchg-i32-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (result i32) local.get $x local.get $y local.get $z array.atomic.rmw.xchg acq_rel $a ) - (export "array-atomic-rmw.xchg-i32-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/66.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/66.print index 618521206b..22cd19a471 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/66.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/66.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64) (result i64))) + (export "array-atomic-rmw.xchg-i64-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (result i64) local.get $x local.get $y local.get $z array.atomic.rmw.xchg acq_rel $a ) - (export "array-atomic-rmw.xchg-i64-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/67.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/67.print index 2670aba692..3c6c2bc79b 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/67.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/67.print @@ -1,11 +1,11 @@ (module (type $a (;0;) (shared(array (mut (ref null (shared any)))))) (type (;1;) (func (param (ref null $a) i32 (ref null (shared any))) (result (ref null (shared any))))) + (export "array-atomic-rmw.xchg-anyref-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z (ref null (shared any))) (result (ref null (shared any))) local.get $x local.get $y local.get $z array.atomic.rmw.xchg acq_rel $a ) - (export "array-atomic-rmw.xchg-anyref-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/68.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/68.print index 9b4ed0eced..7011dec752 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/68.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/68.print @@ -1,6 +1,7 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32 i32) (result i32))) + (export "array-atomic-rmw.cmpxchg-i32-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (param $A i32) (result i32) local.get $x local.get $y @@ -8,5 +9,4 @@ local.get $A array.atomic.rmw.cmpxchg seq_cst $a ) - (export "array-atomic-rmw.cmpxchg-i32-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/69.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/69.print index f485f7a7e3..2c7db0e920 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/69.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/69.print @@ -1,6 +1,7 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64 i64) (result i64))) + (export "array-atomic-rmw.cmpxchg-i64-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (param $A i64) (result i64) local.get $x local.get $y @@ -8,5 +9,4 @@ local.get $A array.atomic.rmw.cmpxchg seq_cst $a ) - (export "array-atomic-rmw.cmpxchg-i64-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/70.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/70.print index c9be7ed8c2..0bae52d1d0 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/70.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/70.print @@ -1,6 +1,7 @@ (module (type $a (;0;) (shared(array (mut (ref null (shared eq)))))) (type (;1;) (func (param (ref null $a) i32 (ref null (shared eq)) (ref null (shared eq))) (result (ref null (shared eq))))) + (export "array-atomic-rmw.cmpxchg-eqref-seq_cst" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z (ref null (shared eq))) (param $A (ref null (shared eq))) (result (ref null (shared eq))) local.get $x local.get $y @@ -8,5 +9,4 @@ local.get $A array.atomic.rmw.cmpxchg seq_cst $a ) - (export "array-atomic-rmw.cmpxchg-eqref-seq_cst" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/71.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/71.print index 15e7ca30d3..184f75a3cd 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/71.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/71.print @@ -1,6 +1,7 @@ (module (type $a (;0;) (shared(array (mut i32)))) (type (;1;) (func (param (ref null $a) i32 i32 i32) (result i32))) + (export "array-atomic-rmw.cmpxchg-i32-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i32) (param $A i32) (result i32) local.get $x local.get $y @@ -8,5 +9,4 @@ local.get $A array.atomic.rmw.cmpxchg acq_rel $a ) - (export "array-atomic-rmw.cmpxchg-i32-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/72.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/72.print index 7bce20ede1..39a2ad49f5 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/72.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/72.print @@ -1,6 +1,7 @@ (module (type $a (;0;) (shared(array (mut i64)))) (type (;1;) (func (param (ref null $a) i32 i64 i64) (result i64))) + (export "array-atomic-rmw.cmpxchg-i64-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z i64) (param $A i64) (result i64) local.get $x local.get $y @@ -8,5 +9,4 @@ local.get $A array.atomic.rmw.cmpxchg acq_rel $a ) - (export "array-atomic-rmw.cmpxchg-i64-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/73.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/73.print index d61185983f..ea39318a4b 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/73.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/73.print @@ -1,6 +1,7 @@ (module (type $a (;0;) (shared(array (mut (ref null (shared eq)))))) (type (;1;) (func (param (ref null $a) i32 (ref null (shared eq)) (ref null (shared eq))) (result (ref null (shared eq))))) + (export "array-atomic-rmw.cmpxchg-eqref-acq_rel" (func 0)) (func (;0;) (type 1) (param $x (ref null $a)) (param $y i32) (param $z (ref null (shared eq))) (param $A (ref null (shared eq))) (result (ref null (shared eq))) local.get $x local.get $y @@ -8,5 +9,4 @@ local.get $A array.atomic.rmw.cmpxchg acq_rel $a ) - (export "array-atomic-rmw.cmpxchg-eqref-acq_rel" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/8.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/8.print index 0355588339..7cdf73e227 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/8.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/8.print @@ -8,6 +8,7 @@ (type (;6;) (func (param (ref null $i8) (ref null $i8)))) (type (;7;) (func (param (ref null $i8) (ref null $unshared)))) (type (;8;) (func (param (ref null $unshared) (ref null $i8)))) + (elem (;0;) arrayref) (func (;0;) (type 3) i32.const 0 i32.const 0 @@ -92,6 +93,5 @@ i32.const 0 array.init_data $i8 0 ) - (elem (;0;) arrayref) (data (;0;) "") ) diff --git a/tests/snapshots/local/shared-everything-threads/arrays.wast/9.print b/tests/snapshots/local/shared-everything-threads/arrays.wast/9.print index ece8d7e9a6..0631d03fc4 100644 --- a/tests/snapshots/local/shared-everything-threads/arrays.wast/9.print +++ b/tests/snapshots/local/shared-everything-threads/arrays.wast/9.print @@ -4,6 +4,7 @@ (type $funcs (;2;) (shared(array (mut (ref null (shared func)))))) (type (;3;) (func)) (type (;4;) (func (param (ref null $i8)))) + (elem (;0;) (ref null (shared func))) (func (;0;) (type 3) ref.null (shared none) i32.const 0 @@ -73,6 +74,5 @@ i32.const 0 array.init_elem $funcs 0 ) - (elem (;0;) (ref null (shared func))) (data (;0;) "") ) diff --git a/tests/snapshots/local/shared-everything-threads/globals.wast/23.print b/tests/snapshots/local/shared-everything-threads/globals.wast/23.print index 0e052f4ed9..52274ace2c 100644 --- a/tests/snapshots/local/shared-everything-threads/globals.wast/23.print +++ b/tests/snapshots/local/shared-everything-threads/globals.wast/23.print @@ -2,6 +2,35 @@ (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32) (result i32))) (import "spectest" "global_i32" (global $a (;0;) (shared mut i32))) + (global $b (;1;) (shared mut i32) i32.const 0) + (export "rmw-add-i32-seq_cst-$a" (func 0)) + (export "rmw-add-i32-seq_cst-$b" (func 1)) + (export "rmw-add-i32-acq_rel-$a" (func 2)) + (export "rmw-add-i32-acq_rel-$b" (func 3)) + (export "rmw-sub-i32-seq_cst-$a" (func 4)) + (export "rmw-sub-i32-seq_cst-$b" (func 5)) + (export "rmw-sub-i32-acq_rel-$a" (func 6)) + (export "rmw-sub-i32-acq_rel-$b" (func 7)) + (export "rmw-and-i32-seq_cst-$a" (func 8)) + (export "rmw-and-i32-seq_cst-$b" (func 9)) + (export "rmw-and-i32-acq_rel-$a" (func 10)) + (export "rmw-and-i32-acq_rel-$b" (func 11)) + (export "rmw-or-i32-seq_cst-$a" (func 12)) + (export "rmw-or-i32-seq_cst-$b" (func 13)) + (export "rmw-or-i32-acq_rel-$a" (func 14)) + (export "rmw-or-i32-acq_rel-$b" (func 15)) + (export "rmw-xor-i32-seq_cst-$a" (func 16)) + (export "rmw-xor-i32-seq_cst-$b" (func 17)) + (export "rmw-xor-i32-acq_rel-$a" (func 18)) + (export "rmw-xor-i32-acq_rel-$b" (func 19)) + (export "rmw-xchg-i32-seq_cst-$a" (func 20)) + (export "rmw-xchg-i32-seq_cst-$b" (func 21)) + (export "rmw-xchg-i32-acq_rel-$a" (func 22)) + (export "rmw-xchg-i32-acq_rel-$b" (func 23)) + (export "rmw-cmpxchg-i32-seq_cst-$a" (func 24)) + (export "rmw-cmpxchg-i32-seq_cst-$b" (func 25)) + (export "rmw-cmpxchg-i32-acq_rel-$a" (func 26)) + (export "rmw-cmpxchg-i32-acq_rel-$b" (func 27)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x global.atomic.rmw.add seq_cst $a @@ -118,33 +147,4 @@ local.get $y global.atomic.rmw.cmpxchg acq_rel $b ) - (global $b (;1;) (shared mut i32) i32.const 0) - (export "rmw-add-i32-seq_cst-$a" (func 0)) - (export "rmw-add-i32-seq_cst-$b" (func 1)) - (export "rmw-add-i32-acq_rel-$a" (func 2)) - (export "rmw-add-i32-acq_rel-$b" (func 3)) - (export "rmw-sub-i32-seq_cst-$a" (func 4)) - (export "rmw-sub-i32-seq_cst-$b" (func 5)) - (export "rmw-sub-i32-acq_rel-$a" (func 6)) - (export "rmw-sub-i32-acq_rel-$b" (func 7)) - (export "rmw-and-i32-seq_cst-$a" (func 8)) - (export "rmw-and-i32-seq_cst-$b" (func 9)) - (export "rmw-and-i32-acq_rel-$a" (func 10)) - (export "rmw-and-i32-acq_rel-$b" (func 11)) - (export "rmw-or-i32-seq_cst-$a" (func 12)) - (export "rmw-or-i32-seq_cst-$b" (func 13)) - (export "rmw-or-i32-acq_rel-$a" (func 14)) - (export "rmw-or-i32-acq_rel-$b" (func 15)) - (export "rmw-xor-i32-seq_cst-$a" (func 16)) - (export "rmw-xor-i32-seq_cst-$b" (func 17)) - (export "rmw-xor-i32-acq_rel-$a" (func 18)) - (export "rmw-xor-i32-acq_rel-$b" (func 19)) - (export "rmw-xchg-i32-seq_cst-$a" (func 20)) - (export "rmw-xchg-i32-seq_cst-$b" (func 21)) - (export "rmw-xchg-i32-acq_rel-$a" (func 22)) - (export "rmw-xchg-i32-acq_rel-$b" (func 23)) - (export "rmw-cmpxchg-i32-seq_cst-$a" (func 24)) - (export "rmw-cmpxchg-i32-seq_cst-$b" (func 25)) - (export "rmw-cmpxchg-i32-acq_rel-$a" (func 26)) - (export "rmw-cmpxchg-i32-acq_rel-$b" (func 27)) ) diff --git a/tests/snapshots/local/shared-everything-threads/globals.wast/24.print b/tests/snapshots/local/shared-everything-threads/globals.wast/24.print index 1aac4333f6..849da9c534 100644 --- a/tests/snapshots/local/shared-everything-threads/globals.wast/24.print +++ b/tests/snapshots/local/shared-everything-threads/globals.wast/24.print @@ -2,6 +2,35 @@ (type (;0;) (func (param i64) (result i64))) (type (;1;) (func (param i64 i64) (result i64))) (import "spectest" "global_i64" (global $a (;0;) (shared mut i64))) + (global $b (;1;) (shared mut i64) i64.const 0) + (export "rmw-add-i64-seq_cst-$a" (func 0)) + (export "rmw-add-i64-seq_cst-$b" (func 1)) + (export "rmw-add-i64-acq_rel-$a" (func 2)) + (export "rmw-add-i64-acq_rel-$b" (func 3)) + (export "rmw-sub-i64-seq_cst-$a" (func 4)) + (export "rmw-sub-i64-seq_cst-$b" (func 5)) + (export "rmw-sub-i64-acq_rel-$a" (func 6)) + (export "rmw-sub-i64-acq_rel-$b" (func 7)) + (export "rmw-and-i64-seq_cst-$a" (func 8)) + (export "rmw-and-i64-seq_cst-$b" (func 9)) + (export "rmw-and-i64-acq_rel-$a" (func 10)) + (export "rmw-and-i64-acq_rel-$b" (func 11)) + (export "rmw-or-i64-seq_cst-$a" (func 12)) + (export "rmw-or-i64-seq_cst-$b" (func 13)) + (export "rmw-or-i64-acq_rel-$a" (func 14)) + (export "rmw-or-i64-acq_rel-$b" (func 15)) + (export "rmw-xor-i64-seq_cst-$a" (func 16)) + (export "rmw-xor-i64-seq_cst-$b" (func 17)) + (export "rmw-xor-i64-acq_rel-$a" (func 18)) + (export "rmw-xor-i64-acq_rel-$b" (func 19)) + (export "rmw-xchg-i64-seq_cst-$a" (func 20)) + (export "rmw-xchg-i64-seq_cst-$b" (func 21)) + (export "rmw-xchg-i64-acq_rel-$a" (func 22)) + (export "rmw-xchg-i64-acq_rel-$b" (func 23)) + (export "rmw-cmpxchg-i64-seq_cst-$a" (func 24)) + (export "rmw-cmpxchg-i64-seq_cst-$b" (func 25)) + (export "rmw-cmpxchg-i64-acq_rel-$a" (func 26)) + (export "rmw-cmpxchg-i64-acq_rel-$b" (func 27)) (func (;0;) (type 0) (param $x i64) (result i64) local.get $x global.atomic.rmw.add seq_cst $a @@ -118,33 +147,4 @@ local.get $y global.atomic.rmw.cmpxchg acq_rel $b ) - (global $b (;1;) (shared mut i64) i64.const 0) - (export "rmw-add-i64-seq_cst-$a" (func 0)) - (export "rmw-add-i64-seq_cst-$b" (func 1)) - (export "rmw-add-i64-acq_rel-$a" (func 2)) - (export "rmw-add-i64-acq_rel-$b" (func 3)) - (export "rmw-sub-i64-seq_cst-$a" (func 4)) - (export "rmw-sub-i64-seq_cst-$b" (func 5)) - (export "rmw-sub-i64-acq_rel-$a" (func 6)) - (export "rmw-sub-i64-acq_rel-$b" (func 7)) - (export "rmw-and-i64-seq_cst-$a" (func 8)) - (export "rmw-and-i64-seq_cst-$b" (func 9)) - (export "rmw-and-i64-acq_rel-$a" (func 10)) - (export "rmw-and-i64-acq_rel-$b" (func 11)) - (export "rmw-or-i64-seq_cst-$a" (func 12)) - (export "rmw-or-i64-seq_cst-$b" (func 13)) - (export "rmw-or-i64-acq_rel-$a" (func 14)) - (export "rmw-or-i64-acq_rel-$b" (func 15)) - (export "rmw-xor-i64-seq_cst-$a" (func 16)) - (export "rmw-xor-i64-seq_cst-$b" (func 17)) - (export "rmw-xor-i64-acq_rel-$a" (func 18)) - (export "rmw-xor-i64-acq_rel-$b" (func 19)) - (export "rmw-xchg-i64-seq_cst-$a" (func 20)) - (export "rmw-xchg-i64-seq_cst-$b" (func 21)) - (export "rmw-xchg-i64-acq_rel-$a" (func 22)) - (export "rmw-xchg-i64-acq_rel-$b" (func 23)) - (export "rmw-cmpxchg-i64-seq_cst-$a" (func 24)) - (export "rmw-cmpxchg-i64-seq_cst-$b" (func 25)) - (export "rmw-cmpxchg-i64-acq_rel-$a" (func 26)) - (export "rmw-cmpxchg-i64-acq_rel-$b" (func 27)) ) diff --git a/tests/snapshots/local/shared-everything-threads/globals.wast/28.print b/tests/snapshots/local/shared-everything-threads/globals.wast/28.print index 6cd361a78a..e5522d46e8 100644 --- a/tests/snapshots/local/shared-everything-threads/globals.wast/28.print +++ b/tests/snapshots/local/shared-everything-threads/globals.wast/28.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (global $g (;0;) (mut eqref) ref.null eq) (func (;0;) (type 0) ref.null eq global.atomic.rmw.xchg acq_rel $g drop ) - (global $g (;0;) (mut eqref) ref.null eq) ) diff --git a/tests/snapshots/local/shared-everything-threads/globals.wast/3.print b/tests/snapshots/local/shared-everything-threads/globals.wast/3.print index 9fddda892c..0edd662401 100644 --- a/tests/snapshots/local/shared-everything-threads/globals.wast/3.print +++ b/tests/snapshots/local/shared-everything-threads/globals.wast/3.print @@ -3,6 +3,12 @@ (type (;1;) (func)) (import "spectest" "global_i32" (global $a (;0;) (shared i32))) (import "spectest" "global_i64" (global $b (;1;) (shared mut i64))) + (global $d (;2;) (shared i32) i32.const 0) + (global $e (;3;) (shared mut i64) i64.const 1) + (export "get-a-seqcst" (func 0)) + (export "set-b-seqcst" (func 1)) + (export "get-d-acqrel" (func 2)) + (export "set-e-acqrel" (func 3)) (func (;0;) (type 0) (result i32) global.atomic.get seq_cst $a ) @@ -17,10 +23,4 @@ i64.const 2 global.atomic.set acq_rel $e ) - (global $d (;2;) (shared i32) i32.const 0) - (global $e (;3;) (shared mut i64) i64.const 1) - (export "get-a-seqcst" (func 0)) - (export "set-b-seqcst" (func 1)) - (export "get-d-acqrel" (func 2)) - (export "set-e-acqrel" (func 3)) ) diff --git a/tests/snapshots/local/shared-everything-threads/globals.wast/30.print b/tests/snapshots/local/shared-everything-threads/globals.wast/30.print index c97befa30b..f4aeb6f5da 100644 --- a/tests/snapshots/local/shared-everything-threads/globals.wast/30.print +++ b/tests/snapshots/local/shared-everything-threads/globals.wast/30.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (global $g (;0;) (mut eqref) ref.null eq) (func (;0;) (type 0) ref.null eq ref.null eq global.atomic.rmw.cmpxchg acq_rel $g drop ) - (global $g (;0;) (mut eqref) ref.null eq) ) diff --git a/tests/snapshots/local/shared-everything-threads/i31.wast/0.print b/tests/snapshots/local/shared-everything-threads/i31.wast/0.print index 24e77e86db..de41b857b1 100644 --- a/tests/snapshots/local/shared-everything-threads/i31.wast/0.print +++ b/tests/snapshots/local/shared-everything-threads/i31.wast/0.print @@ -4,6 +4,15 @@ (type (;2;) (func (result i32))) (type (;3;) (func (result i32 i32))) (type (;4;) (func (param i32))) + (global $i (;0;) (ref (shared i31)) i32.const 2 ref.i31_shared) + (global $m (;1;) (mut (ref (shared i31))) i32.const 3 ref.i31_shared) + (export "new" (func 0)) + (export "get_u" (func 1)) + (export "get_s" (func 2)) + (export "get_u-null" (func 3)) + (export "get_s-null" (func 4)) + (export "get_globals" (func 5)) + (export "set_global" (func 6)) (func (;0;) (type 0) (param $i i32) (result (ref (shared i31))) local.get $i ref.i31_shared @@ -37,13 +46,4 @@ ref.i31_shared global.set $m ) - (global $i (;0;) (ref (shared i31)) i32.const 2 ref.i31_shared) - (global $m (;1;) (mut (ref (shared i31))) i32.const 3 ref.i31_shared) - (export "new" (func 0)) - (export "get_u" (func 1)) - (export "get_s" (func 2)) - (export "get_u-null" (func 3)) - (export "get_s-null" (func 4)) - (export "get_globals" (func 5)) - (export "set_global" (func 6)) ) diff --git a/tests/snapshots/local/shared-everything-threads/i31.wast/23.print b/tests/snapshots/local/shared-everything-threads/i31.wast/23.print index 8b37d4bdf6..57369cc427 100644 --- a/tests/snapshots/local/shared-everything-threads/i31.wast/23.print +++ b/tests/snapshots/local/shared-everything-threads/i31.wast/23.print @@ -3,6 +3,15 @@ (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) + (table $table (;0;) 3 10 (ref null (shared i31))) + (export "size" (func 0)) + (export "get" (func 1)) + (export "grow" (func 2)) + (export "fill" (func 3)) + (export "copy" (func 4)) + (export "init" (func 5)) + (elem (;0;) (i32.const 0) (ref null (shared i31)) (item i32.const 999 ref.i31_shared) (item i32.const 888 ref.i31_shared) (item i32.const 777 ref.i31_shared)) + (elem $elem (;1;) (ref null (shared i31)) (item i32.const 123 ref.i31_shared) (item i32.const 456 ref.i31_shared) (item i32.const 789 ref.i31_shared)) (func (;0;) (type 0) (result i32) table.size $table ) @@ -36,13 +45,4 @@ local.get 2 table.init $elem ) - (table $table (;0;) 3 10 (ref null (shared i31))) - (export "size" (func 0)) - (export "get" (func 1)) - (export "grow" (func 2)) - (export "fill" (func 3)) - (export "copy" (func 4)) - (export "init" (func 5)) - (elem (;0;) (i32.const 0) (ref null (shared i31)) (item i32.const 999 ref.i31_shared) (item i32.const 888 ref.i31_shared) (item i32.const 777 ref.i31_shared)) - (elem $elem (;1;) (ref null (shared i31)) (item i32.const 123 ref.i31_shared) (item i32.const 456 ref.i31_shared) (item i32.const 789 ref.i31_shared)) ) diff --git a/tests/snapshots/local/shared-everything-threads/i31.wast/44.print b/tests/snapshots/local/shared-everything-threads/i31.wast/44.print index 687223b6f7..7085e95c29 100644 --- a/tests/snapshots/local/shared-everything-threads/i31.wast/44.print +++ b/tests/snapshots/local/shared-everything-threads/i31.wast/44.print @@ -1,11 +1,11 @@ (module $i31ref_of_global_table_initializer (type (;0;) (func (param i32) (result i32))) (import "env" "g" (global $g (;0;) i32)) + (table $t (;0;) 3 3 (ref (shared i31)) global.get $g ref.i31_shared) + (export "get" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 table.get $t i31.get_u ) - (table $t (;0;) 3 3 (ref (shared i31)) global.get $g ref.i31_shared) - (export "get" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/i31.wast/48.print b/tests/snapshots/local/shared-everything-threads/i31.wast/48.print index 639fcee46e..c4d4749d33 100644 --- a/tests/snapshots/local/shared-everything-threads/i31.wast/48.print +++ b/tests/snapshots/local/shared-everything-threads/i31.wast/48.print @@ -1,10 +1,10 @@ (module $i31ref_of_global_global_initializer (type (;0;) (func (result i32))) (import "env" "g" (global $g0 (;0;) i32)) + (global $g1 (;1;) (ref null (shared i31)) global.get $g0 ref.i31_shared) + (export "get" (func 0)) (func (;0;) (type 0) (result i32) global.get $g1 i31.get_u ) - (global $g1 (;1;) (ref null (shared i31)) global.get $g0 ref.i31_shared) - (export "get" (func 0)) ) diff --git a/tests/snapshots/local/shared-everything-threads/i31.wast/50.print b/tests/snapshots/local/shared-everything-threads/i31.wast/50.print index f810f1adbf..2804470924 100644 --- a/tests/snapshots/local/shared-everything-threads/i31.wast/50.print +++ b/tests/snapshots/local/shared-everything-threads/i31.wast/50.print @@ -1,6 +1,10 @@ (module $anyref_global_of_i31ref (type (;0;) (func (result i32 i32))) (type (;1;) (func (param i32))) + (global $c (;0;) (ref null (shared any)) i32.const 1234 ref.i31_shared) + (global $m (;1;) (mut (ref null (shared any))) i32.const 5678 ref.i31_shared) + (export "get_globals" (func 0)) + (export "set_global" (func 1)) (func (;0;) (type 0) (result i32 i32) global.get $c ref.cast (ref null (shared i31)) @@ -14,8 +18,4 @@ ref.i31_shared global.set $m ) - (global $c (;0;) (ref null (shared any)) i32.const 1234 ref.i31_shared) - (global $m (;1;) (mut (ref null (shared any))) i32.const 5678 ref.i31_shared) - (export "get_globals" (func 0)) - (export "set_global" (func 1)) ) diff --git a/tests/snapshots/local/shared-everything-threads/i31.wast/54.print b/tests/snapshots/local/shared-everything-threads/i31.wast/54.print index c7b8a6620a..ea29708b9c 100644 --- a/tests/snapshots/local/shared-everything-threads/i31.wast/54.print +++ b/tests/snapshots/local/shared-everything-threads/i31.wast/54.print @@ -3,6 +3,15 @@ (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) + (table $table (;0;) 3 10 (ref null (shared any))) + (export "size" (func 0)) + (export "get" (func 1)) + (export "grow" (func 2)) + (export "fill" (func 3)) + (export "copy" (func 4)) + (export "init" (func 5)) + (elem (;0;) (i32.const 0) (ref null (shared i31)) (item i32.const 999 ref.i31_shared) (item i32.const 888 ref.i31_shared) (item i32.const 777 ref.i31_shared)) + (elem $elem (;1;) (ref null (shared i31)) (item i32.const 123 ref.i31_shared) (item i32.const 456 ref.i31_shared) (item i32.const 789 ref.i31_shared)) (func (;0;) (type 0) (result i32) table.size $table ) @@ -37,13 +46,4 @@ local.get 2 table.init $elem ) - (table $table (;0;) 3 10 (ref null (shared any))) - (export "size" (func 0)) - (export "get" (func 1)) - (export "grow" (func 2)) - (export "fill" (func 3)) - (export "copy" (func 4)) - (export "init" (func 5)) - (elem (;0;) (i32.const 0) (ref null (shared i31)) (item i32.const 999 ref.i31_shared) (item i32.const 888 ref.i31_shared) (item i32.const 777 ref.i31_shared)) - (elem $elem (;1;) (ref null (shared i31)) (item i32.const 123 ref.i31_shared) (item i32.const 456 ref.i31_shared) (item i32.const 789 ref.i31_shared)) ) diff --git a/tests/snapshots/local/shared-everything-threads/ref-equivalence.wast/0.print b/tests/snapshots/local/shared-everything-threads/ref-equivalence.wast/0.print index 336ac98be0..f6373012d8 100644 --- a/tests/snapshots/local/shared-everything-threads/ref-equivalence.wast/0.print +++ b/tests/snapshots/local/shared-everything-threads/ref-equivalence.wast/0.print @@ -8,6 +8,9 @@ (type $st'-sub2 (;6;) (sub $st' (shared(struct (field i32))))) (type (;7;) (func)) (type (;8;) (func (param i32 i32) (result i32))) + (table (;0;) 20 (ref null (shared eq))) + (export "init" (func 0)) + (export "eq" (func 1)) (func (;0;) (type 7) i32.const 0 ref.null (shared eq) @@ -49,7 +52,4 @@ table.get 0 ref.eq ) - (table (;0;) 20 (ref null (shared eq))) - (export "init" (func 0)) - (export "eq" (func 1)) ) diff --git a/tests/snapshots/local/shared-everything-threads/structs.wast/18.print b/tests/snapshots/local/shared-everything-threads/structs.wast/18.print index 7987e5e408..3f458d8e1c 100644 --- a/tests/snapshots/local/shared-everything-threads/structs.wast/18.print +++ b/tests/snapshots/local/shared-everything-threads/structs.wast/18.print @@ -12,6 +12,62 @@ (type (;10;) (func (param (ref null $s) i32 i32) (result i32))) (type (;11;) (func (param (ref null $s) i64 i64) (result i64))) (type (;12;) (func (param (ref null $s) (ref null (shared eq)) (ref null (shared eq))) (result (ref null (shared eq))))) + (export "struct-atomic-get-i32-seq_cst" (func 0)) + (export "struct-atomic-get-i64-seq_cst" (func 1)) + (export "struct-atomic-get-anyref-seq_cst" (func 2)) + (export "struct-atomic-get-i32-acq_rel" (func 3)) + (export "struct-atomic-get-i64-acq_rel" (func 4)) + (export "struct-atomic-get-anyref-acq_rel" (func 5)) + (export "struct-atomic-get_s-i8-seq_cst" (func 6)) + (export "struct-atomic-get_s-i16-seq_cst" (func 7)) + (export "struct-atomic-get_s-i8-acq_rel" (func 8)) + (export "struct-atomic-get_s-i16-acq_rel" (func 9)) + (export "struct-atomic-get_u-i8-seq_cst" (func 10)) + (export "struct-atomic-get_u-i16-seq_cst" (func 11)) + (export "struct-atomic-get_u-i8-acq_rel" (func 12)) + (export "struct-atomic-get_u-i16-acq_rel" (func 13)) + (export "struct-atomic-set-i8-seq_cst" (func 14)) + (export "struct-atomic-set-i16-seq_cst" (func 15)) + (export "struct-atomic-set-i32-seq_cst" (func 16)) + (export "struct-atomic-set-i64-seq_cst" (func 17)) + (export "struct-atomic-set-anyref-seq_cst" (func 18)) + (export "struct-atomic-set-i8-acq_rel" (func 19)) + (export "struct-atomic-set-i16-acq_rel" (func 20)) + (export "struct-atomic-set-i32-acq_rel" (func 21)) + (export "struct-atomic-set-i64-acq_rel" (func 22)) + (export "struct-atomic-set-anyref-acq_rel" (func 23)) + (export "struct-atomic-rmw.add-i32-seq_cst" (func 24)) + (export "struct-atomic-rmw.add-i64-seq_cst" (func 25)) + (export "struct-atomic-rmw.add-i32-acq_rel" (func 26)) + (export "struct-atomic-rmw.add-i64-acq_rel" (func 27)) + (export "struct-atomic-rmw.sub-i32-seq_cst" (func 28)) + (export "struct-atomic-rmw.sub-i64-seq_cst" (func 29)) + (export "struct-atomic-rmw.sub-i32-acq_rel" (func 30)) + (export "struct-atomic-rmw.sub-i64-acq_rel" (func 31)) + (export "struct-atomic-rmw.and-i32-seq_cst" (func 32)) + (export "struct-atomic-rmw.and-i64-seq_cst" (func 33)) + (export "struct-atomic-rmw.and-i32-acq_rel" (func 34)) + (export "struct-atomic-rmw.and-i64-acq_rel" (func 35)) + (export "struct-atomic-rmw.or-i32-seq_cst" (func 36)) + (export "struct-atomic-rmw.or-i64-seq_cst" (func 37)) + (export "struct-atomic-rmw.or-i32-acq_rel" (func 38)) + (export "struct-atomic-rmw.or-i64-acq_rel" (func 39)) + (export "struct-atomic-rmw.xor-i32-seq_cst" (func 40)) + (export "struct-atomic-rmw.xor-i64-seq_cst" (func 41)) + (export "struct-atomic-rmw.xor-i32-acq_rel" (func 42)) + (export "struct-atomic-rmw.xor-i64-acq_rel" (func 43)) + (export "struct-atomic-rmw.xchg-i32-seq_cst" (func 44)) + (export "struct-atomic-rmw.xchg-i64-seq_cst" (func 45)) + (export "struct-atomic-rmw.xchg-anyref-seq_cst" (func 46)) + (export "struct-atomic-rmw.xchg-i32-acq_rel" (func 47)) + (export "struct-atomic-rmw.xchg-i64-acq_rel" (func 48)) + (export "struct-atomic-rmw.xchg-anyref-acq_rel" (func 49)) + (export "struct-atomic-rmw.cmpxchg-i32-seq_cst" (func 50)) + (export "struct-atomic-rmw.cmpxchg-i64-seq_cst" (func 51)) + (export "struct-atomic-rmw.cmpxchg-eqref-seq_cst" (func 52)) + (export "struct-atomic-rmw.cmpxchg-i32-acq_rel" (func 53)) + (export "struct-atomic-rmw.cmpxchg-i64-acq_rel" (func 54)) + (export "struct-atomic-rmw.cmpxchg-eqref-acq_rel" (func 55)) (func (;0;) (type 1) (param $x (ref null $s)) (result i32) local.get $x struct.atomic.get seq_cst $s $i32 @@ -284,60 +340,4 @@ local.get $z struct.atomic.rmw.cmpxchg acq_rel $s $eqref ) - (export "struct-atomic-get-i32-seq_cst" (func 0)) - (export "struct-atomic-get-i64-seq_cst" (func 1)) - (export "struct-atomic-get-anyref-seq_cst" (func 2)) - (export "struct-atomic-get-i32-acq_rel" (func 3)) - (export "struct-atomic-get-i64-acq_rel" (func 4)) - (export "struct-atomic-get-anyref-acq_rel" (func 5)) - (export "struct-atomic-get_s-i8-seq_cst" (func 6)) - (export "struct-atomic-get_s-i16-seq_cst" (func 7)) - (export "struct-atomic-get_s-i8-acq_rel" (func 8)) - (export "struct-atomic-get_s-i16-acq_rel" (func 9)) - (export "struct-atomic-get_u-i8-seq_cst" (func 10)) - (export "struct-atomic-get_u-i16-seq_cst" (func 11)) - (export "struct-atomic-get_u-i8-acq_rel" (func 12)) - (export "struct-atomic-get_u-i16-acq_rel" (func 13)) - (export "struct-atomic-set-i8-seq_cst" (func 14)) - (export "struct-atomic-set-i16-seq_cst" (func 15)) - (export "struct-atomic-set-i32-seq_cst" (func 16)) - (export "struct-atomic-set-i64-seq_cst" (func 17)) - (export "struct-atomic-set-anyref-seq_cst" (func 18)) - (export "struct-atomic-set-i8-acq_rel" (func 19)) - (export "struct-atomic-set-i16-acq_rel" (func 20)) - (export "struct-atomic-set-i32-acq_rel" (func 21)) - (export "struct-atomic-set-i64-acq_rel" (func 22)) - (export "struct-atomic-set-anyref-acq_rel" (func 23)) - (export "struct-atomic-rmw.add-i32-seq_cst" (func 24)) - (export "struct-atomic-rmw.add-i64-seq_cst" (func 25)) - (export "struct-atomic-rmw.add-i32-acq_rel" (func 26)) - (export "struct-atomic-rmw.add-i64-acq_rel" (func 27)) - (export "struct-atomic-rmw.sub-i32-seq_cst" (func 28)) - (export "struct-atomic-rmw.sub-i64-seq_cst" (func 29)) - (export "struct-atomic-rmw.sub-i32-acq_rel" (func 30)) - (export "struct-atomic-rmw.sub-i64-acq_rel" (func 31)) - (export "struct-atomic-rmw.and-i32-seq_cst" (func 32)) - (export "struct-atomic-rmw.and-i64-seq_cst" (func 33)) - (export "struct-atomic-rmw.and-i32-acq_rel" (func 34)) - (export "struct-atomic-rmw.and-i64-acq_rel" (func 35)) - (export "struct-atomic-rmw.or-i32-seq_cst" (func 36)) - (export "struct-atomic-rmw.or-i64-seq_cst" (func 37)) - (export "struct-atomic-rmw.or-i32-acq_rel" (func 38)) - (export "struct-atomic-rmw.or-i64-acq_rel" (func 39)) - (export "struct-atomic-rmw.xor-i32-seq_cst" (func 40)) - (export "struct-atomic-rmw.xor-i64-seq_cst" (func 41)) - (export "struct-atomic-rmw.xor-i32-acq_rel" (func 42)) - (export "struct-atomic-rmw.xor-i64-acq_rel" (func 43)) - (export "struct-atomic-rmw.xchg-i32-seq_cst" (func 44)) - (export "struct-atomic-rmw.xchg-i64-seq_cst" (func 45)) - (export "struct-atomic-rmw.xchg-anyref-seq_cst" (func 46)) - (export "struct-atomic-rmw.xchg-i32-acq_rel" (func 47)) - (export "struct-atomic-rmw.xchg-i64-acq_rel" (func 48)) - (export "struct-atomic-rmw.xchg-anyref-acq_rel" (func 49)) - (export "struct-atomic-rmw.cmpxchg-i32-seq_cst" (func 50)) - (export "struct-atomic-rmw.cmpxchg-i64-seq_cst" (func 51)) - (export "struct-atomic-rmw.cmpxchg-eqref-seq_cst" (func 52)) - (export "struct-atomic-rmw.cmpxchg-i32-acq_rel" (func 53)) - (export "struct-atomic-rmw.cmpxchg-i64-acq_rel" (func 54)) - (export "struct-atomic-rmw.cmpxchg-eqref-acq_rel" (func 55)) ) diff --git a/tests/snapshots/local/shared-everything-threads/tables.wast/7.print b/tests/snapshots/local/shared-everything-threads/tables.wast/7.print index 033089a8b9..a5cc97fc5e 100644 --- a/tests/snapshots/local/shared-everything-threads/tables.wast/7.print +++ b/tests/snapshots/local/shared-everything-threads/tables.wast/7.print @@ -4,6 +4,23 @@ (type (;2;) (func (param i32 (ref null (shared eq))) (result (ref null (shared eq))))) (type (;3;) (func (param i32 (ref null (shared eq)) (ref null (shared eq))) (result (ref null (shared eq))))) (import "spectest" "table_eq" (table $a (;0;) shared 1 (ref null (shared eq)))) + (table $b (;1;) shared 1 (ref null (shared eq))) + (export "table-atomic-get-eq-seq_cst-$a" (func 0)) + (export "table-atomic-get-eq-seq_cst-$b" (func 1)) + (export "table-atomic-get-eq-acq_rel-$a" (func 2)) + (export "table-atomic-get-eq-acq_rel-$b" (func 3)) + (export "table-atomic-set-eq-seq_cst-$a" (func 4)) + (export "table-atomic-set-eq-seq_cst-$b" (func 5)) + (export "table-atomic-set-eq-acq_rel-$a" (func 6)) + (export "table-atomic-set-eq-acq_rel-$b" (func 7)) + (export "table-atomic-rmw.xchg-eq-seq_cst-$a" (func 8)) + (export "table-atomic-rmw.xchg-eq-seq_cst-$b" (func 9)) + (export "table-atomic-rmw.xchg-eq-acq_rel-$a" (func 10)) + (export "table-atomic-rmw.xchg-eq-acq_rel-$b" (func 11)) + (export "table-atomic-rmw.cmpxchg-eq-seq_cst-$a" (func 12)) + (export "table-atomic-rmw.cmpxchg-eq-seq_cst-$b" (func 13)) + (export "table-atomic-rmw.cmpxchg-eq-acq_rel-$a" (func 14)) + (export "table-atomic-rmw.cmpxchg-eq-acq_rel-$b" (func 15)) (func (;0;) (type 0) (param $x i32) (result (ref null (shared eq))) local.get $x table.atomic.get seq_cst $a @@ -84,21 +101,4 @@ local.get $z table.atomic.rmw.cmpxchg acq_rel $b ) - (table $b (;1;) shared 1 (ref null (shared eq))) - (export "table-atomic-get-eq-seq_cst-$a" (func 0)) - (export "table-atomic-get-eq-seq_cst-$b" (func 1)) - (export "table-atomic-get-eq-acq_rel-$a" (func 2)) - (export "table-atomic-get-eq-acq_rel-$b" (func 3)) - (export "table-atomic-set-eq-seq_cst-$a" (func 4)) - (export "table-atomic-set-eq-seq_cst-$b" (func 5)) - (export "table-atomic-set-eq-acq_rel-$a" (func 6)) - (export "table-atomic-set-eq-acq_rel-$b" (func 7)) - (export "table-atomic-rmw.xchg-eq-seq_cst-$a" (func 8)) - (export "table-atomic-rmw.xchg-eq-seq_cst-$b" (func 9)) - (export "table-atomic-rmw.xchg-eq-acq_rel-$a" (func 10)) - (export "table-atomic-rmw.xchg-eq-acq_rel-$b" (func 11)) - (export "table-atomic-rmw.cmpxchg-eq-seq_cst-$a" (func 12)) - (export "table-atomic-rmw.cmpxchg-eq-seq_cst-$b" (func 13)) - (export "table-atomic-rmw.cmpxchg-eq-acq_rel-$a" (func 14)) - (export "table-atomic-rmw.cmpxchg-eq-acq_rel-$b" (func 15)) ) diff --git a/tests/snapshots/local/shared-everything-threads/tables.wast/8.print b/tests/snapshots/local/shared-everything-threads/tables.wast/8.print index e921f4e848..18e385e8cf 100644 --- a/tests/snapshots/local/shared-everything-threads/tables.wast/8.print +++ b/tests/snapshots/local/shared-everything-threads/tables.wast/8.print @@ -3,6 +3,19 @@ (type (;1;) (func (param i32 (ref null (shared any))))) (type (;2;) (func (param i32 (ref null (shared any))) (result (ref null (shared any))))) (import "spectest" "table_any" (table $a (;0;) shared 1 (ref null (shared any)))) + (table $b (;1;) shared 1 (ref null (shared any))) + (export "table-atomic-get-any-seq_cst-$a" (func 0)) + (export "table-atomic-get-any-seq_cst-$b" (func 1)) + (export "table-atomic-get-any-acq_rel-$a" (func 2)) + (export "table-atomic-get-any-acq_rel-$b" (func 3)) + (export "table-atomic-set-any-seq_cst-$a" (func 4)) + (export "table-atomic-set-any-seq_cst-$b" (func 5)) + (export "table-atomic-set-any-acq_rel-$a" (func 6)) + (export "table-atomic-set-any-acq_rel-$b" (func 7)) + (export "table-atomic-rmw.xchg-any-seq_cst-$a" (func 8)) + (export "table-atomic-rmw.xchg-any-seq_cst-$b" (func 9)) + (export "table-atomic-rmw.xchg-any-acq_rel-$a" (func 10)) + (export "table-atomic-rmw.xchg-any-acq_rel-$b" (func 11)) (func (;0;) (type 0) (param $x i32) (result (ref null (shared any))) local.get $x table.atomic.get seq_cst $a @@ -59,17 +72,4 @@ local.get $y table.atomic.rmw.xchg acq_rel $b ) - (table $b (;1;) shared 1 (ref null (shared any))) - (export "table-atomic-get-any-seq_cst-$a" (func 0)) - (export "table-atomic-get-any-seq_cst-$b" (func 1)) - (export "table-atomic-get-any-acq_rel-$a" (func 2)) - (export "table-atomic-get-any-acq_rel-$b" (func 3)) - (export "table-atomic-set-any-seq_cst-$a" (func 4)) - (export "table-atomic-set-any-seq_cst-$b" (func 5)) - (export "table-atomic-set-any-acq_rel-$a" (func 6)) - (export "table-atomic-set-any-acq_rel-$b" (func 7)) - (export "table-atomic-rmw.xchg-any-seq_cst-$a" (func 8)) - (export "table-atomic-rmw.xchg-any-seq_cst-$b" (func 9)) - (export "table-atomic-rmw.xchg-any-acq_rel-$a" (func 10)) - (export "table-atomic-rmw.xchg-any-acq_rel-$b" (func 11)) ) diff --git a/tests/snapshots/local/simd.wat.print b/tests/snapshots/local/simd.wat.print index eaa13219ec..a64d9d757c 100644 --- a/tests/snapshots/local/simd.wat.print +++ b/tests/snapshots/local/simd.wat.print @@ -1,6 +1,11 @@ (module (type (;0;) (func (result v128))) (type (;1;) (func)) + (memory (;0;) 1) + (export "v128_load_0" (func 0)) + (export "v128_store_0" (func 1)) + (export "func_f64x2_replace_lane_0" (func 2)) + (export "func_i8x16_shuffle_0" (func 3)) (func (;0;) (type 0) (result v128) i32.const 4 v128.load @@ -247,11 +252,6 @@ i8x16.neg drop ) - (memory (;0;) 1) - (export "v128_load_0" (func 0)) - (export "v128_store_0" (func 1)) - (export "func_f64x2_replace_lane_0" (func 2)) - (export "func_i8x16_shuffle_0" (func 3)) (data (;0;) (i32.const 0) "\ff\ff\ff\ff") (data (;1;) (i32.const 4) "\00\00\ceA") (data (;2;) (i32.const 8) "\00\00\00\00\00\ff\8f@") diff --git a/tests/snapshots/local/table-copy.wat.print b/tests/snapshots/local/table-copy.wat.print index 3eeef5220b..83ad70cfac 100644 --- a/tests/snapshots/local/table-copy.wat.print +++ b/tests/snapshots/local/table-copy.wat.print @@ -2,6 +2,11 @@ (type (;0;) (func (param i32 i32 i32 i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (import "m" "t" (table $t (;0;) 6 funcref)) + (table $u (;1;) 6 6 funcref) + (export "u" (table $u)) + (export "copy_t_u" (func 3)) + (export "copy_u_t" (func 4)) + (elem (;0;) (table $u) (i32.const 0) func $i $j $k $i $j $k) (func $i (;0;) (type 0) (param i32 i32 i32 i32 i32 i32) (result i32) local.get 3 ) @@ -25,9 +30,4 @@ local.get 3 table.copy $u $t ) - (table $u (;1;) 6 6 funcref) - (export "u" (table $u)) - (export "copy_t_u" (func 3)) - (export "copy_u_t" (func 4)) - (elem (;0;) (table $u) (i32.const 0) func $i $j $k $i $j $k) ) diff --git a/tests/snapshots/local/table-opt-idx.wat.print b/tests/snapshots/local/table-opt-idx.wat.print index b0809f8946..1b99dae12a 100644 --- a/tests/snapshots/local/table-opt-idx.wat.print +++ b/tests/snapshots/local/table-opt-idx.wat.print @@ -1,5 +1,7 @@ (module (type (;0;) (func)) + (table (;0;) 1 funcref) + (elem $a (;0;) func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -39,6 +41,4 @@ i32.const 0 table.init $a ) - (table (;0;) 1 funcref) - (elem $a (;0;) func $f) ) diff --git a/tests/snapshots/local/unreachable-valid.wast/0.print b/tests/snapshots/local/unreachable-valid.wast/0.print index 3343348b45..906cf568ec 100644 --- a/tests/snapshots/local/unreachable-valid.wast/0.print +++ b/tests/snapshots/local/unreachable-valid.wast/0.print @@ -1,5 +1,6 @@ (module (type (;0;) (func)) + (export "f" (func 0)) (func (;0;) (type 0) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) @@ -7,5 +8,4 @@ i32.add drop ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/LB.wast/1001.print b/tests/snapshots/local/upstream-threads/LB.wast/1001.print index ca506d3663..27d8c85421 100644 --- a/tests/snapshots/local/upstream-threads/LB.wast/1001.print +++ b/tests/snapshots/local/upstream-threads/LB.wast/1001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 10 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32) i32.const 4 @@ -13,5 +14,4 @@ local.get 0 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/LB.wast/2001.print b/tests/snapshots/local/upstream-threads/LB.wast/2001.print index b9b8da149c..a988a29010 100644 --- a/tests/snapshots/local/upstream-threads/LB.wast/2001.print +++ b/tests/snapshots/local/upstream-threads/LB.wast/2001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32) i32.const 0 @@ -13,5 +14,4 @@ local.get 0 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/LB.wast/5.print b/tests/snapshots/local/upstream-threads/LB.wast/5.print index a60ecc0e99..deb74b886a 100644 --- a/tests/snapshots/local/upstream-threads/LB.wast/5.print +++ b/tests/snapshots/local/upstream-threads/LB.wast/5.print @@ -1,6 +1,7 @@ (module $Check (type (;0;) (func (result i32))) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "check" (func 0)) (func (;0;) (type 0) (result i32) (local i32 i32) i32.const 24 @@ -26,5 +27,4 @@ i32.and return ) - (export "check" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/LB_atomic.wast/1001.print b/tests/snapshots/local/upstream-threads/LB_atomic.wast/1001.print index 5a128abe36..e9c48ba930 100644 --- a/tests/snapshots/local/upstream-threads/LB_atomic.wast/1001.print +++ b/tests/snapshots/local/upstream-threads/LB_atomic.wast/1001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 10 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32) i32.const 4 @@ -13,5 +14,4 @@ local.get 0 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/LB_atomic.wast/2001.print b/tests/snapshots/local/upstream-threads/LB_atomic.wast/2001.print index 9ecc5948ce..5f68c5eb1e 100644 --- a/tests/snapshots/local/upstream-threads/LB_atomic.wast/2001.print +++ b/tests/snapshots/local/upstream-threads/LB_atomic.wast/2001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32) i32.const 0 @@ -13,5 +14,4 @@ local.get 0 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/LB_atomic.wast/5.print b/tests/snapshots/local/upstream-threads/LB_atomic.wast/5.print index 99ede0653e..4748670f3b 100644 --- a/tests/snapshots/local/upstream-threads/LB_atomic.wast/5.print +++ b/tests/snapshots/local/upstream-threads/LB_atomic.wast/5.print @@ -1,6 +1,7 @@ (module $Check (type (;0;) (func (result i32))) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "check" (func 0)) (func (;0;) (type 0) (result i32) (local i32 i32) i32.const 24 @@ -34,5 +35,4 @@ i32.or return ) - (export "check" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/MP.wast/1001.print b/tests/snapshots/local/upstream-threads/MP.wast/1001.print index 1e11d62d5e..8758abcec2 100644 --- a/tests/snapshots/local/upstream-threads/MP.wast/1001.print +++ b/tests/snapshots/local/upstream-threads/MP.wast/1001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 10 shared)) + (export "run" (func 0)) (func (;0;) (type 0) i32.const 0 i32.const 42 @@ -9,5 +10,4 @@ i32.const 1 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/MP.wast/2001.print b/tests/snapshots/local/upstream-threads/MP.wast/2001.print index 96c88f0725..8d06fa0dea 100644 --- a/tests/snapshots/local/upstream-threads/MP.wast/2001.print +++ b/tests/snapshots/local/upstream-threads/MP.wast/2001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32 i32) i32.const 4 @@ -16,5 +17,4 @@ local.get 1 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/MP.wast/5.print b/tests/snapshots/local/upstream-threads/MP.wast/5.print index 94a9e44b43..be7b8817d0 100644 --- a/tests/snapshots/local/upstream-threads/MP.wast/5.print +++ b/tests/snapshots/local/upstream-threads/MP.wast/5.print @@ -1,6 +1,7 @@ (module $Check (type (;0;) (func (result i32))) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "check" (func 0)) (func (;0;) (type 0) (result i32) (local i32 i32) i32.const 24 @@ -26,5 +27,4 @@ i32.and return ) - (export "check" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/MP_atomic.wast/1001.print b/tests/snapshots/local/upstream-threads/MP_atomic.wast/1001.print index efad4127ea..42e218bf80 100644 --- a/tests/snapshots/local/upstream-threads/MP_atomic.wast/1001.print +++ b/tests/snapshots/local/upstream-threads/MP_atomic.wast/1001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 10 shared)) + (export "run" (func 0)) (func (;0;) (type 0) i32.const 0 i32.const 42 @@ -9,5 +10,4 @@ i32.const 1 i32.atomic.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/MP_atomic.wast/2001.print b/tests/snapshots/local/upstream-threads/MP_atomic.wast/2001.print index 75fb675fca..861d6f15db 100644 --- a/tests/snapshots/local/upstream-threads/MP_atomic.wast/2001.print +++ b/tests/snapshots/local/upstream-threads/MP_atomic.wast/2001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32 i32) i32.const 4 @@ -16,5 +17,4 @@ local.get 1 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/MP_atomic.wast/5.print b/tests/snapshots/local/upstream-threads/MP_atomic.wast/5.print index f502ec440b..bb2e62e895 100644 --- a/tests/snapshots/local/upstream-threads/MP_atomic.wast/5.print +++ b/tests/snapshots/local/upstream-threads/MP_atomic.wast/5.print @@ -1,6 +1,7 @@ (module $Check (type (;0;) (func (result i32))) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "check" (func 0)) (func (;0;) (type 0) (result i32) (local i32 i32) i32.const 24 @@ -34,5 +35,4 @@ i32.or return ) - (export "check" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/MP_wait.wast/1001.print b/tests/snapshots/local/upstream-threads/MP_wait.wast/1001.print index efad4127ea..42e218bf80 100644 --- a/tests/snapshots/local/upstream-threads/MP_wait.wast/1001.print +++ b/tests/snapshots/local/upstream-threads/MP_wait.wast/1001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 10 shared)) + (export "run" (func 0)) (func (;0;) (type 0) i32.const 0 i32.const 42 @@ -9,5 +10,4 @@ i32.const 1 i32.atomic.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/MP_wait.wast/2001.print b/tests/snapshots/local/upstream-threads/MP_wait.wast/2001.print index 75fb675fca..861d6f15db 100644 --- a/tests/snapshots/local/upstream-threads/MP_wait.wast/2001.print +++ b/tests/snapshots/local/upstream-threads/MP_wait.wast/2001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32 i32) i32.const 4 @@ -16,5 +17,4 @@ local.get 1 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/MP_wait.wast/5.print b/tests/snapshots/local/upstream-threads/MP_wait.wast/5.print index f502ec440b..bb2e62e895 100644 --- a/tests/snapshots/local/upstream-threads/MP_wait.wast/5.print +++ b/tests/snapshots/local/upstream-threads/MP_wait.wast/5.print @@ -1,6 +1,7 @@ (module $Check (type (;0;) (func (result i32))) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "check" (func 0)) (func (;0;) (type 0) (result i32) (local i32 i32) i32.const 24 @@ -34,5 +35,4 @@ i32.or return ) - (export "check" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/SB.wast/1001.print b/tests/snapshots/local/upstream-threads/SB.wast/1001.print index 377307c5f5..7da404184f 100644 --- a/tests/snapshots/local/upstream-threads/SB.wast/1001.print +++ b/tests/snapshots/local/upstream-threads/SB.wast/1001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 10 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32) i32.const 0 @@ -13,5 +14,4 @@ local.get 0 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/SB.wast/2001.print b/tests/snapshots/local/upstream-threads/SB.wast/2001.print index d68021e58d..34778cb746 100644 --- a/tests/snapshots/local/upstream-threads/SB.wast/2001.print +++ b/tests/snapshots/local/upstream-threads/SB.wast/2001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32) i32.const 4 @@ -13,5 +14,4 @@ local.get 0 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/SB.wast/5.print b/tests/snapshots/local/upstream-threads/SB.wast/5.print index a60ecc0e99..deb74b886a 100644 --- a/tests/snapshots/local/upstream-threads/SB.wast/5.print +++ b/tests/snapshots/local/upstream-threads/SB.wast/5.print @@ -1,6 +1,7 @@ (module $Check (type (;0;) (func (result i32))) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "check" (func 0)) (func (;0;) (type 0) (result i32) (local i32 i32) i32.const 24 @@ -26,5 +27,4 @@ i32.and return ) - (export "check" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/SB_atomic.wast/1001.print b/tests/snapshots/local/upstream-threads/SB_atomic.wast/1001.print index d932d4f400..7ba074571c 100644 --- a/tests/snapshots/local/upstream-threads/SB_atomic.wast/1001.print +++ b/tests/snapshots/local/upstream-threads/SB_atomic.wast/1001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 10 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32) i32.const 0 @@ -13,5 +14,4 @@ local.get 0 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/SB_atomic.wast/2001.print b/tests/snapshots/local/upstream-threads/SB_atomic.wast/2001.print index 8b59e128ae..eb6e9210b8 100644 --- a/tests/snapshots/local/upstream-threads/SB_atomic.wast/2001.print +++ b/tests/snapshots/local/upstream-threads/SB_atomic.wast/2001.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (local i32) i32.const 4 @@ -13,5 +14,4 @@ local.get 0 i32.store ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/SB_atomic.wast/5.print b/tests/snapshots/local/upstream-threads/SB_atomic.wast/5.print index 50cc431fb6..e5a8a6e211 100644 --- a/tests/snapshots/local/upstream-threads/SB_atomic.wast/5.print +++ b/tests/snapshots/local/upstream-threads/SB_atomic.wast/5.print @@ -1,6 +1,7 @@ (module $Check (type (;0;) (func (result i32))) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "check" (func 0)) (func (;0;) (type 0) (result i32) (local i32 i32) i32.const 24 @@ -34,5 +35,4 @@ i32.or return ) - (export "check" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/wait_notify.wast/1001.print b/tests/snapshots/local/upstream-threads/wait_notify.wast/1001.print index 8dd1bebcdd..4807bdcd3c 100644 --- a/tests/snapshots/local/upstream-threads/wait_notify.wast/1001.print +++ b/tests/snapshots/local/upstream-threads/wait_notify.wast/1001.print @@ -1,11 +1,11 @@ (module (type (;0;) (func (result i32))) (import "mem" "shared" (memory (;0;) 1 10 shared)) + (export "run" (func 0)) (func (;0;) (type 0) (result i32) i32.const 0 i32.const 0 i64.const -1 memory.atomic.wait32 ) - (export "run" (func 0)) ) diff --git a/tests/snapshots/local/upstream-threads/wait_notify.wast/2001.print b/tests/snapshots/local/upstream-threads/wait_notify.wast/2001.print index 397133d61d..d266caf6ca 100644 --- a/tests/snapshots/local/upstream-threads/wait_notify.wast/2001.print +++ b/tests/snapshots/local/upstream-threads/wait_notify.wast/2001.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (import "mem" "shared" (memory (;0;) 1 1 shared)) + (export "notify-0" (func 0)) + (export "notify-1-while" (func 1)) (func (;0;) (type 0) (result i32) i32.const 0 i32.const 0 @@ -17,6 +19,4 @@ br_if 0 (;@1;) end ) - (export "notify-0" (func 0)) - (export "notify-1-while" (func 1)) ) diff --git a/tests/snapshots/testsuite/address.wast/0.print b/tests/snapshots/testsuite/address.wast/0.print index ea2bb14e0c..b66abe15ac 100644 --- a/tests/snapshots/testsuite/address.wast/0.print +++ b/tests/snapshots/testsuite/address.wast/0.print @@ -1,6 +1,37 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "8u_good1" (func 0)) + (export "8u_good2" (func 1)) + (export "8u_good3" (func 2)) + (export "8u_good4" (func 3)) + (export "8u_good5" (func 4)) + (export "8s_good1" (func 5)) + (export "8s_good2" (func 6)) + (export "8s_good3" (func 7)) + (export "8s_good4" (func 8)) + (export "8s_good5" (func 9)) + (export "16u_good1" (func 10)) + (export "16u_good2" (func 11)) + (export "16u_good3" (func 12)) + (export "16u_good4" (func 13)) + (export "16u_good5" (func 14)) + (export "16s_good1" (func 15)) + (export "16s_good2" (func 16)) + (export "16s_good3" (func 17)) + (export "16s_good4" (func 18)) + (export "16s_good5" (func 19)) + (export "32_good1" (func 20)) + (export "32_good2" (func 21)) + (export "32_good3" (func 22)) + (export "32_good4" (func 23)) + (export "32_good5" (func 24)) + (export "8u_bad" (func 25)) + (export "8s_bad" (func 26)) + (export "16u_bad" (func 27)) + (export "16s_bad" (func 28)) + (export "32_bad" (func 29)) (func (;0;) (type 0) (param $i i32) (result i32) local.get $i i32.load8_u @@ -126,36 +157,5 @@ i32.load offset=4294967295 drop ) - (memory (;0;) 1) - (export "8u_good1" (func 0)) - (export "8u_good2" (func 1)) - (export "8u_good3" (func 2)) - (export "8u_good4" (func 3)) - (export "8u_good5" (func 4)) - (export "8s_good1" (func 5)) - (export "8s_good2" (func 6)) - (export "8s_good3" (func 7)) - (export "8s_good4" (func 8)) - (export "8s_good5" (func 9)) - (export "16u_good1" (func 10)) - (export "16u_good2" (func 11)) - (export "16u_good3" (func 12)) - (export "16u_good4" (func 13)) - (export "16u_good5" (func 14)) - (export "16s_good1" (func 15)) - (export "16s_good2" (func 16)) - (export "16s_good3" (func 17)) - (export "16s_good4" (func 18)) - (export "16s_good5" (func 19)) - (export "32_good1" (func 20)) - (export "32_good2" (func 21)) - (export "32_good3" (func 22)) - (export "32_good4" (func 23)) - (export "32_good5" (func 24)) - (export "8u_bad" (func 25)) - (export "8s_bad" (func 26)) - (export "16u_bad" (func 27)) - (export "16s_bad" (func 28)) - (export "32_bad" (func 29)) (data (;0;) (i32.const 0) "abcdefghijklmnopqrstuvwxyz") ) diff --git a/tests/snapshots/testsuite/address.wast/220.print b/tests/snapshots/testsuite/address.wast/220.print index e9e8eaec2c..72afb91b4c 100644 --- a/tests/snapshots/testsuite/address.wast/220.print +++ b/tests/snapshots/testsuite/address.wast/220.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (param i32) (result f32))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "32_good1" (func 0)) + (export "32_good2" (func 1)) + (export "32_good3" (func 2)) + (export "32_good4" (func 3)) + (export "32_good5" (func 4)) + (export "32_bad" (func 5)) (func (;0;) (type 0) (param $i i32) (result f32) local.get $i f32.load @@ -26,12 +33,5 @@ f32.load offset=4294967295 drop ) - (memory (;0;) 1) - (export "32_good1" (func 0)) - (export "32_good2" (func 1)) - (export "32_good3" (func 2)) - (export "32_good4" (func 3)) - (export "32_good5" (func 4)) - (export "32_bad" (func 5)) (data (;0;) (i32.const 0) "\00\00\00\00\00\00\a0\7f\01\00\d0\7f") ) diff --git a/tests/snapshots/testsuite/address.wast/240.print b/tests/snapshots/testsuite/address.wast/240.print index c35e77c080..c9fbc17896 100644 --- a/tests/snapshots/testsuite/address.wast/240.print +++ b/tests/snapshots/testsuite/address.wast/240.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (param i32) (result f64))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "64_good1" (func 0)) + (export "64_good2" (func 1)) + (export "64_good3" (func 2)) + (export "64_good4" (func 3)) + (export "64_good5" (func 4)) + (export "64_bad" (func 5)) (func (;0;) (type 0) (param $i i32) (result f64) local.get $i f64.load @@ -26,12 +33,5 @@ f64.load offset=4294967295 drop ) - (memory (;0;) 1) - (export "64_good1" (func 0)) - (export "64_good2" (func 1)) - (export "64_good3" (func 2)) - (export "64_good4" (func 3)) - (export "64_good5" (func 4)) - (export "64_bad" (func 5)) (data (;0;) (i32.const 0) "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\f4\7f\01\00\00\00\00\00\fc\7f") ) diff --git a/tests/snapshots/testsuite/address.wast/93.print b/tests/snapshots/testsuite/address.wast/93.print index defcb46097..863b0fe254 100644 --- a/tests/snapshots/testsuite/address.wast/93.print +++ b/tests/snapshots/testsuite/address.wast/93.print @@ -1,6 +1,49 @@ (module (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "8u_good1" (func 0)) + (export "8u_good2" (func 1)) + (export "8u_good3" (func 2)) + (export "8u_good4" (func 3)) + (export "8u_good5" (func 4)) + (export "8s_good1" (func 5)) + (export "8s_good2" (func 6)) + (export "8s_good3" (func 7)) + (export "8s_good4" (func 8)) + (export "8s_good5" (func 9)) + (export "16u_good1" (func 10)) + (export "16u_good2" (func 11)) + (export "16u_good3" (func 12)) + (export "16u_good4" (func 13)) + (export "16u_good5" (func 14)) + (export "16s_good1" (func 15)) + (export "16s_good2" (func 16)) + (export "16s_good3" (func 17)) + (export "16s_good4" (func 18)) + (export "16s_good5" (func 19)) + (export "32u_good1" (func 20)) + (export "32u_good2" (func 21)) + (export "32u_good3" (func 22)) + (export "32u_good4" (func 23)) + (export "32u_good5" (func 24)) + (export "32s_good1" (func 25)) + (export "32s_good2" (func 26)) + (export "32s_good3" (func 27)) + (export "32s_good4" (func 28)) + (export "32s_good5" (func 29)) + (export "64_good1" (func 30)) + (export "64_good2" (func 31)) + (export "64_good3" (func 32)) + (export "64_good4" (func 33)) + (export "64_good5" (func 34)) + (export "8u_bad" (func 35)) + (export "8s_bad" (func 36)) + (export "16u_bad" (func 37)) + (export "16s_bad" (func 38)) + (export "32u_bad" (func 39)) + (export "32s_bad" (func 40)) + (export "64_bad" (func 41)) (func (;0;) (type 0) (param $i i32) (result i64) local.get $i i64.load8_u @@ -176,48 +219,5 @@ i64.load offset=4294967295 drop ) - (memory (;0;) 1) - (export "8u_good1" (func 0)) - (export "8u_good2" (func 1)) - (export "8u_good3" (func 2)) - (export "8u_good4" (func 3)) - (export "8u_good5" (func 4)) - (export "8s_good1" (func 5)) - (export "8s_good2" (func 6)) - (export "8s_good3" (func 7)) - (export "8s_good4" (func 8)) - (export "8s_good5" (func 9)) - (export "16u_good1" (func 10)) - (export "16u_good2" (func 11)) - (export "16u_good3" (func 12)) - (export "16u_good4" (func 13)) - (export "16u_good5" (func 14)) - (export "16s_good1" (func 15)) - (export "16s_good2" (func 16)) - (export "16s_good3" (func 17)) - (export "16s_good4" (func 18)) - (export "16s_good5" (func 19)) - (export "32u_good1" (func 20)) - (export "32u_good2" (func 21)) - (export "32u_good3" (func 22)) - (export "32u_good4" (func 23)) - (export "32u_good5" (func 24)) - (export "32s_good1" (func 25)) - (export "32s_good2" (func 26)) - (export "32s_good3" (func 27)) - (export "32s_good4" (func 28)) - (export "32s_good5" (func 29)) - (export "64_good1" (func 30)) - (export "64_good2" (func 31)) - (export "64_good3" (func 32)) - (export "64_good4" (func 33)) - (export "64_good5" (func 34)) - (export "8u_bad" (func 35)) - (export "8s_bad" (func 36)) - (export "16u_bad" (func 37)) - (export "16s_bad" (func 38)) - (export "32u_bad" (func 39)) - (export "32s_bad" (func 40)) - (export "64_bad" (func 41)) (data (;0;) (i32.const 0) "abcdefghijklmnopqrstuvwxyz") ) diff --git a/tests/snapshots/testsuite/align.wast/0.print b/tests/snapshots/testsuite/align.wast/0.print index 52297c90fd..df7e2445fd 100644 --- a/tests/snapshots/testsuite/align.wast/0.print +++ b/tests/snapshots/testsuite/align.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.load8_s drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/1.print b/tests/snapshots/testsuite/align.wast/1.print index 5813d54f5f..7dd0cbd9b0 100644 --- a/tests/snapshots/testsuite/align.wast/1.print +++ b/tests/snapshots/testsuite/align.wast/1.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.load8_u drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/10.print b/tests/snapshots/testsuite/align.wast/10.print index b2dc1dada8..fd0c80a6b2 100644 --- a/tests/snapshots/testsuite/align.wast/10.print +++ b/tests/snapshots/testsuite/align.wast/10.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load32_u drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/106.print b/tests/snapshots/testsuite/align.wast/106.print index 678409d928..ba4f85a357 100644 --- a/tests/snapshots/testsuite/align.wast/106.print +++ b/tests/snapshots/testsuite/align.wast/106.print @@ -3,6 +3,11 @@ (type (;1;) (func (param i32) (result f64))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func (param i32 i32) (result i64))) + (memory (;0;) 1) + (export "f32_align_switch" (func 0)) + (export "f64_align_switch" (func 1)) + (export "i32_align_switch" (func 2)) + (export "i64_align_switch" (func 3)) (func (;0;) (type 0) (param i32) (result f32) (local f32 f32) f32.const 0x1.4p+3 (;=10;) @@ -563,9 +568,4 @@ end local.get 3 ) - (memory (;0;) 1) - (export "f32_align_switch" (func 0)) - (export "f64_align_switch" (func 1)) - (export "i32_align_switch" (func 2)) - (export "i64_align_switch" (func 3)) ) diff --git a/tests/snapshots/testsuite/align.wast/11.print b/tests/snapshots/testsuite/align.wast/11.print index f59d995aca..bcda150970 100644 --- a/tests/snapshots/testsuite/align.wast/11.print +++ b/tests/snapshots/testsuite/align.wast/11.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/12.print b/tests/snapshots/testsuite/align.wast/12.print index 01bceccdfe..44b09c3a24 100644 --- a/tests/snapshots/testsuite/align.wast/12.print +++ b/tests/snapshots/testsuite/align.wast/12.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 f32.load drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/13.print b/tests/snapshots/testsuite/align.wast/13.print index 6de1d3fcc2..d9ea6b25ed 100644 --- a/tests/snapshots/testsuite/align.wast/13.print +++ b/tests/snapshots/testsuite/align.wast/13.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 f64.load drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/14.print b/tests/snapshots/testsuite/align.wast/14.print index c855137cdd..683c26ab31 100644 --- a/tests/snapshots/testsuite/align.wast/14.print +++ b/tests/snapshots/testsuite/align.wast/14.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.const 1 i32.store8 ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/15.print b/tests/snapshots/testsuite/align.wast/15.print index adb4763493..620230bee6 100644 --- a/tests/snapshots/testsuite/align.wast/15.print +++ b/tests/snapshots/testsuite/align.wast/15.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.const 1 i32.store16 ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/153.print b/tests/snapshots/testsuite/align.wast/153.print index b43b5337e9..32dbb616e7 100644 --- a/tests/snapshots/testsuite/align.wast/153.print +++ b/tests/snapshots/testsuite/align.wast/153.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i64))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1) + (export "store" (func 0)) + (export "load" (func 1)) (func (;0;) (type 0) (param i32 i64) local.get 0 local.get 1 @@ -10,7 +13,4 @@ local.get 0 i32.load ) - (memory (;0;) 1) - (export "store" (func 0)) - (export "load" (func 1)) ) diff --git a/tests/snapshots/testsuite/align.wast/16.print b/tests/snapshots/testsuite/align.wast/16.print index 7a3eb98033..b47aec37ba 100644 --- a/tests/snapshots/testsuite/align.wast/16.print +++ b/tests/snapshots/testsuite/align.wast/16.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.const 1 i32.store ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/17.print b/tests/snapshots/testsuite/align.wast/17.print index 3d9e3e0341..ebf742ba95 100644 --- a/tests/snapshots/testsuite/align.wast/17.print +++ b/tests/snapshots/testsuite/align.wast/17.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.const 1 i64.store8 ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/18.print b/tests/snapshots/testsuite/align.wast/18.print index ba0d8d77b0..b51b495d02 100644 --- a/tests/snapshots/testsuite/align.wast/18.print +++ b/tests/snapshots/testsuite/align.wast/18.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.const 1 i64.store16 ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/19.print b/tests/snapshots/testsuite/align.wast/19.print index e9b3dc6e0e..fed577711f 100644 --- a/tests/snapshots/testsuite/align.wast/19.print +++ b/tests/snapshots/testsuite/align.wast/19.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.const 1 i64.store32 ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/2.print b/tests/snapshots/testsuite/align.wast/2.print index 1bcc9125a0..9a7d53108c 100644 --- a/tests/snapshots/testsuite/align.wast/2.print +++ b/tests/snapshots/testsuite/align.wast/2.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.load16_s drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/20.print b/tests/snapshots/testsuite/align.wast/20.print index b257e06059..0b046d6d67 100644 --- a/tests/snapshots/testsuite/align.wast/20.print +++ b/tests/snapshots/testsuite/align.wast/20.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.const 1 i64.store ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/21.print b/tests/snapshots/testsuite/align.wast/21.print index 245b5e9677..e91e877334 100644 --- a/tests/snapshots/testsuite/align.wast/21.print +++ b/tests/snapshots/testsuite/align.wast/21.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 f32.const 0x1p+0 (;=1;) f32.store ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/22.print b/tests/snapshots/testsuite/align.wast/22.print index e245bf52bc..443632e673 100644 --- a/tests/snapshots/testsuite/align.wast/22.print +++ b/tests/snapshots/testsuite/align.wast/22.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 f64.const 0x1p+0 (;=1;) f64.store ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/3.print b/tests/snapshots/testsuite/align.wast/3.print index 8db2a0b6a8..d7e78d7ebc 100644 --- a/tests/snapshots/testsuite/align.wast/3.print +++ b/tests/snapshots/testsuite/align.wast/3.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.load16_u drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/4.print b/tests/snapshots/testsuite/align.wast/4.print index 92efde3001..be6c5f6c02 100644 --- a/tests/snapshots/testsuite/align.wast/4.print +++ b/tests/snapshots/testsuite/align.wast/4.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.load drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/5.print b/tests/snapshots/testsuite/align.wast/5.print index a464418302..4e84bcc75e 100644 --- a/tests/snapshots/testsuite/align.wast/5.print +++ b/tests/snapshots/testsuite/align.wast/5.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load8_s drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/6.print b/tests/snapshots/testsuite/align.wast/6.print index 7dc6ccf10d..bd322035b8 100644 --- a/tests/snapshots/testsuite/align.wast/6.print +++ b/tests/snapshots/testsuite/align.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load8_u drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/7.print b/tests/snapshots/testsuite/align.wast/7.print index 9cd079e9dc..577db0d69a 100644 --- a/tests/snapshots/testsuite/align.wast/7.print +++ b/tests/snapshots/testsuite/align.wast/7.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load16_s drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/8.print b/tests/snapshots/testsuite/align.wast/8.print index b7b5e451b6..6df5b9eba0 100644 --- a/tests/snapshots/testsuite/align.wast/8.print +++ b/tests/snapshots/testsuite/align.wast/8.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load16_u drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/align.wast/9.print b/tests/snapshots/testsuite/align.wast/9.print index 3bd6a0d3f8..50b7306a03 100644 --- a/tests/snapshots/testsuite/align.wast/9.print +++ b/tests/snapshots/testsuite/align.wast/9.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load32_s drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/binary-leb128.wast/14.print b/tests/snapshots/testsuite/binary-leb128.wast/14.print index 4a5cbd8fc7..04cf6cb58e 100644 --- a/tests/snapshots/testsuite/binary-leb128.wast/14.print +++ b/tests/snapshots/testsuite/binary-leb128.wast/14.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "f1" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/binary-leb128.wast/15.print b/tests/snapshots/testsuite/binary-leb128.wast/15.print index 4a5cbd8fc7..04cf6cb58e 100644 --- a/tests/snapshots/testsuite/binary-leb128.wast/15.print +++ b/tests/snapshots/testsuite/binary-leb128.wast/15.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "f1" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/binary.wast/110.print b/tests/snapshots/testsuite/binary.wast/110.print index c6566d0ced..d90addbeb7 100644 --- a/tests/snapshots/testsuite/binary.wast/110.print +++ b/tests/snapshots/testsuite/binary.wast/110.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (start 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/binary.wast/68.print b/tests/snapshots/testsuite/binary.wast/68.print index 40e23c382f..f60ef5c6a4 100644 --- a/tests/snapshots/testsuite/binary.wast/68.print +++ b/tests/snapshots/testsuite/binary.wast/68.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/binary.wast/69.print b/tests/snapshots/testsuite/binary.wast/69.print index 149738a620..b959a17a4a 100644 --- a/tests/snapshots/testsuite/binary.wast/69.print +++ b/tests/snapshots/testsuite/binary.wast/69.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/binary.wast/99.print b/tests/snapshots/testsuite/binary.wast/99.print index a6b9947353..e3c7ff0b0d 100644 --- a/tests/snapshots/testsuite/binary.wast/99.print +++ b/tests/snapshots/testsuite/binary.wast/99.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/block.wast/0.print b/tests/snapshots/testsuite/block.wast/0.print index 33845b05c0..ca1d0b46f6 100644 --- a/tests/snapshots/testsuite/block.wast/0.print +++ b/tests/snapshots/testsuite/block.wast/0.print @@ -10,6 +10,62 @@ (type (;8;) (func (result f32 f32))) (type (;9;) (func (result i32 i32 i64))) (type (;10;) (func (param i32 i32) (result i32 i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "empty" (func 1)) + (export "singular" (func 2)) + (export "multi" (func 3)) + (export "nested" (func 4)) + (export "deep" (func 5)) + (export "as-select-first" (func 6)) + (export "as-select-mid" (func 7)) + (export "as-select-last" (func 8)) + (export "as-loop-first" (func 9)) + (export "as-loop-mid" (func 10)) + (export "as-loop-last" (func 11)) + (export "as-if-condition" (func 12)) + (export "as-if-then" (func 13)) + (export "as-if-else" (func 14)) + (export "as-br_if-first" (func 15)) + (export "as-br_if-last" (func 16)) + (export "as-br_table-first" (func 17)) + (export "as-br_table-last" (func 18)) + (export "as-call_indirect-first" (func 20)) + (export "as-call_indirect-mid" (func 21)) + (export "as-call_indirect-last" (func 22)) + (export "as-store-first" (func 23)) + (export "as-store-last" (func 24)) + (export "as-memory.grow-value" (func 25)) + (export "as-call-value" (func 27)) + (export "as-return-value" (func 28)) + (export "as-drop-operand" (func 29)) + (export "as-br-value" (func 30)) + (export "as-local.set-value" (func 31)) + (export "as-local.tee-value" (func 32)) + (export "as-global.set-value" (func 33)) + (export "as-load-operand" (func 34)) + (export "as-unary-operand" (func 35)) + (export "as-binary-operand" (func 36)) + (export "as-test-operand" (func 37)) + (export "as-compare-operand" (func 38)) + (export "as-binary-operands" (func 39)) + (export "as-compare-operands" (func 40)) + (export "as-mixed-operands" (func 41)) + (export "break-bare" (func 42)) + (export "break-value" (func 43)) + (export "break-multi-value" (func 44)) + (export "break-repeated" (func 45)) + (export "break-inner" (func 46)) + (export "param" (func 47)) + (export "params" (func 48)) + (export "params-id" (func 49)) + (export "param-break" (func 50)) + (export "params-break" (func 51)) + (export "params-id-break" (func 52)) + (export "effects" (func 53)) + (export "type-use" (func 54)) + (elem (;0;) (i32.const 0) func $func) (func $dummy (;0;) (type $block-sig-1)) (func (;1;) (type $block-sig-1) block ;; label = @1 @@ -655,60 +711,4 @@ drop drop ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "empty" (func 1)) - (export "singular" (func 2)) - (export "multi" (func 3)) - (export "nested" (func 4)) - (export "deep" (func 5)) - (export "as-select-first" (func 6)) - (export "as-select-mid" (func 7)) - (export "as-select-last" (func 8)) - (export "as-loop-first" (func 9)) - (export "as-loop-mid" (func 10)) - (export "as-loop-last" (func 11)) - (export "as-if-condition" (func 12)) - (export "as-if-then" (func 13)) - (export "as-if-else" (func 14)) - (export "as-br_if-first" (func 15)) - (export "as-br_if-last" (func 16)) - (export "as-br_table-first" (func 17)) - (export "as-br_table-last" (func 18)) - (export "as-call_indirect-first" (func 20)) - (export "as-call_indirect-mid" (func 21)) - (export "as-call_indirect-last" (func 22)) - (export "as-store-first" (func 23)) - (export "as-store-last" (func 24)) - (export "as-memory.grow-value" (func 25)) - (export "as-call-value" (func 27)) - (export "as-return-value" (func 28)) - (export "as-drop-operand" (func 29)) - (export "as-br-value" (func 30)) - (export "as-local.set-value" (func 31)) - (export "as-local.tee-value" (func 32)) - (export "as-global.set-value" (func 33)) - (export "as-load-operand" (func 34)) - (export "as-unary-operand" (func 35)) - (export "as-binary-operand" (func 36)) - (export "as-test-operand" (func 37)) - (export "as-compare-operand" (func 38)) - (export "as-binary-operands" (func 39)) - (export "as-compare-operands" (func 40)) - (export "as-mixed-operands" (func 41)) - (export "break-bare" (func 42)) - (export "break-value" (func 43)) - (export "break-multi-value" (func 44)) - (export "break-repeated" (func 45)) - (export "break-inner" (func 46)) - (export "param" (func 47)) - (export "params" (func 48)) - (export "params-id" (func 49)) - (export "param-break" (func 50)) - (export "params-break" (func 51)) - (export "params-id-break" (func 52)) - (export "effects" (func 53)) - (export "type-use" (func 54)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/br.wast/0.print b/tests/snapshots/testsuite/br.wast/0.print index c23a9458f0..74ab321b24 100644 --- a/tests/snapshots/testsuite/br.wast/0.print +++ b/tests/snapshots/testsuite/br.wast/0.print @@ -8,6 +8,82 @@ (type (;6;) (func (result f64 f64))) (type (;7;) (func (result i32 i64))) (type (;8;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "type-i32" (func 1)) + (export "type-i64" (func 2)) + (export "type-f32" (func 3)) + (export "type-f64" (func 4)) + (export "type-i32-i32" (func 5)) + (export "type-i64-i64" (func 6)) + (export "type-f32-f32" (func 7)) + (export "type-f64-f64" (func 8)) + (export "type-i32-value" (func 9)) + (export "type-i64-value" (func 10)) + (export "type-f32-value" (func 11)) + (export "type-f64-value" (func 12)) + (export "type-f64-f64-value" (func 13)) + (export "as-block-first" (func 14)) + (export "as-block-mid" (func 15)) + (export "as-block-last" (func 16)) + (export "as-block-value" (func 17)) + (export "as-loop-first" (func 18)) + (export "as-loop-mid" (func 19)) + (export "as-loop-last" (func 20)) + (export "as-br-value" (func 21)) + (export "as-br_if-cond" (func 22)) + (export "as-br_if-value" (func 23)) + (export "as-br_if-value-cond" (func 24)) + (export "as-br_table-index" (func 25)) + (export "as-br_table-value" (func 26)) + (export "as-br_table-value-index" (func 27)) + (export "as-return-value" (func 28)) + (export "as-return-values" (func 29)) + (export "as-if-cond" (func 30)) + (export "as-if-then" (func 31)) + (export "as-if-else" (func 32)) + (export "as-select-first" (func 33)) + (export "as-select-second" (func 34)) + (export "as-select-cond" (func 35)) + (export "as-select-all" (func 36)) + (export "as-call-first" (func 38)) + (export "as-call-mid" (func 39)) + (export "as-call-last" (func 40)) + (export "as-call-all" (func 41)) + (export "as-call_indirect-func" (func 42)) + (export "as-call_indirect-first" (func 43)) + (export "as-call_indirect-mid" (func 44)) + (export "as-call_indirect-last" (func 45)) + (export "as-call_indirect-all" (func 46)) + (export "as-local.set-value" (func 47)) + (export "as-local.tee-value" (func 48)) + (export "as-global.set-value" (func 49)) + (export "as-load-address" (func 50)) + (export "as-loadN-address" (func 51)) + (export "as-store-address" (func 52)) + (export "as-store-value" (func 53)) + (export "as-store-both" (func 54)) + (export "as-storeN-address" (func 55)) + (export "as-storeN-value" (func 56)) + (export "as-storeN-both" (func 57)) + (export "as-unary-operand" (func 58)) + (export "as-binary-left" (func 59)) + (export "as-binary-right" (func 60)) + (export "as-binary-both" (func 61)) + (export "as-test-operand" (func 62)) + (export "as-compare-left" (func 63)) + (export "as-compare-right" (func 64)) + (export "as-compare-both" (func 65)) + (export "as-convert-operand" (func 66)) + (export "as-memory.grow-size" (func 67)) + (export "nested-block-value" (func 68)) + (export "nested-br-value" (func 69)) + (export "nested-br_if-value" (func 70)) + (export "nested-br_if-value-cond" (func 71)) + (export "nested-br_table-value" (func 72)) + (export "nested-br_table-value-index" (func 73)) + (elem (;0;) (i32.const 0) func $f) (func $dummy (;0;) (type 1)) (func (;1;) (type 1) block ;; label = @1 @@ -640,80 +716,4 @@ end i32.add ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "type-i32" (func 1)) - (export "type-i64" (func 2)) - (export "type-f32" (func 3)) - (export "type-f64" (func 4)) - (export "type-i32-i32" (func 5)) - (export "type-i64-i64" (func 6)) - (export "type-f32-f32" (func 7)) - (export "type-f64-f64" (func 8)) - (export "type-i32-value" (func 9)) - (export "type-i64-value" (func 10)) - (export "type-f32-value" (func 11)) - (export "type-f64-value" (func 12)) - (export "type-f64-f64-value" (func 13)) - (export "as-block-first" (func 14)) - (export "as-block-mid" (func 15)) - (export "as-block-last" (func 16)) - (export "as-block-value" (func 17)) - (export "as-loop-first" (func 18)) - (export "as-loop-mid" (func 19)) - (export "as-loop-last" (func 20)) - (export "as-br-value" (func 21)) - (export "as-br_if-cond" (func 22)) - (export "as-br_if-value" (func 23)) - (export "as-br_if-value-cond" (func 24)) - (export "as-br_table-index" (func 25)) - (export "as-br_table-value" (func 26)) - (export "as-br_table-value-index" (func 27)) - (export "as-return-value" (func 28)) - (export "as-return-values" (func 29)) - (export "as-if-cond" (func 30)) - (export "as-if-then" (func 31)) - (export "as-if-else" (func 32)) - (export "as-select-first" (func 33)) - (export "as-select-second" (func 34)) - (export "as-select-cond" (func 35)) - (export "as-select-all" (func 36)) - (export "as-call-first" (func 38)) - (export "as-call-mid" (func 39)) - (export "as-call-last" (func 40)) - (export "as-call-all" (func 41)) - (export "as-call_indirect-func" (func 42)) - (export "as-call_indirect-first" (func 43)) - (export "as-call_indirect-mid" (func 44)) - (export "as-call_indirect-last" (func 45)) - (export "as-call_indirect-all" (func 46)) - (export "as-local.set-value" (func 47)) - (export "as-local.tee-value" (func 48)) - (export "as-global.set-value" (func 49)) - (export "as-load-address" (func 50)) - (export "as-loadN-address" (func 51)) - (export "as-store-address" (func 52)) - (export "as-store-value" (func 53)) - (export "as-store-both" (func 54)) - (export "as-storeN-address" (func 55)) - (export "as-storeN-value" (func 56)) - (export "as-storeN-both" (func 57)) - (export "as-unary-operand" (func 58)) - (export "as-binary-left" (func 59)) - (export "as-binary-right" (func 60)) - (export "as-binary-both" (func 61)) - (export "as-test-operand" (func 62)) - (export "as-compare-left" (func 63)) - (export "as-compare-right" (func 64)) - (export "as-compare-both" (func 65)) - (export "as-convert-operand" (func 66)) - (export "as-memory.grow-size" (func 67)) - (export "nested-block-value" (func 68)) - (export "nested-br-value" (func 69)) - (export "nested-br_if-value" (func 70)) - (export "nested-br_if-value-cond" (func 71)) - (export "nested-br_table-value" (func 72)) - (export "nested-br_table-value-index" (func 73)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/br_if.wast/0.print b/tests/snapshots/testsuite/br_if.wast/0.print index a5c16483dd..7f0cd64211 100644 --- a/tests/snapshots/testsuite/br_if.wast/0.print +++ b/tests/snapshots/testsuite/br_if.wast/0.print @@ -8,6 +8,70 @@ (type (;6;) (func (param i32) (result i32))) (type (;7;) (func (param i32))) (type (;8;) (func (param i32 i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "type-i32" (func 1)) + (export "type-i64" (func 2)) + (export "type-f32" (func 3)) + (export "type-f64" (func 4)) + (export "type-i32-value" (func 5)) + (export "type-i64-value" (func 6)) + (export "type-f32-value" (func 7)) + (export "type-f64-value" (func 8)) + (export "as-block-first" (func 9)) + (export "as-block-mid" (func 10)) + (export "as-block-last" (func 11)) + (export "as-block-first-value" (func 12)) + (export "as-block-mid-value" (func 13)) + (export "as-block-last-value" (func 14)) + (export "as-loop-first" (func 15)) + (export "as-loop-mid" (func 16)) + (export "as-loop-last" (func 17)) + (export "as-br-value" (func 18)) + (export "as-br_if-cond" (func 19)) + (export "as-br_if-value" (func 20)) + (export "as-br_if-value-cond" (func 21)) + (export "as-br_table-index" (func 22)) + (export "as-br_table-value" (func 23)) + (export "as-br_table-value-index" (func 24)) + (export "as-return-value" (func 25)) + (export "as-if-cond" (func 26)) + (export "as-if-then" (func 27)) + (export "as-if-else" (func 28)) + (export "as-select-first" (func 29)) + (export "as-select-second" (func 30)) + (export "as-select-cond" (func 31)) + (export "as-call-first" (func 33)) + (export "as-call-mid" (func 34)) + (export "as-call-last" (func 35)) + (export "as-call_indirect-func" (func 37)) + (export "as-call_indirect-first" (func 38)) + (export "as-call_indirect-mid" (func 39)) + (export "as-call_indirect-last" (func 40)) + (export "as-local.set-value" (func 41)) + (export "as-local.tee-value" (func 42)) + (export "as-global.set-value" (func 43)) + (export "as-load-address" (func 44)) + (export "as-loadN-address" (func 45)) + (export "as-store-address" (func 46)) + (export "as-store-value" (func 47)) + (export "as-storeN-address" (func 48)) + (export "as-storeN-value" (func 49)) + (export "as-unary-operand" (func 50)) + (export "as-binary-left" (func 51)) + (export "as-binary-right" (func 52)) + (export "as-test-operand" (func 53)) + (export "as-compare-left" (func 54)) + (export "as-compare-right" (func 55)) + (export "as-memory.grow-size" (func 56)) + (export "nested-block-value" (func 57)) + (export "nested-br-value" (func 58)) + (export "nested-br_if-value" (func 59)) + (export "nested-br_if-value-cond" (func 60)) + (export "nested-br_table-value" (func 61)) + (export "nested-br_table-value-index" (func 62)) + (elem (;0;) (i32.const 0) func $func) (func $dummy (;0;) (type 1)) (func (;1;) (type 1) block ;; label = @1 @@ -636,68 +700,4 @@ end i32.add ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "type-i32" (func 1)) - (export "type-i64" (func 2)) - (export "type-f32" (func 3)) - (export "type-f64" (func 4)) - (export "type-i32-value" (func 5)) - (export "type-i64-value" (func 6)) - (export "type-f32-value" (func 7)) - (export "type-f64-value" (func 8)) - (export "as-block-first" (func 9)) - (export "as-block-mid" (func 10)) - (export "as-block-last" (func 11)) - (export "as-block-first-value" (func 12)) - (export "as-block-mid-value" (func 13)) - (export "as-block-last-value" (func 14)) - (export "as-loop-first" (func 15)) - (export "as-loop-mid" (func 16)) - (export "as-loop-last" (func 17)) - (export "as-br-value" (func 18)) - (export "as-br_if-cond" (func 19)) - (export "as-br_if-value" (func 20)) - (export "as-br_if-value-cond" (func 21)) - (export "as-br_table-index" (func 22)) - (export "as-br_table-value" (func 23)) - (export "as-br_table-value-index" (func 24)) - (export "as-return-value" (func 25)) - (export "as-if-cond" (func 26)) - (export "as-if-then" (func 27)) - (export "as-if-else" (func 28)) - (export "as-select-first" (func 29)) - (export "as-select-second" (func 30)) - (export "as-select-cond" (func 31)) - (export "as-call-first" (func 33)) - (export "as-call-mid" (func 34)) - (export "as-call-last" (func 35)) - (export "as-call_indirect-func" (func 37)) - (export "as-call_indirect-first" (func 38)) - (export "as-call_indirect-mid" (func 39)) - (export "as-call_indirect-last" (func 40)) - (export "as-local.set-value" (func 41)) - (export "as-local.tee-value" (func 42)) - (export "as-global.set-value" (func 43)) - (export "as-load-address" (func 44)) - (export "as-loadN-address" (func 45)) - (export "as-store-address" (func 46)) - (export "as-store-value" (func 47)) - (export "as-storeN-address" (func 48)) - (export "as-storeN-value" (func 49)) - (export "as-unary-operand" (func 50)) - (export "as-binary-left" (func 51)) - (export "as-binary-right" (func 52)) - (export "as-test-operand" (func 53)) - (export "as-compare-left" (func 54)) - (export "as-compare-right" (func 55)) - (export "as-memory.grow-size" (func 56)) - (export "nested-block-value" (func 57)) - (export "nested-br-value" (func 58)) - (export "nested-br_if-value" (func 59)) - (export "nested-br_if-value-cond" (func 60)) - (export "nested-br_table-value" (func 61)) - (export "nested-br_table-value-index" (func 62)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/br_table.wast/0.print b/tests/snapshots/testsuite/br_table.wast/0.print index e471a54923..f65ae8f69a 100644 --- a/tests/snapshots/testsuite/br_table.wast/0.print +++ b/tests/snapshots/testsuite/br_table.wast/0.print @@ -8,6 +8,78 @@ (type (;6;) (func (param i32) (result i32))) (type (;7;) (func (param i32 i32) (result i32))) (type (;8;) (func (param i32 externref) (result externref))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "type-i32" (func 1)) + (export "type-i64" (func 2)) + (export "type-f32" (func 3)) + (export "type-f64" (func 4)) + (export "type-i32-value" (func 5)) + (export "type-i64-value" (func 6)) + (export "type-f32-value" (func 7)) + (export "type-f64-value" (func 8)) + (export "empty" (func 9)) + (export "empty-value" (func 10)) + (export "singleton" (func 11)) + (export "singleton-value" (func 12)) + (export "multiple" (func 13)) + (export "multiple-value" (func 14)) + (export "large" (func 15)) + (export "as-block-first" (func 16)) + (export "as-block-mid" (func 17)) + (export "as-block-last" (func 18)) + (export "as-block-value" (func 19)) + (export "as-loop-first" (func 20)) + (export "as-loop-mid" (func 21)) + (export "as-loop-last" (func 22)) + (export "as-br-value" (func 23)) + (export "as-br_if-cond" (func 24)) + (export "as-br_if-value" (func 25)) + (export "as-br_if-value-cond" (func 26)) + (export "as-br_table-index" (func 27)) + (export "as-br_table-value" (func 28)) + (export "as-br_table-value-index" (func 29)) + (export "as-return-value" (func 30)) + (export "as-if-cond" (func 31)) + (export "as-if-then" (func 32)) + (export "as-if-else" (func 33)) + (export "as-select-first" (func 34)) + (export "as-select-second" (func 35)) + (export "as-select-cond" (func 36)) + (export "as-call-first" (func 38)) + (export "as-call-mid" (func 39)) + (export "as-call-last" (func 40)) + (export "as-call_indirect-first" (func 41)) + (export "as-call_indirect-mid" (func 42)) + (export "as-call_indirect-last" (func 43)) + (export "as-call_indirect-func" (func 44)) + (export "as-local.set-value" (func 45)) + (export "as-local.tee-value" (func 46)) + (export "as-global.set-value" (func 47)) + (export "as-load-address" (func 48)) + (export "as-loadN-address" (func 49)) + (export "as-store-address" (func 50)) + (export "as-store-value" (func 51)) + (export "as-storeN-address" (func 52)) + (export "as-storeN-value" (func 53)) + (export "as-unary-operand" (func 54)) + (export "as-binary-left" (func 55)) + (export "as-binary-right" (func 56)) + (export "as-test-operand" (func 57)) + (export "as-compare-left" (func 58)) + (export "as-compare-right" (func 59)) + (export "as-convert-operand" (func 60)) + (export "as-memory.grow-size" (func 61)) + (export "nested-block-value" (func 62)) + (export "nested-br-value" (func 63)) + (export "nested-br_if-value" (func 64)) + (export "nested-br_if-value-cond" (func 65)) + (export "nested-br_table-value" (func 66)) + (export "nested-br_table-value-index" (func 67)) + (export "nested-br_table-loop-block" (func 68)) + (export "meet-externref" (func 69)) + (elem (;0;) (i32.const 0) func $f) (func $dummy (;0;) (type 1)) (func (;1;) (type 1) block ;; label = @1 @@ -770,76 +842,4 @@ end end ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "type-i32" (func 1)) - (export "type-i64" (func 2)) - (export "type-f32" (func 3)) - (export "type-f64" (func 4)) - (export "type-i32-value" (func 5)) - (export "type-i64-value" (func 6)) - (export "type-f32-value" (func 7)) - (export "type-f64-value" (func 8)) - (export "empty" (func 9)) - (export "empty-value" (func 10)) - (export "singleton" (func 11)) - (export "singleton-value" (func 12)) - (export "multiple" (func 13)) - (export "multiple-value" (func 14)) - (export "large" (func 15)) - (export "as-block-first" (func 16)) - (export "as-block-mid" (func 17)) - (export "as-block-last" (func 18)) - (export "as-block-value" (func 19)) - (export "as-loop-first" (func 20)) - (export "as-loop-mid" (func 21)) - (export "as-loop-last" (func 22)) - (export "as-br-value" (func 23)) - (export "as-br_if-cond" (func 24)) - (export "as-br_if-value" (func 25)) - (export "as-br_if-value-cond" (func 26)) - (export "as-br_table-index" (func 27)) - (export "as-br_table-value" (func 28)) - (export "as-br_table-value-index" (func 29)) - (export "as-return-value" (func 30)) - (export "as-if-cond" (func 31)) - (export "as-if-then" (func 32)) - (export "as-if-else" (func 33)) - (export "as-select-first" (func 34)) - (export "as-select-second" (func 35)) - (export "as-select-cond" (func 36)) - (export "as-call-first" (func 38)) - (export "as-call-mid" (func 39)) - (export "as-call-last" (func 40)) - (export "as-call_indirect-first" (func 41)) - (export "as-call_indirect-mid" (func 42)) - (export "as-call_indirect-last" (func 43)) - (export "as-call_indirect-func" (func 44)) - (export "as-local.set-value" (func 45)) - (export "as-local.tee-value" (func 46)) - (export "as-global.set-value" (func 47)) - (export "as-load-address" (func 48)) - (export "as-loadN-address" (func 49)) - (export "as-store-address" (func 50)) - (export "as-store-value" (func 51)) - (export "as-storeN-address" (func 52)) - (export "as-storeN-value" (func 53)) - (export "as-unary-operand" (func 54)) - (export "as-binary-left" (func 55)) - (export "as-binary-right" (func 56)) - (export "as-test-operand" (func 57)) - (export "as-compare-left" (func 58)) - (export "as-compare-right" (func 59)) - (export "as-convert-operand" (func 60)) - (export "as-memory.grow-size" (func 61)) - (export "nested-block-value" (func 62)) - (export "nested-br-value" (func 63)) - (export "nested-br_if-value" (func 64)) - (export "nested-br_if-value-cond" (func 65)) - (export "nested-br_table-value" (func 66)) - (export "nested-br_table-value-index" (func 67)) - (export "nested-br_table-loop-block" (func 68)) - (export "meet-externref" (func 69)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/bulk.wast/1.print b/tests/snapshots/testsuite/bulk.wast/1.print index 4dcc47a974..4c48efd28a 100644 --- a/tests/snapshots/testsuite/bulk.wast/1.print +++ b/tests/snapshots/testsuite/bulk.wast/1.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) - (func (;1;) (type 0)) (table (;0;) 3 funcref) (elem (;0;) funcref (ref.func 0) (ref.null func) (ref.func 1)) + (func (;0;) (type 0)) + (func (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/bulk.wast/18.print b/tests/snapshots/testsuite/bulk.wast/18.print index ec78bc0d30..5fb703571b 100644 --- a/tests/snapshots/testsuite/bulk.wast/18.print +++ b/tests/snapshots/testsuite/bulk.wast/18.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "copy" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,8 +14,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "copy" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\aa\bb\cc\dd") ) diff --git a/tests/snapshots/testsuite/bulk.wast/2.print b/tests/snapshots/testsuite/bulk.wast/2.print index 8a1dd25dcb..5e9e4f1d26 100644 --- a/tests/snapshots/testsuite/bulk.wast/2.print +++ b/tests/snapshots/testsuite/bulk.wast/2.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1) + (export "fill" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,7 +14,4 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1) - (export "fill" (func 0)) - (export "load8_u" (func 1)) ) diff --git a/tests/snapshots/testsuite/bulk.wast/47.print b/tests/snapshots/testsuite/bulk.wast/47.print index bd9361a32a..f083692518 100644 --- a/tests/snapshots/testsuite/bulk.wast/47.print +++ b/tests/snapshots/testsuite/bulk.wast/47.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1) + (export "init" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,8 +14,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1) - (export "init" (func 0)) - (export "load8_u" (func 1)) (data (;0;) "\aa\bb\cc\dd") ) diff --git a/tests/snapshots/testsuite/bulk.wast/60.print b/tests/snapshots/testsuite/bulk.wast/60.print index e1a43deb6e..67e214441a 100644 --- a/tests/snapshots/testsuite/bulk.wast/60.print +++ b/tests/snapshots/testsuite/bulk.wast/60.print @@ -1,6 +1,11 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "drop_passive" (func 0)) + (export "init_passive" (func 1)) + (export "drop_active" (func 2)) + (export "init_active" (func 3)) (func (;0;) (type 0) data.drop $p ) @@ -19,11 +24,6 @@ local.get $len memory.init $a ) - (memory (;0;) 1) - (export "drop_passive" (func 0)) - (export "init_passive" (func 1)) - (export "drop_active" (func 2)) - (export "init_active" (func 3)) (data $p (;0;) "x") (data $a (;1;) (i32.const 0) "x") ) diff --git a/tests/snapshots/testsuite/bulk.wast/73.print b/tests/snapshots/testsuite/bulk.wast/73.print index 4590f4495d..4ed00e5ff7 100644 --- a/tests/snapshots/testsuite/bulk.wast/73.print +++ b/tests/snapshots/testsuite/bulk.wast/73.print @@ -2,6 +2,10 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32 i32 i32))) (type (;2;) (func (param i32) (result i32))) + (table (;0;) 3 funcref) + (export "init" (func 2)) + (export "call" (func 3)) + (elem (;0;) funcref (ref.func $zero) (ref.func $one) (ref.func $zero) (ref.func $one)) (func $zero (;0;) (type 0) (result i32) i32.const 0 ) @@ -18,8 +22,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 3 funcref) - (export "init" (func 2)) - (export "call" (func 3)) - (elem (;0;) funcref (ref.func $zero) (ref.func $one) (ref.func $zero) (ref.func $one)) ) diff --git a/tests/snapshots/testsuite/bulk.wast/85.print b/tests/snapshots/testsuite/bulk.wast/85.print index 09eaa37538..3a4cd0a28f 100644 --- a/tests/snapshots/testsuite/bulk.wast/85.print +++ b/tests/snapshots/testsuite/bulk.wast/85.print @@ -1,6 +1,13 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32))) + (table (;0;) 1 funcref) + (export "drop_passive" (func 1)) + (export "init_passive" (func 2)) + (export "drop_active" (func 3)) + (export "init_active" (func 4)) + (elem $p (;0;) funcref (ref.func $f)) + (elem $a (;1;) (i32.const 0) func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) elem.drop $p @@ -20,11 +27,4 @@ local.get $len table.init $a ) - (table (;0;) 1 funcref) - (export "drop_passive" (func 1)) - (export "init_passive" (func 2)) - (export "drop_active" (func 3)) - (export "init_active" (func 4)) - (elem $p (;0;) funcref (ref.func $f)) - (elem $a (;1;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/bulk.wast/96.print b/tests/snapshots/testsuite/bulk.wast/96.print index 6919727de6..08fd686636 100644 --- a/tests/snapshots/testsuite/bulk.wast/96.print +++ b/tests/snapshots/testsuite/bulk.wast/96.print @@ -1,8 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0) - elem.drop 64 - ) (elem (;0;) funcref) (elem (;1;) funcref) (elem (;2;) funcref) @@ -68,4 +65,7 @@ (elem (;62;) funcref) (elem (;63;) funcref) (elem (;64;) funcref) + (func (;0;) (type 0) + elem.drop 64 + ) ) diff --git a/tests/snapshots/testsuite/bulk.wast/97.print b/tests/snapshots/testsuite/bulk.wast/97.print index eb77fb83d5..8abd16a6dc 100644 --- a/tests/snapshots/testsuite/bulk.wast/97.print +++ b/tests/snapshots/testsuite/bulk.wast/97.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) + (elem (;0;) funcref (ref.func 0)) (func (;0;) (type 0) elem.drop 0 ) - (elem (;0;) funcref (ref.func 0)) ) diff --git a/tests/snapshots/testsuite/bulk.wast/98.print b/tests/snapshots/testsuite/bulk.wast/98.print index cd20dc9053..e033426580 100644 --- a/tests/snapshots/testsuite/bulk.wast/98.print +++ b/tests/snapshots/testsuite/bulk.wast/98.print @@ -2,6 +2,10 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32 i32 i32))) (type (;2;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "copy" (func 3)) + (export "call" (func 4)) + (elem (;0;) (i32.const 0) func $zero $one $two) (func $zero (;0;) (type 0) (result i32) i32.const 0 ) @@ -21,8 +25,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "copy" (func 3)) - (export "call" (func 4)) - (elem (;0;) (i32.const 0) func $zero $one $two) ) diff --git a/tests/snapshots/testsuite/call.wast/0.print b/tests/snapshots/testsuite/call.wast/0.print index 523f49ac0d..3636adb5b4 100644 --- a/tests/snapshots/testsuite/call.wast/0.print +++ b/tests/snapshots/testsuite/call.wast/0.print @@ -24,6 +24,66 @@ (type (;22;) (func (param i64) (result i32))) (type (;23;) (func)) (type (;24;) (func (param f32 i32 i32 f64 f32 f32 f32 f64 f32 i32 i32 f32 f64 i64 i64 i32 i64 i64 f32 i64 i64 i64 i32 f32 f32 f32 f64 f32 i32 i64 f32 f64 f64 f32 i32 f32 f32 f64 i64 f64 i32 i64 f32 f64 i32 i32 i32 i64 f64 i32 i64 i64 f64 f64 f64 f64 f64 f64 i32 f32 f64 f64 i32 i64 f32 f32 f32 i32 f64 f64 f64 f64 f64 f32 i64 i64 i32 i32 i32 f32 f64 i32 i64 f32 f32 f32 i32 i32 f32 f64 i64 f32 f64 f32 f32 f32 i32 f32 i64 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "type-i32" (func 17)) + (export "type-i64" (func 18)) + (export "type-f32" (func 19)) + (export "type-f64" (func 20)) + (export "type-i32-i64" (func 21)) + (export "type-first-i32" (func 22)) + (export "type-first-i64" (func 23)) + (export "type-first-f32" (func 24)) + (export "type-first-f64" (func 25)) + (export "type-second-i32" (func 26)) + (export "type-second-i64" (func 27)) + (export "type-second-f32" (func 28)) + (export "type-second-f64" (func 29)) + (export "type-all-i32-f64" (func 30)) + (export "type-all-i32-i32" (func 31)) + (export "type-all-f32-f64" (func 32)) + (export "type-all-f64-i32" (func 33)) + (export "as-binary-all-operands" (func 34)) + (export "as-mixed-operands" (func 35)) + (export "as-call-all-operands" (func 36)) + (export "fac" (func $fac)) + (export "fac-acc" (func $fac-acc)) + (export "fib" (func $fib)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (export "runaway" (func $runaway)) + (export "mutual-runaway" (func $mutual-runaway1)) + (export "as-select-first" (func 45)) + (export "as-select-mid" (func 46)) + (export "as-select-last" (func 47)) + (export "as-if-condition" (func 48)) + (export "as-br_if-first" (func 49)) + (export "as-br_if-last" (func 50)) + (export "as-br_table-first" (func 51)) + (export "as-br_table-last" (func 52)) + (export "as-call_indirect-first" (func 54)) + (export "as-call_indirect-mid" (func 55)) + (export "as-call_indirect-last" (func 56)) + (export "as-store-first" (func 57)) + (export "as-store-last" (func 58)) + (export "as-memory.grow-value" (func 59)) + (export "as-return-value" (func 60)) + (export "as-drop-operand" (func 61)) + (export "as-br-value" (func 62)) + (export "as-local.set-value" (func 63)) + (export "as-local.tee-value" (func 64)) + (export "as-global.set-value" (func 65)) + (export "as-load-operand" (func 66)) + (export "as-unary-operand" (func 69)) + (export "as-binary-left" (func 70)) + (export "as-binary-right" (func 71)) + (export "as-test-operand" (func 72)) + (export "as-compare-left" (func 73)) + (export "as-compare-right" (func 74)) + (export "as-convert-operand" (func 75)) + (export "return-from-long-argument-list" (func 77)) + (elem (;0;) (i32.const 0) func $func) (func $const-i32 (;0;) (type 1) (result i32) i32.const 306 ) @@ -545,64 +605,4 @@ local.get 0 call $return-from-long-argument-list-helper ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "type-i32" (func 17)) - (export "type-i64" (func 18)) - (export "type-f32" (func 19)) - (export "type-f64" (func 20)) - (export "type-i32-i64" (func 21)) - (export "type-first-i32" (func 22)) - (export "type-first-i64" (func 23)) - (export "type-first-f32" (func 24)) - (export "type-first-f64" (func 25)) - (export "type-second-i32" (func 26)) - (export "type-second-i64" (func 27)) - (export "type-second-f32" (func 28)) - (export "type-second-f64" (func 29)) - (export "type-all-i32-f64" (func 30)) - (export "type-all-i32-i32" (func 31)) - (export "type-all-f32-f64" (func 32)) - (export "type-all-f64-i32" (func 33)) - (export "as-binary-all-operands" (func 34)) - (export "as-mixed-operands" (func 35)) - (export "as-call-all-operands" (func 36)) - (export "fac" (func $fac)) - (export "fac-acc" (func $fac-acc)) - (export "fib" (func $fib)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (export "runaway" (func $runaway)) - (export "mutual-runaway" (func $mutual-runaway1)) - (export "as-select-first" (func 45)) - (export "as-select-mid" (func 46)) - (export "as-select-last" (func 47)) - (export "as-if-condition" (func 48)) - (export "as-br_if-first" (func 49)) - (export "as-br_if-last" (func 50)) - (export "as-br_table-first" (func 51)) - (export "as-br_table-last" (func 52)) - (export "as-call_indirect-first" (func 54)) - (export "as-call_indirect-mid" (func 55)) - (export "as-call_indirect-last" (func 56)) - (export "as-store-first" (func 57)) - (export "as-store-last" (func 58)) - (export "as-memory.grow-value" (func 59)) - (export "as-return-value" (func 60)) - (export "as-drop-operand" (func 61)) - (export "as-br-value" (func 62)) - (export "as-local.set-value" (func 63)) - (export "as-local.tee-value" (func 64)) - (export "as-global.set-value" (func 65)) - (export "as-load-operand" (func 66)) - (export "as-unary-operand" (func 69)) - (export "as-binary-left" (func 70)) - (export "as-binary-right" (func 71)) - (export "as-test-operand" (func 72)) - (export "as-compare-left" (func 73)) - (export "as-compare-right" (func 74)) - (export "as-convert-operand" (func 75)) - (export "return-from-long-argument-list" (func 77)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/call_indirect.wast/0.print b/tests/snapshots/testsuite/call_indirect.wast/0.print index f19e4bd8f3..74eb6af73c 100644 --- a/tests/snapshots/testsuite/call_indirect.wast/0.print +++ b/tests/snapshots/testsuite/call_indirect.wast/0.print @@ -28,6 +28,69 @@ (type (;26;) (func (param i32) (result i64))) (type (;27;) (func (param i32) (result f32))) (type (;28;) (func (param i32) (result f64))) + (table (;0;) 32 32 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut f64) f64.const 0x1.4p+3 (;=10;)) + (export "type-i32" (func 20)) + (export "type-i64" (func 21)) + (export "type-f32" (func 22)) + (export "type-f64" (func 23)) + (export "type-f64-i32" (func 24)) + (export "type-index" (func 25)) + (export "type-first-i32" (func 26)) + (export "type-first-i64" (func 27)) + (export "type-first-f32" (func 28)) + (export "type-first-f64" (func 29)) + (export "type-second-i32" (func 30)) + (export "type-second-i64" (func 31)) + (export "type-second-f32" (func 32)) + (export "type-second-f64" (func 33)) + (export "type-all-f64-i32" (func 34)) + (export "type-all-i32-f64" (func 35)) + (export "type-all-i32-i64" (func 36)) + (export "dispatch" (func 37)) + (export "dispatch-structural-i64" (func 38)) + (export "dispatch-structural-i32" (func 39)) + (export "dispatch-structural-f32" (func 40)) + (export "dispatch-structural-f64" (func 41)) + (export "fac-i64" (func $fac-i64)) + (export "fib-i64" (func $fib-i64)) + (export "fac-i32" (func $fac-i32)) + (export "fac-f32" (func $fac-f32)) + (export "fac-f64" (func $fac-f64)) + (export "fib-i32" (func $fib-i32)) + (export "fib-f32" (func $fib-f32)) + (export "fib-f64" (func $fib-f64)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (export "runaway" (func $runaway)) + (export "mutual-runaway" (func $mutual-runaway1)) + (export "as-select-first" (func 55)) + (export "as-select-mid" (func 56)) + (export "as-select-last" (func 57)) + (export "as-if-condition" (func 58)) + (export "as-br_if-first" (func 59)) + (export "as-br_if-last" (func 60)) + (export "as-br_table-first" (func 61)) + (export "as-br_table-last" (func 62)) + (export "as-store-first" (func 63)) + (export "as-store-last" (func 64)) + (export "as-memory.grow-value" (func 65)) + (export "as-return-value" (func 66)) + (export "as-drop-operand" (func 67)) + (export "as-br-value" (func 68)) + (export "as-local.set-value" (func 69)) + (export "as-local.tee-value" (func 70)) + (export "as-global.set-value" (func 71)) + (export "as-load-operand" (func 72)) + (export "as-unary-operand" (func 73)) + (export "as-binary-left" (func 74)) + (export "as-binary-right" (func 75)) + (export "as-test-operand" (func 76)) + (export "as-compare-left" (func 77)) + (export "as-compare-right" (func 78)) + (export "as-convert-operand" (func 79)) + (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac-i64 $fib-i64 $even $odd $runaway $mutual-runaway1 $mutual-runaway2 $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate $fac-i32 $fac-f32 $fac-f64 $fib-i32 $fib-f32 $fib-f64 $const-f64-i32 $id-i32-f64 $swap-i32-i64) (func $const-i32 (;0;) (type $out-i32) (result i32) i32.const 306 ) @@ -605,67 +668,4 @@ i64.extend_i32_s end ) - (table (;0;) 32 32 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut f64) f64.const 0x1.4p+3 (;=10;)) - (export "type-i32" (func 20)) - (export "type-i64" (func 21)) - (export "type-f32" (func 22)) - (export "type-f64" (func 23)) - (export "type-f64-i32" (func 24)) - (export "type-index" (func 25)) - (export "type-first-i32" (func 26)) - (export "type-first-i64" (func 27)) - (export "type-first-f32" (func 28)) - (export "type-first-f64" (func 29)) - (export "type-second-i32" (func 30)) - (export "type-second-i64" (func 31)) - (export "type-second-f32" (func 32)) - (export "type-second-f64" (func 33)) - (export "type-all-f64-i32" (func 34)) - (export "type-all-i32-f64" (func 35)) - (export "type-all-i32-i64" (func 36)) - (export "dispatch" (func 37)) - (export "dispatch-structural-i64" (func 38)) - (export "dispatch-structural-i32" (func 39)) - (export "dispatch-structural-f32" (func 40)) - (export "dispatch-structural-f64" (func 41)) - (export "fac-i64" (func $fac-i64)) - (export "fib-i64" (func $fib-i64)) - (export "fac-i32" (func $fac-i32)) - (export "fac-f32" (func $fac-f32)) - (export "fac-f64" (func $fac-f64)) - (export "fib-i32" (func $fib-i32)) - (export "fib-f32" (func $fib-f32)) - (export "fib-f64" (func $fib-f64)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (export "runaway" (func $runaway)) - (export "mutual-runaway" (func $mutual-runaway1)) - (export "as-select-first" (func 55)) - (export "as-select-mid" (func 56)) - (export "as-select-last" (func 57)) - (export "as-if-condition" (func 58)) - (export "as-br_if-first" (func 59)) - (export "as-br_if-last" (func 60)) - (export "as-br_table-first" (func 61)) - (export "as-br_table-last" (func 62)) - (export "as-store-first" (func 63)) - (export "as-store-last" (func 64)) - (export "as-memory.grow-value" (func 65)) - (export "as-return-value" (func 66)) - (export "as-drop-operand" (func 67)) - (export "as-br-value" (func 68)) - (export "as-local.set-value" (func 69)) - (export "as-local.tee-value" (func 70)) - (export "as-global.set-value" (func 71)) - (export "as-load-operand" (func 72)) - (export "as-unary-operand" (func 73)) - (export "as-binary-left" (func 74)) - (export "as-binary-right" (func 75)) - (export "as-test-operand" (func 76)) - (export "as-compare-left" (func 77)) - (export "as-compare-right" (func 78)) - (export "as-convert-operand" (func 79)) - (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac-i64 $fib-i64 $even $odd $runaway $mutual-runaway1 $mutual-runaway2 $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate $fac-i32 $fac-f32 $fac-f64 $fib-i32 $fib-f32 $fib-f64 $const-f64-i32 $id-i32-f64 $swap-i32-i64) ) diff --git a/tests/snapshots/testsuite/call_indirect.wast/123.print b/tests/snapshots/testsuite/call_indirect.wast/123.print index 1b34fdce27..bfcc0d1bdb 100644 --- a/tests/snapshots/testsuite/call_indirect.wast/123.print +++ b/tests/snapshots/testsuite/call_indirect.wast/123.print @@ -2,6 +2,16 @@ (type $ii-i (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32 i32 i32) (result i32))) + (table $t1 (;0;) 2 2 funcref) + (table $t2 (;1;) 3 3 funcref) + (table $t3 (;2;) 4 funcref) + (export "call-1" (func 6)) + (export "call-2" (func 7)) + (export "call-3" (func 8)) + (elem (;0;) (i32.const 0) func $f $g) + (elem (;1;) (table $t2) (i32.const 0) func $h $i $j) + (elem (;2;) (table $t3) (i32.const 0) func $g $h) + (elem (;3;) (table $t3) (i32.const 3) func $z) (func $f (;0;) (type $ii-i) (param i32 i32) (result i32) local.get 0 local.get 1 @@ -46,14 +56,4 @@ local.get 2 call_indirect $t3 (type $ii-i) ) - (table $t1 (;0;) 2 2 funcref) - (table $t2 (;1;) 3 3 funcref) - (table $t3 (;2;) 4 funcref) - (export "call-1" (func 6)) - (export "call-2" (func 7)) - (export "call-3" (func 8)) - (elem (;0;) (i32.const 0) func $f $g) - (elem (;1;) (table $t2) (i32.const 0) func $h $i $j) - (elem (;2;) (table $t3) (i32.const 0) func $g $h) - (elem (;3;) (table $t3) (i32.const 3) func $z) ) diff --git a/tests/snapshots/testsuite/call_indirect.wast/169.print b/tests/snapshots/testsuite/call_indirect.wast/169.print index 81e07d0ec8..297fe38c34 100644 --- a/tests/snapshots/testsuite/call_indirect.wast/169.print +++ b/tests/snapshots/testsuite/call_indirect.wast/169.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (type (;1;) (func (result i32))) + (table (;0;) 1 funcref) (func (;0;) (type 0) unreachable call_indirect (type 0) @@ -55,5 +56,4 @@ select call_indirect (type 0) ) - (table (;0;) 1 funcref) ) diff --git a/tests/snapshots/testsuite/comments.wast/4.print b/tests/snapshots/testsuite/comments.wast/4.print index 1a83157d2f..2aaa404652 100644 --- a/tests/snapshots/testsuite/comments.wast/4.print +++ b/tests/snapshots/testsuite/comments.wast/4.print @@ -1,5 +1,8 @@ (module (type (;0;) (func (result i32))) + (export "f1" (func 0)) + (export "f2" (func 1)) + (export "f3" (func 2)) (func (;0;) (type 0) (result i32) i32.const 1 i32.const 2 @@ -15,7 +18,4 @@ i32.const 2 return ) - (export "f1" (func 0)) - (export "f2" (func 1)) - (export "f3" (func 2)) ) diff --git a/tests/snapshots/testsuite/const.wast/178.print b/tests/snapshots/testsuite/const.wast/178.print index cb0e3d4e07..e98b21e7a5 100644 --- a/tests/snapshots/testsuite/const.wast/178.print +++ b/tests/snapshots/testsuite/const.wast/178.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1p-50 (;=0.0000000000000008881784;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/180.print b/tests/snapshots/testsuite/const.wast/180.print index c3749c285c..b59f3115bb 100644 --- a/tests/snapshots/testsuite/const.wast/180.print +++ b/tests/snapshots/testsuite/const.wast/180.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1p-50 (;=-0.0000000000000008881784;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/182.print b/tests/snapshots/testsuite/const.wast/182.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/182.print +++ b/tests/snapshots/testsuite/const.wast/182.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/184.print b/tests/snapshots/testsuite/const.wast/184.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/184.print +++ b/tests/snapshots/testsuite/const.wast/184.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/186.print b/tests/snapshots/testsuite/const.wast/186.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/186.print +++ b/tests/snapshots/testsuite/const.wast/186.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/188.print b/tests/snapshots/testsuite/const.wast/188.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/188.print +++ b/tests/snapshots/testsuite/const.wast/188.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/190.print b/tests/snapshots/testsuite/const.wast/190.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/190.print +++ b/tests/snapshots/testsuite/const.wast/190.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/192.print b/tests/snapshots/testsuite/const.wast/192.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/192.print +++ b/tests/snapshots/testsuite/const.wast/192.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/194.print b/tests/snapshots/testsuite/const.wast/194.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/194.print +++ b/tests/snapshots/testsuite/const.wast/194.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/196.print b/tests/snapshots/testsuite/const.wast/196.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/196.print +++ b/tests/snapshots/testsuite/const.wast/196.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/198.print b/tests/snapshots/testsuite/const.wast/198.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/198.print +++ b/tests/snapshots/testsuite/const.wast/198.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/200.print b/tests/snapshots/testsuite/const.wast/200.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/200.print +++ b/tests/snapshots/testsuite/const.wast/200.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/202.print b/tests/snapshots/testsuite/const.wast/202.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/202.print +++ b/tests/snapshots/testsuite/const.wast/202.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/204.print b/tests/snapshots/testsuite/const.wast/204.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/204.print +++ b/tests/snapshots/testsuite/const.wast/204.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/206.print b/tests/snapshots/testsuite/const.wast/206.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/206.print +++ b/tests/snapshots/testsuite/const.wast/206.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/208.print b/tests/snapshots/testsuite/const.wast/208.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/208.print +++ b/tests/snapshots/testsuite/const.wast/208.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/210.print b/tests/snapshots/testsuite/const.wast/210.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/210.print +++ b/tests/snapshots/testsuite/const.wast/210.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/212.print b/tests/snapshots/testsuite/const.wast/212.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/212.print +++ b/tests/snapshots/testsuite/const.wast/212.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/214.print b/tests/snapshots/testsuite/const.wast/214.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/214.print +++ b/tests/snapshots/testsuite/const.wast/214.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/216.print b/tests/snapshots/testsuite/const.wast/216.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/216.print +++ b/tests/snapshots/testsuite/const.wast/216.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/218.print b/tests/snapshots/testsuite/const.wast/218.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/218.print +++ b/tests/snapshots/testsuite/const.wast/218.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/220.print b/tests/snapshots/testsuite/const.wast/220.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/220.print +++ b/tests/snapshots/testsuite/const.wast/220.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/222.print b/tests/snapshots/testsuite/const.wast/222.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/222.print +++ b/tests/snapshots/testsuite/const.wast/222.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/224.print b/tests/snapshots/testsuite/const.wast/224.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/224.print +++ b/tests/snapshots/testsuite/const.wast/224.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/226.print b/tests/snapshots/testsuite/const.wast/226.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/226.print +++ b/tests/snapshots/testsuite/const.wast/226.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/228.print b/tests/snapshots/testsuite/const.wast/228.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/228.print +++ b/tests/snapshots/testsuite/const.wast/228.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/230.print b/tests/snapshots/testsuite/const.wast/230.print index dbd27a58af..67819bb88c 100644 --- a/tests/snapshots/testsuite/const.wast/230.print +++ b/tests/snapshots/testsuite/const.wast/230.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000006p-50 (;=0.0000000000000008881787;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/232.print b/tests/snapshots/testsuite/const.wast/232.print index 9cbc79f5e0..d43814d2dc 100644 --- a/tests/snapshots/testsuite/const.wast/232.print +++ b/tests/snapshots/testsuite/const.wast/232.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000006p-50 (;=-0.0000000000000008881787;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/234.print b/tests/snapshots/testsuite/const.wast/234.print index cb0e3d4e07..e98b21e7a5 100644 --- a/tests/snapshots/testsuite/const.wast/234.print +++ b/tests/snapshots/testsuite/const.wast/234.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1p-50 (;=0.0000000000000008881784;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/236.print b/tests/snapshots/testsuite/const.wast/236.print index c3749c285c..b59f3115bb 100644 --- a/tests/snapshots/testsuite/const.wast/236.print +++ b/tests/snapshots/testsuite/const.wast/236.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1p-50 (;=-0.0000000000000008881784;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/238.print b/tests/snapshots/testsuite/const.wast/238.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/238.print +++ b/tests/snapshots/testsuite/const.wast/238.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/240.print b/tests/snapshots/testsuite/const.wast/240.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/240.print +++ b/tests/snapshots/testsuite/const.wast/240.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/242.print b/tests/snapshots/testsuite/const.wast/242.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/242.print +++ b/tests/snapshots/testsuite/const.wast/242.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/244.print b/tests/snapshots/testsuite/const.wast/244.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/244.print +++ b/tests/snapshots/testsuite/const.wast/244.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/246.print b/tests/snapshots/testsuite/const.wast/246.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/246.print +++ b/tests/snapshots/testsuite/const.wast/246.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/248.print b/tests/snapshots/testsuite/const.wast/248.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/248.print +++ b/tests/snapshots/testsuite/const.wast/248.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/250.print b/tests/snapshots/testsuite/const.wast/250.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/250.print +++ b/tests/snapshots/testsuite/const.wast/250.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/252.print b/tests/snapshots/testsuite/const.wast/252.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/252.print +++ b/tests/snapshots/testsuite/const.wast/252.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/254.print b/tests/snapshots/testsuite/const.wast/254.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/254.print +++ b/tests/snapshots/testsuite/const.wast/254.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/256.print b/tests/snapshots/testsuite/const.wast/256.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/256.print +++ b/tests/snapshots/testsuite/const.wast/256.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/258.print b/tests/snapshots/testsuite/const.wast/258.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/258.print +++ b/tests/snapshots/testsuite/const.wast/258.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/260.print b/tests/snapshots/testsuite/const.wast/260.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/260.print +++ b/tests/snapshots/testsuite/const.wast/260.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/262.print b/tests/snapshots/testsuite/const.wast/262.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/262.print +++ b/tests/snapshots/testsuite/const.wast/262.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/264.print b/tests/snapshots/testsuite/const.wast/264.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/264.print +++ b/tests/snapshots/testsuite/const.wast/264.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/266.print b/tests/snapshots/testsuite/const.wast/266.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/266.print +++ b/tests/snapshots/testsuite/const.wast/266.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/268.print b/tests/snapshots/testsuite/const.wast/268.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/268.print +++ b/tests/snapshots/testsuite/const.wast/268.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/270.print b/tests/snapshots/testsuite/const.wast/270.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/270.print +++ b/tests/snapshots/testsuite/const.wast/270.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/272.print b/tests/snapshots/testsuite/const.wast/272.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/272.print +++ b/tests/snapshots/testsuite/const.wast/272.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/274.print b/tests/snapshots/testsuite/const.wast/274.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/274.print +++ b/tests/snapshots/testsuite/const.wast/274.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/276.print b/tests/snapshots/testsuite/const.wast/276.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/276.print +++ b/tests/snapshots/testsuite/const.wast/276.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/278.print b/tests/snapshots/testsuite/const.wast/278.print index dbd27a58af..67819bb88c 100644 --- a/tests/snapshots/testsuite/const.wast/278.print +++ b/tests/snapshots/testsuite/const.wast/278.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000006p-50 (;=0.0000000000000008881787;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/280.print b/tests/snapshots/testsuite/const.wast/280.print index 9cbc79f5e0..d43814d2dc 100644 --- a/tests/snapshots/testsuite/const.wast/280.print +++ b/tests/snapshots/testsuite/const.wast/280.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000006p-50 (;=-0.0000000000000008881787;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/282.print b/tests/snapshots/testsuite/const.wast/282.print index cb0e3d4e07..e98b21e7a5 100644 --- a/tests/snapshots/testsuite/const.wast/282.print +++ b/tests/snapshots/testsuite/const.wast/282.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1p-50 (;=0.0000000000000008881784;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/284.print b/tests/snapshots/testsuite/const.wast/284.print index c3749c285c..b59f3115bb 100644 --- a/tests/snapshots/testsuite/const.wast/284.print +++ b/tests/snapshots/testsuite/const.wast/284.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1p-50 (;=-0.0000000000000008881784;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/286.print b/tests/snapshots/testsuite/const.wast/286.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/286.print +++ b/tests/snapshots/testsuite/const.wast/286.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/288.print b/tests/snapshots/testsuite/const.wast/288.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/288.print +++ b/tests/snapshots/testsuite/const.wast/288.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/290.print b/tests/snapshots/testsuite/const.wast/290.print index f26d739c18..0e749db790 100644 --- a/tests/snapshots/testsuite/const.wast/290.print +++ b/tests/snapshots/testsuite/const.wast/290.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p-50 (;=0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/292.print b/tests/snapshots/testsuite/const.wast/292.print index c5f19ed108..adf46ac14b 100644 --- a/tests/snapshots/testsuite/const.wast/292.print +++ b/tests/snapshots/testsuite/const.wast/292.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p-50 (;=-0.0000000000000008881785;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/294.print b/tests/snapshots/testsuite/const.wast/294.print index ae279e4a48..81472ce140 100644 --- a/tests/snapshots/testsuite/const.wast/294.print +++ b/tests/snapshots/testsuite/const.wast/294.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p-50 (;=0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/296.print b/tests/snapshots/testsuite/const.wast/296.print index 5933d32317..45d16b2f78 100644 --- a/tests/snapshots/testsuite/const.wast/296.print +++ b/tests/snapshots/testsuite/const.wast/296.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p-50 (;=-0.0000000000000008881786;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/298.print b/tests/snapshots/testsuite/const.wast/298.print index 75fafa931a..e6c9a70088 100644 --- a/tests/snapshots/testsuite/const.wast/298.print +++ b/tests/snapshots/testsuite/const.wast/298.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1p+50 (;=1125899900000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/300.print b/tests/snapshots/testsuite/const.wast/300.print index a412170683..27b7d77f2a 100644 --- a/tests/snapshots/testsuite/const.wast/300.print +++ b/tests/snapshots/testsuite/const.wast/300.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1p+50 (;=-1125899900000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/302.print b/tests/snapshots/testsuite/const.wast/302.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/302.print +++ b/tests/snapshots/testsuite/const.wast/302.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/304.print b/tests/snapshots/testsuite/const.wast/304.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/304.print +++ b/tests/snapshots/testsuite/const.wast/304.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/306.print b/tests/snapshots/testsuite/const.wast/306.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/306.print +++ b/tests/snapshots/testsuite/const.wast/306.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/308.print b/tests/snapshots/testsuite/const.wast/308.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/308.print +++ b/tests/snapshots/testsuite/const.wast/308.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/310.print b/tests/snapshots/testsuite/const.wast/310.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/310.print +++ b/tests/snapshots/testsuite/const.wast/310.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/312.print b/tests/snapshots/testsuite/const.wast/312.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/312.print +++ b/tests/snapshots/testsuite/const.wast/312.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/314.print b/tests/snapshots/testsuite/const.wast/314.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/314.print +++ b/tests/snapshots/testsuite/const.wast/314.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/316.print b/tests/snapshots/testsuite/const.wast/316.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/316.print +++ b/tests/snapshots/testsuite/const.wast/316.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/318.print b/tests/snapshots/testsuite/const.wast/318.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/318.print +++ b/tests/snapshots/testsuite/const.wast/318.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/320.print b/tests/snapshots/testsuite/const.wast/320.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/320.print +++ b/tests/snapshots/testsuite/const.wast/320.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/322.print b/tests/snapshots/testsuite/const.wast/322.print index 29b1542bd5..353cb77028 100644 --- a/tests/snapshots/testsuite/const.wast/322.print +++ b/tests/snapshots/testsuite/const.wast/322.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p+50 (;=1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/324.print b/tests/snapshots/testsuite/const.wast/324.print index 8dd2c6d8d3..5a0215e0e1 100644 --- a/tests/snapshots/testsuite/const.wast/324.print +++ b/tests/snapshots/testsuite/const.wast/324.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p+50 (;=-1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/326.print b/tests/snapshots/testsuite/const.wast/326.print index 29b1542bd5..353cb77028 100644 --- a/tests/snapshots/testsuite/const.wast/326.print +++ b/tests/snapshots/testsuite/const.wast/326.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p+50 (;=1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/328.print b/tests/snapshots/testsuite/const.wast/328.print index 8dd2c6d8d3..5a0215e0e1 100644 --- a/tests/snapshots/testsuite/const.wast/328.print +++ b/tests/snapshots/testsuite/const.wast/328.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p+50 (;=-1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/330.print b/tests/snapshots/testsuite/const.wast/330.print index 29b1542bd5..353cb77028 100644 --- a/tests/snapshots/testsuite/const.wast/330.print +++ b/tests/snapshots/testsuite/const.wast/330.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p+50 (;=1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/332.print b/tests/snapshots/testsuite/const.wast/332.print index 8dd2c6d8d3..5a0215e0e1 100644 --- a/tests/snapshots/testsuite/const.wast/332.print +++ b/tests/snapshots/testsuite/const.wast/332.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p+50 (;=-1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/334.print b/tests/snapshots/testsuite/const.wast/334.print index 29b1542bd5..353cb77028 100644 --- a/tests/snapshots/testsuite/const.wast/334.print +++ b/tests/snapshots/testsuite/const.wast/334.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p+50 (;=1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/336.print b/tests/snapshots/testsuite/const.wast/336.print index 8dd2c6d8d3..5a0215e0e1 100644 --- a/tests/snapshots/testsuite/const.wast/336.print +++ b/tests/snapshots/testsuite/const.wast/336.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p+50 (;=-1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/338.print b/tests/snapshots/testsuite/const.wast/338.print index 29b1542bd5..353cb77028 100644 --- a/tests/snapshots/testsuite/const.wast/338.print +++ b/tests/snapshots/testsuite/const.wast/338.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p+50 (;=1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/340.print b/tests/snapshots/testsuite/const.wast/340.print index 8dd2c6d8d3..5a0215e0e1 100644 --- a/tests/snapshots/testsuite/const.wast/340.print +++ b/tests/snapshots/testsuite/const.wast/340.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p+50 (;=-1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/342.print b/tests/snapshots/testsuite/const.wast/342.print index 29b1542bd5..353cb77028 100644 --- a/tests/snapshots/testsuite/const.wast/342.print +++ b/tests/snapshots/testsuite/const.wast/342.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p+50 (;=1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/344.print b/tests/snapshots/testsuite/const.wast/344.print index 8dd2c6d8d3..5a0215e0e1 100644 --- a/tests/snapshots/testsuite/const.wast/344.print +++ b/tests/snapshots/testsuite/const.wast/344.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p+50 (;=-1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/346.print b/tests/snapshots/testsuite/const.wast/346.print index 29b1542bd5..353cb77028 100644 --- a/tests/snapshots/testsuite/const.wast/346.print +++ b/tests/snapshots/testsuite/const.wast/346.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p+50 (;=1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/348.print b/tests/snapshots/testsuite/const.wast/348.print index 8dd2c6d8d3..5a0215e0e1 100644 --- a/tests/snapshots/testsuite/const.wast/348.print +++ b/tests/snapshots/testsuite/const.wast/348.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p+50 (;=-1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/350.print b/tests/snapshots/testsuite/const.wast/350.print index d8d243273c..36e37eb39a 100644 --- a/tests/snapshots/testsuite/const.wast/350.print +++ b/tests/snapshots/testsuite/const.wast/350.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000006p+50 (;=1125900300000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/352.print b/tests/snapshots/testsuite/const.wast/352.print index 19e2d7e922..a7dfd8eb9b 100644 --- a/tests/snapshots/testsuite/const.wast/352.print +++ b/tests/snapshots/testsuite/const.wast/352.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000006p+50 (;=-1125900300000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/354.print b/tests/snapshots/testsuite/const.wast/354.print index 75fafa931a..e6c9a70088 100644 --- a/tests/snapshots/testsuite/const.wast/354.print +++ b/tests/snapshots/testsuite/const.wast/354.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1p+50 (;=1125899900000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/356.print b/tests/snapshots/testsuite/const.wast/356.print index a412170683..27b7d77f2a 100644 --- a/tests/snapshots/testsuite/const.wast/356.print +++ b/tests/snapshots/testsuite/const.wast/356.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1p+50 (;=-1125899900000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/358.print b/tests/snapshots/testsuite/const.wast/358.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/358.print +++ b/tests/snapshots/testsuite/const.wast/358.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/360.print b/tests/snapshots/testsuite/const.wast/360.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/360.print +++ b/tests/snapshots/testsuite/const.wast/360.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/362.print b/tests/snapshots/testsuite/const.wast/362.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/362.print +++ b/tests/snapshots/testsuite/const.wast/362.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/364.print b/tests/snapshots/testsuite/const.wast/364.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/364.print +++ b/tests/snapshots/testsuite/const.wast/364.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/366.print b/tests/snapshots/testsuite/const.wast/366.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/366.print +++ b/tests/snapshots/testsuite/const.wast/366.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/368.print b/tests/snapshots/testsuite/const.wast/368.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/368.print +++ b/tests/snapshots/testsuite/const.wast/368.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/370.print b/tests/snapshots/testsuite/const.wast/370.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/370.print +++ b/tests/snapshots/testsuite/const.wast/370.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/372.print b/tests/snapshots/testsuite/const.wast/372.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/372.print +++ b/tests/snapshots/testsuite/const.wast/372.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/374.print b/tests/snapshots/testsuite/const.wast/374.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/374.print +++ b/tests/snapshots/testsuite/const.wast/374.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/376.print b/tests/snapshots/testsuite/const.wast/376.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/376.print +++ b/tests/snapshots/testsuite/const.wast/376.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/378.print b/tests/snapshots/testsuite/const.wast/378.print index 29b1542bd5..353cb77028 100644 --- a/tests/snapshots/testsuite/const.wast/378.print +++ b/tests/snapshots/testsuite/const.wast/378.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p+50 (;=1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/380.print b/tests/snapshots/testsuite/const.wast/380.print index 8dd2c6d8d3..5a0215e0e1 100644 --- a/tests/snapshots/testsuite/const.wast/380.print +++ b/tests/snapshots/testsuite/const.wast/380.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p+50 (;=-1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/382.print b/tests/snapshots/testsuite/const.wast/382.print index 75fafa931a..e6c9a70088 100644 --- a/tests/snapshots/testsuite/const.wast/382.print +++ b/tests/snapshots/testsuite/const.wast/382.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1p+50 (;=1125899900000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/384.print b/tests/snapshots/testsuite/const.wast/384.print index a412170683..27b7d77f2a 100644 --- a/tests/snapshots/testsuite/const.wast/384.print +++ b/tests/snapshots/testsuite/const.wast/384.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1p+50 (;=-1125899900000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/386.print b/tests/snapshots/testsuite/const.wast/386.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/386.print +++ b/tests/snapshots/testsuite/const.wast/386.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/388.print b/tests/snapshots/testsuite/const.wast/388.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/388.print +++ b/tests/snapshots/testsuite/const.wast/388.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/390.print b/tests/snapshots/testsuite/const.wast/390.print index a0265c2c42..f9aa70b0f3 100644 --- a/tests/snapshots/testsuite/const.wast/390.print +++ b/tests/snapshots/testsuite/const.wast/390.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000002p+50 (;=1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/392.print b/tests/snapshots/testsuite/const.wast/392.print index d05b7065f3..07ef2f2e0f 100644 --- a/tests/snapshots/testsuite/const.wast/392.print +++ b/tests/snapshots/testsuite/const.wast/392.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000002p+50 (;=-1125900000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/394.print b/tests/snapshots/testsuite/const.wast/394.print index 29b1542bd5..353cb77028 100644 --- a/tests/snapshots/testsuite/const.wast/394.print +++ b/tests/snapshots/testsuite/const.wast/394.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.000004p+50 (;=1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/396.print b/tests/snapshots/testsuite/const.wast/396.print index 8dd2c6d8d3..5a0215e0e1 100644 --- a/tests/snapshots/testsuite/const.wast/396.print +++ b/tests/snapshots/testsuite/const.wast/396.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.000004p+50 (;=-1125900200000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/398.print b/tests/snapshots/testsuite/const.wast/398.print index f74d5c56dc..ecd7f2c95b 100644 --- a/tests/snapshots/testsuite/const.wast/398.print +++ b/tests/snapshots/testsuite/const.wast/398.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x0p+0 (;=0;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/400.print b/tests/snapshots/testsuite/const.wast/400.print index e5351b4416..99f40f014a 100644 --- a/tests/snapshots/testsuite/const.wast/400.print +++ b/tests/snapshots/testsuite/const.wast/400.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x0p+0 (;=-0;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/402.print b/tests/snapshots/testsuite/const.wast/402.print index 5508fdc507..5f2703a32b 100644 --- a/tests/snapshots/testsuite/const.wast/402.print +++ b/tests/snapshots/testsuite/const.wast/402.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-149 (;=0.000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/404.print b/tests/snapshots/testsuite/const.wast/404.print index 8625391762..eeb8429338 100644 --- a/tests/snapshots/testsuite/const.wast/404.print +++ b/tests/snapshots/testsuite/const.wast/404.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-149 (;=-0.000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/406.print b/tests/snapshots/testsuite/const.wast/406.print index 5508fdc507..5f2703a32b 100644 --- a/tests/snapshots/testsuite/const.wast/406.print +++ b/tests/snapshots/testsuite/const.wast/406.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-149 (;=0.000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/408.print b/tests/snapshots/testsuite/const.wast/408.print index 8625391762..eeb8429338 100644 --- a/tests/snapshots/testsuite/const.wast/408.print +++ b/tests/snapshots/testsuite/const.wast/408.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-149 (;=-0.000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/410.print b/tests/snapshots/testsuite/const.wast/410.print index 5508fdc507..5f2703a32b 100644 --- a/tests/snapshots/testsuite/const.wast/410.print +++ b/tests/snapshots/testsuite/const.wast/410.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-149 (;=0.000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/412.print b/tests/snapshots/testsuite/const.wast/412.print index 8625391762..eeb8429338 100644 --- a/tests/snapshots/testsuite/const.wast/412.print +++ b/tests/snapshots/testsuite/const.wast/412.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-149 (;=-0.000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/414.print b/tests/snapshots/testsuite/const.wast/414.print index 5508fdc507..5f2703a32b 100644 --- a/tests/snapshots/testsuite/const.wast/414.print +++ b/tests/snapshots/testsuite/const.wast/414.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-149 (;=0.000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/416.print b/tests/snapshots/testsuite/const.wast/416.print index 8625391762..eeb8429338 100644 --- a/tests/snapshots/testsuite/const.wast/416.print +++ b/tests/snapshots/testsuite/const.wast/416.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-149 (;=-0.000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/418.print b/tests/snapshots/testsuite/const.wast/418.print index 5508fdc507..5f2703a32b 100644 --- a/tests/snapshots/testsuite/const.wast/418.print +++ b/tests/snapshots/testsuite/const.wast/418.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-149 (;=0.000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/420.print b/tests/snapshots/testsuite/const.wast/420.print index 8625391762..eeb8429338 100644 --- a/tests/snapshots/testsuite/const.wast/420.print +++ b/tests/snapshots/testsuite/const.wast/420.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-149 (;=-0.000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/422.print b/tests/snapshots/testsuite/const.wast/422.print index fe5508d055..12f1f5a219 100644 --- a/tests/snapshots/testsuite/const.wast/422.print +++ b/tests/snapshots/testsuite/const.wast/422.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-148 (;=0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/424.print b/tests/snapshots/testsuite/const.wast/424.print index e8d461043d..07c9644ffa 100644 --- a/tests/snapshots/testsuite/const.wast/424.print +++ b/tests/snapshots/testsuite/const.wast/424.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-148 (;=-0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/426.print b/tests/snapshots/testsuite/const.wast/426.print index fe5508d055..12f1f5a219 100644 --- a/tests/snapshots/testsuite/const.wast/426.print +++ b/tests/snapshots/testsuite/const.wast/426.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-148 (;=0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/428.print b/tests/snapshots/testsuite/const.wast/428.print index e8d461043d..07c9644ffa 100644 --- a/tests/snapshots/testsuite/const.wast/428.print +++ b/tests/snapshots/testsuite/const.wast/428.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-148 (;=-0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/430.print b/tests/snapshots/testsuite/const.wast/430.print index fe5508d055..12f1f5a219 100644 --- a/tests/snapshots/testsuite/const.wast/430.print +++ b/tests/snapshots/testsuite/const.wast/430.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-148 (;=0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/432.print b/tests/snapshots/testsuite/const.wast/432.print index e8d461043d..07c9644ffa 100644 --- a/tests/snapshots/testsuite/const.wast/432.print +++ b/tests/snapshots/testsuite/const.wast/432.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-148 (;=-0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/434.print b/tests/snapshots/testsuite/const.wast/434.print index fe5508d055..12f1f5a219 100644 --- a/tests/snapshots/testsuite/const.wast/434.print +++ b/tests/snapshots/testsuite/const.wast/434.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-148 (;=0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/436.print b/tests/snapshots/testsuite/const.wast/436.print index e8d461043d..07c9644ffa 100644 --- a/tests/snapshots/testsuite/const.wast/436.print +++ b/tests/snapshots/testsuite/const.wast/436.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-148 (;=-0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/438.print b/tests/snapshots/testsuite/const.wast/438.print index fe5508d055..12f1f5a219 100644 --- a/tests/snapshots/testsuite/const.wast/438.print +++ b/tests/snapshots/testsuite/const.wast/438.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-148 (;=0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/440.print b/tests/snapshots/testsuite/const.wast/440.print index e8d461043d..07c9644ffa 100644 --- a/tests/snapshots/testsuite/const.wast/440.print +++ b/tests/snapshots/testsuite/const.wast/440.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-148 (;=-0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/442.print b/tests/snapshots/testsuite/const.wast/442.print index fe5508d055..12f1f5a219 100644 --- a/tests/snapshots/testsuite/const.wast/442.print +++ b/tests/snapshots/testsuite/const.wast/442.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-148 (;=0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/444.print b/tests/snapshots/testsuite/const.wast/444.print index e8d461043d..07c9644ffa 100644 --- a/tests/snapshots/testsuite/const.wast/444.print +++ b/tests/snapshots/testsuite/const.wast/444.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-148 (;=-0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/446.print b/tests/snapshots/testsuite/const.wast/446.print index fe5508d055..12f1f5a219 100644 --- a/tests/snapshots/testsuite/const.wast/446.print +++ b/tests/snapshots/testsuite/const.wast/446.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.p-148 (;=0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/448.print b/tests/snapshots/testsuite/const.wast/448.print index e8d461043d..07c9644ffa 100644 --- a/tests/snapshots/testsuite/const.wast/448.print +++ b/tests/snapshots/testsuite/const.wast/448.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.p-148 (;=-0.000000000000000000000000000000000000000000003;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/450.print b/tests/snapshots/testsuite/const.wast/450.print index 243b175eee..77aef2b976 100644 --- a/tests/snapshots/testsuite/const.wast/450.print +++ b/tests/snapshots/testsuite/const.wast/450.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.8p-148 (;=0.000000000000000000000000000000000000000000004;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/452.print b/tests/snapshots/testsuite/const.wast/452.print index faad19bd50..f759408b3e 100644 --- a/tests/snapshots/testsuite/const.wast/452.print +++ b/tests/snapshots/testsuite/const.wast/452.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.8p-148 (;=-0.000000000000000000000000000000000000000000004;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/454.print b/tests/snapshots/testsuite/const.wast/454.print index a6d4810394..e9b5b00cdc 100644 --- a/tests/snapshots/testsuite/const.wast/454.print +++ b/tests/snapshots/testsuite/const.wast/454.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.fffffep+127 (;=340282350000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/456.print b/tests/snapshots/testsuite/const.wast/456.print index f0beb74d88..6d2da05123 100644 --- a/tests/snapshots/testsuite/const.wast/456.print +++ b/tests/snapshots/testsuite/const.wast/456.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.fffffep+127 (;=-340282350000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/458.print b/tests/snapshots/testsuite/const.wast/458.print index a6d4810394..e9b5b00cdc 100644 --- a/tests/snapshots/testsuite/const.wast/458.print +++ b/tests/snapshots/testsuite/const.wast/458.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.fffffep+127 (;=340282350000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/460.print b/tests/snapshots/testsuite/const.wast/460.print index f0beb74d88..6d2da05123 100644 --- a/tests/snapshots/testsuite/const.wast/460.print +++ b/tests/snapshots/testsuite/const.wast/460.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.fffffep+127 (;=-340282350000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/462.print b/tests/snapshots/testsuite/const.wast/462.print index a6d4810394..e9b5b00cdc 100644 --- a/tests/snapshots/testsuite/const.wast/462.print +++ b/tests/snapshots/testsuite/const.wast/462.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const 0x1.fffffep+127 (;=340282350000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/464.print b/tests/snapshots/testsuite/const.wast/464.print index f0beb74d88..6d2da05123 100644 --- a/tests/snapshots/testsuite/const.wast/464.print +++ b/tests/snapshots/testsuite/const.wast/464.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f32))) + (export "f" (func 0)) (func (;0;) (type 0) (result f32) f32.const -0x1.fffffep+127 (;=-340282350000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/466.print b/tests/snapshots/testsuite/const.wast/466.print index f4ba36e21c..6aea430eea 100644 --- a/tests/snapshots/testsuite/const.wast/466.print +++ b/tests/snapshots/testsuite/const.wast/466.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102884;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/468.print b/tests/snapshots/testsuite/const.wast/468.print index f7fa7cf29e..a583158309 100644 --- a/tests/snapshots/testsuite/const.wast/468.print +++ b/tests/snapshots/testsuite/const.wast/468.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102884;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/470.print b/tests/snapshots/testsuite/const.wast/470.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/const.wast/470.print +++ b/tests/snapshots/testsuite/const.wast/470.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/472.print b/tests/snapshots/testsuite/const.wast/472.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/const.wast/472.print +++ b/tests/snapshots/testsuite/const.wast/472.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/474.print b/tests/snapshots/testsuite/const.wast/474.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/const.wast/474.print +++ b/tests/snapshots/testsuite/const.wast/474.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/476.print b/tests/snapshots/testsuite/const.wast/476.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/const.wast/476.print +++ b/tests/snapshots/testsuite/const.wast/476.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/478.print b/tests/snapshots/testsuite/const.wast/478.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/const.wast/478.print +++ b/tests/snapshots/testsuite/const.wast/478.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/480.print b/tests/snapshots/testsuite/const.wast/480.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/const.wast/480.print +++ b/tests/snapshots/testsuite/const.wast/480.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/482.print b/tests/snapshots/testsuite/const.wast/482.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/const.wast/482.print +++ b/tests/snapshots/testsuite/const.wast/482.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/484.print b/tests/snapshots/testsuite/const.wast/484.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/const.wast/484.print +++ b/tests/snapshots/testsuite/const.wast/484.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/486.print b/tests/snapshots/testsuite/const.wast/486.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/const.wast/486.print +++ b/tests/snapshots/testsuite/const.wast/486.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/488.print b/tests/snapshots/testsuite/const.wast/488.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/const.wast/488.print +++ b/tests/snapshots/testsuite/const.wast/488.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/490.print b/tests/snapshots/testsuite/const.wast/490.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/490.print +++ b/tests/snapshots/testsuite/const.wast/490.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/492.print b/tests/snapshots/testsuite/const.wast/492.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/492.print +++ b/tests/snapshots/testsuite/const.wast/492.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/494.print b/tests/snapshots/testsuite/const.wast/494.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/494.print +++ b/tests/snapshots/testsuite/const.wast/494.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/496.print b/tests/snapshots/testsuite/const.wast/496.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/496.print +++ b/tests/snapshots/testsuite/const.wast/496.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/498.print b/tests/snapshots/testsuite/const.wast/498.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/498.print +++ b/tests/snapshots/testsuite/const.wast/498.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/500.print b/tests/snapshots/testsuite/const.wast/500.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/500.print +++ b/tests/snapshots/testsuite/const.wast/500.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/502.print b/tests/snapshots/testsuite/const.wast/502.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/502.print +++ b/tests/snapshots/testsuite/const.wast/502.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/504.print b/tests/snapshots/testsuite/const.wast/504.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/504.print +++ b/tests/snapshots/testsuite/const.wast/504.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/506.print b/tests/snapshots/testsuite/const.wast/506.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/506.print +++ b/tests/snapshots/testsuite/const.wast/506.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/508.print b/tests/snapshots/testsuite/const.wast/508.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/508.print +++ b/tests/snapshots/testsuite/const.wast/508.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/510.print b/tests/snapshots/testsuite/const.wast/510.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/510.print +++ b/tests/snapshots/testsuite/const.wast/510.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/512.print b/tests/snapshots/testsuite/const.wast/512.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/512.print +++ b/tests/snapshots/testsuite/const.wast/512.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/514.print b/tests/snapshots/testsuite/const.wast/514.print index 5d1681991e..2817422161 100644 --- a/tests/snapshots/testsuite/const.wast/514.print +++ b/tests/snapshots/testsuite/const.wast/514.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000003p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028857;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/516.print b/tests/snapshots/testsuite/const.wast/516.print index f038aaa089..70a08bfc48 100644 --- a/tests/snapshots/testsuite/const.wast/516.print +++ b/tests/snapshots/testsuite/const.wast/516.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000003p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028857;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/518.print b/tests/snapshots/testsuite/const.wast/518.print index f4ba36e21c..6aea430eea 100644 --- a/tests/snapshots/testsuite/const.wast/518.print +++ b/tests/snapshots/testsuite/const.wast/518.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102884;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/520.print b/tests/snapshots/testsuite/const.wast/520.print index f7fa7cf29e..a583158309 100644 --- a/tests/snapshots/testsuite/const.wast/520.print +++ b/tests/snapshots/testsuite/const.wast/520.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102884;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/522.print b/tests/snapshots/testsuite/const.wast/522.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/const.wast/522.print +++ b/tests/snapshots/testsuite/const.wast/522.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/524.print b/tests/snapshots/testsuite/const.wast/524.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/const.wast/524.print +++ b/tests/snapshots/testsuite/const.wast/524.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/526.print b/tests/snapshots/testsuite/const.wast/526.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/const.wast/526.print +++ b/tests/snapshots/testsuite/const.wast/526.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/528.print b/tests/snapshots/testsuite/const.wast/528.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/const.wast/528.print +++ b/tests/snapshots/testsuite/const.wast/528.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/530.print b/tests/snapshots/testsuite/const.wast/530.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/const.wast/530.print +++ b/tests/snapshots/testsuite/const.wast/530.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/532.print b/tests/snapshots/testsuite/const.wast/532.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/const.wast/532.print +++ b/tests/snapshots/testsuite/const.wast/532.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/534.print b/tests/snapshots/testsuite/const.wast/534.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/const.wast/534.print +++ b/tests/snapshots/testsuite/const.wast/534.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/536.print b/tests/snapshots/testsuite/const.wast/536.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/const.wast/536.print +++ b/tests/snapshots/testsuite/const.wast/536.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/538.print b/tests/snapshots/testsuite/const.wast/538.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/const.wast/538.print +++ b/tests/snapshots/testsuite/const.wast/538.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/540.print b/tests/snapshots/testsuite/const.wast/540.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/const.wast/540.print +++ b/tests/snapshots/testsuite/const.wast/540.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/542.print b/tests/snapshots/testsuite/const.wast/542.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/542.print +++ b/tests/snapshots/testsuite/const.wast/542.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/544.print b/tests/snapshots/testsuite/const.wast/544.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/544.print +++ b/tests/snapshots/testsuite/const.wast/544.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/546.print b/tests/snapshots/testsuite/const.wast/546.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/546.print +++ b/tests/snapshots/testsuite/const.wast/546.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/548.print b/tests/snapshots/testsuite/const.wast/548.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/548.print +++ b/tests/snapshots/testsuite/const.wast/548.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/550.print b/tests/snapshots/testsuite/const.wast/550.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/550.print +++ b/tests/snapshots/testsuite/const.wast/550.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/552.print b/tests/snapshots/testsuite/const.wast/552.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/552.print +++ b/tests/snapshots/testsuite/const.wast/552.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/554.print b/tests/snapshots/testsuite/const.wast/554.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/554.print +++ b/tests/snapshots/testsuite/const.wast/554.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/556.print b/tests/snapshots/testsuite/const.wast/556.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/556.print +++ b/tests/snapshots/testsuite/const.wast/556.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/558.print b/tests/snapshots/testsuite/const.wast/558.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/558.print +++ b/tests/snapshots/testsuite/const.wast/558.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/560.print b/tests/snapshots/testsuite/const.wast/560.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/560.print +++ b/tests/snapshots/testsuite/const.wast/560.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/562.print b/tests/snapshots/testsuite/const.wast/562.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/const.wast/562.print +++ b/tests/snapshots/testsuite/const.wast/562.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/564.print b/tests/snapshots/testsuite/const.wast/564.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/const.wast/564.print +++ b/tests/snapshots/testsuite/const.wast/564.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/566.print b/tests/snapshots/testsuite/const.wast/566.print index 5d1681991e..2817422161 100644 --- a/tests/snapshots/testsuite/const.wast/566.print +++ b/tests/snapshots/testsuite/const.wast/566.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000003p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028857;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/568.print b/tests/snapshots/testsuite/const.wast/568.print index f038aaa089..70a08bfc48 100644 --- a/tests/snapshots/testsuite/const.wast/568.print +++ b/tests/snapshots/testsuite/const.wast/568.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000003p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028857;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/570.print b/tests/snapshots/testsuite/const.wast/570.print index 731de63204..f5a55fe598 100644 --- a/tests/snapshots/testsuite/const.wast/570.print +++ b/tests/snapshots/testsuite/const.wast/570.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1p+999 (;=5357543035931337000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/572.print b/tests/snapshots/testsuite/const.wast/572.print index 3b3dad3743..3894b3177b 100644 --- a/tests/snapshots/testsuite/const.wast/572.print +++ b/tests/snapshots/testsuite/const.wast/572.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1p+999 (;=-5357543035931337000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/574.print b/tests/snapshots/testsuite/const.wast/574.print index 2ba85708ac..5fa3227c46 100644 --- a/tests/snapshots/testsuite/const.wast/574.print +++ b/tests/snapshots/testsuite/const.wast/574.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+999 (;=5357543035931338000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/576.print b/tests/snapshots/testsuite/const.wast/576.print index 90c057e055..dbcbd73bd5 100644 --- a/tests/snapshots/testsuite/const.wast/576.print +++ b/tests/snapshots/testsuite/const.wast/576.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+999 (;=-5357543035931338000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/578.print b/tests/snapshots/testsuite/const.wast/578.print index 2ba85708ac..5fa3227c46 100644 --- a/tests/snapshots/testsuite/const.wast/578.print +++ b/tests/snapshots/testsuite/const.wast/578.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+999 (;=5357543035931338000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/580.print b/tests/snapshots/testsuite/const.wast/580.print index 90c057e055..dbcbd73bd5 100644 --- a/tests/snapshots/testsuite/const.wast/580.print +++ b/tests/snapshots/testsuite/const.wast/580.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+999 (;=-5357543035931338000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/582.print b/tests/snapshots/testsuite/const.wast/582.print index 14f7c29ee7..7a373d2f54 100644 --- a/tests/snapshots/testsuite/const.wast/582.print +++ b/tests/snapshots/testsuite/const.wast/582.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+999 (;=5357543035931339000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/584.print b/tests/snapshots/testsuite/const.wast/584.print index 33a84bf99f..6ebf038b86 100644 --- a/tests/snapshots/testsuite/const.wast/584.print +++ b/tests/snapshots/testsuite/const.wast/584.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+999 (;=-5357543035931339000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/586.print b/tests/snapshots/testsuite/const.wast/586.print index 6da50f106c..22fe5cd81b 100644 --- a/tests/snapshots/testsuite/const.wast/586.print +++ b/tests/snapshots/testsuite/const.wast/586.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1p+600 (;=4149515568880993000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/588.print b/tests/snapshots/testsuite/const.wast/588.print index 02461c69ed..c44c807431 100644 --- a/tests/snapshots/testsuite/const.wast/588.print +++ b/tests/snapshots/testsuite/const.wast/588.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1p+600 (;=-4149515568880993000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/590.print b/tests/snapshots/testsuite/const.wast/590.print index 676151eb8d..8b6e5acbb0 100644 --- a/tests/snapshots/testsuite/const.wast/590.print +++ b/tests/snapshots/testsuite/const.wast/590.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+600 (;=4149515568880994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/592.print b/tests/snapshots/testsuite/const.wast/592.print index 2aba3ecd36..6687d5e6cc 100644 --- a/tests/snapshots/testsuite/const.wast/592.print +++ b/tests/snapshots/testsuite/const.wast/592.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+600 (;=-4149515568880994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/594.print b/tests/snapshots/testsuite/const.wast/594.print index 676151eb8d..8b6e5acbb0 100644 --- a/tests/snapshots/testsuite/const.wast/594.print +++ b/tests/snapshots/testsuite/const.wast/594.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+600 (;=4149515568880994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/596.print b/tests/snapshots/testsuite/const.wast/596.print index 2aba3ecd36..6687d5e6cc 100644 --- a/tests/snapshots/testsuite/const.wast/596.print +++ b/tests/snapshots/testsuite/const.wast/596.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+600 (;=-4149515568880994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/598.print b/tests/snapshots/testsuite/const.wast/598.print index 676151eb8d..8b6e5acbb0 100644 --- a/tests/snapshots/testsuite/const.wast/598.print +++ b/tests/snapshots/testsuite/const.wast/598.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+600 (;=4149515568880994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/600.print b/tests/snapshots/testsuite/const.wast/600.print index 2aba3ecd36..6687d5e6cc 100644 --- a/tests/snapshots/testsuite/const.wast/600.print +++ b/tests/snapshots/testsuite/const.wast/600.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+600 (;=-4149515568880994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/602.print b/tests/snapshots/testsuite/const.wast/602.print index 676151eb8d..8b6e5acbb0 100644 --- a/tests/snapshots/testsuite/const.wast/602.print +++ b/tests/snapshots/testsuite/const.wast/602.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+600 (;=4149515568880994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/604.print b/tests/snapshots/testsuite/const.wast/604.print index 2aba3ecd36..6687d5e6cc 100644 --- a/tests/snapshots/testsuite/const.wast/604.print +++ b/tests/snapshots/testsuite/const.wast/604.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+600 (;=-4149515568880994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/606.print b/tests/snapshots/testsuite/const.wast/606.print index 676151eb8d..8b6e5acbb0 100644 --- a/tests/snapshots/testsuite/const.wast/606.print +++ b/tests/snapshots/testsuite/const.wast/606.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+600 (;=4149515568880994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/608.print b/tests/snapshots/testsuite/const.wast/608.print index 2aba3ecd36..6687d5e6cc 100644 --- a/tests/snapshots/testsuite/const.wast/608.print +++ b/tests/snapshots/testsuite/const.wast/608.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+600 (;=-4149515568880994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/610.print b/tests/snapshots/testsuite/const.wast/610.print index fa9542b234..f7cb86a5a8 100644 --- a/tests/snapshots/testsuite/const.wast/610.print +++ b/tests/snapshots/testsuite/const.wast/610.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+600 (;=4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/612.print b/tests/snapshots/testsuite/const.wast/612.print index f7c5a47947..73b802768d 100644 --- a/tests/snapshots/testsuite/const.wast/612.print +++ b/tests/snapshots/testsuite/const.wast/612.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+600 (;=-4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/614.print b/tests/snapshots/testsuite/const.wast/614.print index fa9542b234..f7cb86a5a8 100644 --- a/tests/snapshots/testsuite/const.wast/614.print +++ b/tests/snapshots/testsuite/const.wast/614.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+600 (;=4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/616.print b/tests/snapshots/testsuite/const.wast/616.print index f7c5a47947..73b802768d 100644 --- a/tests/snapshots/testsuite/const.wast/616.print +++ b/tests/snapshots/testsuite/const.wast/616.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+600 (;=-4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/618.print b/tests/snapshots/testsuite/const.wast/618.print index fa9542b234..f7cb86a5a8 100644 --- a/tests/snapshots/testsuite/const.wast/618.print +++ b/tests/snapshots/testsuite/const.wast/618.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+600 (;=4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/620.print b/tests/snapshots/testsuite/const.wast/620.print index f7c5a47947..73b802768d 100644 --- a/tests/snapshots/testsuite/const.wast/620.print +++ b/tests/snapshots/testsuite/const.wast/620.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+600 (;=-4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/622.print b/tests/snapshots/testsuite/const.wast/622.print index fa9542b234..f7cb86a5a8 100644 --- a/tests/snapshots/testsuite/const.wast/622.print +++ b/tests/snapshots/testsuite/const.wast/622.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+600 (;=4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/624.print b/tests/snapshots/testsuite/const.wast/624.print index f7c5a47947..73b802768d 100644 --- a/tests/snapshots/testsuite/const.wast/624.print +++ b/tests/snapshots/testsuite/const.wast/624.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+600 (;=-4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/626.print b/tests/snapshots/testsuite/const.wast/626.print index fa9542b234..f7cb86a5a8 100644 --- a/tests/snapshots/testsuite/const.wast/626.print +++ b/tests/snapshots/testsuite/const.wast/626.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+600 (;=4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/628.print b/tests/snapshots/testsuite/const.wast/628.print index f7c5a47947..73b802768d 100644 --- a/tests/snapshots/testsuite/const.wast/628.print +++ b/tests/snapshots/testsuite/const.wast/628.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+600 (;=-4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/630.print b/tests/snapshots/testsuite/const.wast/630.print index fa9542b234..f7cb86a5a8 100644 --- a/tests/snapshots/testsuite/const.wast/630.print +++ b/tests/snapshots/testsuite/const.wast/630.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+600 (;=4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/632.print b/tests/snapshots/testsuite/const.wast/632.print index f7c5a47947..73b802768d 100644 --- a/tests/snapshots/testsuite/const.wast/632.print +++ b/tests/snapshots/testsuite/const.wast/632.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+600 (;=-4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/634.print b/tests/snapshots/testsuite/const.wast/634.print index fa9542b234..f7cb86a5a8 100644 --- a/tests/snapshots/testsuite/const.wast/634.print +++ b/tests/snapshots/testsuite/const.wast/634.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+600 (;=4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/636.print b/tests/snapshots/testsuite/const.wast/636.print index f7c5a47947..73b802768d 100644 --- a/tests/snapshots/testsuite/const.wast/636.print +++ b/tests/snapshots/testsuite/const.wast/636.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+600 (;=-4149515568880995000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/638.print b/tests/snapshots/testsuite/const.wast/638.print index 24bbd1cef2..d15a5748b6 100644 --- a/tests/snapshots/testsuite/const.wast/638.print +++ b/tests/snapshots/testsuite/const.wast/638.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000003p+600 (;=4149515568880996000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/640.print b/tests/snapshots/testsuite/const.wast/640.print index e0f463ccdc..57821f7ba4 100644 --- a/tests/snapshots/testsuite/const.wast/640.print +++ b/tests/snapshots/testsuite/const.wast/640.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000003p+600 (;=-4149515568880996000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/642.print b/tests/snapshots/testsuite/const.wast/642.print index 4823cdcbb0..ff55dded73 100644 --- a/tests/snapshots/testsuite/const.wast/642.print +++ b/tests/snapshots/testsuite/const.wast/642.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1p+97 (;=158456325028528680000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/644.print b/tests/snapshots/testsuite/const.wast/644.print index 24c3ae5be2..acf31a9e7d 100644 --- a/tests/snapshots/testsuite/const.wast/644.print +++ b/tests/snapshots/testsuite/const.wast/644.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1p+97 (;=-158456325028528680000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/646.print b/tests/snapshots/testsuite/const.wast/646.print index c8dc1ebee2..9f61cd69d8 100644 --- a/tests/snapshots/testsuite/const.wast/646.print +++ b/tests/snapshots/testsuite/const.wast/646.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+97 (;=158456325028528700000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/648.print b/tests/snapshots/testsuite/const.wast/648.print index cffa6099bf..c84597160a 100644 --- a/tests/snapshots/testsuite/const.wast/648.print +++ b/tests/snapshots/testsuite/const.wast/648.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+97 (;=-158456325028528700000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/650.print b/tests/snapshots/testsuite/const.wast/650.print index c8dc1ebee2..9f61cd69d8 100644 --- a/tests/snapshots/testsuite/const.wast/650.print +++ b/tests/snapshots/testsuite/const.wast/650.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+97 (;=158456325028528700000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/652.print b/tests/snapshots/testsuite/const.wast/652.print index cffa6099bf..c84597160a 100644 --- a/tests/snapshots/testsuite/const.wast/652.print +++ b/tests/snapshots/testsuite/const.wast/652.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+97 (;=-158456325028528700000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/654.print b/tests/snapshots/testsuite/const.wast/654.print index c8dc1ebee2..9f61cd69d8 100644 --- a/tests/snapshots/testsuite/const.wast/654.print +++ b/tests/snapshots/testsuite/const.wast/654.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+97 (;=158456325028528700000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/656.print b/tests/snapshots/testsuite/const.wast/656.print index cffa6099bf..c84597160a 100644 --- a/tests/snapshots/testsuite/const.wast/656.print +++ b/tests/snapshots/testsuite/const.wast/656.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+97 (;=-158456325028528700000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/658.print b/tests/snapshots/testsuite/const.wast/658.print index c8dc1ebee2..9f61cd69d8 100644 --- a/tests/snapshots/testsuite/const.wast/658.print +++ b/tests/snapshots/testsuite/const.wast/658.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+97 (;=158456325028528700000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/660.print b/tests/snapshots/testsuite/const.wast/660.print index cffa6099bf..c84597160a 100644 --- a/tests/snapshots/testsuite/const.wast/660.print +++ b/tests/snapshots/testsuite/const.wast/660.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+97 (;=-158456325028528700000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/662.print b/tests/snapshots/testsuite/const.wast/662.print index c8dc1ebee2..9f61cd69d8 100644 --- a/tests/snapshots/testsuite/const.wast/662.print +++ b/tests/snapshots/testsuite/const.wast/662.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+97 (;=158456325028528700000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/664.print b/tests/snapshots/testsuite/const.wast/664.print index cffa6099bf..c84597160a 100644 --- a/tests/snapshots/testsuite/const.wast/664.print +++ b/tests/snapshots/testsuite/const.wast/664.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+97 (;=-158456325028528700000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/666.print b/tests/snapshots/testsuite/const.wast/666.print index 68e62cc4fd..f0a941a95a 100644 --- a/tests/snapshots/testsuite/const.wast/666.print +++ b/tests/snapshots/testsuite/const.wast/666.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+97 (;=158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/668.print b/tests/snapshots/testsuite/const.wast/668.print index 946c399438..be7608c989 100644 --- a/tests/snapshots/testsuite/const.wast/668.print +++ b/tests/snapshots/testsuite/const.wast/668.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+97 (;=-158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/670.print b/tests/snapshots/testsuite/const.wast/670.print index 68e62cc4fd..f0a941a95a 100644 --- a/tests/snapshots/testsuite/const.wast/670.print +++ b/tests/snapshots/testsuite/const.wast/670.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+97 (;=158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/672.print b/tests/snapshots/testsuite/const.wast/672.print index 946c399438..be7608c989 100644 --- a/tests/snapshots/testsuite/const.wast/672.print +++ b/tests/snapshots/testsuite/const.wast/672.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+97 (;=-158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/674.print b/tests/snapshots/testsuite/const.wast/674.print index 68e62cc4fd..f0a941a95a 100644 --- a/tests/snapshots/testsuite/const.wast/674.print +++ b/tests/snapshots/testsuite/const.wast/674.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+97 (;=158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/676.print b/tests/snapshots/testsuite/const.wast/676.print index 946c399438..be7608c989 100644 --- a/tests/snapshots/testsuite/const.wast/676.print +++ b/tests/snapshots/testsuite/const.wast/676.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+97 (;=-158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/678.print b/tests/snapshots/testsuite/const.wast/678.print index 68e62cc4fd..f0a941a95a 100644 --- a/tests/snapshots/testsuite/const.wast/678.print +++ b/tests/snapshots/testsuite/const.wast/678.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+97 (;=158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/680.print b/tests/snapshots/testsuite/const.wast/680.print index 946c399438..be7608c989 100644 --- a/tests/snapshots/testsuite/const.wast/680.print +++ b/tests/snapshots/testsuite/const.wast/680.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+97 (;=-158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/682.print b/tests/snapshots/testsuite/const.wast/682.print index 68e62cc4fd..f0a941a95a 100644 --- a/tests/snapshots/testsuite/const.wast/682.print +++ b/tests/snapshots/testsuite/const.wast/682.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+97 (;=158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/684.print b/tests/snapshots/testsuite/const.wast/684.print index 946c399438..be7608c989 100644 --- a/tests/snapshots/testsuite/const.wast/684.print +++ b/tests/snapshots/testsuite/const.wast/684.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+97 (;=-158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/686.print b/tests/snapshots/testsuite/const.wast/686.print index 68e62cc4fd..f0a941a95a 100644 --- a/tests/snapshots/testsuite/const.wast/686.print +++ b/tests/snapshots/testsuite/const.wast/686.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+97 (;=158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/688.print b/tests/snapshots/testsuite/const.wast/688.print index 946c399438..be7608c989 100644 --- a/tests/snapshots/testsuite/const.wast/688.print +++ b/tests/snapshots/testsuite/const.wast/688.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+97 (;=-158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/690.print b/tests/snapshots/testsuite/const.wast/690.print index 68e62cc4fd..f0a941a95a 100644 --- a/tests/snapshots/testsuite/const.wast/690.print +++ b/tests/snapshots/testsuite/const.wast/690.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+97 (;=158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/692.print b/tests/snapshots/testsuite/const.wast/692.print index 946c399438..be7608c989 100644 --- a/tests/snapshots/testsuite/const.wast/692.print +++ b/tests/snapshots/testsuite/const.wast/692.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+97 (;=-158456325028528750000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/694.print b/tests/snapshots/testsuite/const.wast/694.print index 1de5af53fc..7f23d605d4 100644 --- a/tests/snapshots/testsuite/const.wast/694.print +++ b/tests/snapshots/testsuite/const.wast/694.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000003p+97 (;=158456325028528780000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/696.print b/tests/snapshots/testsuite/const.wast/696.print index 2dfa9502c5..41060e148e 100644 --- a/tests/snapshots/testsuite/const.wast/696.print +++ b/tests/snapshots/testsuite/const.wast/696.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000003p+97 (;=-158456325028528780000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/698.print b/tests/snapshots/testsuite/const.wast/698.print index 644d54f692..8e98d175e1 100644 --- a/tests/snapshots/testsuite/const.wast/698.print +++ b/tests/snapshots/testsuite/const.wast/698.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1p+60 (;=1152921504606847000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/700.print b/tests/snapshots/testsuite/const.wast/700.print index 7338087468..2c249647eb 100644 --- a/tests/snapshots/testsuite/const.wast/700.print +++ b/tests/snapshots/testsuite/const.wast/700.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1p+60 (;=-1152921504606847000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/702.print b/tests/snapshots/testsuite/const.wast/702.print index b6f1c2754a..9b49e71953 100644 --- a/tests/snapshots/testsuite/const.wast/702.print +++ b/tests/snapshots/testsuite/const.wast/702.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+60 (;=1152921504606847200;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/704.print b/tests/snapshots/testsuite/const.wast/704.print index bb9e5c2377..5d955f20d7 100644 --- a/tests/snapshots/testsuite/const.wast/704.print +++ b/tests/snapshots/testsuite/const.wast/704.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+60 (;=-1152921504606847200;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/706.print b/tests/snapshots/testsuite/const.wast/706.print index b6f1c2754a..9b49e71953 100644 --- a/tests/snapshots/testsuite/const.wast/706.print +++ b/tests/snapshots/testsuite/const.wast/706.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+60 (;=1152921504606847200;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/708.print b/tests/snapshots/testsuite/const.wast/708.print index bb9e5c2377..5d955f20d7 100644 --- a/tests/snapshots/testsuite/const.wast/708.print +++ b/tests/snapshots/testsuite/const.wast/708.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+60 (;=-1152921504606847200;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/710.print b/tests/snapshots/testsuite/const.wast/710.print index c4b696f329..ee2960371d 100644 --- a/tests/snapshots/testsuite/const.wast/710.print +++ b/tests/snapshots/testsuite/const.wast/710.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+60 (;=1152921504606847500;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/712.print b/tests/snapshots/testsuite/const.wast/712.print index aa925346b2..0b25a85853 100644 --- a/tests/snapshots/testsuite/const.wast/712.print +++ b/tests/snapshots/testsuite/const.wast/712.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+60 (;=-1152921504606847500;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/714.print b/tests/snapshots/testsuite/const.wast/714.print index db8305702c..60b366369b 100644 --- a/tests/snapshots/testsuite/const.wast/714.print +++ b/tests/snapshots/testsuite/const.wast/714.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x0p+0 (;=0;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/716.print b/tests/snapshots/testsuite/const.wast/716.print index 9370f6e0c7..28b241c465 100644 --- a/tests/snapshots/testsuite/const.wast/716.print +++ b/tests/snapshots/testsuite/const.wast/716.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x0p+0 (;=-0;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/718.print b/tests/snapshots/testsuite/const.wast/718.print index 9728e5e96e..ebb1d27e50 100644 --- a/tests/snapshots/testsuite/const.wast/718.print +++ b/tests/snapshots/testsuite/const.wast/718.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1074 (;=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/720.print b/tests/snapshots/testsuite/const.wast/720.print index 49538ab6e2..2100815dbe 100644 --- a/tests/snapshots/testsuite/const.wast/720.print +++ b/tests/snapshots/testsuite/const.wast/720.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1074 (;=-0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/722.print b/tests/snapshots/testsuite/const.wast/722.print index 9728e5e96e..ebb1d27e50 100644 --- a/tests/snapshots/testsuite/const.wast/722.print +++ b/tests/snapshots/testsuite/const.wast/722.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1074 (;=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/724.print b/tests/snapshots/testsuite/const.wast/724.print index 49538ab6e2..2100815dbe 100644 --- a/tests/snapshots/testsuite/const.wast/724.print +++ b/tests/snapshots/testsuite/const.wast/724.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1074 (;=-0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/726.print b/tests/snapshots/testsuite/const.wast/726.print index 9728e5e96e..ebb1d27e50 100644 --- a/tests/snapshots/testsuite/const.wast/726.print +++ b/tests/snapshots/testsuite/const.wast/726.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1074 (;=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/728.print b/tests/snapshots/testsuite/const.wast/728.print index 49538ab6e2..2100815dbe 100644 --- a/tests/snapshots/testsuite/const.wast/728.print +++ b/tests/snapshots/testsuite/const.wast/728.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1074 (;=-0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/730.print b/tests/snapshots/testsuite/const.wast/730.print index 9728e5e96e..ebb1d27e50 100644 --- a/tests/snapshots/testsuite/const.wast/730.print +++ b/tests/snapshots/testsuite/const.wast/730.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1074 (;=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/732.print b/tests/snapshots/testsuite/const.wast/732.print index 49538ab6e2..2100815dbe 100644 --- a/tests/snapshots/testsuite/const.wast/732.print +++ b/tests/snapshots/testsuite/const.wast/732.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1074 (;=-0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/734.print b/tests/snapshots/testsuite/const.wast/734.print index 9728e5e96e..ebb1d27e50 100644 --- a/tests/snapshots/testsuite/const.wast/734.print +++ b/tests/snapshots/testsuite/const.wast/734.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1074 (;=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/736.print b/tests/snapshots/testsuite/const.wast/736.print index 49538ab6e2..2100815dbe 100644 --- a/tests/snapshots/testsuite/const.wast/736.print +++ b/tests/snapshots/testsuite/const.wast/736.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1074 (;=-0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/738.print b/tests/snapshots/testsuite/const.wast/738.print index 74610f98f7..b73f9ab2a5 100644 --- a/tests/snapshots/testsuite/const.wast/738.print +++ b/tests/snapshots/testsuite/const.wast/738.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1073 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/740.print b/tests/snapshots/testsuite/const.wast/740.print index c1b7d6eeec..3554ebbd9d 100644 --- a/tests/snapshots/testsuite/const.wast/740.print +++ b/tests/snapshots/testsuite/const.wast/740.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1073 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/742.print b/tests/snapshots/testsuite/const.wast/742.print index 74610f98f7..b73f9ab2a5 100644 --- a/tests/snapshots/testsuite/const.wast/742.print +++ b/tests/snapshots/testsuite/const.wast/742.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1073 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/744.print b/tests/snapshots/testsuite/const.wast/744.print index c1b7d6eeec..3554ebbd9d 100644 --- a/tests/snapshots/testsuite/const.wast/744.print +++ b/tests/snapshots/testsuite/const.wast/744.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1073 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/746.print b/tests/snapshots/testsuite/const.wast/746.print index 74610f98f7..b73f9ab2a5 100644 --- a/tests/snapshots/testsuite/const.wast/746.print +++ b/tests/snapshots/testsuite/const.wast/746.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1073 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/748.print b/tests/snapshots/testsuite/const.wast/748.print index c1b7d6eeec..3554ebbd9d 100644 --- a/tests/snapshots/testsuite/const.wast/748.print +++ b/tests/snapshots/testsuite/const.wast/748.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1073 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/750.print b/tests/snapshots/testsuite/const.wast/750.print index 74610f98f7..b73f9ab2a5 100644 --- a/tests/snapshots/testsuite/const.wast/750.print +++ b/tests/snapshots/testsuite/const.wast/750.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1073 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/752.print b/tests/snapshots/testsuite/const.wast/752.print index c1b7d6eeec..3554ebbd9d 100644 --- a/tests/snapshots/testsuite/const.wast/752.print +++ b/tests/snapshots/testsuite/const.wast/752.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1073 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/754.print b/tests/snapshots/testsuite/const.wast/754.print index 74610f98f7..b73f9ab2a5 100644 --- a/tests/snapshots/testsuite/const.wast/754.print +++ b/tests/snapshots/testsuite/const.wast/754.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1073 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/756.print b/tests/snapshots/testsuite/const.wast/756.print index c1b7d6eeec..3554ebbd9d 100644 --- a/tests/snapshots/testsuite/const.wast/756.print +++ b/tests/snapshots/testsuite/const.wast/756.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1073 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/758.print b/tests/snapshots/testsuite/const.wast/758.print index 74610f98f7..b73f9ab2a5 100644 --- a/tests/snapshots/testsuite/const.wast/758.print +++ b/tests/snapshots/testsuite/const.wast/758.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1073 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/760.print b/tests/snapshots/testsuite/const.wast/760.print index c1b7d6eeec..3554ebbd9d 100644 --- a/tests/snapshots/testsuite/const.wast/760.print +++ b/tests/snapshots/testsuite/const.wast/760.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1073 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/762.print b/tests/snapshots/testsuite/const.wast/762.print index 74610f98f7..b73f9ab2a5 100644 --- a/tests/snapshots/testsuite/const.wast/762.print +++ b/tests/snapshots/testsuite/const.wast/762.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.p-1073 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/764.print b/tests/snapshots/testsuite/const.wast/764.print index c1b7d6eeec..3554ebbd9d 100644 --- a/tests/snapshots/testsuite/const.wast/764.print +++ b/tests/snapshots/testsuite/const.wast/764.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.p-1073 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/766.print b/tests/snapshots/testsuite/const.wast/766.print index 12e793ae15..45b33c175d 100644 --- a/tests/snapshots/testsuite/const.wast/766.print +++ b/tests/snapshots/testsuite/const.wast/766.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000003p-1022 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002225073858507203;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/768.print b/tests/snapshots/testsuite/const.wast/768.print index 012dd70107..c571f5ce87 100644 --- a/tests/snapshots/testsuite/const.wast/768.print +++ b/tests/snapshots/testsuite/const.wast/768.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000003p-1022 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002225073858507203;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/770.print b/tests/snapshots/testsuite/const.wast/770.print index 03d30917ea..47ce2a6943 100644 --- a/tests/snapshots/testsuite/const.wast/770.print +++ b/tests/snapshots/testsuite/const.wast/770.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.fffffffffffffp+1023 (;=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/772.print b/tests/snapshots/testsuite/const.wast/772.print index 18a838ed36..d99132d4e8 100644 --- a/tests/snapshots/testsuite/const.wast/772.print +++ b/tests/snapshots/testsuite/const.wast/772.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.fffffffffffffp+1023 (;=-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/774.print b/tests/snapshots/testsuite/const.wast/774.print index 03d30917ea..47ce2a6943 100644 --- a/tests/snapshots/testsuite/const.wast/774.print +++ b/tests/snapshots/testsuite/const.wast/774.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.fffffffffffffp+1023 (;=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/const.wast/776.print b/tests/snapshots/testsuite/const.wast/776.print index 18a838ed36..d99132d4e8 100644 --- a/tests/snapshots/testsuite/const.wast/776.print +++ b/tests/snapshots/testsuite/const.wast/776.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.fffffffffffffp+1023 (;=-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/conversions.wast/0.print b/tests/snapshots/testsuite/conversions.wast/0.print index e9bac4e1d9..d9fc2d6fab 100644 --- a/tests/snapshots/testsuite/conversions.wast/0.print +++ b/tests/snapshots/testsuite/conversions.wast/0.print @@ -11,6 +11,39 @@ (type (;9;) (func (param i64) (result f64))) (type (;10;) (func (param f32) (result f64))) (type (;11;) (func (param f64) (result f32))) + (export "i64.extend_i32_s" (func 0)) + (export "i64.extend_i32_u" (func 1)) + (export "i32.wrap_i64" (func 2)) + (export "i32.trunc_f32_s" (func 3)) + (export "i32.trunc_f32_u" (func 4)) + (export "i32.trunc_f64_s" (func 5)) + (export "i32.trunc_f64_u" (func 6)) + (export "i64.trunc_f32_s" (func 7)) + (export "i64.trunc_f32_u" (func 8)) + (export "i64.trunc_f64_s" (func 9)) + (export "i64.trunc_f64_u" (func 10)) + (export "i32.trunc_sat_f32_s" (func 11)) + (export "i32.trunc_sat_f32_u" (func 12)) + (export "i32.trunc_sat_f64_s" (func 13)) + (export "i32.trunc_sat_f64_u" (func 14)) + (export "i64.trunc_sat_f32_s" (func 15)) + (export "i64.trunc_sat_f32_u" (func 16)) + (export "i64.trunc_sat_f64_s" (func 17)) + (export "i64.trunc_sat_f64_u" (func 18)) + (export "f32.convert_i32_s" (func 19)) + (export "f32.convert_i64_s" (func 20)) + (export "f64.convert_i32_s" (func 21)) + (export "f64.convert_i64_s" (func 22)) + (export "f32.convert_i32_u" (func 23)) + (export "f32.convert_i64_u" (func 24)) + (export "f64.convert_i32_u" (func 25)) + (export "f64.convert_i64_u" (func 26)) + (export "f64.promote_f32" (func 27)) + (export "f32.demote_f64" (func 28)) + (export "f32.reinterpret_i32" (func 29)) + (export "f64.reinterpret_i64" (func 30)) + (export "i32.reinterpret_f32" (func 31)) + (export "i64.reinterpret_f64" (func 32)) (func (;0;) (type 0) (param $x i32) (result i64) local.get $x i64.extend_i32_s @@ -143,37 +176,4 @@ local.get $x i64.reinterpret_f64 ) - (export "i64.extend_i32_s" (func 0)) - (export "i64.extend_i32_u" (func 1)) - (export "i32.wrap_i64" (func 2)) - (export "i32.trunc_f32_s" (func 3)) - (export "i32.trunc_f32_u" (func 4)) - (export "i32.trunc_f64_s" (func 5)) - (export "i32.trunc_f64_u" (func 6)) - (export "i64.trunc_f32_s" (func 7)) - (export "i64.trunc_f32_u" (func 8)) - (export "i64.trunc_f64_s" (func 9)) - (export "i64.trunc_f64_u" (func 10)) - (export "i32.trunc_sat_f32_s" (func 11)) - (export "i32.trunc_sat_f32_u" (func 12)) - (export "i32.trunc_sat_f64_s" (func 13)) - (export "i32.trunc_sat_f64_u" (func 14)) - (export "i64.trunc_sat_f32_s" (func 15)) - (export "i64.trunc_sat_f32_u" (func 16)) - (export "i64.trunc_sat_f64_s" (func 17)) - (export "i64.trunc_sat_f64_u" (func 18)) - (export "f32.convert_i32_s" (func 19)) - (export "f32.convert_i64_s" (func 20)) - (export "f64.convert_i32_s" (func 21)) - (export "f64.convert_i64_s" (func 22)) - (export "f32.convert_i32_u" (func 23)) - (export "f32.convert_i64_u" (func 24)) - (export "f64.convert_i32_u" (func 25)) - (export "f64.convert_i64_u" (func 26)) - (export "f64.promote_f32" (func 27)) - (export "f32.demote_f64" (func 28)) - (export "f32.reinterpret_i32" (func 29)) - (export "f64.reinterpret_i64" (func 30)) - (export "i32.reinterpret_f32" (func 31)) - (export "i64.reinterpret_f64" (func 32)) ) diff --git a/tests/snapshots/testsuite/custom.wast/2.print b/tests/snapshots/testsuite/custom.wast/2.print index 69a27a3f7e..dfbeb1597c 100644 --- a/tests/snapshots/testsuite/custom.wast/2.print +++ b/tests/snapshots/testsuite/custom.wast/2.print @@ -1,11 +1,11 @@ (module (type (;0;) (func (param i32 i32) (result i32))) (@custom "custom" (after type) "this is the payload") + (export "addTwo" (func 0)) (func (;0;) (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 i32.add ) - (export "addTwo" (func 0)) (@custom "custom2" (after code) "this is the payload") ) diff --git a/tests/snapshots/testsuite/elem.wast/0.print b/tests/snapshots/testsuite/elem.wast/0.print index cfd9e1e289..3e45036cd8 100644 --- a/tests/snapshots/testsuite/elem.wast/0.print +++ b/tests/snapshots/testsuite/elem.wast/0.print @@ -1,7 +1,5 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 10 funcref) (elem (;0;) funcref) (elem (;1;) funcref (ref.func $f) (ref.func $f) (ref.null func) (ref.func $g)) @@ -64,4 +62,6 @@ (elem $d2 (;58;) declare funcref (ref.func $f) (ref.func $f) (ref.null func) (ref.func $g)) (elem $d3 (;59;) declare func) (elem $d4 (;60;) declare func $f $f $g $g) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/1.print b/tests/snapshots/testsuite/elem.wast/1.print index 80603750ee..21462afadc 100644 --- a/tests/snapshots/testsuite/elem.wast/1.print +++ b/tests/snapshots/testsuite/elem.wast/1.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 3 3 funcref) (elem (;0;) (i32.const 0) funcref (ref.func $f) (ref.null func) (ref.func $g)) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/11.print b/tests/snapshots/testsuite/elem.wast/11.print index af187450f7..c2f37af59b 100644 --- a/tests/snapshots/testsuite/elem.wast/11.print +++ b/tests/snapshots/testsuite/elem.wast/11.print @@ -1,5 +1,10 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 11 funcref) + (export "call-7" (func 2)) + (export "call-9" (func 3)) + (elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a)) + (elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func)) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -14,9 +19,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 11 funcref) - (export "call-7" (func 2)) - (export "call-9" (func 3)) - (elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a)) - (elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func)) ) diff --git a/tests/snapshots/testsuite/elem.wast/16.print b/tests/snapshots/testsuite/elem.wast/16.print index 1036785ea1..0ff426ccf4 100644 --- a/tests/snapshots/testsuite/elem.wast/16.print +++ b/tests/snapshots/testsuite/elem.wast/16.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/17.print b/tests/snapshots/testsuite/elem.wast/17.print index 0598af2315..cede495716 100644 --- a/tests/snapshots/testsuite/elem.wast/17.print +++ b/tests/snapshots/testsuite/elem.wast/17.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/2.print b/tests/snapshots/testsuite/elem.wast/2.print index 8742f0998f..e4d89860d7 100644 --- a/tests/snapshots/testsuite/elem.wast/2.print +++ b/tests/snapshots/testsuite/elem.wast/2.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/22.print b/tests/snapshots/testsuite/elem.wast/22.print index 689d51c8e5..c3a0516a05 100644 --- a/tests/snapshots/testsuite/elem.wast/22.print +++ b/tests/snapshots/testsuite/elem.wast/22.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/23.print b/tests/snapshots/testsuite/elem.wast/23.print index 91f122086a..ac71e6c1fa 100644 --- a/tests/snapshots/testsuite/elem.wast/23.print +++ b/tests/snapshots/testsuite/elem.wast/23.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 100 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/24.print b/tests/snapshots/testsuite/elem.wast/24.print index 016199a256..f7a2bf5894 100644 --- a/tests/snapshots/testsuite/elem.wast/24.print +++ b/tests/snapshots/testsuite/elem.wast/24.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 1) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/25.print b/tests/snapshots/testsuite/elem.wast/25.print index 6fd3ef6a92..31a035fc64 100644 --- a/tests/snapshots/testsuite/elem.wast/25.print +++ b/tests/snapshots/testsuite/elem.wast/25.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 30 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 1) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/3.print b/tests/snapshots/testsuite/elem.wast/3.print index e932b67331..0b5ef9c184 100644 --- a/tests/snapshots/testsuite/elem.wast/3.print +++ b/tests/snapshots/testsuite/elem.wast/3.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/38.print b/tests/snapshots/testsuite/elem.wast/38.print index 4176dfb406..019e8e94d5 100644 --- a/tests/snapshots/testsuite/elem.wast/38.print +++ b/tests/snapshots/testsuite/elem.wast/38.print @@ -1,5 +1,8 @@ (module (type (;0;) (func)) + (table (;0;) 10 funcref) + (export "init" (func 1)) + (elem $e (;0;) (i32.const 0) func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -7,7 +10,4 @@ i32.const 1 table.init $e ) - (table (;0;) 10 funcref) - (export "init" (func 1)) - (elem $e (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/elem.wast/4.print b/tests/snapshots/testsuite/elem.wast/4.print index 7ec65dcffb..f3742f6da7 100644 --- a/tests/snapshots/testsuite/elem.wast/4.print +++ b/tests/snapshots/testsuite/elem.wast/4.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 0) func $f) (elem (;1;) (i32.const 3) func $f) (elem (;2;) (i32.const 7) func $f) (elem (;3;) (i32.const 5) func $f) (elem (;4;) (i32.const 3) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/40.print b/tests/snapshots/testsuite/elem.wast/40.print index ea36739cb4..7c136d3305 100644 --- a/tests/snapshots/testsuite/elem.wast/40.print +++ b/tests/snapshots/testsuite/elem.wast/40.print @@ -1,5 +1,8 @@ (module (type (;0;) (func)) + (table (;0;) 10 funcref) + (export "init" (func 1)) + (elem $e (;0;) declare func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -7,7 +10,4 @@ i32.const 1 table.init $e ) - (table (;0;) 10 funcref) - (export "init" (func 1)) - (elem $e (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/elem.wast/5.print b/tests/snapshots/testsuite/elem.wast/5.print index 107f8e49e9..8dddf1ec50 100644 --- a/tests/snapshots/testsuite/elem.wast/5.print +++ b/tests/snapshots/testsuite/elem.wast/5.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) (elem (;1;) (i32.const 3) func $f) (elem (;2;) (i32.const 7) func $f) (elem (;3;) (i32.const 3) func $f) (elem (;4;) (i32.const 5) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/6.print b/tests/snapshots/testsuite/elem.wast/6.print index c1e1f7bb60..a0fc1f553a 100644 --- a/tests/snapshots/testsuite/elem.wast/6.print +++ b/tests/snapshots/testsuite/elem.wast/6.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) (import "spectest" "global_i32" (global (;0;) i32)) - (func $f (;0;) (type 0)) (table (;0;) 1000 funcref) (elem (;0;) (global.get 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/62.print b/tests/snapshots/testsuite/elem.wast/62.print index 731f09400d..7de0f1cd97 100644 --- a/tests/snapshots/testsuite/elem.wast/62.print +++ b/tests/snapshots/testsuite/elem.wast/62.print @@ -1,5 +1,9 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "call-overwritten" (func 2)) + (elem (;0;) (i32.const 9) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -10,8 +14,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call-overwritten" (func 2)) - (elem (;0;) (i32.const 9) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/elem.wast/64.print b/tests/snapshots/testsuite/elem.wast/64.print index 0f8475a309..4f81cc2d61 100644 --- a/tests/snapshots/testsuite/elem.wast/64.print +++ b/tests/snapshots/testsuite/elem.wast/64.print @@ -1,6 +1,9 @@ (module (type $out-i32 (;0;) (func (result i32))) (import "spectest" "table" (table (;0;) 10 funcref)) + (export "call-overwritten-element" (func 2)) + (elem (;0;) (i32.const 9) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -11,7 +14,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (export "call-overwritten-element" (func 2)) - (elem (;0;) (i32.const 9) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/elem.wast/66.print b/tests/snapshots/testsuite/elem.wast/66.print index a15bdac62f..c507078bb1 100644 --- a/tests/snapshots/testsuite/elem.wast/66.print +++ b/tests/snapshots/testsuite/elem.wast/66.print @@ -1,5 +1,12 @@ (module $module1 (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "shared-table" (table 0)) + (export "call-7" (func 2)) + (export "call-8" (func 3)) + (export "call-9" (func 4)) + (elem (;0;) (i32.const 8) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -18,11 +25,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "shared-table" (table 0)) - (export "call-7" (func 2)) - (export "call-8" (func 3)) - (export "call-9" (func 4)) - (elem (;0;) (i32.const 8) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/elem.wast/7.print b/tests/snapshots/testsuite/elem.wast/7.print index d9740764aa..bacc6c8181 100644 --- a/tests/snapshots/testsuite/elem.wast/7.print +++ b/tests/snapshots/testsuite/elem.wast/7.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) (import "spectest" "global_i32" (global $g (;0;) i32)) - (func $f (;0;) (type 0)) (table (;0;) 1000 funcref) (elem (;0;) (global.get $g) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/71.print b/tests/snapshots/testsuite/elem.wast/71.print index 1a2c3eac24..a42e074452 100644 --- a/tests/snapshots/testsuite/elem.wast/71.print +++ b/tests/snapshots/testsuite/elem.wast/71.print @@ -1,12 +1,12 @@ (module $module2 (type $out-i32 (;0;) (func (result i32))) (import "module1" "shared-table" (table (;0;) 10 funcref)) + (elem (;0;) (i32.const 7) func $const-i32-c) + (elem (;1;) (i32.const 8) func $const-i32-d) (func $const-i32-c (;0;) (type $out-i32) (result i32) i32.const 67 ) (func $const-i32-d (;1;) (type $out-i32) (result i32) i32.const 68 ) - (elem (;0;) (i32.const 7) func $const-i32-c) - (elem (;1;) (i32.const 8) func $const-i32-d) ) diff --git a/tests/snapshots/testsuite/elem.wast/75.print b/tests/snapshots/testsuite/elem.wast/75.print index 050fba0094..6789cf7c21 100644 --- a/tests/snapshots/testsuite/elem.wast/75.print +++ b/tests/snapshots/testsuite/elem.wast/75.print @@ -1,12 +1,12 @@ (module $module3 (type $out-i32 (;0;) (func (result i32))) (import "module1" "shared-table" (table (;0;) 10 funcref)) + (elem (;0;) (i32.const 8) func $const-i32-e) + (elem (;1;) (i32.const 9) func $const-i32-f) (func $const-i32-e (;0;) (type $out-i32) (result i32) i32.const 69 ) (func $const-i32-f (;1;) (type $out-i32) (result i32) i32.const 70 ) - (elem (;0;) (i32.const 8) func $const-i32-e) - (elem (;1;) (i32.const 9) func $const-i32-f) ) diff --git a/tests/snapshots/testsuite/elem.wast/8.print b/tests/snapshots/testsuite/elem.wast/8.print index 5e224c4ddf..0fc85614cb 100644 --- a/tests/snapshots/testsuite/elem.wast/8.print +++ b/tests/snapshots/testsuite/elem.wast/8.print @@ -1,5 +1,10 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "call-7" (func 2)) + (export "call-9" (func 3)) + (elem (;0;) (i32.const 7) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -14,9 +19,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call-7" (func 2)) - (export "call-9" (func 3)) - (elem (;0;) (i32.const 7) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/elem.wast/83.print b/tests/snapshots/testsuite/elem.wast/83.print index 5345072664..92a31401e3 100644 --- a/tests/snapshots/testsuite/elem.wast/83.print +++ b/tests/snapshots/testsuite/elem.wast/83.print @@ -1,6 +1,10 @@ (module $m (type (;0;) (func (param i32) (result externref))) (type (;1;) (func (param i32 externref))) + (table $t (;0;) 2 externref) + (export "table" (table $t)) + (export "get" (func 0)) + (export "set" (func 1)) (func (;0;) (type 0) (param $i i32) (result externref) local.get $i table.get $t @@ -10,8 +14,4 @@ local.get $x table.set $t ) - (table $t (;0;) 2 externref) - (export "table" (table $t)) - (export "get" (func 0)) - (export "set" (func 1)) ) diff --git a/tests/snapshots/testsuite/elem.wast/94.print b/tests/snapshots/testsuite/elem.wast/94.print index ae97b235a4..f6c3e3683d 100644 --- a/tests/snapshots/testsuite/elem.wast/94.print +++ b/tests/snapshots/testsuite/elem.wast/94.print @@ -1,8 +1,8 @@ (module $module4 (type (;0;) (func (result i32))) + (global (;0;) funcref ref.func 0) + (export "f" (global 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) - (global (;0;) funcref ref.func 0) - (export "f" (global 0)) ) diff --git a/tests/snapshots/testsuite/elem.wast/96.print b/tests/snapshots/testsuite/elem.wast/96.print index f0fecff658..e491ba806f 100644 --- a/tests/snapshots/testsuite/elem.wast/96.print +++ b/tests/snapshots/testsuite/elem.wast/96.print @@ -1,11 +1,11 @@ (module (type $out-i32 (;0;) (func (result i32))) (import "module4" "f" (global (;0;) funcref)) + (table (;0;) 10 funcref) + (export "call_imported_elem" (func 0)) + (elem (;0;) (i32.const 0) funcref (global.get 0)) (func (;0;) (type $out-i32) (result i32) i32.const 0 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call_imported_elem" (func 0)) - (elem (;0;) (i32.const 0) funcref (global.get 0)) ) diff --git a/tests/snapshots/testsuite/endianness.wast/0.print b/tests/snapshots/testsuite/endianness.wast/0.print index f38c6af50d..42b4a5d6a8 100644 --- a/tests/snapshots/testsuite/endianness.wast/0.print +++ b/tests/snapshots/testsuite/endianness.wast/0.print @@ -6,6 +6,24 @@ (type (;4;) (func (param i64) (result i64))) (type (;5;) (func (param f32) (result f32))) (type (;6;) (func (param f64) (result f64))) + (memory (;0;) 1) + (export "i32_load16_s" (func 6)) + (export "i32_load16_u" (func 7)) + (export "i32_load" (func 8)) + (export "i64_load16_s" (func 9)) + (export "i64_load16_u" (func 10)) + (export "i64_load32_s" (func 11)) + (export "i64_load32_u" (func 12)) + (export "i64_load" (func 13)) + (export "f32_load" (func 14)) + (export "f64_load" (func 15)) + (export "i32_store16" (func 16)) + (export "i32_store" (func 17)) + (export "i64_store16" (func 18)) + (export "i64_store32" (func 19)) + (export "i64_store" (func 20)) + (export "f32_store" (func 21)) + (export "f64_store" (func 22)) (func $i16_store_little (;0;) (type 0) (param $address i32) (param $value i32) local.get $address local.get $value @@ -208,22 +226,4 @@ call $i64_load_little f64.reinterpret_i64 ) - (memory (;0;) 1) - (export "i32_load16_s" (func 6)) - (export "i32_load16_u" (func 7)) - (export "i32_load" (func 8)) - (export "i64_load16_s" (func 9)) - (export "i64_load16_u" (func 10)) - (export "i64_load32_s" (func 11)) - (export "i64_load32_u" (func 12)) - (export "i64_load" (func 13)) - (export "f32_load" (func 14)) - (export "f64_load" (func 15)) - (export "i32_store16" (func 16)) - (export "i32_store" (func 17)) - (export "i64_store16" (func 18)) - (export "i64_store32" (func 19)) - (export "i64_store" (func 20)) - (export "f32_store" (func 21)) - (export "f64_store" (func 22)) ) diff --git a/tests/snapshots/testsuite/exports.wast/0.print b/tests/snapshots/testsuite/exports.wast/0.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/exports.wast/0.print +++ b/tests/snapshots/testsuite/exports.wast/0.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/exports.wast/1.print b/tests/snapshots/testsuite/exports.wast/1.print index 0e6650207b..edafa1a61f 100644 --- a/tests/snapshots/testsuite/exports.wast/1.print +++ b/tests/snapshots/testsuite/exports.wast/1.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) (export "b" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/exports.wast/10.print b/tests/snapshots/testsuite/exports.wast/10.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/exports.wast/10.print +++ b/tests/snapshots/testsuite/exports.wast/10.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/exports.wast/11.print b/tests/snapshots/testsuite/exports.wast/11.print index 25c740d656..b564b1964d 100644 --- a/tests/snapshots/testsuite/exports.wast/11.print +++ b/tests/snapshots/testsuite/exports.wast/11.print @@ -1,10 +1,10 @@ (module $Func (type (;0;) (func (param i32) (result i32))) + (export "e" (func $f)) (func $f (;0;) (type 0) (param $n i32) (result i32) local.get $n i32.const 1 i32.add return ) - (export "e" (func $f)) ) diff --git a/tests/snapshots/testsuite/exports.wast/17.print b/tests/snapshots/testsuite/exports.wast/17.print index adb60fae84..e2b67174f5 100644 --- a/tests/snapshots/testsuite/exports.wast/17.print +++ b/tests/snapshots/testsuite/exports.wast/17.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) - (func (;0;) (type 0) (result i32) - i32.const 42 - ) (export "a" (func 0)) (export "b" (func 0)) (export "c" (func 0)) + (func (;0;) (type 0) (result i32) + i32.const 42 + ) ) diff --git a/tests/snapshots/testsuite/exports.wast/2.print b/tests/snapshots/testsuite/exports.wast/2.print index 69eac22051..b139f8873b 100644 --- a/tests/snapshots/testsuite/exports.wast/2.print +++ b/tests/snapshots/testsuite/exports.wast/2.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) - (func (;1;) (type 0)) (export "a" (func 0)) (export "b" (func 1)) + (func (;0;) (type 0)) + (func (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/exports.wast/3.print b/tests/snapshots/testsuite/exports.wast/3.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/exports.wast/3.print +++ b/tests/snapshots/testsuite/exports.wast/3.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/exports.wast/4.print b/tests/snapshots/testsuite/exports.wast/4.print index cbaf870965..6852c7b4ce 100644 --- a/tests/snapshots/testsuite/exports.wast/4.print +++ b/tests/snapshots/testsuite/exports.wast/4.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) (export "b" (func 0)) (export "c" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/exports.wast/5.print b/tests/snapshots/testsuite/exports.wast/5.print index a74c1debd3..eadffaacbc 100644 --- a/tests/snapshots/testsuite/exports.wast/5.print +++ b/tests/snapshots/testsuite/exports.wast/5.print @@ -1,6 +1,6 @@ (module (type (;0;) (func (param i32))) - (func (;0;) (type 0) (param i32)) (export "a" (func 0)) (export "b" (func 0)) + (func (;0;) (type 0) (param i32)) ) diff --git a/tests/snapshots/testsuite/exports.wast/6.print b/tests/snapshots/testsuite/exports.wast/6.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/exports.wast/6.print +++ b/tests/snapshots/testsuite/exports.wast/6.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/exports.wast/7.print b/tests/snapshots/testsuite/exports.wast/7.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/exports.wast/7.print +++ b/tests/snapshots/testsuite/exports.wast/7.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/exports.wast/8.print b/tests/snapshots/testsuite/exports.wast/8.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/exports.wast/8.print +++ b/tests/snapshots/testsuite/exports.wast/8.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/exports.wast/9.print b/tests/snapshots/testsuite/exports.wast/9.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/exports.wast/9.print +++ b/tests/snapshots/testsuite/exports.wast/9.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/f32.wast/0.print b/tests/snapshots/testsuite/f32.wast/0.print index bd3bc71b76..35b12aeecb 100644 --- a/tests/snapshots/testsuite/f32.wast/0.print +++ b/tests/snapshots/testsuite/f32.wast/0.print @@ -1,6 +1,17 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f32) (result f32))) + (export "add" (func 0)) + (export "sub" (func 1)) + (export "mul" (func 2)) + (export "div" (func 3)) + (export "sqrt" (func 4)) + (export "min" (func 5)) + (export "max" (func 6)) + (export "ceil" (func 7)) + (export "floor" (func 8)) + (export "trunc" (func 9)) + (export "nearest" (func 10)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -51,15 +62,4 @@ local.get $x f32.nearest ) - (export "add" (func 0)) - (export "sub" (func 1)) - (export "mul" (func 2)) - (export "div" (func 3)) - (export "sqrt" (func 4)) - (export "min" (func 5)) - (export "max" (func 6)) - (export "ceil" (func 7)) - (export "floor" (func 8)) - (export "trunc" (func 9)) - (export "nearest" (func 10)) ) diff --git a/tests/snapshots/testsuite/f32_bitwise.wast/0.print b/tests/snapshots/testsuite/f32_bitwise.wast/0.print index 8a0189558c..cbe5ec9a57 100644 --- a/tests/snapshots/testsuite/f32_bitwise.wast/0.print +++ b/tests/snapshots/testsuite/f32_bitwise.wast/0.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f32 f32) (result f32))) + (export "abs" (func 0)) + (export "neg" (func 1)) + (export "copysign" (func 2)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.abs @@ -14,7 +17,4 @@ local.get $y f32.copysign ) - (export "abs" (func 0)) - (export "neg" (func 1)) - (export "copysign" (func 2)) ) diff --git a/tests/snapshots/testsuite/f32_cmp.wast/0.print b/tests/snapshots/testsuite/f32_cmp.wast/0.print index 9793d7c5bc..8f67250624 100644 --- a/tests/snapshots/testsuite/f32_cmp.wast/0.print +++ b/tests/snapshots/testsuite/f32_cmp.wast/0.print @@ -1,5 +1,11 @@ (module (type (;0;) (func (param f32 f32) (result i32))) + (export "eq" (func 0)) + (export "ne" (func 1)) + (export "lt" (func 2)) + (export "le" (func 3)) + (export "gt" (func 4)) + (export "ge" (func 5)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result i32) local.get $x local.get $y @@ -30,10 +36,4 @@ local.get $y f32.ge ) - (export "eq" (func 0)) - (export "ne" (func 1)) - (export "lt" (func 2)) - (export "le" (func 3)) - (export "gt" (func 4)) - (export "ge" (func 5)) ) diff --git a/tests/snapshots/testsuite/f64.wast/0.print b/tests/snapshots/testsuite/f64.wast/0.print index 111ca96a6c..dfd2c9becc 100644 --- a/tests/snapshots/testsuite/f64.wast/0.print +++ b/tests/snapshots/testsuite/f64.wast/0.print @@ -1,6 +1,17 @@ (module (type (;0;) (func (param f64 f64) (result f64))) (type (;1;) (func (param f64) (result f64))) + (export "add" (func 0)) + (export "sub" (func 1)) + (export "mul" (func 2)) + (export "div" (func 3)) + (export "sqrt" (func 4)) + (export "min" (func 5)) + (export "max" (func 6)) + (export "ceil" (func 7)) + (export "floor" (func 8)) + (export "trunc" (func 9)) + (export "nearest" (func 10)) (func (;0;) (type 0) (param $x f64) (param $y f64) (result f64) local.get $x local.get $y @@ -51,15 +62,4 @@ local.get $x f64.nearest ) - (export "add" (func 0)) - (export "sub" (func 1)) - (export "mul" (func 2)) - (export "div" (func 3)) - (export "sqrt" (func 4)) - (export "min" (func 5)) - (export "max" (func 6)) - (export "ceil" (func 7)) - (export "floor" (func 8)) - (export "trunc" (func 9)) - (export "nearest" (func 10)) ) diff --git a/tests/snapshots/testsuite/f64_bitwise.wast/0.print b/tests/snapshots/testsuite/f64_bitwise.wast/0.print index 5eb2e321bd..4ca32e5e2c 100644 --- a/tests/snapshots/testsuite/f64_bitwise.wast/0.print +++ b/tests/snapshots/testsuite/f64_bitwise.wast/0.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param f64) (result f64))) (type (;1;) (func (param f64 f64) (result f64))) + (export "abs" (func 0)) + (export "neg" (func 1)) + (export "copysign" (func 2)) (func (;0;) (type 0) (param $x f64) (result f64) local.get $x f64.abs @@ -14,7 +17,4 @@ local.get $y f64.copysign ) - (export "abs" (func 0)) - (export "neg" (func 1)) - (export "copysign" (func 2)) ) diff --git a/tests/snapshots/testsuite/f64_cmp.wast/0.print b/tests/snapshots/testsuite/f64_cmp.wast/0.print index 52c86b6630..3e70d3e72d 100644 --- a/tests/snapshots/testsuite/f64_cmp.wast/0.print +++ b/tests/snapshots/testsuite/f64_cmp.wast/0.print @@ -1,5 +1,11 @@ (module (type (;0;) (func (param f64 f64) (result i32))) + (export "eq" (func 0)) + (export "ne" (func 1)) + (export "lt" (func 2)) + (export "le" (func 3)) + (export "gt" (func 4)) + (export "ge" (func 5)) (func (;0;) (type 0) (param $x f64) (param $y f64) (result i32) local.get $x local.get $y @@ -30,10 +36,4 @@ local.get $y f64.ge ) - (export "eq" (func 0)) - (export "ne" (func 1)) - (export "lt" (func 2)) - (export "le" (func 3)) - (export "gt" (func 4)) - (export "ge" (func 5)) ) diff --git a/tests/snapshots/testsuite/fac.wast/0.print b/tests/snapshots/testsuite/fac.wast/0.print index 282e2853b8..84706bf73c 100644 --- a/tests/snapshots/testsuite/fac.wast/0.print +++ b/tests/snapshots/testsuite/fac.wast/0.print @@ -3,6 +3,12 @@ (type (;1;) (func (param i64) (result i64 i64))) (type (;2;) (func (param i64 i64) (result i64 i64 i64))) (type (;3;) (func (param i64 i64) (result i64))) + (export "fac-rec" (func 0)) + (export "fac-rec-named" (func $fac-rec-named)) + (export "fac-iter" (func 2)) + (export "fac-iter-named" (func 3)) + (export "fac-opt" (func 4)) + (export "fac-ssa" (func 7)) (func (;0;) (type 0) (param i64) (result i64) local.get 0 i64.const 0 @@ -142,10 +148,4 @@ return end ) - (export "fac-rec" (func 0)) - (export "fac-rec-named" (func $fac-rec-named)) - (export "fac-iter" (func 2)) - (export "fac-iter-named" (func 3)) - (export "fac-opt" (func 4)) - (export "fac-ssa" (func 7)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/0.print b/tests/snapshots/testsuite/float_exprs.wast/0.print index e1dd6b63e8..61e26c915a 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/0.print +++ b/tests/snapshots/testsuite/float_exprs.wast/0.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (param f64 f64 f64) (result f64))) + (export "f64.no_contraction" (func 0)) (func (;0;) (type 0) (param $x f64) (param $y f64) (param $z f64) (result f64) local.get $x local.get $y @@ -7,5 +8,4 @@ local.get $z f64.add ) - (export "f64.no_contraction" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/105.print b/tests/snapshots/testsuite/float_exprs.wast/105.print index dc0b2429f7..6a412f8954 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/105.print +++ b/tests/snapshots/testsuite/float_exprs.wast/105.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64) (result f64))) + (export "f32.no_distribute" (func 0)) + (export "f64.no_distribute" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ local.get $z f64.mul ) - (export "f32.no_distribute" (func 0)) - (export "f64.no_distribute" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/116.print b/tests/snapshots/testsuite/float_exprs.wast/116.print index fdf28fc4b9..52020eac2a 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/116.print +++ b/tests/snapshots/testsuite/float_exprs.wast/116.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64) (result f64))) + (export "f32.no_regroup_div_mul" (func 0)) + (export "f64.no_regroup_div_mul" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ f64.div f64.mul ) - (export "f32.no_regroup_div_mul" (func 0)) - (export "f64.no_regroup_div_mul" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/127.print b/tests/snapshots/testsuite/float_exprs.wast/127.print index 4421c2fde7..a799b50658 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/127.print +++ b/tests/snapshots/testsuite/float_exprs.wast/127.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64) (result f64))) + (export "f32.no_regroup_mul_div" (func 0)) + (export "f64.no_regroup_mul_div" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ local.get $z f64.div ) - (export "f32.no_regroup_mul_div" (func 0)) - (export "f64.no_regroup_mul_div" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/138.print b/tests/snapshots/testsuite/float_exprs.wast/138.print index b9e423d9e5..529d447a01 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/138.print +++ b/tests/snapshots/testsuite/float_exprs.wast/138.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64 f64) (result f64))) + (export "f32.no_reassociate_add" (func 0)) + (export "f64.no_reassociate_add" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (param $w f32) (result f32) local.get $x local.get $y @@ -19,6 +21,4 @@ local.get $w f64.add ) - (export "f32.no_reassociate_add" (func 0)) - (export "f64.no_reassociate_add" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/149.print b/tests/snapshots/testsuite/float_exprs.wast/149.print index 2016bbb4eb..b12ae96c49 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/149.print +++ b/tests/snapshots/testsuite/float_exprs.wast/149.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64 f64) (result f64))) + (export "f32.no_reassociate_mul" (func 0)) + (export "f64.no_reassociate_mul" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (param $w f32) (result f32) local.get $x local.get $y @@ -19,6 +21,4 @@ local.get $w f64.mul ) - (export "f32.no_reassociate_mul" (func 0)) - (export "f64.no_reassociate_mul" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/160.print b/tests/snapshots/testsuite/float_exprs.wast/160.print index 5359a99764..214dcfd4a3 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/160.print +++ b/tests/snapshots/testsuite/float_exprs.wast/160.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_div_0" (func 0)) + (export "f64.no_fold_div_0" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const 0x0p+0 (;=0;) @@ -11,6 +13,4 @@ f64.const 0x0p+0 (;=0;) f64.div ) - (export "f32.no_fold_div_0" (func 0)) - (export "f64.no_fold_div_0" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/17.print b/tests/snapshots/testsuite/float_exprs.wast/17.print index 43a3762548..c9ee6bb6fc 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/17.print +++ b/tests/snapshots/testsuite/float_exprs.wast/17.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_add_zero" (func 0)) + (export "f64.no_fold_add_zero" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const 0x0p+0 (;=0;) @@ -11,6 +13,4 @@ f64.const 0x0p+0 (;=0;) f64.add ) - (export "f32.no_fold_add_zero" (func 0)) - (export "f64.no_fold_add_zero" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/177.print b/tests/snapshots/testsuite/float_exprs.wast/177.print index a861d232d4..aaaedb8c0f 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/177.print +++ b/tests/snapshots/testsuite/float_exprs.wast/177.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_div_neg0" (func 0)) + (export "f64.no_fold_div_neg0" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const -0x0p+0 (;=-0;) @@ -11,6 +13,4 @@ f64.const -0x0p+0 (;=-0;) f64.div ) - (export "f32.no_fold_div_neg0" (func 0)) - (export "f64.no_fold_div_neg0" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/194.print b/tests/snapshots/testsuite/float_exprs.wast/194.print index 9a1e41724f..3e66903709 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/194.print +++ b/tests/snapshots/testsuite/float_exprs.wast/194.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_to_hypot" (func 0)) + (export "f64.no_fold_to_hypot" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $x @@ -21,6 +23,4 @@ f64.add f64.sqrt ) - (export "f32.no_fold_to_hypot" (func 0)) - (export "f64.no_fold_to_hypot" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/205.print b/tests/snapshots/testsuite/float_exprs.wast/205.print index f1580b6a81..e75f14b388 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/205.print +++ b/tests/snapshots/testsuite/float_exprs.wast/205.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param f32) (result f32))) + (export "f32.no_approximate_reciprocal" (func 0)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const 0x1p+0 (;=1;) local.get $x f32.div ) - (export "f32.no_approximate_reciprocal" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/211.print b/tests/snapshots/testsuite/float_exprs.wast/211.print index 2961e9ceb5..260104eead 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/211.print +++ b/tests/snapshots/testsuite/float_exprs.wast/211.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_approximate_reciprocal_sqrt" (func 0)) + (export "f64.no_fuse_reciprocal_sqrt" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const 0x1p+0 (;=1;) local.get $x @@ -13,6 +15,4 @@ f64.sqrt f64.div ) - (export "f32.no_approximate_reciprocal_sqrt" (func 0)) - (export "f64.no_fuse_reciprocal_sqrt" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/22.print b/tests/snapshots/testsuite/float_exprs.wast/22.print index b4a016ce24..ffcc49bd6e 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/22.print +++ b/tests/snapshots/testsuite/float_exprs.wast/22.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_zero_sub" (func 0)) + (export "f64.no_fold_zero_sub" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const 0x0p+0 (;=0;) local.get $x @@ -11,6 +13,4 @@ local.get $x f64.sub ) - (export "f32.no_fold_zero_sub" (func 0)) - (export "f64.no_fold_zero_sub" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/222.print b/tests/snapshots/testsuite/float_exprs.wast/222.print index f3374f8313..bbff6877d7 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/222.print +++ b/tests/snapshots/testsuite/float_exprs.wast/222.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param f32) (result f32))) + (export "f32.no_approximate_sqrt_reciprocal" (func 0)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const 0x1p+0 (;=1;) local.get $x f32.div f32.sqrt ) - (export "f32.no_approximate_sqrt_reciprocal" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/228.print b/tests/snapshots/testsuite/float_exprs.wast/228.print index 3693222fa9..1a7ed5d0a4 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/228.print +++ b/tests/snapshots/testsuite/float_exprs.wast/228.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.no_fold_f32_s" (func 0)) + (export "i32.no_fold_f32_u" (func 1)) + (export "i64.no_fold_f64_s" (func 2)) + (export "i64.no_fold_f64_u" (func 3)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 f32.convert_i32_s @@ -21,8 +25,4 @@ f64.convert_i64_u i64.trunc_f64_u ) - (export "i32.no_fold_f32_s" (func 0)) - (export "i32.no_fold_f32_u" (func 1)) - (export "i64.no_fold_f64_s" (func 2)) - (export "i64.no_fold_f64_u" (func 3)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/241.print b/tests/snapshots/testsuite/float_exprs.wast/241.print index 820dd36298..91431b1569 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/241.print +++ b/tests/snapshots/testsuite/float_exprs.wast/241.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_add_sub" (func 0)) + (export "f64.no_fold_add_sub" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ local.get $y f64.sub ) - (export "f32.no_fold_add_sub" (func 0)) - (export "f64.no_fold_add_sub" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/252.print b/tests/snapshots/testsuite/float_exprs.wast/252.print index 627fd20f3e..c9e865fbd6 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/252.print +++ b/tests/snapshots/testsuite/float_exprs.wast/252.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_sub_add" (func 0)) + (export "f64.no_fold_sub_add" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ local.get $y f64.add ) - (export "f32.no_fold_sub_add" (func 0)) - (export "f64.no_fold_sub_add" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/263.print b/tests/snapshots/testsuite/float_exprs.wast/263.print index 69a0795919..9b9e2c321c 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/263.print +++ b/tests/snapshots/testsuite/float_exprs.wast/263.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_mul_div" (func 0)) + (export "f64.no_fold_mul_div" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ local.get $y f64.div ) - (export "f32.no_fold_mul_div" (func 0)) - (export "f64.no_fold_mul_div" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/27.print b/tests/snapshots/testsuite/float_exprs.wast/27.print index 7123645419..84cca7a4f7 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/27.print +++ b/tests/snapshots/testsuite/float_exprs.wast/27.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_sub_zero" (func 0)) + (export "f64.no_fold_sub_zero" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const 0x0p+0 (;=0;) @@ -11,6 +13,4 @@ f64.const 0x0p+0 (;=0;) f64.sub ) - (export "f32.no_fold_sub_zero" (func 0)) - (export "f64.no_fold_sub_zero" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/274.print b/tests/snapshots/testsuite/float_exprs.wast/274.print index 47d3240041..12098b1425 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/274.print +++ b/tests/snapshots/testsuite/float_exprs.wast/274.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_div_mul" (func 0)) + (export "f64.no_fold_div_mul" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ local.get $y f64.mul ) - (export "f32.no_fold_div_mul" (func 0)) - (export "f64.no_fold_div_mul" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/285.print b/tests/snapshots/testsuite/float_exprs.wast/285.print index 1be0d826f6..35f5768e25 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/285.print +++ b/tests/snapshots/testsuite/float_exprs.wast/285.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_div2_mul2" (func 0)) + (export "f64.no_fold_div2_mul2" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const 0x1p+1 (;=2;) @@ -15,6 +17,4 @@ f64.const 0x1p+1 (;=2;) f64.mul ) - (export "f32.no_fold_div2_mul2" (func 0)) - (export "f64.no_fold_div2_mul2" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/288.print b/tests/snapshots/testsuite/float_exprs.wast/288.print index 312a818fb8..9f14cfeed2 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/288.print +++ b/tests/snapshots/testsuite/float_exprs.wast/288.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param f64) (result f64))) + (export "no_fold_demote_promote" (func 0)) (func (;0;) (type 0) (param $x f64) (result f64) local.get $x f32.demote_f64 f64.promote_f32 ) - (export "no_fold_demote_promote" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/294.print b/tests/snapshots/testsuite/float_exprs.wast/294.print index 7b68299ee1..79a197cb5d 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/294.print +++ b/tests/snapshots/testsuite/float_exprs.wast/294.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param f32) (result f32))) + (export "no_fold_promote_demote" (func 0)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f64.promote_f32 f32.demote_f64 ) - (export "no_fold_promote_demote" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/30.print b/tests/snapshots/testsuite/float_exprs.wast/30.print index fb18f088f8..7c326b72ee 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/30.print +++ b/tests/snapshots/testsuite/float_exprs.wast/30.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_mul_zero" (func 0)) + (export "f64.no_fold_mul_zero" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const 0x0p+0 (;=0;) @@ -11,6 +13,4 @@ f64.const 0x0p+0 (;=0;) f64.mul ) - (export "f32.no_fold_mul_zero" (func 0)) - (export "f64.no_fold_mul_zero" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/308.print b/tests/snapshots/testsuite/float_exprs.wast/308.print index f05f4c7f7b..7bc963b8ed 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/308.print +++ b/tests/snapshots/testsuite/float_exprs.wast/308.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f64 f32) (result f32))) (type (;1;) (func (param f32 f64) (result f32))) + (export "no_demote_mixed_add" (func 0)) + (export "no_demote_mixed_add_commuted" (func 1)) (func (;0;) (type 0) (param $x f64) (param $y f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ f64.add f32.demote_f64 ) - (export "no_demote_mixed_add" (func 0)) - (export "no_demote_mixed_add_commuted" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/319.print b/tests/snapshots/testsuite/float_exprs.wast/319.print index 96c84908a8..545193dd2b 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/319.print +++ b/tests/snapshots/testsuite/float_exprs.wast/319.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f64 f32) (result f32))) (type (;1;) (func (param f32 f64) (result f32))) + (export "no_demote_mixed_sub" (func 0)) + (export "no_demote_mixed_sub_commuted" (func 1)) (func (;0;) (type 0) (param $x f64) (param $y f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ f64.sub f32.demote_f64 ) - (export "no_demote_mixed_sub" (func 0)) - (export "no_demote_mixed_sub_commuted" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/330.print b/tests/snapshots/testsuite/float_exprs.wast/330.print index 8d8f6c7fb0..704d72098a 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/330.print +++ b/tests/snapshots/testsuite/float_exprs.wast/330.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f64 f32) (result f32))) (type (;1;) (func (param f32 f64) (result f32))) + (export "no_demote_mixed_mul" (func 0)) + (export "no_demote_mixed_mul_commuted" (func 1)) (func (;0;) (type 0) (param $x f64) (param $y f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ f64.mul f32.demote_f64 ) - (export "no_demote_mixed_mul" (func 0)) - (export "no_demote_mixed_mul_commuted" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/341.print b/tests/snapshots/testsuite/float_exprs.wast/341.print index 8edc95f47d..d32e99e508 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/341.print +++ b/tests/snapshots/testsuite/float_exprs.wast/341.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f64 f32) (result f32))) (type (;1;) (func (param f32 f64) (result f32))) + (export "no_demote_mixed_div" (func 0)) + (export "no_demote_mixed_div_commuted" (func 1)) (func (;0;) (type 0) (param $x f64) (param $y f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ f64.div f32.demote_f64 ) - (export "no_demote_mixed_div" (func 0)) - (export "no_demote_mixed_div_commuted" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/352.print b/tests/snapshots/testsuite/float_exprs.wast/352.print index 2a118e2377..4dc3807662 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/352.print +++ b/tests/snapshots/testsuite/float_exprs.wast/352.print @@ -1,6 +1,22 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.i32.no_fold_trunc_s_convert_s" (func 0)) + (export "f32.i32.no_fold_trunc_u_convert_s" (func 1)) + (export "f32.i32.no_fold_trunc_s_convert_u" (func 2)) + (export "f32.i32.no_fold_trunc_u_convert_u" (func 3)) + (export "f64.i32.no_fold_trunc_s_convert_s" (func 4)) + (export "f64.i32.no_fold_trunc_u_convert_s" (func 5)) + (export "f64.i32.no_fold_trunc_s_convert_u" (func 6)) + (export "f64.i32.no_fold_trunc_u_convert_u" (func 7)) + (export "f32.i64.no_fold_trunc_s_convert_s" (func 8)) + (export "f32.i64.no_fold_trunc_u_convert_s" (func 9)) + (export "f32.i64.no_fold_trunc_s_convert_u" (func 10)) + (export "f32.i64.no_fold_trunc_u_convert_u" (func 11)) + (export "f64.i64.no_fold_trunc_s_convert_s" (func 12)) + (export "f64.i64.no_fold_trunc_u_convert_s" (func 13)) + (export "f64.i64.no_fold_trunc_s_convert_u" (func 14)) + (export "f64.i64.no_fold_trunc_u_convert_u" (func 15)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x i32.trunc_f32_s @@ -81,20 +97,4 @@ i64.trunc_f64_u f64.convert_i64_u ) - (export "f32.i32.no_fold_trunc_s_convert_s" (func 0)) - (export "f32.i32.no_fold_trunc_u_convert_s" (func 1)) - (export "f32.i32.no_fold_trunc_s_convert_u" (func 2)) - (export "f32.i32.no_fold_trunc_u_convert_u" (func 3)) - (export "f64.i32.no_fold_trunc_s_convert_s" (func 4)) - (export "f64.i32.no_fold_trunc_u_convert_s" (func 5)) - (export "f64.i32.no_fold_trunc_s_convert_u" (func 6)) - (export "f64.i32.no_fold_trunc_u_convert_u" (func 7)) - (export "f32.i64.no_fold_trunc_s_convert_s" (func 8)) - (export "f32.i64.no_fold_trunc_u_convert_s" (func 9)) - (export "f32.i64.no_fold_trunc_s_convert_u" (func 10)) - (export "f32.i64.no_fold_trunc_u_convert_u" (func 11)) - (export "f64.i64.no_fold_trunc_s_convert_s" (func 12)) - (export "f64.i64.no_fold_trunc_u_convert_s" (func 13)) - (export "f64.i64.no_fold_trunc_s_convert_u" (func 14)) - (export "f64.i64.no_fold_trunc_u_convert_u" (func 15)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/385.print b/tests/snapshots/testsuite/float_exprs.wast/385.print index 2a07df3d3b..3018816341 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/385.print +++ b/tests/snapshots/testsuite/float_exprs.wast/385.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 f32))) (type (;1;) (func (param i32) (result f32))) + (memory (;0;) 1 1) + (export "init" (func 0)) + (export "run" (func 1)) + (export "check" (func 2)) (func (;0;) (type 0) (param $i i32) (param $x f32) local.get $i local.get $x @@ -31,8 +35,4 @@ local.get $i f32.load ) - (memory (;0;) 1 1) - (export "init" (func 0)) - (export "run" (func 1)) - (export "check" (func 2)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/39.print b/tests/snapshots/testsuite/float_exprs.wast/39.print index 0df709bfd4..055a173d09 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/39.print +++ b/tests/snapshots/testsuite/float_exprs.wast/39.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_mul_one" (func 0)) + (export "f64.no_fold_mul_one" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const 0x1p+0 (;=1;) @@ -11,6 +13,4 @@ f64.const 0x1p+0 (;=1;) f64.mul ) - (export "f32.no_fold_mul_one" (func 0)) - (export "f64.no_fold_mul_one" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/399.print b/tests/snapshots/testsuite/float_exprs.wast/399.print index bbda0b746a..1f6e413799 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/399.print +++ b/tests/snapshots/testsuite/float_exprs.wast/399.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 f64))) (type (;1;) (func (param i32) (result f64))) + (memory (;0;) 1 1) + (export "init" (func 0)) + (export "run" (func 1)) + (export "check" (func 2)) (func (;0;) (type 0) (param $i i32) (param $x f64) local.get $i local.get $x @@ -31,8 +35,4 @@ local.get $i f64.load ) - (memory (;0;) 1 1) - (export "init" (func 0)) - (export "run" (func 1)) - (export "check" (func 2)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/413.print b/tests/snapshots/testsuite/float_exprs.wast/413.print index 588f444dec..c6762852c8 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/413.print +++ b/tests/snapshots/testsuite/float_exprs.wast/413.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (param f32 f32) (result i32))) (type (;1;) (func (param f64 f64) (result i32))) + (export "f32.ult" (func 0)) + (export "f32.ule" (func 1)) + (export "f32.ugt" (func 2)) + (export "f32.uge" (func 3)) + (export "f64.ult" (func 4)) + (export "f64.ule" (func 5)) + (export "f64.ugt" (func 6)) + (export "f64.uge" (func 7)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result i32) local.get $x local.get $y @@ -49,12 +57,4 @@ f64.lt i32.eqz ) - (export "f32.ult" (func 0)) - (export "f32.ule" (func 1)) - (export "f32.ugt" (func 2)) - (export "f32.uge" (func 3)) - (export "f64.ult" (func 4)) - (export "f64.ule" (func 5)) - (export "f64.ugt" (func 6)) - (export "f64.uge" (func 7)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/42.print b/tests/snapshots/testsuite/float_exprs.wast/42.print index 47a6ecf4f4..4606437c23 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/42.print +++ b/tests/snapshots/testsuite/float_exprs.wast/42.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_zero_div" (func 0)) + (export "f64.no_fold_zero_div" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const 0x0p+0 (;=0;) local.get $x @@ -11,6 +13,4 @@ local.get $x f64.div ) - (export "f32.no_fold_zero_div" (func 0)) - (export "f64.no_fold_zero_div" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/446.print b/tests/snapshots/testsuite/float_exprs.wast/446.print index de61de0eda..3f4249c91d 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/446.print +++ b/tests/snapshots/testsuite/float_exprs.wast/446.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_lt_select" (func 0)) + (export "f32.no_fold_le_select" (func 1)) + (export "f32.no_fold_gt_select" (func 2)) + (export "f32.no_fold_ge_select" (func 3)) + (export "f64.no_fold_lt_select" (func 4)) + (export "f64.no_fold_le_select" (func 5)) + (export "f64.no_fold_gt_select" (func 6)) + (export "f64.no_fold_ge_select" (func 7)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -65,12 +73,4 @@ f64.ge select ) - (export "f32.no_fold_lt_select" (func 0)) - (export "f32.no_fold_le_select" (func 1)) - (export "f32.no_fold_gt_select" (func 2)) - (export "f32.no_fold_ge_select" (func 3)) - (export "f64.no_fold_lt_select" (func 4)) - (export "f64.no_fold_le_select" (func 5)) - (export "f64.no_fold_gt_select" (func 6)) - (export "f64.no_fold_ge_select" (func 7)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/479.print b/tests/snapshots/testsuite/float_exprs.wast/479.print index 8729647323..9e3a9fcb37 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/479.print +++ b/tests/snapshots/testsuite/float_exprs.wast/479.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_lt_if" (func 0)) + (export "f32.no_fold_le_if" (func 1)) + (export "f32.no_fold_gt_if" (func 2)) + (export "f32.no_fold_ge_if" (func 3)) + (export "f64.no_fold_lt_if" (func 4)) + (export "f64.no_fold_le_if" (func 5)) + (export "f64.no_fold_gt_if" (func 6)) + (export "f64.no_fold_ge_if" (func 7)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -81,12 +89,4 @@ local.get $y end ) - (export "f32.no_fold_lt_if" (func 0)) - (export "f32.no_fold_le_if" (func 1)) - (export "f32.no_fold_gt_if" (func 2)) - (export "f32.no_fold_ge_if" (func 3)) - (export "f64.no_fold_lt_if" (func 4)) - (export "f64.no_fold_le_if" (func 5)) - (export "f64.no_fold_gt_if" (func 6)) - (export "f64.no_fold_ge_if" (func 7)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/51.print b/tests/snapshots/testsuite/float_exprs.wast/51.print index ec580976d7..404e313e2b 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/51.print +++ b/tests/snapshots/testsuite/float_exprs.wast/51.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_div_one" (func 0)) + (export "f64.no_fold_div_one" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const 0x1p+0 (;=1;) @@ -11,6 +13,4 @@ f64.const 0x1p+0 (;=1;) f64.div ) - (export "f32.no_fold_div_one" (func 0)) - (export "f64.no_fold_div_one" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/512.print b/tests/snapshots/testsuite/float_exprs.wast/512.print index 4d54e0b262..cf47ae953a 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/512.print +++ b/tests/snapshots/testsuite/float_exprs.wast/512.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_lt_select_to_abs" (func 0)) + (export "f32.no_fold_le_select_to_abs" (func 1)) + (export "f32.no_fold_gt_select_to_abs" (func 2)) + (export "f32.no_fold_ge_select_to_abs" (func 3)) + (export "f64.no_fold_lt_select_to_abs" (func 4)) + (export "f64.no_fold_le_select_to_abs" (func 5)) + (export "f64.no_fold_gt_select_to_abs" (func 6)) + (export "f64.no_fold_ge_select_to_abs" (func 7)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.neg @@ -73,12 +81,4 @@ f64.ge select ) - (export "f32.no_fold_lt_select_to_abs" (func 0)) - (export "f32.no_fold_le_select_to_abs" (func 1)) - (export "f32.no_fold_gt_select_to_abs" (func 2)) - (export "f32.no_fold_ge_select_to_abs" (func 3)) - (export "f64.no_fold_lt_select_to_abs" (func 4)) - (export "f64.no_fold_le_select_to_abs" (func 5)) - (export "f64.no_fold_gt_select_to_abs" (func 6)) - (export "f64.no_fold_ge_select_to_abs" (func 7)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/54.print b/tests/snapshots/testsuite/float_exprs.wast/54.print index 5cdf147348..cf0d012ac6 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/54.print +++ b/tests/snapshots/testsuite/float_exprs.wast/54.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_div_neg1" (func 0)) + (export "f64.no_fold_div_neg1" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const -0x1p+0 (;=-1;) @@ -11,6 +13,4 @@ f64.const -0x1p+0 (;=-1;) f64.div ) - (export "f32.no_fold_div_neg1" (func 0)) - (export "f64.no_fold_div_neg1" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/545.print b/tests/snapshots/testsuite/float_exprs.wast/545.print index 812597ad86..a1f8ed2307 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/545.print +++ b/tests/snapshots/testsuite/float_exprs.wast/545.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_lt_if_to_abs" (func 0)) + (export "f32.no_fold_le_if_to_abs" (func 1)) + (export "f32.no_fold_gt_if_to_abs" (func 2)) + (export "f32.no_fold_ge_if_to_abs" (func 3)) + (export "f64.no_fold_lt_if_to_abs" (func 4)) + (export "f64.no_fold_le_if_to_abs" (func 5)) + (export "f64.no_fold_gt_if_to_abs" (func 6)) + (export "f64.no_fold_ge_if_to_abs" (func 7)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const 0x0p+0 (;=0;) @@ -89,12 +97,4 @@ f64.neg end ) - (export "f32.no_fold_lt_if_to_abs" (func 0)) - (export "f32.no_fold_le_if_to_abs" (func 1)) - (export "f32.no_fold_gt_if_to_abs" (func 2)) - (export "f32.no_fold_ge_if_to_abs" (func 3)) - (export "f64.no_fold_lt_if_to_abs" (func 4)) - (export "f64.no_fold_le_if_to_abs" (func 5)) - (export "f64.no_fold_gt_if_to_abs" (func 6)) - (export "f64.no_fold_ge_if_to_abs" (func 7)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/57.print b/tests/snapshots/testsuite/float_exprs.wast/57.print index 7aca4c93d6..7d8693f34e 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/57.print +++ b/tests/snapshots/testsuite/float_exprs.wast/57.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_neg0_sub" (func 0)) + (export "f64.no_fold_neg0_sub" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const -0x0p+0 (;=-0;) local.get $x @@ -11,6 +13,4 @@ local.get $x f64.sub ) - (export "f32.no_fold_neg0_sub" (func 0)) - (export "f64.no_fold_neg0_sub" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/578.print b/tests/snapshots/testsuite/float_exprs.wast/578.print index 70c557a0f0..a449fa57d9 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/578.print +++ b/tests/snapshots/testsuite/float_exprs.wast/578.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (result f32))) (type (;1;) (func (result f64))) + (export "f32.incorrect_correction" (func 0)) + (export "f64.incorrect_correction" (func 1)) (func (;0;) (type 0) (result f32) f32.const 0x1.553f7cp+0 (;=1.333;) f32.const 0x1.39999ap+0 (;=1.225;) @@ -19,6 +21,4 @@ f64.const 0x1.399999999999ap+0 (;=1.225;) f64.sub ) - (export "f32.incorrect_correction" (func 0)) - (export "f64.incorrect_correction" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/581.print b/tests/snapshots/testsuite/float_exprs.wast/581.print index 1eb788bbf3..f2d4fbf468 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/581.print +++ b/tests/snapshots/testsuite/float_exprs.wast/581.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (result f32))) + (export "calculate" (func 0)) (func (;0;) (type 0) (result f32) (local $x f32) (local $r f32) (local $q f32) (local $z0 f32) (local $z1 f32) f32.const 0x1.388p+7 (;=156.25;) @@ -39,5 +40,4 @@ end local.get $z1 ) - (export "calculate" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/583.print b/tests/snapshots/testsuite/float_exprs.wast/583.print index 3dd2216e9f..1204f4e0ee 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/583.print +++ b/tests/snapshots/testsuite/float_exprs.wast/583.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (result f64))) + (export "calculate" (func 0)) (func (;0;) (type 0) (result f64) (local $x f64) (local $r f64) (local $q f64) (local $z0 f64) (local $z1 f64) f64.const 0x1.388p+7 (;=156.25;) @@ -39,5 +40,4 @@ end local.get $z1 ) - (export "calculate" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/585.print b/tests/snapshots/testsuite/float_exprs.wast/585.print index fded2f6f89..6272bc36dc 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/585.print +++ b/tests/snapshots/testsuite/float_exprs.wast/585.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (param f32) (result f32))) + (export "llvm_pr26746" (func 0)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const 0x0p+0 (;=0;) f32.const -0x0p+0 (;=-0;) @@ -7,5 +8,4 @@ f32.sub f32.sub ) - (export "llvm_pr26746" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/587.print b/tests/snapshots/testsuite/float_exprs.wast/587.print index bb7d1fadc1..46959aba1b 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/587.print +++ b/tests/snapshots/testsuite/float_exprs.wast/587.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (param i32) (result f32))) + (export "llvm_pr27153" (func 0)) (func (;0;) (type 0) (param $x i32) (result f32) local.get $x i32.const 268435455 @@ -8,5 +9,4 @@ f32.const -0x1p+23 (;=-8388608;) f32.add ) - (export "llvm_pr27153" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/589.print b/tests/snapshots/testsuite/float_exprs.wast/589.print index aaac8efef6..90f237878b 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/589.print +++ b/tests/snapshots/testsuite/float_exprs.wast/589.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (param i32 i32) (result f32))) + (export "llvm_pr27036" (func 0)) (func (;0;) (type 0) (param $x i32) (param $y i32) (result f32) local.get $x i32.const -25034805 @@ -11,5 +12,4 @@ f32.convert_i32_s f32.add ) - (export "llvm_pr27036" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/591.print b/tests/snapshots/testsuite/float_exprs.wast/591.print index 99c53b2d57..aa2bb7b5a9 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/591.print +++ b/tests/snapshots/testsuite/float_exprs.wast/591.print @@ -2,6 +2,9 @@ (type (;0;) (func (param f64 f64 f64 f64) (result f64))) (type (;1;) (func (param f64 f64 f64) (result f64))) (type (;2;) (func (param f32 f32 f32) (result f32))) + (export "thepast0" (func 0)) + (export "thepast1" (func 1)) + (export "thepast2" (func 2)) (func (;0;) (type 0) (param $a f64) (param $b f64) (param $c f64) (param $d f64) (result f64) local.get $a local.get $b @@ -25,7 +28,4 @@ local.get $c f32.mul ) - (export "thepast0" (func 0)) - (export "thepast1" (func 1)) - (export "thepast2" (func 2)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/595.print b/tests/snapshots/testsuite/float_exprs.wast/595.print index 60c595dc84..18908a0c72 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/595.print +++ b/tests/snapshots/testsuite/float_exprs.wast/595.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param f32) (result f32))) + (export "inverse" (func 0)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const 0x1p+0 (;=1;) local.get $x f32.div ) - (export "inverse" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/597.print b/tests/snapshots/testsuite/float_exprs.wast/597.print index 1cfde15ca8..3428816ae3 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/597.print +++ b/tests/snapshots/testsuite/float_exprs.wast/597.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32_sqrt_minus_2" (func 0)) + (export "f64_sqrt_minus_2" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.sqrt @@ -13,6 +15,4 @@ f64.const 0x1p+1 (;=2;) f64.sub ) - (export "f32_sqrt_minus_2" (func 0)) - (export "f64_sqrt_minus_2" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/6.print b/tests/snapshots/testsuite/float_exprs.wast/6.print index e97261cb98..eb74dc25c3 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/6.print +++ b/tests/snapshots/testsuite/float_exprs.wast/6.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64) (result f64))) + (export "f32.no_fma" (func 0)) + (export "f64.no_fma" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ local.get $z f64.add ) - (export "f32.no_fma" (func 0)) - (export "f64.no_fma" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/60.print b/tests/snapshots/testsuite/float_exprs.wast/60.print index 5a69b6733f..72bd827b3c 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/60.print +++ b/tests/snapshots/testsuite/float_exprs.wast/60.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_neg1_mul" (func 0)) + (export "f64.no_fold_neg1_mul" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const -0x1p+0 (;=-1;) local.get $x @@ -11,6 +13,4 @@ local.get $x f64.mul ) - (export "f32.no_fold_neg1_mul" (func 0)) - (export "f64.no_fold_neg1_mul" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/600.print b/tests/snapshots/testsuite/float_exprs.wast/600.print index 5cef087887..7825c20e7c 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/600.print +++ b/tests/snapshots/testsuite/float_exprs.wast/600.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_recip_recip" (func 0)) + (export "f64.no_fold_recip_recip" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const 0x1p+0 (;=1;) f32.const 0x1p+0 (;=1;) @@ -15,6 +17,4 @@ f64.div f64.div ) - (export "f32.no_fold_recip_recip" (func 0)) - (export "f64.no_fold_recip_recip" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/619.print b/tests/snapshots/testsuite/float_exprs.wast/619.print index 308a793934..3111e75603 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/619.print +++ b/tests/snapshots/testsuite/float_exprs.wast/619.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_algebraic_factoring" (func 0)) + (export "f64.no_algebraic_factoring" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -19,6 +21,4 @@ f64.sub f64.mul ) - (export "f32.no_algebraic_factoring" (func 0)) - (export "f64.no_algebraic_factoring" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/63.print b/tests/snapshots/testsuite/float_exprs.wast/63.print index 0bcca2a760..4ee432e608 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/63.print +++ b/tests/snapshots/testsuite/float_exprs.wast/63.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result i32))) (type (;1;) (func (param f64) (result i32))) + (export "f32.no_fold_eq_self" (func 0)) + (export "f64.no_fold_eq_self" (func 1)) (func (;0;) (type 0) (param $x f32) (result i32) local.get $x local.get $x @@ -11,6 +13,4 @@ local.get $x f64.eq ) - (export "f32.no_fold_eq_self" (func 0)) - (export "f64.no_fold_eq_self" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/630.print b/tests/snapshots/testsuite/float_exprs.wast/630.print index bcea3499c6..7d9bd112f2 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/630.print +++ b/tests/snapshots/testsuite/float_exprs.wast/630.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_algebraic_factoring" (func 0)) + (export "f64.no_algebraic_factoring" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $x @@ -19,6 +21,4 @@ f64.mul f64.sub ) - (export "f32.no_algebraic_factoring" (func 0)) - (export "f64.no_algebraic_factoring" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/641.print b/tests/snapshots/testsuite/float_exprs.wast/641.print index 5429fdb304..07e1b47fc0 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/641.print +++ b/tests/snapshots/testsuite/float_exprs.wast/641.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result f32))) + (memory (;0;) 1 1) + (export "f32.simple_x4_sum" (func 0)) + (export "f32.load" (func 1)) (func (;0;) (type 0) (param $i i32) (param $j i32) (param $k i32) (local $x0 f32) (local $x1 f32) (local $x2 f32) (local $x3 f32) (local $y0 f32) (local $y1 f32) (local $y2 f32) (local $y3 f32) local.get $i @@ -52,8 +55,5 @@ local.get $k f32.load ) - (memory (;0;) 1 1) - (export "f32.simple_x4_sum" (func 0)) - (export "f32.load" (func 1)) (data (;0;) (i32.const 0) "\01\00\00\00\01\00\00\80\01\00\00\00\01\00\00\80\01\00\00\00\01\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") ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/647.print b/tests/snapshots/testsuite/float_exprs.wast/647.print index ee2d227548..80baa766ff 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/647.print +++ b/tests/snapshots/testsuite/float_exprs.wast/647.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result f64))) + (memory (;0;) 1 1) + (export "f64.simple_x4_sum" (func 0)) + (export "f64.load" (func 1)) (func (;0;) (type 0) (param $i i32) (param $j i32) (param $k i32) (local $x0 f64) (local $x1 f64) (local $x2 f64) (local $x3 f64) (local $y0 f64) (local $y1 f64) (local $y2 f64) (local $y3 f64) local.get $i @@ -52,8 +55,5 @@ local.get $k f64.load ) - (memory (;0;) 1 1) - (export "f64.simple_x4_sum" (func 0)) - (export "f64.load" (func 1)) (data (;0;) (i32.const 0) "\01\00\00\00\00\00\00\00\01\00\00\00\00\00\00\80\01\00\00\00\00\00\00\00\01\00\00\00\00\00\00\80\01\00\00\00\00\00\00\00\01\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\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") ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/653.print b/tests/snapshots/testsuite/float_exprs.wast/653.print index 6d19f518b4..d61b71afae 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/653.print +++ b/tests/snapshots/testsuite/float_exprs.wast/653.print @@ -1,5 +1,8 @@ (module (type (;0;) (func (param i32 i32) (result f32))) + (memory (;0;) 1 1) + (export "f32.kahan_sum" (func 0)) + (export "f32.plain_sum" (func 1)) (func (;0;) (type 0) (param $p i32) (param $n i32) (result f32) (local $sum f32) (local $c f32) (local $t f32) block $exit @@ -55,8 +58,5 @@ end local.get $sum ) - (memory (;0;) 1 1) - (export "f32.kahan_sum" (func 0)) - (export "f32.plain_sum" (func 1)) (data (;0;) (i32.const 0) "\c4\c5W$\a5\84\c8\0bm\b8K.\f2v\17\1c\caJV\1e\1bnq\22]\17\1en\bf\cd\14\5c\c7!UQ9\9c\1f\b2Q\f0\a3\93\d7\c1,\ae~\a8(:\01!\f4\0aX\93\f8Bw\9f\839j_\ba\f7\0a\d8Qj4\ca\ad\c64\0e\d8&\dcL3\1c\ed)\90\a8x\0f\d1\cev1#\83\b85\e8\f2D\b0\d3\a1\fc\bb2\e1\b0\baiD\09\d6\d9}\ff.\c0Z6\143\14>\a9\fa\87m\8b\bc\ce\9d\a7\fd\c4\e9\85?\dd\d7\e1\18\a6P&rn?s\0f\f8\12\93#4av\12H\c0\9b\05\93\eb\ac\86\de\94>U\e8\8c\e8\dd\e4\fc\95G\beV\03! L\e6\bf{\f6\7f\d5\bas\1c\c1\14\8f\c4'\96\b3\bd3\ffxA_\c0Z\ce\f6gns\9a\17fp\03\f8\ce'\a3R\b2\9f;\bf\fb\ae\ed\d3Z\f87W\f0\f5n\ef\b1Mp=T\a7\01\9a\85\08H\91\f5\9d\0c`\87[\d9T\1eQm\88\8e\08\8c\a5q:V\08gF\8f\8f\13*,\ec,\1f\b4b+oA\0a\c4eB\a21k,}>\bbu\ac\86\970\d9H\cd\9a\1fV\c4\c6\e4\12\c0\9d\fb\ee\02\8c\ce\1c\f2\1e\a1x#\db\c4\1eI\03\d3q\cc\08P\c5\d8\5c\ed\d5\b5e\ac\b5\c9!\d2\c9)v\de\f00\1a[<\f2;\db:9\82:\16\08o\a8\f1\beii\99q\a6\05\d3\14\93*\16\f2/\11\c7~ \bb\91D\ee\f8\e4\01S\c0\b9\7f\f0\bf\f0\03\9cm\b1\df\a2D\01mkq+\5c\b3!\19F^\8f\db\91\d3|xk\b7\12\00\8f\eb\bd\8a\f5\d4.\c4\c1\1e\dfscYGI\03\0a\b7\cf$\cf\9c\0eDz\9e\14\fbB\bf\9d90\9e\a0\ab/\d1\ae\9ej\83C\e3U}\85\bfc\8a\f8\96\10\1f\fem\e7\22\1b\e1iF\8aD\c8\c8\f9\0c+\19\07\a5\02>\f20\10\9a\85\8a_\ef\81E\a0w\b1\03\10sK\ae\98\9dG\bf\9a-:\d5\0f\03f\e3=S\d9@\ce\1fo2/!+#!lb\d4\a7>\a8\ce(1-\00=g^\af\a0\cf.\d2\b9k\84\ebi\08\ad\bc\0b\c0A\c4P\b6\e3P1\e8\ce\e2\96eU\9c\16F\e6\b0-:\e8\81\05\b0\bf4\f7\bc\10\1c\fb\cc<\f1\85\97B\9f\eb\14\8d<\bf\d7\17\88I\9d\8b+\b2:\83\d1O\04\9e\a1\0f\ad\08\9dT\af\d1\82\c3\ec2/\02\8f\05!-\a2\b7\e4\f4o.\81+\0b\9c\fc\cb\fet\02\f9\db\f4\f3\ea\00\a8\ec\d1\99t&\dd\d64\d5%\b1F\dd\9c\aaq\f5`\b0\88\c8\e0\0bYZ%O)f\f9\e3.\fe\e9\da\e5\18O'b\f4\ce\a4!\95t\c7Wd'\9aL\fdT}a\ce\c3\ac\87F\9c\fa\ff\09\cay\97g$t\ca\d4!\83&%\19\127d\19\e5e\e0tu\8e\dd\c8\eft\c7\d8!+y\04QFe`\03]\fa\d8\f4e\a4\9e]#\da\d7\8a\92\80\a4\dex<\f1WBm\cd\c9/\d5\a4\9e\ab@\f4\cb\1b\d7\a3\ca\fc\eb\a7\01\b2\9aiNF\9b\18N\ddy\a7\aa\a6R9\1e\ef0\cc\9b\bd[\eeL!m0\00r\b0F_\08\cf\c5\b9\e0>\c2\b3\0c\dc\8ed\de\19By\cfC\eaC]\8e\88\f7\ab\15\dc?\c8g \db\b8d\b1G\1f\de\f2\cb?Y\9f\d8F\90\dc\ae/\22\f9\e21\89\d9\9c\1cL\d3\a9JW\84\9c\9f\ea,<\ae<\c3\1e\8b\e5N\17\01%\db4F_\15\ea\05\0c|\d9E\8c\19\d0s\8a\96\16\ddD\f9\05\b7[q\b0\e6!6_u\89\91su\ab}\ae\d3s\ec7\c6\eaUu\ef\ea\ab\8b{\11\dcm\1a\b2j\c4%\cf\aa\e3\9fII\89\cb7\9b\0a\a7\01`p\dc\b7\c8\83\e1B\f5\be\adb\94\ad\8d\a1") ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/656.print b/tests/snapshots/testsuite/float_exprs.wast/656.print index c2f2731bae..ad84bd0425 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/656.print +++ b/tests/snapshots/testsuite/float_exprs.wast/656.print @@ -1,5 +1,8 @@ (module (type (;0;) (func (param i32 i32) (result f64))) + (memory (;0;) 1 1) + (export "f64.kahan_sum" (func 0)) + (export "f64.plain_sum" (func 1)) (func (;0;) (type 0) (param $p i32) (param $n i32) (result f64) (local $sum f64) (local $c f64) (local $t f64) block $exit @@ -55,8 +58,5 @@ end local.get $sum ) - (memory (;0;) 1 1) - (export "f64.kahan_sum" (func 0)) - (export "f64.plain_sum" (func 1)) (data (;0;) (i32.const 0) "\13\05\84B]\a2,\c6C\dbU\a9\cd\daU\e3s\fcX\d6\ba\d5\00\fd\835B\88\8b\13]8JG\0drs\a1\1a\ef\c4E\17W\d8\c9F\e0\8dl\e17p\c8\83[U^Z-s\1eV\c8\e1mi\14x\0a\8aZd:\09\c7\a8\87\c5\f0\d3]\e6\03\fc\93\be&\ca\d6\a9\91`\bd\b0\ed\ae\f70~\92:o\a7Y\8e\aa}\bfgX*T\f8N\fe\ed5X\a6Q\bfB\e5Kf'$m\7fB-(\92\18\ec\08\ae\e7U\da\b1\a6e\a5rPG\1b\b8\a9T\d7\a6\06[\0fBX\83\8a\17\82\c6\10C\a0\c0.m\bcZ\85Sr\7f\adD\bc0I\f2~H\f4\a2q\d0\13\8e\b3\de\99R\e3Et\eav\0e\1b*\c8\ee\14\01\c4P[6<\ef\bar\a2\a6\08\f8{6\9d\f9\ef\0b\c7V-\5c\f0\9d]\de\fc\b8\ad\0fd\0e\97\152&\c21\e6\05\1e\ef\cb\17\1bm\15\0bt]\d3.\f8k\86\b4\basRS\99\a9v E\c9@\80k\14\ed\a1\fa\80F\e6&\d2\e6\98\c4W\bf\c4\1c\a4\90z6\94\14\ba\15\89n\e6\9c7\8c\f4\de\12\22]\a1yPg\0d=z\e9\d4\aa.\7f*z0=\ea]\12H\fe\e1\18\cd\a4W\a2\87>\b6\9a\8b\db\da\9dx\9c\cf\8d\b1O\90\b44\e0\9d\f6\ca\feL;xm\0a\5c\18\9fa\b9\dd\b4\e0\0fv\e0\1bi\0d^Xsp^\0e-\a1}\ff \eb\914\92\ac8r*\1f\8eq.j\f1\af\c7'p\d9\c4W\f7\d2<\1d\b8\f0\f0d\cf\dc\ae\be\a3\cc>\22}Ni!c\17\ed\03\02T\9a\0fPN\13Z5\a1\22\a4\df\86\c2ty\16\b8ii\a0R]\11d\bd[\93\fci\a0\f4\13\d0\81Q\dd\fa\0c\15\c3z\c9bz\a9\1d\c9\e6Z\b3[\97\02\d0\c4\8d4\19P!\0a\bcP\da<0\d6:1\94\8d:\fe\ef\14W\9dK\93\00\96$\0co\fd\bc#v\02l\ebRr\80\11~\80:\13\128\1d8I\95@'\8aD{\e8\dcm\8c\8c\8e<\b5\b3\18\0e\f6\08\1a\84A5\ff\8b\b8\93@\ea\e1Q\1d\89\a5\8dBh)\ea/\c1zR\eb\90]M\d6\80\e3\d7uH\ce\ed\d3\01\1c\8d[\a5\94\0dx\cf\f1\06\13/\98\02\a4m.l\f2\d5t)\89L\f9\03\f5\c7\18\adz\f0h\f8\5c\d6Y\87n\d6?\06\be\86 \e3A\91\22\f3n\8b\f0h\1cW\a7\fc\b0|\9e\99\0b\96\1a\89_\e6\0d|\08Q\a0\a2g\9aG\00\93k\f9(\f0h\dbb\f1\e0e,S3\e0\a7\ca\11B0\f6\af\01\c1e=2\01o\ab.\be\d3\8b\be\14\c3\ff\ec\fb\f0\f9\c5\0c\05o\01\09k\e341\0c\1ff\a6B\bc\1a\87I\16\16\8c\b0\90\0d4\8c\0a\e1\09^\10\a4kV\cc\f0\c9\bb\dc\b8\5c\ce\f6\cc\8du~\b3\07\88\04/\b4^\c9\e3J#s\19bl\9a\03vD\86\9c`\fc\dbr\8f'\a0\dd\b3\c5\da\ff\f9\ecj\b1{\d3\cfP7\c9zx\0c\e4:\b6\f5\e6\f4\98nB}5s\8bE\c0V\97\cdm\ce\cf\ad1\b3\c3T\fa\ef\d5\c0\f4j_T\e7I>3\0a08\fd\d9\05\ff\a5?WF\14\b5\91\17\cak\98#ze\b3l\02\b4\ccy]X\d8\b3\d5\94\ae\f4mue\f7\92\bf~GL<\ee\db\ac\f12]\fboA\1c4\c8\83O\c2X\01\be\05>f\16\a6\04m]O\86\09'\82%\12\cd:\cd\cek\bc\ca\ac(\9b\eej%\86\9eEp\c6\d2\bd;}B\e5'\af\c7\1d\f4\81\c8\b3v\8a\a86\a3\ae*\e6\18\e16\22\ad\f6%r\b09\8b\01\9a\22{\84\c3-_r\a4\98\ac\15p\e7\d4\18\e2}\d20|3\08\cd\ca\c4\22\85\88u\81\c6JtX\8d\e0\e8\ac\c5\abuZ\f4(\12\f0\18ER\f2\97\b2\93Ao\8d\7f\dbp\fb\a3]\1f\a7\8d\98 +\22\9f:\01\b5\8b\1b\d2\cb\14\03\0e\14\14\d2\19Z\1f\ce^\cd\81y\15\01\ca\dest\8cV \9fw-%\16\f6aQ\1d\a4\8e\9b\98\a5\c6\ec\a8EW\82Yx\0d\90\b4\dfQ\b0\c3\82\94\cc\b3S\09\15m\96l:@G\b7Jz\05/\a1\1e\8c\9d\a0 \88\fbR\b7\9f\f3\f3\bb_\e7\8aa\a7!\b1\ac\fa\09\aa\a4l\bc$\80\ba*\e9e\ffp\ff\cc\fae\87v\f3\c5\15\ce\cb\e8B1\00\0c\91W\d9\e0\9d5T$\ad\a4\d8\f9\08gc\c8\cf\81\dd\90\a2\d7\c4\07J\e6\10og\e7'\d4#Y\18\f2\a8\9d_\d8\940\aaT\86O\87\9d\82\b5&\ca\a6\96\bf\cfU\f9\9d7\01\19HC\c5\94l\f3t\97XL<\9d\08\e8\04\c2X0v\e1\a0\f8\ea\e9\c5\ae\cfx\9e\a9\0c\ac\b3DB\e0\bc]\1b\9cIXJ\1c\19I\c1:\ea\f5\eb;\81\a9Kp\0c\cc\9e\1a\d3/\b7R/ ;\ebdQ\1d\a0-\b2>\be\13\85H\922.\db\5c\a1\e7\8cE\915\01\0a\93\c2\eb\09\ce\f3\d2\22$\d0\8c\cc\1d\9d8\c8M\e3\82\ccd\15\06-\e7\01/\ab\bb\b5\04L\92\1cz\d6?\e8_1\15\0c\dc\e41\b4\c4%>*\aa\00\9e\c8\e5!z\7f)\f1\c0\af\1d^\e8c9\ad\f8~l\c8\c5\7f\c2\a8\97'\0a\d9\f4!j\ea\03\09\fb\f7\96;\83y_|K0\9fV5\de\b4s\d4\95\f0\14\c3t/\0d\a3\1dN\8d1$\b3\1a\84\85bZ{<\149\17\e6m\eb7\c2\00X[\0b\e3<\8ab\e1\f85KV\e2\87`\8b\be\a78\91wT\a9Z$%\90\9f\a5Bw\f3\5c9\df\fft\07v\a1\cd\1fb\0b\81\81h\af\05\c1\c0\7f&\ee\c0\91\a3j})aE'\e5W\88\dc\0d\97\04\1a3\a9D\8a\da\02\10E?\8eU\a6v\8cM\e3\f1\89\83\c8\d0\f8\9bPw\9fG\dfL\9cf\0d\aa\18\b8_O\c4\01\ce\dc\84\acF\9ei\e1vEka\89\e4]\94\bb\11\83\9fx\d8\0a\d2\f5~]C\ea\bc\10\f1:\c9\e2d\fbSe\d0\c7\b4\a7\fb\d4\05S%\d0\cd)\88\00V%$}]\b4\f3A\9f\e9\b5\f7\aed,\e3\c9m\d5\84:r\12\b8z\d9\1b\09\e88\da&O\04\ce\03qn\8aD{\5c\81Y\9c\d2\e4\c3\baY\a6\e5(\a7\8f\9a\e4\d5N\b9\ca\7f\cbu\b8+C>\b3\15F\b1\a5\bc\9d\9e8\15\f1\bd\1b!\aa\f1\82\00\95\fc\a7wG9\a73C\92\d7R@K\06\81\8a\a0\bd\f1k\99\84B[\e2;\c5^\12\5c(M\b6\0eN\c8\5c\e8\01\8a\c5\e7\e4\9dB\ee]\9c\c4\eb\ebh\09'\92\95\9a\11Ts\c4\12\80\fb}\fe\c5\08`\7f6A\e0\10\ba\d6+l\f1\b4\17\fe&4\e3K\f8\a8\e3\91\beO*\fc\da\81\b8\e7\fe\d5&PG\f3\1ae2\81\e0\05\b8O21&\00JS\97\c2\c3\0e.\a1&T\ab\05\8eV/}\af\22\84h\a5\8b\97\f6\a4\fd\a8\ccuA\96\86\fd'=)\86\8d\7fL\d4\8esA\f4\1e\e2\ddX'\97\ce\9c\94\cfz\04/\dc\ed") ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/659.print b/tests/snapshots/testsuite/float_exprs.wast/659.print index f1e2741c91..d117ce06a9 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/659.print +++ b/tests/snapshots/testsuite/float_exprs.wast/659.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_neg_sub" (func 0)) + (export "f64.no_fold_neg_sub" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -13,6 +15,4 @@ f64.sub f64.neg ) - (export "f32.no_fold_neg_sub" (func 0)) - (export "f64.no_fold_neg_sub" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/66.print b/tests/snapshots/testsuite/float_exprs.wast/66.print index 74e0f9bd3b..0c6fdb080a 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/66.print +++ b/tests/snapshots/testsuite/float_exprs.wast/66.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result i32))) (type (;1;) (func (param f64) (result i32))) + (export "f32.no_fold_ne_self" (func 0)) + (export "f64.no_fold_ne_self" (func 1)) (func (;0;) (type 0) (param $x f32) (result i32) local.get $x local.get $x @@ -11,6 +13,4 @@ local.get $x f64.ne ) - (export "f32.no_fold_ne_self" (func 0)) - (export "f64.no_fold_ne_self" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/668.print b/tests/snapshots/testsuite/float_exprs.wast/668.print index 6bcd3ef7ca..d03370640b 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/668.print +++ b/tests/snapshots/testsuite/float_exprs.wast/668.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_neg_add" (func 0)) + (export "f64.no_fold_neg_add" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -13,6 +15,4 @@ f64.add f64.neg ) - (export "f32.no_fold_neg_add" (func 0)) - (export "f64.no_fold_neg_add" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/677.print b/tests/snapshots/testsuite/float_exprs.wast/677.print index 142b28d38e..1f7fa3159c 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/677.print +++ b/tests/snapshots/testsuite/float_exprs.wast/677.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_add_neg_neg" (func 0)) + (export "f64.no_fold_add_neg_neg" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x f32.neg @@ -15,6 +17,4 @@ f64.neg f64.add ) - (export "f32.no_fold_add_neg_neg" (func 0)) - (export "f64.no_fold_add_neg_neg" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/686.print b/tests/snapshots/testsuite/float_exprs.wast/686.print index 6c43d49d94..83ca67fb32 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/686.print +++ b/tests/snapshots/testsuite/float_exprs.wast/686.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_add_neg" (func 0)) + (export "f64.no_fold_add_neg" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.neg @@ -13,6 +15,4 @@ local.get $x f64.add ) - (export "f32.no_fold_add_neg" (func 0)) - (export "f64.no_fold_add_neg" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/69.print b/tests/snapshots/testsuite/float_exprs.wast/69.print index e9681285e1..f1164ceb20 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/69.print +++ b/tests/snapshots/testsuite/float_exprs.wast/69.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_sub_self" (func 0)) + (export "f64.no_fold_sub_self" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x local.get $x @@ -11,6 +13,4 @@ local.get $x f64.sub ) - (export "f32.no_fold_sub_self" (func 0)) - (export "f64.no_fold_sub_self" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/695.print b/tests/snapshots/testsuite/float_exprs.wast/695.print index 0030c4eca3..1fbbd78b5d 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/695.print +++ b/tests/snapshots/testsuite/float_exprs.wast/695.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_6x_via_add" (func 0)) + (export "f64.no_fold_6x_via_add" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x local.get $x @@ -27,6 +29,4 @@ local.get $x f64.add ) - (export "f32.no_fold_6x_via_add" (func 0)) - (export "f64.no_fold_6x_via_add" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/706.print b/tests/snapshots/testsuite/float_exprs.wast/706.print index 3f6cfd7ae5..4a7be99ba1 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/706.print +++ b/tests/snapshots/testsuite/float_exprs.wast/706.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64) (result f64))) + (export "f32.no_fold_div_div" (func 0)) + (export "f64.no_fold_div_div" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ local.get $z f64.div ) - (export "f32.no_fold_div_div" (func 0)) - (export "f64.no_fold_div_div" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/717.print b/tests/snapshots/testsuite/float_exprs.wast/717.print index 5af8b5b9d3..e8d4a2d41e 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/717.print +++ b/tests/snapshots/testsuite/float_exprs.wast/717.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64 f64) (result f64))) + (export "f32.no_fold_mul_divs" (func 0)) + (export "f64.no_fold_mul_divs" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (param $w f32) (result f32) local.get $x local.get $y @@ -19,6 +21,4 @@ f64.div f64.mul ) - (export "f32.no_fold_mul_divs" (func 0)) - (export "f64.no_fold_mul_divs" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/728.print b/tests/snapshots/testsuite/float_exprs.wast/728.print index b18c7ed7db..6e5a667f38 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/728.print +++ b/tests/snapshots/testsuite/float_exprs.wast/728.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64) (result f64))) + (export "f32.no_fold_add_divs" (func 0)) + (export "f64.no_fold_add_divs" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (result f32) local.get $x local.get $z @@ -19,6 +21,4 @@ f64.div f64.add ) - (export "f32.no_fold_add_divs" (func 0)) - (export "f64.no_fold_add_divs" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/739.print b/tests/snapshots/testsuite/float_exprs.wast/739.print index cfa3a6fd2c..ebd271c5aa 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/739.print +++ b/tests/snapshots/testsuite/float_exprs.wast/739.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_sqrt_square" (func 0)) + (export "f64.no_fold_sqrt_square" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x local.get $x @@ -13,6 +15,4 @@ f64.mul f64.sqrt ) - (export "f32.no_fold_sqrt_square" (func 0)) - (export "f64.no_fold_sqrt_square" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/74.print b/tests/snapshots/testsuite/float_exprs.wast/74.print index 3b7fc80cf3..2cf7b264b1 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/74.print +++ b/tests/snapshots/testsuite/float_exprs.wast/74.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_div_self" (func 0)) + (export "f64.no_fold_div_self" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x local.get $x @@ -11,6 +13,4 @@ local.get $x f64.div ) - (export "f32.no_fold_div_self" (func 0)) - (export "f64.no_fold_div_self" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/750.print b/tests/snapshots/testsuite/float_exprs.wast/750.print index 91baccc0bf..00e082daf5 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/750.print +++ b/tests/snapshots/testsuite/float_exprs.wast/750.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_mul_sqrts" (func 0)) + (export "f64.no_fold_mul_sqrts" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x f32.sqrt @@ -15,6 +17,4 @@ f64.sqrt f64.mul ) - (export "f32.no_fold_mul_sqrts" (func 0)) - (export "f64.no_fold_mul_sqrts" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/761.print b/tests/snapshots/testsuite/float_exprs.wast/761.print index 41794f009d..2072bce5c7 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/761.print +++ b/tests/snapshots/testsuite/float_exprs.wast/761.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_div_sqrts" (func 0)) + (export "f64.no_fold_div_sqrts" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x f32.sqrt @@ -15,6 +17,4 @@ f64.sqrt f64.div ) - (export "f32.no_fold_div_sqrts" (func 0)) - (export "f64.no_fold_div_sqrts" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/772.print b/tests/snapshots/testsuite/float_exprs.wast/772.print index 880d8b578e..8f9f353fc7 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/772.print +++ b/tests/snapshots/testsuite/float_exprs.wast/772.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_mul_sqrt_div" (func 0)) + (export "f64.no_fold_mul_sqrt_div" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -17,6 +19,4 @@ local.get $y f64.div ) - (export "f32.no_fold_mul_sqrt_div" (func 0)) - (export "f64.no_fold_mul_sqrt_div" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/783.print b/tests/snapshots/testsuite/float_exprs.wast/783.print index 83286d6a94..76c42f006e 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/783.print +++ b/tests/snapshots/testsuite/float_exprs.wast/783.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64) (result f64))) + (export "f32.no_flush_intermediate_subnormal" (func 0)) + (export "f64.no_flush_intermediate_subnormal" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (result f32) local.get $x local.get $y @@ -15,6 +17,4 @@ local.get $z f64.mul ) - (export "f32.no_flush_intermediate_subnormal" (func 0)) - (export "f64.no_flush_intermediate_subnormal" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/786.print b/tests/snapshots/testsuite/float_exprs.wast/786.print index a654134023..08124c41c3 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/786.print +++ b/tests/snapshots/testsuite/float_exprs.wast/786.print @@ -2,6 +2,13 @@ (type (;0;) (func (param f32 f32) (result i32))) (type (;1;) (func (param f64 f64) (result i32))) (type (;2;) (func (param f64 f32) (result f32))) + (export "f32.recoding_eq" (func 0)) + (export "f32.recoding_le" (func 1)) + (export "f32.recoding_lt" (func 2)) + (export "f64.recoding_eq" (func 3)) + (export "f64.recoding_le" (func 4)) + (export "f64.recoding_lt" (func 5)) + (export "recoding_demote" (func 6)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result i32) local.get $x local.get $y @@ -50,11 +57,4 @@ local.get $y f32.mul ) - (export "f32.recoding_eq" (func 0)) - (export "f32.recoding_le" (func 1)) - (export "f32.recoding_lt" (func 2)) - (export "f64.recoding_eq" (func 3)) - (export "f64.recoding_le" (func 4)) - (export "f64.recoding_lt" (func 5)) - (export "recoding_demote" (func 6)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/800.print b/tests/snapshots/testsuite/float_exprs.wast/800.print index 578d4feb29..a9364ec127 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/800.print +++ b/tests/snapshots/testsuite/float_exprs.wast/800.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result i32))) (type (;1;) (func (param f64 f64 f64) (result i32))) + (export "f32.no_extended_precision_div" (func 0)) + (export "f64.no_extended_precision_div" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (result i32) local.get $x local.get $y @@ -15,6 +17,4 @@ local.get $z f64.eq ) - (export "f32.no_extended_precision_div" (func 0)) - (export "f64.no_extended_precision_div" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/803.print b/tests/snapshots/testsuite/float_exprs.wast/803.print index 63fc722776..e87013dcfb 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/803.print +++ b/tests/snapshots/testsuite/float_exprs.wast/803.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_distribute_exact" (func 0)) + (export "f64.no_distribute_exact" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) f32.const -0x1p+3 (;=-8;) local.get $x @@ -19,6 +21,4 @@ f64.mul f64.add ) - (export "f32.no_distribute_exact" (func 0)) - (export "f64.no_distribute_exact" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/806.print b/tests/snapshots/testsuite/float_exprs.wast/806.print index d93973ddf8..318541522f 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/806.print +++ b/tests/snapshots/testsuite/float_exprs.wast/806.print @@ -5,6 +5,16 @@ (type (;3;) (func (param f64) (result f64))) (type (;4;) (func (param f64 f64 f64 f64) (result f64))) (type (;5;) (func (param f64 f64 f64) (result f64))) + (export "f32.sqrt" (func 0)) + (export "f32.xkcd_sqrt_2" (func 1)) + (export "f32.xkcd_sqrt_3" (func 2)) + (export "f32.xkcd_sqrt_5" (func 3)) + (export "f32.xkcd_better_sqrt_5" (func 4)) + (export "f64.sqrt" (func 5)) + (export "f64.xkcd_sqrt_2" (func 6)) + (export "f64.xkcd_sqrt_3" (func 7)) + (export "f64.xkcd_sqrt_5" (func 8)) + (export "f64.xkcd_better_sqrt_5" (func 9)) (func (;0;) (type 0) (param f32) (result f32) local.get 0 f32.sqrt @@ -93,14 +103,4 @@ f64.sub f64.div ) - (export "f32.sqrt" (func 0)) - (export "f32.xkcd_sqrt_2" (func 1)) - (export "f32.xkcd_sqrt_3" (func 2)) - (export "f32.xkcd_sqrt_5" (func 3)) - (export "f32.xkcd_better_sqrt_5" (func 4)) - (export "f64.sqrt" (func 5)) - (export "f64.xkcd_sqrt_2" (func 6)) - (export "f64.xkcd_sqrt_3" (func 7)) - (export "f64.xkcd_sqrt_5" (func 8)) - (export "f64.xkcd_better_sqrt_5" (func 9)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/821.print b/tests/snapshots/testsuite/float_exprs.wast/821.print index ee3aef1a63..fd6205cb20 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/821.print +++ b/tests/snapshots/testsuite/float_exprs.wast/821.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.compute_radix" (func 0)) + (export "f64.compute_radix" (func 1)) (func (;0;) (type 0) (param $0 f32) (param $1 f32) (result f32) loop $label$0 local.get $0 @@ -67,6 +69,4 @@ end local.get $1 ) - (export "f32.compute_radix" (func 0)) - (export "f64.compute_radix" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/824.print b/tests/snapshots/testsuite/float_exprs.wast/824.print index 59096bebee..74e6a56c64 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/824.print +++ b/tests/snapshots/testsuite/float_exprs.wast/824.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_sub1_mul_add" (func 0)) + (export "f64.no_fold_sub1_mul_add" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x f32.const 0x1p+0 (;=1;) @@ -19,6 +21,4 @@ local.get $y f64.add ) - (export "f32.no_fold_sub1_mul_add" (func 0)) - (export "f64.no_fold_sub1_mul_add" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/827.print b/tests/snapshots/testsuite/float_exprs.wast/827.print index 295e71387d..71b52f1615 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/827.print +++ b/tests/snapshots/testsuite/float_exprs.wast/827.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param f32 f32 f32) (result i32))) (type (;1;) (func (param f64 f64 f64) (result i32))) + (export "f32.no_fold_add_le_monotonicity" (func 0)) + (export "f32.no_fold_add_ge_monotonicity" (func 1)) + (export "f64.no_fold_add_le_monotonicity" (func 2)) + (export "f64.no_fold_add_ge_monotonicity" (func 3)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (result i32) local.get $x local.get $z @@ -37,8 +41,4 @@ f64.add f64.ge ) - (export "f32.no_fold_add_le_monotonicity" (func 0)) - (export "f32.no_fold_add_ge_monotonicity" (func 1)) - (export "f64.no_fold_add_le_monotonicity" (func 2)) - (export "f64.no_fold_add_ge_monotonicity" (func 3)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/83.print b/tests/snapshots/testsuite/float_exprs.wast/83.print index e6e3fd1202..96a4fc9322 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/83.print +++ b/tests/snapshots/testsuite/float_exprs.wast/83.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.no_fold_div_3" (func 0)) + (export "f64.no_fold_div_3" (func 1)) (func (;0;) (type 0) (param $x f32) (result f32) local.get $x f32.const 0x1.8p+1 (;=3;) @@ -11,6 +13,4 @@ f64.const 0x1.8p+1 (;=3;) f64.div ) - (export "f32.no_fold_div_3" (func 0)) - (export "f64.no_fold_div_3" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/832.print b/tests/snapshots/testsuite/float_exprs.wast/832.print index 8dd3a63e6d..516a046332 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/832.print +++ b/tests/snapshots/testsuite/float_exprs.wast/832.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (param f32 f32) (result i32))) (type (;1;) (func (param f64 f64) (result i32))) + (export "f32.not_lt" (func 0)) + (export "f32.not_le" (func 1)) + (export "f32.not_gt" (func 2)) + (export "f32.not_ge" (func 3)) + (export "f64.not_lt" (func 4)) + (export "f64.not_le" (func 5)) + (export "f64.not_gt" (func 6)) + (export "f64.not_ge" (func 7)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result i32) local.get $x local.get $y @@ -49,12 +57,4 @@ f64.ge i32.eqz ) - (export "f32.not_lt" (func 0)) - (export "f32.not_le" (func 1)) - (export "f32.not_gt" (func 2)) - (export "f32.not_ge" (func 3)) - (export "f64.not_lt" (func 4)) - (export "f64.not_le" (func 5)) - (export "f64.not_gt" (func 6)) - (export "f64.not_ge" (func 7)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/841.print b/tests/snapshots/testsuite/float_exprs.wast/841.print index 3995edc502..50da4e4a94 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/841.print +++ b/tests/snapshots/testsuite/float_exprs.wast/841.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (result f32))) (type (;1;) (func (result f64))) + (export "f32.epsilon" (func 0)) + (export "f64.epsilon" (func 1)) (func (;0;) (type 0) (result f32) f32.const 0x1p+0 (;=1;) f32.const 0x1.8p+1 (;=3;) @@ -23,6 +25,4 @@ f64.mul f64.sub ) - (export "f32.epsilon" (func 0)) - (export "f64.epsilon" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/844.print b/tests/snapshots/testsuite/float_exprs.wast/844.print index 44e85fc750..d30385a950 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/844.print +++ b/tests/snapshots/testsuite/float_exprs.wast/844.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (result f32))) (type (;1;) (func (result f64))) + (export "f32.epsilon" (func 0)) + (export "f64.epsilon" (func 1)) (func (;0;) (type 0) (result f32) (local $x f32) (local $result f32) f32.const 0x1p+0 (;=1;) @@ -37,6 +39,4 @@ end local.get $result ) - (export "f32.epsilon" (func 0)) - (export "f64.epsilon" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/847.print b/tests/snapshots/testsuite/float_exprs.wast/847.print index d64d1d41ea..e8187bcd85 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/847.print +++ b/tests/snapshots/testsuite/float_exprs.wast/847.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (param f32 f32) (result i32))) (type (;1;) (func (param f64 f64) (result i32))) + (export "f32.no_trichotomy_lt" (func 0)) + (export "f32.no_trichotomy_le" (func 1)) + (export "f32.no_trichotomy_gt" (func 2)) + (export "f32.no_trichotomy_ge" (func 3)) + (export "f64.no_trichotomy_lt" (func 4)) + (export "f64.no_trichotomy_le" (func 5)) + (export "f64.no_trichotomy_gt" (func 6)) + (export "f64.no_trichotomy_ge" (func 7)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result i32) local.get $x local.get $y @@ -73,12 +81,4 @@ f64.lt i32.or ) - (export "f32.no_trichotomy_lt" (func 0)) - (export "f32.no_trichotomy_le" (func 1)) - (export "f32.no_trichotomy_gt" (func 2)) - (export "f32.no_trichotomy_ge" (func 3)) - (export "f64.no_trichotomy_lt" (func 4)) - (export "f64.no_trichotomy_le" (func 5)) - (export "f64.no_trichotomy_gt" (func 6)) - (export "f64.no_trichotomy_ge" (func 7)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/856.print b/tests/snapshots/testsuite/float_exprs.wast/856.print index 1ddb450703..9a5ef0b58c 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/856.print +++ b/tests/snapshots/testsuite/float_exprs.wast/856.print @@ -3,6 +3,25 @@ (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i64 i64) (result i64))) (type (;3;) (func (param i64) (result i64))) + (export "f32.arithmetic_nan_bitpattern" (func 0)) + (export "f32.canonical_nan_bitpattern" (func 1)) + (export "f32.nonarithmetic_nan_bitpattern" (func 2)) + (export "f64.arithmetic_nan_bitpattern" (func 3)) + (export "f64.canonical_nan_bitpattern" (func 4)) + (export "f64.nonarithmetic_nan_bitpattern" (func 5)) + (export "f32.no_fold_sub_zero" (func 6)) + (export "f32.no_fold_neg0_sub" (func 7)) + (export "f32.no_fold_mul_one" (func 8)) + (export "f32.no_fold_neg1_mul" (func 9)) + (export "f32.no_fold_div_one" (func 10)) + (export "f32.no_fold_div_neg1" (func 11)) + (export "f64.no_fold_sub_zero" (func 12)) + (export "f64.no_fold_neg0_sub" (func 13)) + (export "f64.no_fold_mul_one" (func 14)) + (export "f64.no_fold_neg1_mul" (func 15)) + (export "f64.no_fold_div_one" (func 16)) + (export "f64.no_fold_div_neg1" (func 17)) + (export "no_fold_promote_demote" (func 18)) (func (;0;) (type 0) (param $x i32) (param $y i32) (result i32) local.get $x f32.reinterpret_i32 @@ -172,23 +191,4 @@ i32.const 2143289344 i32.and ) - (export "f32.arithmetic_nan_bitpattern" (func 0)) - (export "f32.canonical_nan_bitpattern" (func 1)) - (export "f32.nonarithmetic_nan_bitpattern" (func 2)) - (export "f64.arithmetic_nan_bitpattern" (func 3)) - (export "f64.canonical_nan_bitpattern" (func 4)) - (export "f64.nonarithmetic_nan_bitpattern" (func 5)) - (export "f32.no_fold_sub_zero" (func 6)) - (export "f32.no_fold_neg0_sub" (func 7)) - (export "f32.no_fold_mul_one" (func 8)) - (export "f32.no_fold_neg1_mul" (func 9)) - (export "f32.no_fold_div_one" (func 10)) - (export "f32.no_fold_div_neg1" (func 11)) - (export "f64.no_fold_sub_zero" (func 12)) - (export "f64.no_fold_neg0_sub" (func 13)) - (export "f64.no_fold_mul_one" (func 14)) - (export "f64.no_fold_neg1_mul" (func 15)) - (export "f64.no_fold_div_one" (func 16)) - (export "f64.no_fold_div_neg1" (func 17)) - (export "no_fold_promote_demote" (func 18)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/890.print b/tests/snapshots/testsuite/float_exprs.wast/890.print index edcf93346c..7d8c1b74ba 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/890.print +++ b/tests/snapshots/testsuite/float_exprs.wast/890.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (param f64 f64 f64 f64 f64 f64 f64 f64) (result f64))) + (export "dot_product_example" (func 0)) + (export "with_binary_sum_collapse" (func 1)) (func (;0;) (type 0) (param $x0 f64) (param $x1 f64) (param $x2 f64) (param $x3 f64) (param $y0 f64) (param $y1 f64) (param $y2 f64) (param $y3 f64) (result f64) local.get $x0 local.get $y0 @@ -34,6 +36,4 @@ f64.add f64.add ) - (export "dot_product_example" (func 0)) - (export "with_binary_sum_collapse" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/893.print b/tests/snapshots/testsuite/float_exprs.wast/893.print index c39095d07e..9e4a5c16ca 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/893.print +++ b/tests/snapshots/testsuite/float_exprs.wast/893.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.contract2fma" (func 0)) + (export "f64.contract2fma" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $x @@ -21,6 +23,4 @@ f64.sub f64.sqrt ) - (export "f32.contract2fma" (func 0)) - (export "f64.contract2fma" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/900.print b/tests/snapshots/testsuite/float_exprs.wast/900.print index d6408f5863..65fea9eae7 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/900.print +++ b/tests/snapshots/testsuite/float_exprs.wast/900.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64) (result f64))) + (export "f32.division_by_small_number" (func 0)) + (export "f64.division_by_small_number" (func 1)) (func (;0;) (type 0) (param $a f32) (param $b f32) (param $c f32) (result f32) local.get $a local.get $b @@ -15,6 +17,4 @@ f64.div f64.sub ) - (export "f32.division_by_small_number" (func 0)) - (export "f64.division_by_small_number" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/903.print b/tests/snapshots/testsuite/float_exprs.wast/903.print index d32a6060b2..409d353ffe 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/903.print +++ b/tests/snapshots/testsuite/float_exprs.wast/903.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64) (result f64))) + (export "f32.golden_ratio" (func 0)) + (export "f64.golden_ratio" (func 1)) (func (;0;) (type 0) (param $a f32) (param $b f32) (param $c f32) (result f32) local.get $a local.get $b @@ -17,6 +19,4 @@ f64.add f64.mul ) - (export "f32.golden_ratio" (func 0)) - (export "f64.golden_ratio" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/906.print b/tests/snapshots/testsuite/float_exprs.wast/906.print index 93cb64fb1b..d016644315 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/906.print +++ b/tests/snapshots/testsuite/float_exprs.wast/906.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param f64) (result f64))) + (export "f32.silver_means" (func 0)) + (export "f64.silver_means" (func 1)) (func (;0;) (type 0) (param $n f32) (result f32) f32.const 0x1p-1 (;=0.5;) local.get $n @@ -25,6 +27,4 @@ f64.add f64.mul ) - (export "f32.silver_means" (func 0)) - (export "f64.silver_means" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/919.print b/tests/snapshots/testsuite/float_exprs.wast/919.print index 22d9e8a431..bb8e416663 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/919.print +++ b/tests/snapshots/testsuite/float_exprs.wast/919.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (param f64 f64) (result i32))) + (export "point_four" (func 0)) (func (;0;) (type 0) (param $four f64) (param $ten f64) (result i32) local.get $four local.get $ten @@ -7,5 +8,4 @@ f64.const 0x1.999999999999ap-2 (;=0.4;) f64.lt ) - (export "point_four" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/921.print b/tests/snapshots/testsuite/float_exprs.wast/921.print index 22b670f4e8..177302715e 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/921.print +++ b/tests/snapshots/testsuite/float_exprs.wast/921.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (param i32) (result f64))) + (export "tau" (func 0)) (func (;0;) (type 0) (param i32) (result f64) (local f64 f64 f64 f64) f64.const 0x0p+0 (;=0;) @@ -62,5 +63,4 @@ end local.get 1 ) - (export "tau" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/924.print b/tests/snapshots/testsuite/float_exprs.wast/924.print index b920707b7a..80bf86dcc3 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/924.print +++ b/tests/snapshots/testsuite/float_exprs.wast/924.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param f64 f64) (result f64))) + (export "f32.no_fold_conditional_inc" (func 0)) + (export "f64.no_fold_conditional_inc" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $x @@ -21,6 +23,4 @@ f64.lt select ) - (export "f32.no_fold_conditional_inc" (func 0)) - (export "f64.no_fold_conditional_inc" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_exprs.wast/94.print b/tests/snapshots/testsuite/float_exprs.wast/94.print index 395b4c64d2..786232d782 100644 --- a/tests/snapshots/testsuite/float_exprs.wast/94.print +++ b/tests/snapshots/testsuite/float_exprs.wast/94.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param f32 f32 f32) (result f32))) (type (;1;) (func (param f64 f64 f64) (result f64))) + (export "f32.no_factor" (func 0)) + (export "f64.no_factor" (func 1)) (func (;0;) (type 0) (param $x f32) (param $y f32) (param $z f32) (result f32) local.get $x local.get $z @@ -19,6 +21,4 @@ f64.mul f64.add ) - (export "f32.no_factor" (func 0)) - (export "f64.no_factor" (func 1)) ) diff --git a/tests/snapshots/testsuite/float_literals.wast/0.print b/tests/snapshots/testsuite/float_literals.wast/0.print index ab8e54d3b8..fb6213686c 100644 --- a/tests/snapshots/testsuite/float_literals.wast/0.print +++ b/tests/snapshots/testsuite/float_literals.wast/0.print @@ -3,6 +3,104 @@ (type (;1;) (func (result i64))) (type (;2;) (func (result f32))) (type (;3;) (func (result f64))) + (export "f32.nan" (func 0)) + (export "f32.positive_nan" (func 1)) + (export "f32.negative_nan" (func 2)) + (export "f32.plain_nan" (func 3)) + (export "f32.informally_known_as_plain_snan" (func 4)) + (export "f32.all_ones_nan" (func 5)) + (export "f32.misc_nan" (func 6)) + (export "f32.misc_positive_nan" (func 7)) + (export "f32.misc_negative_nan" (func 8)) + (export "f32.infinity" (func 9)) + (export "f32.positive_infinity" (func 10)) + (export "f32.negative_infinity" (func 11)) + (export "f32.zero" (func 12)) + (export "f32.positive_zero" (func 13)) + (export "f32.negative_zero" (func 14)) + (export "f32.misc" (func 15)) + (export "f32.min_positive" (func 16)) + (export "f32.min_normal" (func 17)) + (export "f32.max_finite" (func 18)) + (export "f32.max_subnormal" (func 19)) + (export "f32.trailing_dot" (func 20)) + (export "f32.misc_int" (func 21)) + (export "f32.large_int" (func 22)) + (export "f32.min_int32" (func 23)) + (export "f32.min_int64" (func 24)) + (export "f32_dec.zero" (func 25)) + (export "f32_dec.positive_zero" (func 26)) + (export "f32_dec.negative_zero" (func 27)) + (export "f32_dec.misc" (func 28)) + (export "f32_dec.min_positive" (func 29)) + (export "f32_dec.min_normal" (func 30)) + (export "f32_dec.max_subnormal" (func 31)) + (export "f32_dec.max_finite" (func 32)) + (export "f32_dec.trailing_dot" (func 33)) + (export "f32_dec.misc_int" (func 34)) + (export "f32_dec.large_int" (func 35)) + (export "f32_dec.min_int32" (func 36)) + (export "f32_dec.min_int64" (func 37)) + (export "f32_dec.root_beer_float" (func 38)) + (export "f64.nan" (func 39)) + (export "f64.positive_nan" (func 40)) + (export "f64.negative_nan" (func 41)) + (export "f64.plain_nan" (func 42)) + (export "f64.informally_known_as_plain_snan" (func 43)) + (export "f64.all_ones_nan" (func 44)) + (export "f64.misc_nan" (func 45)) + (export "f64.misc_positive_nan" (func 46)) + (export "f64.misc_negative_nan" (func 47)) + (export "f64.infinity" (func 48)) + (export "f64.positive_infinity" (func 49)) + (export "f64.negative_infinity" (func 50)) + (export "f64.zero" (func 51)) + (export "f64.positive_zero" (func 52)) + (export "f64.negative_zero" (func 53)) + (export "f64.misc" (func 54)) + (export "f64.min_positive" (func 55)) + (export "f64.min_normal" (func 56)) + (export "f64.max_subnormal" (func 57)) + (export "f64.max_finite" (func 58)) + (export "f64.trailing_dot" (func 59)) + (export "f64.misc_int" (func 60)) + (export "f64.large_int" (func 61)) + (export "f64.min_int32" (func 62)) + (export "f64.min_int64" (func 63)) + (export "f64_dec.zero" (func 64)) + (export "f64_dec.positive_zero" (func 65)) + (export "f64_dec.negative_zero" (func 66)) + (export "f64_dec.misc" (func 67)) + (export "f64_dec.min_positive" (func 68)) + (export "f64_dec.min_normal" (func 69)) + (export "f64_dec.max_subnormal" (func 70)) + (export "f64_dec.max_finite" (func 71)) + (export "f64_dec.trailing_dot" (func 72)) + (export "f64_dec.misc_int" (func 73)) + (export "f64_dec.large_int" (func 74)) + (export "f64_dec.min_int32" (func 75)) + (export "f64_dec.min_int64" (func 76)) + (export "f64_dec.root_beer_float" (func 77)) + (export "f32-dec-sep1" (func 78)) + (export "f32-dec-sep2" (func 79)) + (export "f32-dec-sep3" (func 80)) + (export "f32-dec-sep4" (func 81)) + (export "f32-dec-sep5" (func 82)) + (export "f32-hex-sep1" (func 83)) + (export "f32-hex-sep2" (func 84)) + (export "f32-hex-sep3" (func 85)) + (export "f32-hex-sep4" (func 86)) + (export "f32-hex-sep5" (func 87)) + (export "f64-dec-sep1" (func 88)) + (export "f64-dec-sep2" (func 89)) + (export "f64-dec-sep3" (func 90)) + (export "f64-dec-sep4" (func 91)) + (export "f64-dec-sep5" (func 92)) + (export "f64-hex-sep1" (func 93)) + (export "f64-hex-sep2" (func 94)) + (export "f64-hex-sep3" (func 95)) + (export "f64-hex-sep4" (func 96)) + (export "f64-hex-sep5" (func 97)) (func (;0;) (type 0) (result i32) f32.const nan (;=NaN;) i32.reinterpret_f32 @@ -375,102 +473,4 @@ (func (;97;) (type 3) (result f64) f64.const 0x1.578050f9f7p+44 (;=23605225168752;) ) - (export "f32.nan" (func 0)) - (export "f32.positive_nan" (func 1)) - (export "f32.negative_nan" (func 2)) - (export "f32.plain_nan" (func 3)) - (export "f32.informally_known_as_plain_snan" (func 4)) - (export "f32.all_ones_nan" (func 5)) - (export "f32.misc_nan" (func 6)) - (export "f32.misc_positive_nan" (func 7)) - (export "f32.misc_negative_nan" (func 8)) - (export "f32.infinity" (func 9)) - (export "f32.positive_infinity" (func 10)) - (export "f32.negative_infinity" (func 11)) - (export "f32.zero" (func 12)) - (export "f32.positive_zero" (func 13)) - (export "f32.negative_zero" (func 14)) - (export "f32.misc" (func 15)) - (export "f32.min_positive" (func 16)) - (export "f32.min_normal" (func 17)) - (export "f32.max_finite" (func 18)) - (export "f32.max_subnormal" (func 19)) - (export "f32.trailing_dot" (func 20)) - (export "f32.misc_int" (func 21)) - (export "f32.large_int" (func 22)) - (export "f32.min_int32" (func 23)) - (export "f32.min_int64" (func 24)) - (export "f32_dec.zero" (func 25)) - (export "f32_dec.positive_zero" (func 26)) - (export "f32_dec.negative_zero" (func 27)) - (export "f32_dec.misc" (func 28)) - (export "f32_dec.min_positive" (func 29)) - (export "f32_dec.min_normal" (func 30)) - (export "f32_dec.max_subnormal" (func 31)) - (export "f32_dec.max_finite" (func 32)) - (export "f32_dec.trailing_dot" (func 33)) - (export "f32_dec.misc_int" (func 34)) - (export "f32_dec.large_int" (func 35)) - (export "f32_dec.min_int32" (func 36)) - (export "f32_dec.min_int64" (func 37)) - (export "f32_dec.root_beer_float" (func 38)) - (export "f64.nan" (func 39)) - (export "f64.positive_nan" (func 40)) - (export "f64.negative_nan" (func 41)) - (export "f64.plain_nan" (func 42)) - (export "f64.informally_known_as_plain_snan" (func 43)) - (export "f64.all_ones_nan" (func 44)) - (export "f64.misc_nan" (func 45)) - (export "f64.misc_positive_nan" (func 46)) - (export "f64.misc_negative_nan" (func 47)) - (export "f64.infinity" (func 48)) - (export "f64.positive_infinity" (func 49)) - (export "f64.negative_infinity" (func 50)) - (export "f64.zero" (func 51)) - (export "f64.positive_zero" (func 52)) - (export "f64.negative_zero" (func 53)) - (export "f64.misc" (func 54)) - (export "f64.min_positive" (func 55)) - (export "f64.min_normal" (func 56)) - (export "f64.max_subnormal" (func 57)) - (export "f64.max_finite" (func 58)) - (export "f64.trailing_dot" (func 59)) - (export "f64.misc_int" (func 60)) - (export "f64.large_int" (func 61)) - (export "f64.min_int32" (func 62)) - (export "f64.min_int64" (func 63)) - (export "f64_dec.zero" (func 64)) - (export "f64_dec.positive_zero" (func 65)) - (export "f64_dec.negative_zero" (func 66)) - (export "f64_dec.misc" (func 67)) - (export "f64_dec.min_positive" (func 68)) - (export "f64_dec.min_normal" (func 69)) - (export "f64_dec.max_subnormal" (func 70)) - (export "f64_dec.max_finite" (func 71)) - (export "f64_dec.trailing_dot" (func 72)) - (export "f64_dec.misc_int" (func 73)) - (export "f64_dec.large_int" (func 74)) - (export "f64_dec.min_int32" (func 75)) - (export "f64_dec.min_int64" (func 76)) - (export "f64_dec.root_beer_float" (func 77)) - (export "f32-dec-sep1" (func 78)) - (export "f32-dec-sep2" (func 79)) - (export "f32-dec-sep3" (func 80)) - (export "f32-dec-sep4" (func 81)) - (export "f32-dec-sep5" (func 82)) - (export "f32-hex-sep1" (func 83)) - (export "f32-hex-sep2" (func 84)) - (export "f32-hex-sep3" (func 85)) - (export "f32-hex-sep4" (func 86)) - (export "f32-hex-sep5" (func 87)) - (export "f64-dec-sep1" (func 88)) - (export "f64-dec-sep2" (func 89)) - (export "f64-dec-sep3" (func 90)) - (export "f64-dec-sep4" (func 91)) - (export "f64-dec-sep5" (func 92)) - (export "f64-hex-sep1" (func 93)) - (export "f64-hex-sep2" (func 94)) - (export "f64-hex-sep3" (func 95)) - (export "f64-hex-sep4" (func 96)) - (export "f64-hex-sep5" (func 97)) ) diff --git a/tests/snapshots/testsuite/float_literals.wast/99.print b/tests/snapshots/testsuite/float_literals.wast/99.print index 6582083165..1999963d63 100644 --- a/tests/snapshots/testsuite/float_literals.wast/99.print +++ b/tests/snapshots/testsuite/float_literals.wast/99.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "4294967249" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.ffffffa2p+31 (;=4294967249;) ) - (export "4294967249" (func 0)) ) diff --git a/tests/snapshots/testsuite/float_memory.wast/0.print b/tests/snapshots/testsuite/float_memory.wast/0.print index 65fd8186dd..27d3dcc479 100644 --- a/tests/snapshots/testsuite/float_memory.wast/0.print +++ b/tests/snapshots/testsuite/float_memory.wast/0.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f32))) (type (;1;) (func (result i32))) (type (;2;) (func)) + (memory (;0;) 1 1) + (export "f32.load" (func 0)) + (export "i32.load" (func 1)) + (export "f32.store" (func 2)) + (export "i32.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f32) i32.const 0 f32.load @@ -25,11 +31,5 @@ i32.const 0 i32.store ) - (memory (;0;) 1 1) - (export "f32.load" (func 0)) - (export "i32.load" (func 1)) - (export "f32.store" (func 2)) - (export "i32.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i32.const 0) "\00\00\a0\7f") ) diff --git a/tests/snapshots/testsuite/float_memory.wast/15.print b/tests/snapshots/testsuite/float_memory.wast/15.print index ba11f7a1e9..97a4c8834e 100644 --- a/tests/snapshots/testsuite/float_memory.wast/15.print +++ b/tests/snapshots/testsuite/float_memory.wast/15.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f64))) (type (;1;) (func (result i64))) (type (;2;) (func)) + (memory (;0;) 1 1) + (export "f64.load" (func 0)) + (export "i64.load" (func 1)) + (export "f64.store" (func 2)) + (export "i64.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f64) i32.const 0 f64.load @@ -25,11 +31,5 @@ i64.const 0 i64.store ) - (memory (;0;) 1 1) - (export "f64.load" (func 0)) - (export "i64.load" (func 1)) - (export "f64.store" (func 2)) - (export "i64.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i32.const 0) "\00\00\00\00\00\00\f4\7f") ) diff --git a/tests/snapshots/testsuite/float_memory.wast/30.print b/tests/snapshots/testsuite/float_memory.wast/30.print index 7bb47d3913..b2c82d8527 100644 --- a/tests/snapshots/testsuite/float_memory.wast/30.print +++ b/tests/snapshots/testsuite/float_memory.wast/30.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f32))) (type (;1;) (func (result i32))) (type (;2;) (func)) + (memory (;0;) 1 1) + (export "f32.load" (func 0)) + (export "i32.load" (func 1)) + (export "f32.store" (func 2)) + (export "i32.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f32) i32.const 1 f32.load @@ -25,11 +31,5 @@ i32.const 0 i32.store ) - (memory (;0;) 1 1) - (export "f32.load" (func 0)) - (export "i32.load" (func 1)) - (export "f32.store" (func 2)) - (export "i32.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i32.const 0) "\00\00\00\a0\7f") ) diff --git a/tests/snapshots/testsuite/float_memory.wast/45.print b/tests/snapshots/testsuite/float_memory.wast/45.print index cb6f9cc8d1..435e70f254 100644 --- a/tests/snapshots/testsuite/float_memory.wast/45.print +++ b/tests/snapshots/testsuite/float_memory.wast/45.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f64))) (type (;1;) (func (result i64))) (type (;2;) (func)) + (memory (;0;) 1 1) + (export "f64.load" (func 0)) + (export "i64.load" (func 1)) + (export "f64.store" (func 2)) + (export "i64.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f64) i32.const 1 f64.load @@ -25,11 +31,5 @@ i64.const 0 i64.store ) - (memory (;0;) 1 1) - (export "f64.load" (func 0)) - (export "i64.load" (func 1)) - (export "f64.store" (func 2)) - (export "i64.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i32.const 0) "\00\00\00\00\00\00\00\f4\7f") ) diff --git a/tests/snapshots/testsuite/float_memory.wast/60.print b/tests/snapshots/testsuite/float_memory.wast/60.print index 81bd9002fb..f572450dfe 100644 --- a/tests/snapshots/testsuite/float_memory.wast/60.print +++ b/tests/snapshots/testsuite/float_memory.wast/60.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f32))) (type (;1;) (func (result i32))) (type (;2;) (func)) + (memory (;0;) 1 1) + (export "f32.load" (func 0)) + (export "i32.load" (func 1)) + (export "f32.store" (func 2)) + (export "i32.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f32) i32.const 0 f32.load @@ -25,11 +31,5 @@ i32.const 0 i32.store ) - (memory (;0;) 1 1) - (export "f32.load" (func 0)) - (export "i32.load" (func 1)) - (export "f32.store" (func 2)) - (export "i32.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i32.const 0) "\01\00\d0\7f") ) diff --git a/tests/snapshots/testsuite/float_memory.wast/75.print b/tests/snapshots/testsuite/float_memory.wast/75.print index 3176a2bc5f..007ce9baf4 100644 --- a/tests/snapshots/testsuite/float_memory.wast/75.print +++ b/tests/snapshots/testsuite/float_memory.wast/75.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f64))) (type (;1;) (func (result i64))) (type (;2;) (func)) + (memory (;0;) 1 1) + (export "f64.load" (func 0)) + (export "i64.load" (func 1)) + (export "f64.store" (func 2)) + (export "i64.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f64) i32.const 0 f64.load @@ -25,11 +31,5 @@ i64.const 0 i64.store ) - (memory (;0;) 1 1) - (export "f64.load" (func 0)) - (export "i64.load" (func 1)) - (export "f64.store" (func 2)) - (export "i64.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i32.const 0) "\01\00\00\00\00\00\fc\7f") ) diff --git a/tests/snapshots/testsuite/float_misc.wast/0.print b/tests/snapshots/testsuite/float_misc.wast/0.print index 6ac9aa3142..b32e9f74af 100644 --- a/tests/snapshots/testsuite/float_misc.wast/0.print +++ b/tests/snapshots/testsuite/float_misc.wast/0.print @@ -3,6 +3,34 @@ (type (;1;) (func (param f32) (result f32))) (type (;2;) (func (param f64 f64) (result f64))) (type (;3;) (func (param f64) (result f64))) + (export "f32.add" (func 0)) + (export "f32.sub" (func 1)) + (export "f32.mul" (func 2)) + (export "f32.div" (func 3)) + (export "f32.sqrt" (func 4)) + (export "f32.abs" (func 5)) + (export "f32.neg" (func 6)) + (export "f32.copysign" (func 7)) + (export "f32.ceil" (func 8)) + (export "f32.floor" (func 9)) + (export "f32.trunc" (func 10)) + (export "f32.nearest" (func 11)) + (export "f32.min" (func 12)) + (export "f32.max" (func 13)) + (export "f64.add" (func 14)) + (export "f64.sub" (func 15)) + (export "f64.mul" (func 16)) + (export "f64.div" (func 17)) + (export "f64.sqrt" (func 18)) + (export "f64.abs" (func 19)) + (export "f64.neg" (func 20)) + (export "f64.copysign" (func 21)) + (export "f64.ceil" (func 22)) + (export "f64.floor" (func 23)) + (export "f64.trunc" (func 24)) + (export "f64.nearest" (func 25)) + (export "f64.min" (func 26)) + (export "f64.max" (func 27)) (func (;0;) (type 0) (param $x f32) (param $y f32) (result f32) local.get $x local.get $y @@ -129,32 +157,4 @@ local.get $y f64.max ) - (export "f32.add" (func 0)) - (export "f32.sub" (func 1)) - (export "f32.mul" (func 2)) - (export "f32.div" (func 3)) - (export "f32.sqrt" (func 4)) - (export "f32.abs" (func 5)) - (export "f32.neg" (func 6)) - (export "f32.copysign" (func 7)) - (export "f32.ceil" (func 8)) - (export "f32.floor" (func 9)) - (export "f32.trunc" (func 10)) - (export "f32.nearest" (func 11)) - (export "f32.min" (func 12)) - (export "f32.max" (func 13)) - (export "f64.add" (func 14)) - (export "f64.sub" (func 15)) - (export "f64.mul" (func 16)) - (export "f64.div" (func 17)) - (export "f64.sqrt" (func 18)) - (export "f64.abs" (func 19)) - (export "f64.neg" (func 20)) - (export "f64.copysign" (func 21)) - (export "f64.ceil" (func 22)) - (export "f64.floor" (func 23)) - (export "f64.trunc" (func 24)) - (export "f64.nearest" (func 25)) - (export "f64.min" (func 26)) - (export "f64.max" (func 27)) ) diff --git a/tests/snapshots/testsuite/forward.wast/0.print b/tests/snapshots/testsuite/forward.wast/0.print index 81acfc69cc..9365e68857 100644 --- a/tests/snapshots/testsuite/forward.wast/0.print +++ b/tests/snapshots/testsuite/forward.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (param i32) (result i32))) + (export "even" (func $even)) + (export "odd" (func $odd)) (func $even (;0;) (type 0) (param $n i32) (result i32) local.get $n i32.const 0 @@ -26,6 +28,4 @@ call $even end ) - (export "even" (func $even)) - (export "odd" (func $odd)) ) diff --git a/tests/snapshots/testsuite/func.wast/0.print b/tests/snapshots/testsuite/func.wast/0.print index 517027412a..4281aa5396 100644 --- a/tests/snapshots/testsuite/func.wast/0.print +++ b/tests/snapshots/testsuite/func.wast/0.print @@ -27,6 +27,76 @@ (type (;25;) (func (param i32) (result i32 i32))) (type (;26;) (func (result i32 i32))) (type (;27;) (func (param i32 i64 f32 f32 i32 f64 f32 i32 i32 i32 f32 f64 f64 f64 i32 i32 f32) (result f64 f32 i32 i32 i32 i64 f32 i32 i32 f32 f64 f64 i32 f32 i32 f64))) + (export "f" (func 2)) + (export "g" (func $h)) + (export "type-use-1" (func 25)) + (export "type-use-2" (func 26)) + (export "type-use-3" (func 27)) + (export "type-use-4" (func 28)) + (export "type-use-5" (func 29)) + (export "type-use-6" (func 30)) + (export "type-use-7" (func 31)) + (export "local-first-i32" (func 36)) + (export "local-first-i64" (func 37)) + (export "local-first-f32" (func 38)) + (export "local-first-f64" (func 39)) + (export "local-second-i32" (func 40)) + (export "local-second-i64" (func 41)) + (export "local-second-f32" (func 42)) + (export "local-second-f64" (func 43)) + (export "local-mixed" (func 44)) + (export "param-first-i32" (func 45)) + (export "param-first-i64" (func 46)) + (export "param-first-f32" (func 47)) + (export "param-first-f64" (func 48)) + (export "param-second-i32" (func 49)) + (export "param-second-i64" (func 50)) + (export "param-second-f32" (func 51)) + (export "param-second-f64" (func 52)) + (export "param-mixed" (func 53)) + (export "empty" (func 54)) + (export "value-void" (func 55)) + (export "value-i32" (func 56)) + (export "value-i64" (func 57)) + (export "value-f32" (func 58)) + (export "value-f64" (func 59)) + (export "value-i32-f64" (func 60)) + (export "value-i32-i32-i32" (func 61)) + (export "value-block-void" (func 62)) + (export "value-block-i32" (func 63)) + (export "value-block-i32-i64" (func 64)) + (export "return-empty" (func 65)) + (export "return-i32" (func 66)) + (export "return-i64" (func 67)) + (export "return-f32" (func 68)) + (export "return-f64" (func 69)) + (export "return-i32-f64" (func 70)) + (export "return-i32-i32-i32" (func 71)) + (export "return-block-i32" (func 72)) + (export "return-block-i32-i64" (func 73)) + (export "break-empty" (func 74)) + (export "break-i32" (func 75)) + (export "break-i64" (func 76)) + (export "break-f32" (func 77)) + (export "break-f64" (func 78)) + (export "break-i32-f64" (func 79)) + (export "break-i32-i32-i32" (func 80)) + (export "break-block-i32" (func 81)) + (export "break-block-i32-i64" (func 82)) + (export "break-br_if-empty" (func 83)) + (export "break-br_if-num" (func 84)) + (export "break-br_if-num-num" (func 85)) + (export "break-br_table-empty" (func 86)) + (export "break-br_table-num" (func 87)) + (export "break-br_table-num-num" (func 88)) + (export "break-br_table-nested-empty" (func 89)) + (export "break-br_table-nested-num" (func 90)) + (export "break-br_table-nested-num-num" (func 91)) + (export "large-sig" (func 92)) + (export "init-local-i32" (func 93)) + (export "init-local-i64" (func 94)) + (export "init-local-f32" (func 95)) + (export "init-local-f64" (func 96)) (func $dummy (;0;) (type $sig)) (func (;1;) (type $sig)) (func (;2;) (type $sig)) @@ -431,74 +501,4 @@ (local f64) local.get 0 ) - (export "f" (func 2)) - (export "g" (func $h)) - (export "type-use-1" (func 25)) - (export "type-use-2" (func 26)) - (export "type-use-3" (func 27)) - (export "type-use-4" (func 28)) - (export "type-use-5" (func 29)) - (export "type-use-6" (func 30)) - (export "type-use-7" (func 31)) - (export "local-first-i32" (func 36)) - (export "local-first-i64" (func 37)) - (export "local-first-f32" (func 38)) - (export "local-first-f64" (func 39)) - (export "local-second-i32" (func 40)) - (export "local-second-i64" (func 41)) - (export "local-second-f32" (func 42)) - (export "local-second-f64" (func 43)) - (export "local-mixed" (func 44)) - (export "param-first-i32" (func 45)) - (export "param-first-i64" (func 46)) - (export "param-first-f32" (func 47)) - (export "param-first-f64" (func 48)) - (export "param-second-i32" (func 49)) - (export "param-second-i64" (func 50)) - (export "param-second-f32" (func 51)) - (export "param-second-f64" (func 52)) - (export "param-mixed" (func 53)) - (export "empty" (func 54)) - (export "value-void" (func 55)) - (export "value-i32" (func 56)) - (export "value-i64" (func 57)) - (export "value-f32" (func 58)) - (export "value-f64" (func 59)) - (export "value-i32-f64" (func 60)) - (export "value-i32-i32-i32" (func 61)) - (export "value-block-void" (func 62)) - (export "value-block-i32" (func 63)) - (export "value-block-i32-i64" (func 64)) - (export "return-empty" (func 65)) - (export "return-i32" (func 66)) - (export "return-i64" (func 67)) - (export "return-f32" (func 68)) - (export "return-f64" (func 69)) - (export "return-i32-f64" (func 70)) - (export "return-i32-i32-i32" (func 71)) - (export "return-block-i32" (func 72)) - (export "return-block-i32-i64" (func 73)) - (export "break-empty" (func 74)) - (export "break-i32" (func 75)) - (export "break-i64" (func 76)) - (export "break-f32" (func 77)) - (export "break-f64" (func 78)) - (export "break-i32-f64" (func 79)) - (export "break-i32-i32-i32" (func 80)) - (export "break-block-i32" (func 81)) - (export "break-block-i32-i64" (func 82)) - (export "break-br_if-empty" (func 83)) - (export "break-br_if-num" (func 84)) - (export "break-br_if-num-num" (func 85)) - (export "break-br_table-empty" (func 86)) - (export "break-br_table-num" (func 87)) - (export "break-br_table-num-num" (func 88)) - (export "break-br_table-nested-empty" (func 89)) - (export "break-br_table-nested-num" (func 90)) - (export "break-br_table-nested-num-num" (func 91)) - (export "large-sig" (func 92)) - (export "init-local-i32" (func 93)) - (export "init-local-i64" (func 94)) - (export "init-local-f32" (func 95)) - (export "init-local-f64" (func 96)) ) diff --git a/tests/snapshots/testsuite/func.wast/93.print b/tests/snapshots/testsuite/func.wast/93.print index 8dfe06bc6c..3a1d573d47 100644 --- a/tests/snapshots/testsuite/func.wast/93.print +++ b/tests/snapshots/testsuite/func.wast/93.print @@ -1,6 +1,9 @@ (module (type $proc (;0;) (func (result i32))) (type $sig (;1;) (func (param i32) (result i32))) + (export "f" (func 0)) + (export "g" (func 2)) + (export "p" (func 3)) (func (;0;) (type $sig) (param $var i32) (result i32) (local i32) local.get 1 @@ -19,7 +22,4 @@ local.set $var local.get $var ) - (export "f" (func 0)) - (export "g" (func 2)) - (export "p" (func 3)) ) diff --git a/tests/snapshots/testsuite/func.wast/97.print b/tests/snapshots/testsuite/func.wast/97.print index 2d86f1a6cf..65433cdaf1 100644 --- a/tests/snapshots/testsuite/func.wast/97.print +++ b/tests/snapshots/testsuite/func.wast/97.print @@ -3,6 +3,12 @@ (type $empty-sig-duplicate (;1;) (func)) (type $complex-sig-duplicate (;2;) (func (param i64 i64 f64 i64 f64 i64 f32 i32))) (type (;3;) (func (param f64 i64 f64 i64 f64 i64 f32 i32))) + (table (;0;) 7 7 funcref) + (export "signature-explicit-reused" (func 7)) + (export "signature-implicit-reused" (func 8)) + (export "signature-explicit-duplicate" (func 9)) + (export "signature-implicit-duplicate" (func 10)) + (elem (;0;) (i32.const 0) func $complex-sig-3 $empty-sig-2 $complex-sig-1 $complex-sig-3 $empty-sig-1 $complex-sig-4 $complex-sig-5) (func $empty-sig-1 (;0;) (type $sig)) (func $complex-sig-1 (;1;) (type 3) (param f64 i64 f64 i64 f64 i64 f32 i32)) (func $empty-sig-2 (;2;) (type $sig)) @@ -74,10 +80,4 @@ i32.const 6 call_indirect (type $complex-sig-duplicate) ) - (table (;0;) 7 7 funcref) - (export "signature-explicit-reused" (func 7)) - (export "signature-implicit-reused" (func 8)) - (export "signature-explicit-duplicate" (func 9)) - (export "signature-implicit-duplicate" (func 10)) - (elem (;0;) (i32.const 0) func $complex-sig-3 $empty-sig-2 $complex-sig-1 $complex-sig-3 $empty-sig-1 $complex-sig-4 $complex-sig-5) ) diff --git a/tests/snapshots/testsuite/func_ptrs.wast/0.print b/tests/snapshots/testsuite/func_ptrs.wast/0.print index a262b17ae5..a54cf46d8b 100644 --- a/tests/snapshots/testsuite/func_ptrs.wast/0.print +++ b/tests/snapshots/testsuite/func_ptrs.wast/0.print @@ -7,6 +7,10 @@ (type $T (;5;) (func (param i32) (result i32))) (type $U (;6;) (func (param i32))) (import "spectest" "print_i32" (func $print (;0;) (type $U))) + (export "one" (func 3)) + (export "two" (func 4)) + (export "three" (func 5)) + (export "four" (func 6)) (func (;1;) (type 0)) (func (;2;) (type $S)) (func (;3;) (type 4) (result i32) @@ -26,8 +30,4 @@ local.get 0 call $print ) - (export "one" (func 3)) - (export "two" (func 4)) - (export "three" (func 5)) - (export "four" (func 6)) ) diff --git a/tests/snapshots/testsuite/func_ptrs.wast/12.print b/tests/snapshots/testsuite/func_ptrs.wast/12.print index 6d30fe1b95..0447930d7f 100644 --- a/tests/snapshots/testsuite/func_ptrs.wast/12.print +++ b/tests/snapshots/testsuite/func_ptrs.wast/12.print @@ -2,6 +2,10 @@ (type $T (;0;) (func (result i32))) (type $U (;1;) (func (result i32))) (type (;2;) (func (param i32) (result i32))) + (table (;0;) 7 7 funcref) + (export "callt" (func 5)) + (export "callu" (func 6)) + (elem (;0;) (i32.const 0) func $t1 $t2 $t3 $u1 $u2 $t1 $t3) (func $t1 (;0;) (type $T) (result i32) i32.const 1 ) @@ -25,8 +29,4 @@ local.get $i call_indirect (type $U) ) - (table (;0;) 7 7 funcref) - (export "callt" (func 5)) - (export "callu" (func 6)) - (elem (;0;) (i32.const 0) func $t1 $t2 $t3 $u1 $u2 $t1 $t3) ) diff --git a/tests/snapshots/testsuite/func_ptrs.wast/33.print b/tests/snapshots/testsuite/func_ptrs.wast/33.print index 3cea41c557..708dfd40e3 100644 --- a/tests/snapshots/testsuite/func_ptrs.wast/33.print +++ b/tests/snapshots/testsuite/func_ptrs.wast/33.print @@ -1,6 +1,9 @@ (module (type $T (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) + (table (;0;) 2 2 funcref) + (export "callt" (func 2)) + (elem (;0;) (i32.const 0) func $t1 $t2) (func $t1 (;0;) (type $T) (result i32) i32.const 1 ) @@ -11,7 +14,4 @@ local.get $i call_indirect (type $T) ) - (table (;0;) 2 2 funcref) - (export "callt" (func 2)) - (elem (;0;) (i32.const 0) func $t1 $t2) ) diff --git a/tests/snapshots/testsuite/global.wast/0.print b/tests/snapshots/testsuite/global.wast/0.print index 0c5f587f6a..95bc129c4c 100644 --- a/tests/snapshots/testsuite/global.wast/0.print +++ b/tests/snapshots/testsuite/global.wast/0.print @@ -14,6 +14,69 @@ (type (;12;) (func (param i32) (result i32))) (import "spectest" "global_i32" (global (;0;) i32)) (import "spectest" "global_i64" (global (;1;) i64)) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;2;) i32 i32.const -2) + (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;)) + (global (;4;) f64 f64.const -0x1p+2 (;=-4;)) + (global $b (;5;) i64 i64.const -5) + (global $x (;6;) (mut i32) i32.const -12) + (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;)) + (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;)) + (global $y (;9;) (mut i64) i64.const -15) + (global $z1 (;10;) i32 global.get 0) + (global $z2 (;11;) i64 global.get 1) + (global $r (;12;) externref ref.null extern) + (global $mr (;13;) (mut externref) ref.null extern) + (global (;14;) funcref ref.null func) + (export "get-a" (func 0)) + (export "get-b" (func 1)) + (export "get-r" (func 2)) + (export "get-mr" (func 3)) + (export "get-x" (func 4)) + (export "get-y" (func 5)) + (export "get-z1" (func 6)) + (export "get-z2" (func 7)) + (export "set-x" (func 8)) + (export "set-y" (func 9)) + (export "set-mr" (func 10)) + (export "get-3" (func 11)) + (export "get-4" (func 12)) + (export "get-7" (func 13)) + (export "get-8" (func 14)) + (export "set-7" (func 15)) + (export "set-8" (func 16)) + (export "as-select-first" (func 18)) + (export "as-select-mid" (func 19)) + (export "as-select-last" (func 20)) + (export "as-loop-first" (func 21)) + (export "as-loop-mid" (func 22)) + (export "as-loop-last" (func 23)) + (export "as-if-condition" (func 24)) + (export "as-if-then" (func 25)) + (export "as-if-else" (func 26)) + (export "as-br_if-first" (func 27)) + (export "as-br_if-last" (func 28)) + (export "as-br_table-first" (func 29)) + (export "as-br_table-last" (func 30)) + (export "as-call_indirect-first" (func 32)) + (export "as-call_indirect-mid" (func 33)) + (export "as-call_indirect-last" (func 34)) + (export "as-store-first" (func 35)) + (export "as-store-last" (func 36)) + (export "as-load-operand" (func 37)) + (export "as-memory.grow-value" (func 38)) + (export "as-call-value" (func 40)) + (export "as-return-value" (func 41)) + (export "as-drop-operand" (func 42)) + (export "as-br-value" (func 43)) + (export "as-local.set-value" (func 44)) + (export "as-local.tee-value" (func 45)) + (export "as-global.set-value" (func 46)) + (export "as-unary-operand" (func 47)) + (export "as-binary-operand" (func 48)) + (export "as-compare-operand" (func 49)) + (elem (;0;) (i32.const 0) func $func) (func (;0;) (type 1) (result i32) global.get $a ) @@ -262,67 +325,4 @@ i32.const 1 i32.gt_u ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;2;) i32 i32.const -2) - (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;)) - (global (;4;) f64 f64.const -0x1p+2 (;=-4;)) - (global $b (;5;) i64 i64.const -5) - (global $x (;6;) (mut i32) i32.const -12) - (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;)) - (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;)) - (global $y (;9;) (mut i64) i64.const -15) - (global $z1 (;10;) i32 global.get 0) - (global $z2 (;11;) i64 global.get 1) - (global $r (;12;) externref ref.null extern) - (global $mr (;13;) (mut externref) ref.null extern) - (global (;14;) funcref ref.null func) - (export "get-a" (func 0)) - (export "get-b" (func 1)) - (export "get-r" (func 2)) - (export "get-mr" (func 3)) - (export "get-x" (func 4)) - (export "get-y" (func 5)) - (export "get-z1" (func 6)) - (export "get-z2" (func 7)) - (export "set-x" (func 8)) - (export "set-y" (func 9)) - (export "set-mr" (func 10)) - (export "get-3" (func 11)) - (export "get-4" (func 12)) - (export "get-7" (func 13)) - (export "get-8" (func 14)) - (export "set-7" (func 15)) - (export "set-8" (func 16)) - (export "as-select-first" (func 18)) - (export "as-select-mid" (func 19)) - (export "as-select-last" (func 20)) - (export "as-loop-first" (func 21)) - (export "as-loop-mid" (func 22)) - (export "as-loop-last" (func 23)) - (export "as-if-condition" (func 24)) - (export "as-if-then" (func 25)) - (export "as-if-else" (func 26)) - (export "as-br_if-first" (func 27)) - (export "as-br_if-last" (func 28)) - (export "as-br_table-first" (func 29)) - (export "as-br_table-last" (func 30)) - (export "as-call_indirect-first" (func 32)) - (export "as-call_indirect-mid" (func 33)) - (export "as-call_indirect-last" (func 34)) - (export "as-store-first" (func 35)) - (export "as-store-last" (func 36)) - (export "as-load-operand" (func 37)) - (export "as-memory.grow-value" (func 38)) - (export "as-call-value" (func 40)) - (export "as-return-value" (func 41)) - (export "as-drop-operand" (func 42)) - (export "as-br-value" (func 43)) - (export "as-local.set-value" (func 44)) - (export "as-local.tee-value" (func 45)) - (export "as-global.set-value" (func 46)) - (export "as-unary-operand" (func 47)) - (export "as-binary-operand" (func 48)) - (export "as-compare-operand" (func 49)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/i32.wast/0.print b/tests/snapshots/testsuite/i32.wast/0.print index 95727ff69c..c7f1bde7d4 100644 --- a/tests/snapshots/testsuite/i32.wast/0.print +++ b/tests/snapshots/testsuite/i32.wast/0.print @@ -1,6 +1,37 @@ (module (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) + (export "add" (func 0)) + (export "sub" (func 1)) + (export "mul" (func 2)) + (export "div_s" (func 3)) + (export "div_u" (func 4)) + (export "rem_s" (func 5)) + (export "rem_u" (func 6)) + (export "and" (func 7)) + (export "or" (func 8)) + (export "xor" (func 9)) + (export "shl" (func 10)) + (export "shr_s" (func 11)) + (export "shr_u" (func 12)) + (export "rotl" (func 13)) + (export "rotr" (func 14)) + (export "clz" (func 15)) + (export "ctz" (func 16)) + (export "popcnt" (func 17)) + (export "extend8_s" (func 18)) + (export "extend16_s" (func 19)) + (export "eqz" (func 20)) + (export "eq" (func 21)) + (export "ne" (func 22)) + (export "lt_s" (func 23)) + (export "lt_u" (func 24)) + (export "le_s" (func 25)) + (export "le_u" (func 26)) + (export "gt_s" (func 27)) + (export "gt_u" (func 28)) + (export "ge_s" (func 29)) + (export "ge_u" (func 30)) (func (;0;) (type 0) (param $x i32) (param $y i32) (result i32) local.get $x local.get $y @@ -150,35 +181,4 @@ local.get $y i32.ge_u ) - (export "add" (func 0)) - (export "sub" (func 1)) - (export "mul" (func 2)) - (export "div_s" (func 3)) - (export "div_u" (func 4)) - (export "rem_s" (func 5)) - (export "rem_u" (func 6)) - (export "and" (func 7)) - (export "or" (func 8)) - (export "xor" (func 9)) - (export "shl" (func 10)) - (export "shr_s" (func 11)) - (export "shr_u" (func 12)) - (export "rotl" (func 13)) - (export "rotr" (func 14)) - (export "clz" (func 15)) - (export "ctz" (func 16)) - (export "popcnt" (func 17)) - (export "extend8_s" (func 18)) - (export "extend16_s" (func 19)) - (export "eqz" (func 20)) - (export "eq" (func 21)) - (export "ne" (func 22)) - (export "lt_s" (func 23)) - (export "lt_u" (func 24)) - (export "le_s" (func 25)) - (export "le_u" (func 26)) - (export "gt_s" (func 27)) - (export "gt_u" (func 28)) - (export "ge_s" (func 29)) - (export "ge_u" (func 30)) ) diff --git a/tests/snapshots/testsuite/i64.wast/0.print b/tests/snapshots/testsuite/i64.wast/0.print index dd75680981..b28ea6cb4e 100644 --- a/tests/snapshots/testsuite/i64.wast/0.print +++ b/tests/snapshots/testsuite/i64.wast/0.print @@ -3,6 +3,38 @@ (type (;1;) (func (param i64) (result i64))) (type (;2;) (func (param i64) (result i32))) (type (;3;) (func (param i64 i64) (result i32))) + (export "add" (func 0)) + (export "sub" (func 1)) + (export "mul" (func 2)) + (export "div_s" (func 3)) + (export "div_u" (func 4)) + (export "rem_s" (func 5)) + (export "rem_u" (func 6)) + (export "and" (func 7)) + (export "or" (func 8)) + (export "xor" (func 9)) + (export "shl" (func 10)) + (export "shr_s" (func 11)) + (export "shr_u" (func 12)) + (export "rotl" (func 13)) + (export "rotr" (func 14)) + (export "clz" (func 15)) + (export "ctz" (func 16)) + (export "popcnt" (func 17)) + (export "extend8_s" (func 18)) + (export "extend16_s" (func 19)) + (export "extend32_s" (func 20)) + (export "eqz" (func 21)) + (export "eq" (func 22)) + (export "ne" (func 23)) + (export "lt_s" (func 24)) + (export "lt_u" (func 25)) + (export "le_s" (func 26)) + (export "le_u" (func 27)) + (export "gt_s" (func 28)) + (export "gt_u" (func 29)) + (export "ge_s" (func 30)) + (export "ge_u" (func 31)) (func (;0;) (type 0) (param $x i64) (param $y i64) (result i64) local.get $x local.get $y @@ -156,36 +188,4 @@ local.get $y i64.ge_u ) - (export "add" (func 0)) - (export "sub" (func 1)) - (export "mul" (func 2)) - (export "div_s" (func 3)) - (export "div_u" (func 4)) - (export "rem_s" (func 5)) - (export "rem_u" (func 6)) - (export "and" (func 7)) - (export "or" (func 8)) - (export "xor" (func 9)) - (export "shl" (func 10)) - (export "shr_s" (func 11)) - (export "shr_u" (func 12)) - (export "rotl" (func 13)) - (export "rotr" (func 14)) - (export "clz" (func 15)) - (export "ctz" (func 16)) - (export "popcnt" (func 17)) - (export "extend8_s" (func 18)) - (export "extend16_s" (func 19)) - (export "extend32_s" (func 20)) - (export "eqz" (func 21)) - (export "eq" (func 22)) - (export "ne" (func 23)) - (export "lt_s" (func 24)) - (export "lt_u" (func 25)) - (export "le_s" (func 26)) - (export "le_u" (func 27)) - (export "gt_s" (func 28)) - (export "gt_u" (func 29)) - (export "ge_s" (func 30)) - (export "ge_u" (func 31)) ) diff --git a/tests/snapshots/testsuite/if.wast/0.print b/tests/snapshots/testsuite/if.wast/0.print index a9941caedc..57caff7d3a 100644 --- a/tests/snapshots/testsuite/if.wast/0.print +++ b/tests/snapshots/testsuite/if.wast/0.print @@ -15,6 +15,60 @@ (type (;13;) (func (param i64 i64 i32) (result i64 i32))) (type (;14;) (func (param i64 i64) (result i64))) (type (;15;) (func (param i64) (result i64))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "empty" (func 1)) + (export "singular" (func 2)) + (export "multi" (func 3)) + (export "nested" (func 4)) + (export "as-select-first" (func 5)) + (export "as-select-mid" (func 6)) + (export "as-select-last" (func 7)) + (export "as-loop-first" (func 8)) + (export "as-loop-mid" (func 9)) + (export "as-loop-last" (func 10)) + (export "as-if-condition" (func 11)) + (export "as-br_if-first" (func 12)) + (export "as-br_if-last" (func 13)) + (export "as-br_table-first" (func 14)) + (export "as-br_table-last" (func 15)) + (export "as-call_indirect-first" (func 17)) + (export "as-call_indirect-mid" (func 18)) + (export "as-call_indirect-last" (func 19)) + (export "as-store-first" (func 20)) + (export "as-store-last" (func 21)) + (export "as-memory.grow-value" (func 22)) + (export "as-call-value" (func 24)) + (export "as-return-value" (func 25)) + (export "as-drop-operand" (func 26)) + (export "as-br-value" (func 27)) + (export "as-local.set-value" (func 28)) + (export "as-local.tee-value" (func 29)) + (export "as-global.set-value" (func 30)) + (export "as-load-operand" (func 31)) + (export "as-unary-operand" (func 32)) + (export "as-binary-operand" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-operand" (func 35)) + (export "as-binary-operands" (func 36)) + (export "as-compare-operands" (func 37)) + (export "as-mixed-operands" (func 38)) + (export "break-bare" (func 39)) + (export "break-value" (func 40)) + (export "break-multi-value" (func 41)) + (export "param" (func 42)) + (export "params" (func 43)) + (export "params-id" (func 44)) + (export "param-break" (func 45)) + (export "params-break" (func 46)) + (export "params-id-break" (func 47)) + (export "effects" (func 48)) + (export "add64_u_with_carry" (func $add64_u_with_carry)) + (export "add64_u_saturated" (func $add64_u_saturated)) + (export "type-use" (func 51)) + (export "atypical-condition" (func 52)) + (elem (;0;) (i32.const 0) func $func) (func $dummy (;0;) (type $block-sig-1)) (func (;1;) (type $block-sig-3) (param i32) local.get 0 @@ -873,58 +927,4 @@ else end ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "empty" (func 1)) - (export "singular" (func 2)) - (export "multi" (func 3)) - (export "nested" (func 4)) - (export "as-select-first" (func 5)) - (export "as-select-mid" (func 6)) - (export "as-select-last" (func 7)) - (export "as-loop-first" (func 8)) - (export "as-loop-mid" (func 9)) - (export "as-loop-last" (func 10)) - (export "as-if-condition" (func 11)) - (export "as-br_if-first" (func 12)) - (export "as-br_if-last" (func 13)) - (export "as-br_table-first" (func 14)) - (export "as-br_table-last" (func 15)) - (export "as-call_indirect-first" (func 17)) - (export "as-call_indirect-mid" (func 18)) - (export "as-call_indirect-last" (func 19)) - (export "as-store-first" (func 20)) - (export "as-store-last" (func 21)) - (export "as-memory.grow-value" (func 22)) - (export "as-call-value" (func 24)) - (export "as-return-value" (func 25)) - (export "as-drop-operand" (func 26)) - (export "as-br-value" (func 27)) - (export "as-local.set-value" (func 28)) - (export "as-local.tee-value" (func 29)) - (export "as-global.set-value" (func 30)) - (export "as-load-operand" (func 31)) - (export "as-unary-operand" (func 32)) - (export "as-binary-operand" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-operand" (func 35)) - (export "as-binary-operands" (func 36)) - (export "as-compare-operands" (func 37)) - (export "as-mixed-operands" (func 38)) - (export "break-bare" (func 39)) - (export "break-value" (func 40)) - (export "break-multi-value" (func 41)) - (export "param" (func 42)) - (export "params" (func 43)) - (export "params-id" (func 44)) - (export "param-break" (func 45)) - (export "params-break" (func 46)) - (export "params-id-break" (func 47)) - (export "effects" (func 48)) - (export "add64_u_with_carry" (func $add64_u_with_carry)) - (export "add64_u_saturated" (func $add64_u_saturated)) - (export "type-use" (func 51)) - (export "atypical-condition" (func 52)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/imports.wast/0.print b/tests/snapshots/testsuite/imports.wast/0.print index 26325317f4..dec6edad6e 100644 --- a/tests/snapshots/testsuite/imports.wast/0.print +++ b/tests/snapshots/testsuite/imports.wast/0.print @@ -6,21 +6,6 @@ (type (;4;) (func (result f32))) (type (;5;) (func (param i32) (result i32))) (type (;6;) (func (param i64) (result i64))) - (func (;0;) (type 0)) - (func (;1;) (type 1) (param i32)) - (func (;2;) (type 2) (param f32)) - (func (;3;) (type 3) (result i32) - i32.const 22 - ) - (func (;4;) (type 4) (result f32) - f32.const 0x1.6p+3 (;=11;) - ) - (func (;5;) (type 5) (param i32) (result i32) - local.get 0 - ) - (func (;6;) (type 6) (param i64) (result i64) - local.get 0 - ) (table (;0;) 10 funcref) (table (;1;) 10 20 funcref) (memory (;0;) 2) @@ -40,4 +25,19 @@ (export "table-10-inf" (table 0)) (export "table-10-20" (table 1)) (export "memory-2-inf" (memory 0)) + (func (;0;) (type 0)) + (func (;1;) (type 1) (param i32)) + (func (;2;) (type 2) (param f32)) + (func (;3;) (type 3) (result i32) + i32.const 22 + ) + (func (;4;) (type 4) (result f32) + f32.const 0x1.6p+3 (;=11;) + ) + (func (;5;) (type 5) (param i32) (result i32) + local.get 0 + ) + (func (;6;) (type 6) (param i64) (result i64) + local.get 0 + ) ) diff --git a/tests/snapshots/testsuite/imports.wast/117.print b/tests/snapshots/testsuite/imports.wast/117.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/imports.wast/117.print +++ b/tests/snapshots/testsuite/imports.wast/117.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/imports.wast/122.print b/tests/snapshots/testsuite/imports.wast/122.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/imports.wast/122.print +++ b/tests/snapshots/testsuite/imports.wast/122.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/imports.wast/153.print b/tests/snapshots/testsuite/imports.wast/153.print index c72d519576..c22b9dbe1b 100644 --- a/tests/snapshots/testsuite/imports.wast/153.print +++ b/tests/snapshots/testsuite/imports.wast/153.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 0 3)) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/imports.wast/2.print b/tests/snapshots/testsuite/imports.wast/2.print index 60b1ddc5cb..35db23c0e6 100644 --- a/tests/snapshots/testsuite/imports.wast/2.print +++ b/tests/snapshots/testsuite/imports.wast/2.print @@ -25,6 +25,16 @@ (import "spectest" "print_i32" (func (;15;) (type $func_i32))) (import "spectest" "print_i32" (func (;16;) (type $forward))) (import "spectest" "print_i32" (func (;17;) (type $forward))) + (table (;0;) 2 2 funcref) + (export "p1" (func 11)) + (export "p2" (func $p)) + (export "p3" (func 13)) + (export "p4" (func 13)) + (export "p5" (func 14)) + (export "p6" (func 15)) + (export "print32" (func 18)) + (export "print64" (func 19)) + (elem (;0;) (i32.const 0) func $print_i32 $print_f64) (func (;18;) (type $func_i32) (param $i i32) (local $x f32) local.get $i @@ -70,14 +80,4 @@ i32.const 1 call_indirect (type $func_f64) ) - (table (;0;) 2 2 funcref) - (export "p1" (func 11)) - (export "p2" (func $p)) - (export "p3" (func 13)) - (export "p4" (func 13)) - (export "p5" (func 14)) - (export "p6" (func 15)) - (export "print32" (func 18)) - (export "print64" (func 19)) - (elem (;0;) (i32.const 0) func $print_i32 $print_f64) ) diff --git a/tests/snapshots/testsuite/imports.wast/41.print b/tests/snapshots/testsuite/imports.wast/41.print index cdb6d30a03..45653670d6 100644 --- a/tests/snapshots/testsuite/imports.wast/41.print +++ b/tests/snapshots/testsuite/imports.wast/41.print @@ -10,6 +10,13 @@ (import "spectest" "global_i64" (global (;4;) i64)) (import "spectest" "global_f32" (global (;5;) f32)) (import "spectest" "global_f64" (global (;6;) f64)) + (export "get-0" (func 0)) + (export "get-1" (func 1)) + (export "get-x" (func 2)) + (export "get-y" (func 3)) + (export "get-4" (func 4)) + (export "get-5" (func 5)) + (export "get-6" (func 6)) (func (;0;) (type 0) (result i32) global.get 0 ) @@ -31,11 +38,4 @@ (func (;6;) (type 3) (result f64) global.get 6 ) - (export "get-0" (func 0)) - (export "get-1" (func 1)) - (export "get-x" (func 2)) - (export "get-y" (func 3)) - (export "get-4" (func 4)) - (export "get-5" (func 5)) - (export "get-6" (func 6)) ) diff --git a/tests/snapshots/testsuite/imports.wast/6.print b/tests/snapshots/testsuite/imports.wast/6.print index 7111042da6..9c3b885386 100644 --- a/tests/snapshots/testsuite/imports.wast/6.print +++ b/tests/snapshots/testsuite/imports.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32))) (import "spectest" "print_i32" (func $imported_print (;0;) (type 0))) + (export "print_i32" (func 1)) (func (;1;) (type 0) (param $i i32) local.get $i call $imported_print ) - (export "print_i32" (func 1)) ) diff --git a/tests/snapshots/testsuite/imports.wast/72.print b/tests/snapshots/testsuite/imports.wast/72.print index 6444756a75..9001a9b066 100644 --- a/tests/snapshots/testsuite/imports.wast/72.print +++ b/tests/snapshots/testsuite/imports.wast/72.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "table" (table $tab (;0;) 10 20 funcref)) + (export "call" (func 0)) + (elem (;0;) (i32.const 1) func $f $g) (func (;0;) (type 1) (param i32) (result i32) local.get 0 call_indirect (type 0) @@ -12,6 +14,4 @@ (func $g (;2;) (type 0) (result i32) i32.const 22 ) - (export "call" (func 0)) - (elem (;0;) (i32.const 1) func $f $g) ) diff --git a/tests/snapshots/testsuite/imports.wast/78.print b/tests/snapshots/testsuite/imports.wast/78.print index 6444756a75..9001a9b066 100644 --- a/tests/snapshots/testsuite/imports.wast/78.print +++ b/tests/snapshots/testsuite/imports.wast/78.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "table" (table $tab (;0;) 10 20 funcref)) + (export "call" (func 0)) + (elem (;0;) (i32.const 1) func $f $g) (func (;0;) (type 1) (param i32) (result i32) local.get 0 call_indirect (type 0) @@ -12,6 +14,4 @@ (func $g (;2;) (type 0) (result i32) i32.const 22 ) - (export "call" (func 0)) - (elem (;0;) (i32.const 1) func $f $g) ) diff --git a/tests/snapshots/testsuite/imports.wast/8.print b/tests/snapshots/testsuite/imports.wast/8.print index 0a22ecf481..783e0547c3 100644 --- a/tests/snapshots/testsuite/imports.wast/8.print +++ b/tests/snapshots/testsuite/imports.wast/8.print @@ -2,10 +2,10 @@ (type (;0;) (func (param i32))) (type (;1;) (func (param i32 i32) (result i32))) (import "spectest" "print_i32" (func $imported_print (;0;) (type 0))) + (export "print_i32" (func 1)) (func (;1;) (type 1) (param $i i32) (param $j i32) (result i32) local.get $i local.get $j i32.add ) - (export "print_i32" (func 1)) ) diff --git a/tests/snapshots/testsuite/inline-module.wast/0.print b/tests/snapshots/testsuite/inline-module.wast/0.print index 0223caf34e..ddf6bce969 100644 --- a/tests/snapshots/testsuite/inline-module.wast/0.print +++ b/tests/snapshots/testsuite/inline-module.wast/0.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) - (func (;1;) (type 0)) (memory (;0;) 0) (export "f" (func 1)) + (func (;0;) (type 0)) + (func (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/0.print b/tests/snapshots/testsuite/int_exprs.wast/0.print index c9295d0a7e..84a38732af 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/0.print +++ b/tests/snapshots/testsuite/int_exprs.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i64 i64) (result i32))) + (export "i32.no_fold_cmp_s_offset" (func 0)) + (export "i32.no_fold_cmp_u_offset" (func 1)) + (export "i64.no_fold_cmp_s_offset" (func 2)) + (export "i64.no_fold_cmp_u_offset" (func 3)) (func (;0;) (type 0) (param $x i32) (param $y i32) (result i32) local.get $x i32.const 1 @@ -37,8 +41,4 @@ i64.add i64.lt_u ) - (export "i32.no_fold_cmp_s_offset" (func 0)) - (export "i32.no_fold_cmp_u_offset" (func 1)) - (export "i64.no_fold_cmp_s_offset" (func 2)) - (export "i64.no_fold_cmp_u_offset" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/10.print b/tests/snapshots/testsuite/int_exprs.wast/10.print index 9dce9f0feb..e104441dc2 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/10.print +++ b/tests/snapshots/testsuite/int_exprs.wast/10.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.no_fold_shl_shr_s" (func 0)) + (export "i32.no_fold_shl_shr_u" (func 1)) + (export "i64.no_fold_shl_shr_s" (func 2)) + (export "i64.no_fold_shl_shr_u" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 1 @@ -29,8 +33,4 @@ i64.const 1 i64.shr_u ) - (export "i32.no_fold_shl_shr_s" (func 0)) - (export "i32.no_fold_shl_shr_u" (func 1)) - (export "i64.no_fold_shl_shr_s" (func 2)) - (export "i64.no_fold_shl_shr_u" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/105.print b/tests/snapshots/testsuite/int_exprs.wast/105.print index 75d85326aa..c42f5de10f 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/105.print +++ b/tests/snapshots/testsuite/int_exprs.wast/105.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.no_fold_div_neg1" (func 0)) + (export "i64.no_fold_div_neg1" (func 1)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const -1 @@ -11,6 +13,4 @@ i64.const -1 i64.div_s ) - (export "i32.no_fold_div_neg1" (func 0)) - (export "i64.no_fold_div_neg1" (func 1)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/15.print b/tests/snapshots/testsuite/int_exprs.wast/15.print index d2d39ae405..7c5fa41217 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/15.print +++ b/tests/snapshots/testsuite/int_exprs.wast/15.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.no_fold_shr_s_shl" (func 0)) + (export "i32.no_fold_shr_u_shl" (func 1)) + (export "i64.no_fold_shr_s_shl" (func 2)) + (export "i64.no_fold_shr_u_shl" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 1 @@ -29,8 +33,4 @@ i64.const 1 i64.shl ) - (export "i32.no_fold_shr_s_shl" (func 0)) - (export "i32.no_fold_shr_u_shl" (func 1)) - (export "i64.no_fold_shr_s_shl" (func 2)) - (export "i64.no_fold_shr_u_shl" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/20.print b/tests/snapshots/testsuite/int_exprs.wast/20.print index 0b75c185a2..f1472f1019 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/20.print +++ b/tests/snapshots/testsuite/int_exprs.wast/20.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.no_fold_div_s_mul" (func 0)) + (export "i32.no_fold_div_u_mul" (func 1)) + (export "i64.no_fold_div_s_mul" (func 2)) + (export "i64.no_fold_div_u_mul" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 6 @@ -29,8 +33,4 @@ i64.const 6 i64.mul ) - (export "i32.no_fold_div_s_mul" (func 0)) - (export "i32.no_fold_div_u_mul" (func 1)) - (export "i64.no_fold_div_s_mul" (func 2)) - (export "i64.no_fold_div_u_mul" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/25.print b/tests/snapshots/testsuite/int_exprs.wast/25.print index 7680ebcfe6..768f1517db 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/25.print +++ b/tests/snapshots/testsuite/int_exprs.wast/25.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.no_fold_div_s_self" (func 0)) + (export "i32.no_fold_div_u_self" (func 1)) + (export "i64.no_fold_div_s_self" (func 2)) + (export "i64.no_fold_div_u_self" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x local.get $x @@ -21,8 +25,4 @@ local.get $x i64.div_u ) - (export "i32.no_fold_div_s_self" (func 0)) - (export "i32.no_fold_div_u_self" (func 1)) - (export "i64.no_fold_div_s_self" (func 2)) - (export "i64.no_fold_div_u_self" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/30.print b/tests/snapshots/testsuite/int_exprs.wast/30.print index 74aafcbd57..5375a63cf2 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/30.print +++ b/tests/snapshots/testsuite/int_exprs.wast/30.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.no_fold_rem_s_self" (func 0)) + (export "i32.no_fold_rem_u_self" (func 1)) + (export "i64.no_fold_rem_s_self" (func 2)) + (export "i64.no_fold_rem_u_self" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x local.get $x @@ -21,8 +25,4 @@ local.get $x i64.rem_u ) - (export "i32.no_fold_rem_s_self" (func 0)) - (export "i32.no_fold_rem_u_self" (func 1)) - (export "i64.no_fold_rem_s_self" (func 2)) - (export "i64.no_fold_rem_u_self" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/35.print b/tests/snapshots/testsuite/int_exprs.wast/35.print index 1afab7e6d4..8946e35f58 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/35.print +++ b/tests/snapshots/testsuite/int_exprs.wast/35.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.no_fold_mul_div_s" (func 0)) + (export "i32.no_fold_mul_div_u" (func 1)) + (export "i64.no_fold_mul_div_s" (func 2)) + (export "i64.no_fold_mul_div_u" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 6 @@ -29,8 +33,4 @@ i64.const 6 i64.div_u ) - (export "i32.no_fold_mul_div_s" (func 0)) - (export "i32.no_fold_mul_div_u" (func 1)) - (export "i64.no_fold_mul_div_s" (func 2)) - (export "i64.no_fold_mul_div_u" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/40.print b/tests/snapshots/testsuite/int_exprs.wast/40.print index 61589e2c77..97eb2678be 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/40.print +++ b/tests/snapshots/testsuite/int_exprs.wast/40.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.no_fold_div_s_2" (func 0)) + (export "i64.no_fold_div_s_2" (func 1)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 2 @@ -11,6 +13,4 @@ i64.const 2 i64.div_s ) - (export "i32.no_fold_div_s_2" (func 0)) - (export "i64.no_fold_div_s_2" (func 1)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/43.print b/tests/snapshots/testsuite/int_exprs.wast/43.print index f792a9d3a4..28a1f60ff8 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/43.print +++ b/tests/snapshots/testsuite/int_exprs.wast/43.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.no_fold_rem_s_2" (func 0)) + (export "i64.no_fold_rem_s_2" (func 1)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 2 @@ -11,6 +13,4 @@ i64.const 2 i64.rem_s ) - (export "i32.no_fold_rem_s_2" (func 0)) - (export "i64.no_fold_rem_s_2" (func 1)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/46.print b/tests/snapshots/testsuite/int_exprs.wast/46.print index 94a0044507..98f3e40b9a 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/46.print +++ b/tests/snapshots/testsuite/int_exprs.wast/46.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.div_s_0" (func 0)) + (export "i32.div_u_0" (func 1)) + (export "i64.div_s_0" (func 2)) + (export "i64.div_u_0" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 0 @@ -21,8 +25,4 @@ i64.const 0 i64.div_u ) - (export "i32.div_s_0" (func 0)) - (export "i32.div_u_0" (func 1)) - (export "i64.div_s_0" (func 2)) - (export "i64.div_u_0" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/5.print b/tests/snapshots/testsuite/int_exprs.wast/5.print index 0bd113a878..b6eabb0f4e 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/5.print +++ b/tests/snapshots/testsuite/int_exprs.wast/5.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i64) (result i64))) + (export "i64.no_fold_wrap_extend_s" (func 0)) (func (;0;) (type 0) (param $x i64) (result i64) local.get $x i32.wrap_i64 i64.extend_i32_s ) - (export "i64.no_fold_wrap_extend_s" (func 0)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/51.print b/tests/snapshots/testsuite/int_exprs.wast/51.print index 00545b988f..9bc8c52584 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/51.print +++ b/tests/snapshots/testsuite/int_exprs.wast/51.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.div_s_3" (func 0)) + (export "i32.div_u_3" (func 1)) + (export "i64.div_s_3" (func 2)) + (export "i64.div_u_3" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 3 @@ -21,8 +25,4 @@ i64.const 3 i64.div_u ) - (export "i32.div_s_3" (func 0)) - (export "i32.div_u_3" (func 1)) - (export "i64.div_s_3" (func 2)) - (export "i64.div_u_3" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/60.print b/tests/snapshots/testsuite/int_exprs.wast/60.print index 697b945128..4e653ee25f 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/60.print +++ b/tests/snapshots/testsuite/int_exprs.wast/60.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.div_s_5" (func 0)) + (export "i32.div_u_5" (func 1)) + (export "i64.div_s_5" (func 2)) + (export "i64.div_u_5" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 5 @@ -21,8 +25,4 @@ i64.const 5 i64.div_u ) - (export "i32.div_s_5" (func 0)) - (export "i32.div_u_5" (func 1)) - (export "i64.div_s_5" (func 2)) - (export "i64.div_u_5" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/69.print b/tests/snapshots/testsuite/int_exprs.wast/69.print index 9b148e79f5..339c38fb99 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/69.print +++ b/tests/snapshots/testsuite/int_exprs.wast/69.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.div_s_7" (func 0)) + (export "i32.div_u_7" (func 1)) + (export "i64.div_s_7" (func 2)) + (export "i64.div_u_7" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 7 @@ -21,8 +25,4 @@ i64.const 7 i64.div_u ) - (export "i32.div_s_7" (func 0)) - (export "i32.div_u_7" (func 1)) - (export "i64.div_s_7" (func 2)) - (export "i64.div_u_7" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/78.print b/tests/snapshots/testsuite/int_exprs.wast/78.print index 54273a7aa0..6a4876fa8c 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/78.print +++ b/tests/snapshots/testsuite/int_exprs.wast/78.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.rem_s_3" (func 0)) + (export "i32.rem_u_3" (func 1)) + (export "i64.rem_s_3" (func 2)) + (export "i64.rem_u_3" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 3 @@ -21,8 +25,4 @@ i64.const 3 i64.rem_u ) - (export "i32.rem_s_3" (func 0)) - (export "i32.rem_u_3" (func 1)) - (export "i64.rem_s_3" (func 2)) - (export "i64.rem_u_3" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/8.print b/tests/snapshots/testsuite/int_exprs.wast/8.print index 2d54c0cfc3..060c179a51 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/8.print +++ b/tests/snapshots/testsuite/int_exprs.wast/8.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i64) (result i64))) + (export "i64.no_fold_wrap_extend_u" (func 0)) (func (;0;) (type 0) (param $x i64) (result i64) local.get $x i32.wrap_i64 i64.extend_i32_u ) - (export "i64.no_fold_wrap_extend_u" (func 0)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/87.print b/tests/snapshots/testsuite/int_exprs.wast/87.print index 63b0407ba1..182df3a4db 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/87.print +++ b/tests/snapshots/testsuite/int_exprs.wast/87.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.rem_s_5" (func 0)) + (export "i32.rem_u_5" (func 1)) + (export "i64.rem_s_5" (func 2)) + (export "i64.rem_u_5" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 5 @@ -21,8 +25,4 @@ i64.const 5 i64.rem_u ) - (export "i32.rem_s_5" (func 0)) - (export "i32.rem_u_5" (func 1)) - (export "i64.rem_s_5" (func 2)) - (export "i64.rem_u_5" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_exprs.wast/96.print b/tests/snapshots/testsuite/int_exprs.wast/96.print index ff98873a84..aebc625bf1 100644 --- a/tests/snapshots/testsuite/int_exprs.wast/96.print +++ b/tests/snapshots/testsuite/int_exprs.wast/96.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) + (export "i32.rem_s_7" (func 0)) + (export "i32.rem_u_7" (func 1)) + (export "i64.rem_s_7" (func 2)) + (export "i64.rem_u_7" (func 3)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x i32.const 7 @@ -21,8 +25,4 @@ i64.const 7 i64.rem_u ) - (export "i32.rem_s_7" (func 0)) - (export "i32.rem_u_7" (func 1)) - (export "i64.rem_s_7" (func 2)) - (export "i64.rem_u_7" (func 3)) ) diff --git a/tests/snapshots/testsuite/int_literals.wast/0.print b/tests/snapshots/testsuite/int_literals.wast/0.print index c139d428c3..0934776695 100644 --- a/tests/snapshots/testsuite/int_literals.wast/0.print +++ b/tests/snapshots/testsuite/int_literals.wast/0.print @@ -1,6 +1,36 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (result i64))) + (export "i32.test" (func 0)) + (export "i32.umax" (func 1)) + (export "i32.smax" (func 2)) + (export "i32.neg_smax" (func 3)) + (export "i32.smin" (func 4)) + (export "i32.alt_smin" (func 5)) + (export "i32.inc_smin" (func 6)) + (export "i32.neg_zero" (func 7)) + (export "i32.not_octal" (func 8)) + (export "i32.unsigned_decimal" (func 9)) + (export "i32.plus_sign" (func 10)) + (export "i64.test" (func 11)) + (export "i64.umax" (func 12)) + (export "i64.smax" (func 13)) + (export "i64.neg_smax" (func 14)) + (export "i64.smin" (func 15)) + (export "i64.alt_smin" (func 16)) + (export "i64.inc_smin" (func 17)) + (export "i64.neg_zero" (func 18)) + (export "i64.not_octal" (func 19)) + (export "i64.unsigned_decimal" (func 20)) + (export "i64.plus_sign" (func 21)) + (export "i32-dec-sep1" (func 22)) + (export "i32-dec-sep2" (func 23)) + (export "i32-hex-sep1" (func 24)) + (export "i32-hex-sep2" (func 25)) + (export "i64-dec-sep1" (func 26)) + (export "i64-dec-sep2" (func 27)) + (export "i64-hex-sep1" (func 28)) + (export "i64-hex-sep2" (func 29)) (func (;0;) (type 0) (result i32) i32.const 195940365 return @@ -117,34 +147,4 @@ (func (;29;) (type 1) (result i64) i64.const 109071 ) - (export "i32.test" (func 0)) - (export "i32.umax" (func 1)) - (export "i32.smax" (func 2)) - (export "i32.neg_smax" (func 3)) - (export "i32.smin" (func 4)) - (export "i32.alt_smin" (func 5)) - (export "i32.inc_smin" (func 6)) - (export "i32.neg_zero" (func 7)) - (export "i32.not_octal" (func 8)) - (export "i32.unsigned_decimal" (func 9)) - (export "i32.plus_sign" (func 10)) - (export "i64.test" (func 11)) - (export "i64.umax" (func 12)) - (export "i64.smax" (func 13)) - (export "i64.neg_smax" (func 14)) - (export "i64.smin" (func 15)) - (export "i64.alt_smin" (func 16)) - (export "i64.inc_smin" (func 17)) - (export "i64.neg_zero" (func 18)) - (export "i64.not_octal" (func 19)) - (export "i64.unsigned_decimal" (func 20)) - (export "i64.plus_sign" (func 21)) - (export "i32-dec-sep1" (func 22)) - (export "i32-dec-sep2" (func 23)) - (export "i32-hex-sep1" (func 24)) - (export "i32-hex-sep2" (func 25)) - (export "i64-dec-sep1" (func 26)) - (export "i64-dec-sep2" (func 27)) - (export "i64-hex-sep1" (func 28)) - (export "i64-hex-sep2" (func 29)) ) diff --git a/tests/snapshots/testsuite/labels.wast/0.print b/tests/snapshots/testsuite/labels.wast/0.print index 5640271d87..6b9372e6b7 100644 --- a/tests/snapshots/testsuite/labels.wast/0.print +++ b/tests/snapshots/testsuite/labels.wast/0.print @@ -1,6 +1,24 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) + (export "block" (func 0)) + (export "loop1" (func 1)) + (export "loop2" (func 2)) + (export "loop3" (func 3)) + (export "loop4" (func 4)) + (export "loop5" (func 5)) + (export "loop6" (func 6)) + (export "if" (func 7)) + (export "if2" (func 8)) + (export "switch" (func 9)) + (export "return" (func 10)) + (export "br_if0" (func 11)) + (export "br_if1" (func 12)) + (export "br_if2" (func 13)) + (export "br_if3" (func 14)) + (export "br" (func 15)) + (export "shadowing" (func 16)) + (export "redefinition" (func 17)) (func (;0;) (type 0) (result i32) block $exit (result i32) i32.const 1 @@ -435,22 +453,4 @@ i32.add end ) - (export "block" (func 0)) - (export "loop1" (func 1)) - (export "loop2" (func 2)) - (export "loop3" (func 3)) - (export "loop4" (func 4)) - (export "loop5" (func 5)) - (export "loop6" (func 6)) - (export "if" (func 7)) - (export "if2" (func 8)) - (export "switch" (func 9)) - (export "return" (func 10)) - (export "br_if0" (func 11)) - (export "br_if1" (func 12)) - (export "br_if2" (func 13)) - (export "br_if3" (func 14)) - (export "br" (func 15)) - (export "shadowing" (func 16)) - (export "redefinition" (func 17)) ) diff --git a/tests/snapshots/testsuite/left-to-right.wast/0.print b/tests/snapshots/testsuite/left-to-right.wast/0.print index f831ff97a9..0bd5087a82 100644 --- a/tests/snapshots/testsuite/left-to-right.wast/0.print +++ b/tests/snapshots/testsuite/left-to-right.wast/0.print @@ -12,6 +12,104 @@ (type (;10;) (func (param i64 i64))) (type (;11;) (func (param f32 f32))) (type (;12;) (func (param f64 f64))) + (table (;0;) 8 8 funcref) + (memory (;0;) 1) + (export "i32_add" (func 35)) + (export "i32_sub" (func 36)) + (export "i32_mul" (func 37)) + (export "i32_div_s" (func 38)) + (export "i32_div_u" (func 39)) + (export "i32_rem_s" (func 40)) + (export "i32_rem_u" (func 41)) + (export "i32_and" (func 42)) + (export "i32_or" (func 43)) + (export "i32_xor" (func 44)) + (export "i32_shl" (func 45)) + (export "i32_shr_u" (func 46)) + (export "i32_shr_s" (func 47)) + (export "i32_eq" (func 48)) + (export "i32_ne" (func 49)) + (export "i32_lt_s" (func 50)) + (export "i32_le_s" (func 51)) + (export "i32_lt_u" (func 52)) + (export "i32_le_u" (func 53)) + (export "i32_gt_s" (func 54)) + (export "i32_ge_s" (func 55)) + (export "i32_gt_u" (func 56)) + (export "i32_ge_u" (func 57)) + (export "i32_store" (func 58)) + (export "i32_store8" (func 59)) + (export "i32_store16" (func 60)) + (export "i32_call" (func 61)) + (export "i32_call_indirect" (func 62)) + (export "i32_select" (func 63)) + (export "i64_add" (func 64)) + (export "i64_sub" (func 65)) + (export "i64_mul" (func 66)) + (export "i64_div_s" (func 67)) + (export "i64_div_u" (func 68)) + (export "i64_rem_s" (func 69)) + (export "i64_rem_u" (func 70)) + (export "i64_and" (func 71)) + (export "i64_or" (func 72)) + (export "i64_xor" (func 73)) + (export "i64_shl" (func 74)) + (export "i64_shr_u" (func 75)) + (export "i64_shr_s" (func 76)) + (export "i64_eq" (func 77)) + (export "i64_ne" (func 78)) + (export "i64_lt_s" (func 79)) + (export "i64_le_s" (func 80)) + (export "i64_lt_u" (func 81)) + (export "i64_le_u" (func 82)) + (export "i64_gt_s" (func 83)) + (export "i64_ge_s" (func 84)) + (export "i64_gt_u" (func 85)) + (export "i64_ge_u" (func 86)) + (export "i64_store" (func 87)) + (export "i64_store8" (func 88)) + (export "i64_store16" (func 89)) + (export "i64_store32" (func 90)) + (export "i64_call" (func 91)) + (export "i64_call_indirect" (func 92)) + (export "i64_select" (func 93)) + (export "f32_add" (func 94)) + (export "f32_sub" (func 95)) + (export "f32_mul" (func 96)) + (export "f32_div" (func 97)) + (export "f32_copysign" (func 98)) + (export "f32_eq" (func 99)) + (export "f32_ne" (func 100)) + (export "f32_lt" (func 101)) + (export "f32_le" (func 102)) + (export "f32_gt" (func 103)) + (export "f32_ge" (func 104)) + (export "f32_min" (func 105)) + (export "f32_max" (func 106)) + (export "f32_store" (func 107)) + (export "f32_call" (func 108)) + (export "f32_call_indirect" (func 109)) + (export "f32_select" (func 110)) + (export "f64_add" (func 111)) + (export "f64_sub" (func 112)) + (export "f64_mul" (func 113)) + (export "f64_div" (func 114)) + (export "f64_copysign" (func 115)) + (export "f64_eq" (func 116)) + (export "f64_ne" (func 117)) + (export "f64_lt" (func 118)) + (export "f64_le" (func 119)) + (export "f64_gt" (func 120)) + (export "f64_ge" (func 121)) + (export "f64_min" (func 122)) + (export "f64_max" (func 123)) + (export "f64_store" (func 124)) + (export "f64_call" (func 125)) + (export "f64_call_indirect" (func 126)) + (export "f64_select" (func 127)) + (export "br_if" (func 128)) + (export "br_table" (func 129)) + (elem (;0;) (i32.const 0) func $i32_t0 $i32_t1 $i64_t0 $i64_t1 $f32_t0 $f32_t1 $f64_t0 $f64_t1) (func $i32_t0 (;0;) (type $i32_T) (param i32 i32) (result i32) i32.const -1 ) @@ -969,102 +1067,4 @@ call $get end ) - (table (;0;) 8 8 funcref) - (memory (;0;) 1) - (export "i32_add" (func 35)) - (export "i32_sub" (func 36)) - (export "i32_mul" (func 37)) - (export "i32_div_s" (func 38)) - (export "i32_div_u" (func 39)) - (export "i32_rem_s" (func 40)) - (export "i32_rem_u" (func 41)) - (export "i32_and" (func 42)) - (export "i32_or" (func 43)) - (export "i32_xor" (func 44)) - (export "i32_shl" (func 45)) - (export "i32_shr_u" (func 46)) - (export "i32_shr_s" (func 47)) - (export "i32_eq" (func 48)) - (export "i32_ne" (func 49)) - (export "i32_lt_s" (func 50)) - (export "i32_le_s" (func 51)) - (export "i32_lt_u" (func 52)) - (export "i32_le_u" (func 53)) - (export "i32_gt_s" (func 54)) - (export "i32_ge_s" (func 55)) - (export "i32_gt_u" (func 56)) - (export "i32_ge_u" (func 57)) - (export "i32_store" (func 58)) - (export "i32_store8" (func 59)) - (export "i32_store16" (func 60)) - (export "i32_call" (func 61)) - (export "i32_call_indirect" (func 62)) - (export "i32_select" (func 63)) - (export "i64_add" (func 64)) - (export "i64_sub" (func 65)) - (export "i64_mul" (func 66)) - (export "i64_div_s" (func 67)) - (export "i64_div_u" (func 68)) - (export "i64_rem_s" (func 69)) - (export "i64_rem_u" (func 70)) - (export "i64_and" (func 71)) - (export "i64_or" (func 72)) - (export "i64_xor" (func 73)) - (export "i64_shl" (func 74)) - (export "i64_shr_u" (func 75)) - (export "i64_shr_s" (func 76)) - (export "i64_eq" (func 77)) - (export "i64_ne" (func 78)) - (export "i64_lt_s" (func 79)) - (export "i64_le_s" (func 80)) - (export "i64_lt_u" (func 81)) - (export "i64_le_u" (func 82)) - (export "i64_gt_s" (func 83)) - (export "i64_ge_s" (func 84)) - (export "i64_gt_u" (func 85)) - (export "i64_ge_u" (func 86)) - (export "i64_store" (func 87)) - (export "i64_store8" (func 88)) - (export "i64_store16" (func 89)) - (export "i64_store32" (func 90)) - (export "i64_call" (func 91)) - (export "i64_call_indirect" (func 92)) - (export "i64_select" (func 93)) - (export "f32_add" (func 94)) - (export "f32_sub" (func 95)) - (export "f32_mul" (func 96)) - (export "f32_div" (func 97)) - (export "f32_copysign" (func 98)) - (export "f32_eq" (func 99)) - (export "f32_ne" (func 100)) - (export "f32_lt" (func 101)) - (export "f32_le" (func 102)) - (export "f32_gt" (func 103)) - (export "f32_ge" (func 104)) - (export "f32_min" (func 105)) - (export "f32_max" (func 106)) - (export "f32_store" (func 107)) - (export "f32_call" (func 108)) - (export "f32_call_indirect" (func 109)) - (export "f32_select" (func 110)) - (export "f64_add" (func 111)) - (export "f64_sub" (func 112)) - (export "f64_mul" (func 113)) - (export "f64_div" (func 114)) - (export "f64_copysign" (func 115)) - (export "f64_eq" (func 116)) - (export "f64_ne" (func 117)) - (export "f64_lt" (func 118)) - (export "f64_le" (func 119)) - (export "f64_gt" (func 120)) - (export "f64_ge" (func 121)) - (export "f64_min" (func 122)) - (export "f64_max" (func 123)) - (export "f64_store" (func 124)) - (export "f64_call" (func 125)) - (export "f64_call_indirect" (func 126)) - (export "f64_select" (func 127)) - (export "br_if" (func 128)) - (export "br_table" (func 129)) - (elem (;0;) (i32.const 0) func $i32_t0 $i32_t1 $i64_t0 $i64_t1 $f32_t0 $f32_t1 $f64_t0 $f64_t1) ) diff --git a/tests/snapshots/testsuite/linking.wast/0.print b/tests/snapshots/testsuite/linking.wast/0.print index 3e6a6cd0ef..154a8afa07 100644 --- a/tests/snapshots/testsuite/linking.wast/0.print +++ b/tests/snapshots/testsuite/linking.wast/0.print @@ -1,10 +1,10 @@ (module $Mf (type (;0;) (func (result i32))) + (export "call" (func 0)) (func (;0;) (type 0) (result i32) call $g ) (func $g (;1;) (type 0) (result i32) i32.const 2 ) - (export "call" (func 0)) ) diff --git a/tests/snapshots/testsuite/linking.wast/100.print b/tests/snapshots/testsuite/linking.wast/100.print index dbbedca99e..3c11a7ecbc 100644 --- a/tests/snapshots/testsuite/linking.wast/100.print +++ b/tests/snapshots/testsuite/linking.wast/100.print @@ -1,12 +1,12 @@ (module $Nm (type (;0;) (func (param i32) (result i32))) (import "Mm" "load" (func $loadM (;0;) (type 0))) + (memory (;0;) 1) + (export "Mm.load" (func $loadM)) + (export "load" (func 1)) (func (;1;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (memory (;0;) 1) - (export "Mm.load" (func $loadM)) - (export "load" (func 1)) (data (;0;) (i32.const 10) "\f0\f1\f2\f3\f4\f5") ) diff --git a/tests/snapshots/testsuite/linking.wast/104.print b/tests/snapshots/testsuite/linking.wast/104.print index b370afdd26..8954f387ab 100644 --- a/tests/snapshots/testsuite/linking.wast/104.print +++ b/tests/snapshots/testsuite/linking.wast/104.print @@ -1,10 +1,10 @@ (module $Om (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem" (memory (;0;) 1)) + (export "load" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (export "load" (func 0)) (data (;0;) (i32.const 5) "\a0\a1\a2\a3\a4\a5\a6\a7") ) diff --git a/tests/snapshots/testsuite/linking.wast/11.print b/tests/snapshots/testsuite/linking.wast/11.print index 84ed2c075e..5d12ab8bcd 100644 --- a/tests/snapshots/testsuite/linking.wast/11.print +++ b/tests/snapshots/testsuite/linking.wast/11.print @@ -1,6 +1,13 @@ (module $Mg (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (global $glob (;0;) i32 i32.const 42) + (global $mut_glob (;1;) (mut i32) i32.const 142) + (export "glob" (global $glob)) + (export "get" (func 0)) + (export "mut_glob" (global $mut_glob)) + (export "get_mut" (func 1)) + (export "set_mut" (func 2)) (func (;0;) (type 0) (result i32) global.get $glob ) @@ -11,11 +18,4 @@ local.get 0 global.set $mut_glob ) - (global $glob (;0;) i32 i32.const 42) - (global $mut_glob (;1;) (mut i32) i32.const 142) - (export "glob" (global $glob)) - (export "get" (func 0)) - (export "mut_glob" (global $mut_glob)) - (export "get_mut" (func 1)) - (export "set_mut" (func 2)) ) diff --git a/tests/snapshots/testsuite/linking.wast/111.print b/tests/snapshots/testsuite/linking.wast/111.print index 6917dc02ac..d44420614c 100644 --- a/tests/snapshots/testsuite/linking.wast/111.print +++ b/tests/snapshots/testsuite/linking.wast/111.print @@ -1,9 +1,9 @@ (module $Pm (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem" (memory (;0;) 1 8)) + (export "grow" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/linking.wast/127.print b/tests/snapshots/testsuite/linking.wast/127.print index fb3eabaa79..310c6e31f7 100644 --- a/tests/snapshots/testsuite/linking.wast/127.print +++ b/tests/snapshots/testsuite/linking.wast/127.print @@ -1,5 +1,11 @@ (module $Ms (type $t (;0;) (func (result i32))) + (table (;0;) 1 funcref) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "table" (table 0)) + (export "get memory[0]" (func 0)) + (export "get table[0]" (func 1)) (func (;0;) (type $t) (result i32) i32.const 0 i32.load8_u @@ -8,10 +14,4 @@ i32.const 0 call_indirect (type $t) ) - (table (;0;) 1 funcref) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "table" (table 0)) - (export "get memory[0]" (func 0)) - (export "get table[0]" (func 1)) ) diff --git a/tests/snapshots/testsuite/linking.wast/13.print b/tests/snapshots/testsuite/linking.wast/13.print index 221a4d2a23..c4e8d1282f 100644 --- a/tests/snapshots/testsuite/linking.wast/13.print +++ b/tests/snapshots/testsuite/linking.wast/13.print @@ -6,9 +6,6 @@ (import "Mg" "get" (func $f (;0;) (type 0))) (import "Mg" "get_mut" (func $get_mut (;1;) (type 0))) (import "Mg" "set_mut" (func $set_mut (;2;) (type 1))) - (func (;3;) (type 0) (result i32) - global.get $glob - ) (global $glob (;2;) i32 i32.const 43) (export "Mg.glob" (global $x)) (export "Mg.get" (func $f)) @@ -17,4 +14,7 @@ (export "Mg.mut_glob" (global $mut_glob)) (export "Mg.get_mut" (func $get_mut)) (export "Mg.set_mut" (func $set_mut)) + (func (;3;) (type 0) (result i32) + global.get $glob + ) ) diff --git a/tests/snapshots/testsuite/linking.wast/2.print b/tests/snapshots/testsuite/linking.wast/2.print index c7bcf16e6c..9b37d161a3 100644 --- a/tests/snapshots/testsuite/linking.wast/2.print +++ b/tests/snapshots/testsuite/linking.wast/2.print @@ -1,6 +1,9 @@ (module $Nf (type (;0;) (func (result i32))) (import "Mf" "call" (func $f (;0;) (type 0))) + (export "Mf.call" (func $f)) + (export "call Mf.call" (func 1)) + (export "call" (func 2)) (func (;1;) (type 0) (result i32) call $f ) @@ -10,7 +13,4 @@ (func $g (;3;) (type 0) (result i32) i32.const 3 ) - (export "Mf.call" (func $f)) - (export "call Mf.call" (func 1)) - (export "call" (func 2)) ) diff --git a/tests/snapshots/testsuite/linking.wast/38.print b/tests/snapshots/testsuite/linking.wast/38.print index 1527e89cb1..b9ee3f5214 100644 --- a/tests/snapshots/testsuite/linking.wast/38.print +++ b/tests/snapshots/testsuite/linking.wast/38.print @@ -2,6 +2,11 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "tab" (table 0)) + (export "h" (func 1)) + (export "call" (func 2)) + (elem (;0;) (i32.const 2) func $g $g $g $g) (func $g (;0;) (type 0) (result i32) i32.const 4 ) @@ -12,9 +17,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "tab" (table 0)) - (export "h" (func 1)) - (export "call" (func 2)) - (elem (;0;) (i32.const 2) func $g $g $g $g) ) diff --git a/tests/snapshots/testsuite/linking.wast/40.print b/tests/snapshots/testsuite/linking.wast/40.print index 624fdd1ef4..282b723860 100644 --- a/tests/snapshots/testsuite/linking.wast/40.print +++ b/tests/snapshots/testsuite/linking.wast/40.print @@ -4,6 +4,11 @@ (type (;2;) (func (param i32) (result i32))) (import "Mt" "call" (func $f (;0;) (type 2))) (import "Mt" "h" (func $h (;1;) (type 1))) + (table (;0;) 5 5 funcref) + (export "Mt.call" (func $f)) + (export "call Mt.call" (func 3)) + (export "call" (func 4)) + (elem (;0;) (i32.const 0) func $g $g $g $h $f) (func $g (;2;) (type 1) (result i32) i32.const 5 ) @@ -15,9 +20,4 @@ local.get 0 call_indirect (type 1) ) - (table (;0;) 5 5 funcref) - (export "Mt.call" (func $f)) - (export "call Mt.call" (func 3)) - (export "call" (func 4)) - (elem (;0;) (i32.const 0) func $g $g $g $h $f) ) diff --git a/tests/snapshots/testsuite/linking.wast/59.print b/tests/snapshots/testsuite/linking.wast/59.print index e2f5bf2ae5..5651c85a30 100644 --- a/tests/snapshots/testsuite/linking.wast/59.print +++ b/tests/snapshots/testsuite/linking.wast/59.print @@ -3,6 +3,8 @@ (type (;1;) (func (param i32) (result i32))) (import "Mt" "h" (func $h (;0;) (type 0))) (import "Mt" "tab" (table (;0;) 5 funcref)) + (export "call" (func 2)) + (elem (;0;) (i32.const 1) func $i $h) (func $i (;1;) (type 0) (result i32) i32.const 6 ) @@ -10,6 +12,4 @@ local.get 0 call_indirect (type 0) ) - (export "call" (func 2)) - (elem (;0;) (i32.const 1) func $i $h) ) diff --git a/tests/snapshots/testsuite/linking.wast/80.print b/tests/snapshots/testsuite/linking.wast/80.print index 2858bb5556..c422f16ee8 100644 --- a/tests/snapshots/testsuite/linking.wast/80.print +++ b/tests/snapshots/testsuite/linking.wast/80.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "Mt" "tab" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/linking.wast/98.print b/tests/snapshots/testsuite/linking.wast/98.print index f21eaa4f0a..3a67a6d945 100644 --- a/tests/snapshots/testsuite/linking.wast/98.print +++ b/tests/snapshots/testsuite/linking.wast/98.print @@ -1,11 +1,11 @@ (module $Mm (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 1 5) + (export "mem" (memory 0)) + (export "load" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (memory (;0;) 1 5) - (export "mem" (memory 0)) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\00\01\02\03\04\05\06\07\08\09") ) diff --git a/tests/snapshots/testsuite/load.wast/0.print b/tests/snapshots/testsuite/load.wast/0.print index 7ec5c2099d..68c0af17ee 100644 --- a/tests/snapshots/testsuite/load.wast/0.print +++ b/tests/snapshots/testsuite/load.wast/0.print @@ -3,6 +3,47 @@ (type (;1;) (func (result i32))) (type (;2;) (func)) (type (;3;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "as-br-value" (func 0)) + (export "as-br_if-cond" (func 1)) + (export "as-br_if-value" (func 2)) + (export "as-br_if-value-cond" (func 3)) + (export "as-br_table-index" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-br_table-value-index" (func 6)) + (export "as-return-value" (func 7)) + (export "as-if-cond" (func 8)) + (export "as-if-then" (func 9)) + (export "as-if-else" (func 10)) + (export "as-select-first" (func 11)) + (export "as-select-second" (func 12)) + (export "as-select-cond" (func 13)) + (export "as-call-first" (func 15)) + (export "as-call-mid" (func 16)) + (export "as-call-last" (func 17)) + (export "as-call_indirect-first" (func 18)) + (export "as-call_indirect-mid" (func 19)) + (export "as-call_indirect-last" (func 20)) + (export "as-call_indirect-index" (func 21)) + (export "as-local.set-value" (func 22)) + (export "as-local.tee-value" (func 23)) + (export "as-global.set-value" (func 24)) + (export "as-load-address" (func 25)) + (export "as-loadN-address" (func 26)) + (export "as-store-address" (func 27)) + (export "as-store-value" (func 28)) + (export "as-storeN-address" (func 29)) + (export "as-storeN-value" (func 30)) + (export "as-unary-operand" (func 31)) + (export "as-binary-left" (func 32)) + (export "as-binary-right" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-left" (func 35)) + (export "as-compare-right" (func 36)) + (export "as-memory.grow-size" (func 37)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) block (result i32) ;; label = @1 i32.const 0 @@ -262,45 +303,4 @@ i32.load memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "as-br-value" (func 0)) - (export "as-br_if-cond" (func 1)) - (export "as-br_if-value" (func 2)) - (export "as-br_if-value-cond" (func 3)) - (export "as-br_table-index" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-br_table-value-index" (func 6)) - (export "as-return-value" (func 7)) - (export "as-if-cond" (func 8)) - (export "as-if-then" (func 9)) - (export "as-if-else" (func 10)) - (export "as-select-first" (func 11)) - (export "as-select-second" (func 12)) - (export "as-select-cond" (func 13)) - (export "as-call-first" (func 15)) - (export "as-call-mid" (func 16)) - (export "as-call-last" (func 17)) - (export "as-call_indirect-first" (func 18)) - (export "as-call_indirect-mid" (func 19)) - (export "as-call_indirect-last" (func 20)) - (export "as-call_indirect-index" (func 21)) - (export "as-local.set-value" (func 22)) - (export "as-local.tee-value" (func 23)) - (export "as-global.set-value" (func 24)) - (export "as-load-address" (func 25)) - (export "as-loadN-address" (func 26)) - (export "as-store-address" (func 27)) - (export "as-store-value" (func 28)) - (export "as-storeN-address" (func 29)) - (export "as-storeN-value" (func 30)) - (export "as-unary-operand" (func 31)) - (export "as-binary-left" (func 32)) - (export "as-binary-right" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-left" (func 35)) - (export "as-compare-right" (func 36)) - (export "as-memory.grow-size" (func 37)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/local_get.wast/0.print b/tests/snapshots/testsuite/local_get.wast/0.print index 7ac605c8a9..2a199e5b8b 100644 --- a/tests/snapshots/testsuite/local_get.wast/0.print +++ b/tests/snapshots/testsuite/local_get.wast/0.print @@ -9,6 +9,25 @@ (type (;7;) (func (param f64) (result f64))) (type (;8;) (func (param i64 f32 f64 i32 i32))) (type (;9;) (func (param i64 f32 f64 i32 i32) (result f64))) + (export "type-local-i32" (func 0)) + (export "type-local-i64" (func 1)) + (export "type-local-f32" (func 2)) + (export "type-local-f64" (func 3)) + (export "type-param-i32" (func 4)) + (export "type-param-i64" (func 5)) + (export "type-param-f32" (func 6)) + (export "type-param-f64" (func 7)) + (export "type-mixed" (func 8)) + (export "read" (func 9)) + (export "as-block-value" (func 10)) + (export "as-loop-value" (func 11)) + (export "as-br-value" (func 12)) + (export "as-br_if-value" (func 13)) + (export "as-br_if-value-cond" (func 14)) + (export "as-br_table-value" (func 15)) + (export "as-return-value" (func 16)) + (export "as-if-then" (func 17)) + (export "as-if-else" (func 18)) (func (;0;) (type 0) (result i32) (local i32) local.get 0 @@ -167,23 +186,4 @@ local.get 0 end ) - (export "type-local-i32" (func 0)) - (export "type-local-i64" (func 1)) - (export "type-local-f32" (func 2)) - (export "type-local-f64" (func 3)) - (export "type-param-i32" (func 4)) - (export "type-param-i64" (func 5)) - (export "type-param-f32" (func 6)) - (export "type-param-f64" (func 7)) - (export "type-mixed" (func 8)) - (export "read" (func 9)) - (export "as-block-value" (func 10)) - (export "as-loop-value" (func 11)) - (export "as-br-value" (func 12)) - (export "as-br_if-value" (func 13)) - (export "as-br_if-value-cond" (func 14)) - (export "as-br_table-value" (func 15)) - (export "as-return-value" (func 16)) - (export "as-if-then" (func 17)) - (export "as-if-else" (func 18)) ) diff --git a/tests/snapshots/testsuite/local_set.wast/0.print b/tests/snapshots/testsuite/local_set.wast/0.print index 53d4cb46bc..3ec0ef8d47 100644 --- a/tests/snapshots/testsuite/local_set.wast/0.print +++ b/tests/snapshots/testsuite/local_set.wast/0.print @@ -6,6 +6,25 @@ (type (;4;) (func (param f64))) (type (;5;) (func (param i64 f32 f64 i32 i32))) (type (;6;) (func (param i64 f32 f64 i32 i32) (result i64))) + (export "type-local-i32" (func 0)) + (export "type-local-i64" (func 1)) + (export "type-local-f32" (func 2)) + (export "type-local-f64" (func 3)) + (export "type-param-i32" (func 4)) + (export "type-param-i64" (func 5)) + (export "type-param-f32" (func 6)) + (export "type-param-f64" (func 7)) + (export "type-mixed" (func 8)) + (export "write" (func 9)) + (export "as-block-value" (func 10)) + (export "as-loop-value" (func 11)) + (export "as-br-value" (func 12)) + (export "as-br_if-value" (func 13)) + (export "as-br_if-value-cond" (func 14)) + (export "as-br_table-value" (func 15)) + (export "as-return-value" (func 16)) + (export "as-if-then" (func 17)) + (export "as-if-else" (func 18)) (func (;0;) (type 0) (local i32) i32.const 0 @@ -166,23 +185,4 @@ local.set 0 end ) - (export "type-local-i32" (func 0)) - (export "type-local-i64" (func 1)) - (export "type-local-f32" (func 2)) - (export "type-local-f64" (func 3)) - (export "type-param-i32" (func 4)) - (export "type-param-i64" (func 5)) - (export "type-param-f32" (func 6)) - (export "type-param-f64" (func 7)) - (export "type-mixed" (func 8)) - (export "write" (func 9)) - (export "as-block-value" (func 10)) - (export "as-loop-value" (func 11)) - (export "as-br-value" (func 12)) - (export "as-br_if-value" (func 13)) - (export "as-br_if-value-cond" (func 14)) - (export "as-br_table-value" (func 15)) - (export "as-return-value" (func 16)) - (export "as-if-then" (func 17)) - (export "as-if-else" (func 18)) ) diff --git a/tests/snapshots/testsuite/local_tee.wast/0.print b/tests/snapshots/testsuite/local_tee.wast/0.print index 3756f6e72f..b4455f3cb7 100644 --- a/tests/snapshots/testsuite/local_tee.wast/0.print +++ b/tests/snapshots/testsuite/local_tee.wast/0.print @@ -15,6 +15,65 @@ (type (;13;) (func (param i32))) (type (;14;) (func (param i32 i32) (result i32))) (type (;15;) (func (param i64) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "type-local-i32" (func 0)) + (export "type-local-i64" (func 1)) + (export "type-local-f32" (func 2)) + (export "type-local-f64" (func 3)) + (export "type-param-i32" (func 4)) + (export "type-param-i64" (func 5)) + (export "type-param-f32" (func 6)) + (export "type-param-f64" (func 7)) + (export "type-mixed" (func 8)) + (export "write" (func 9)) + (export "result" (func 10)) + (export "as-block-first" (func 12)) + (export "as-block-mid" (func 13)) + (export "as-block-last" (func 14)) + (export "as-loop-first" (func 15)) + (export "as-loop-mid" (func 16)) + (export "as-loop-last" (func 17)) + (export "as-br-value" (func 18)) + (export "as-br_if-cond" (func 19)) + (export "as-br_if-value" (func 20)) + (export "as-br_if-value-cond" (func 21)) + (export "as-br_table-index" (func 22)) + (export "as-br_table-value" (func 23)) + (export "as-br_table-value-index" (func 24)) + (export "as-return-value" (func 25)) + (export "as-if-cond" (func 26)) + (export "as-if-then" (func 27)) + (export "as-if-else" (func 28)) + (export "as-select-first" (func 29)) + (export "as-select-second" (func 30)) + (export "as-select-cond" (func 31)) + (export "as-call-first" (func 33)) + (export "as-call-mid" (func 34)) + (export "as-call-last" (func 35)) + (export "as-call_indirect-first" (func 36)) + (export "as-call_indirect-mid" (func 37)) + (export "as-call_indirect-last" (func 38)) + (export "as-call_indirect-index" (func 39)) + (export "as-local.set-value" (func 40)) + (export "as-local.tee-value" (func 41)) + (export "as-global.set-value" (func 42)) + (export "as-load-address" (func 43)) + (export "as-loadN-address" (func 44)) + (export "as-store-address" (func 45)) + (export "as-store-value" (func 46)) + (export "as-storeN-address" (func 47)) + (export "as-storeN-value" (func 48)) + (export "as-unary-operand" (func 49)) + (export "as-binary-left" (func 50)) + (export "as-binary-right" (func 51)) + (export "as-test-operand" (func 52)) + (export "as-compare-left" (func 53)) + (export "as-compare-right" (func 54)) + (export "as-convert-operand" (func 55)) + (export "as-memory.grow-size" (func 56)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) (local i32) i32.const 0 @@ -482,63 +541,4 @@ local.tee 0 memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "type-local-i32" (func 0)) - (export "type-local-i64" (func 1)) - (export "type-local-f32" (func 2)) - (export "type-local-f64" (func 3)) - (export "type-param-i32" (func 4)) - (export "type-param-i64" (func 5)) - (export "type-param-f32" (func 6)) - (export "type-param-f64" (func 7)) - (export "type-mixed" (func 8)) - (export "write" (func 9)) - (export "result" (func 10)) - (export "as-block-first" (func 12)) - (export "as-block-mid" (func 13)) - (export "as-block-last" (func 14)) - (export "as-loop-first" (func 15)) - (export "as-loop-mid" (func 16)) - (export "as-loop-last" (func 17)) - (export "as-br-value" (func 18)) - (export "as-br_if-cond" (func 19)) - (export "as-br_if-value" (func 20)) - (export "as-br_if-value-cond" (func 21)) - (export "as-br_table-index" (func 22)) - (export "as-br_table-value" (func 23)) - (export "as-br_table-value-index" (func 24)) - (export "as-return-value" (func 25)) - (export "as-if-cond" (func 26)) - (export "as-if-then" (func 27)) - (export "as-if-else" (func 28)) - (export "as-select-first" (func 29)) - (export "as-select-second" (func 30)) - (export "as-select-cond" (func 31)) - (export "as-call-first" (func 33)) - (export "as-call-mid" (func 34)) - (export "as-call-last" (func 35)) - (export "as-call_indirect-first" (func 36)) - (export "as-call_indirect-mid" (func 37)) - (export "as-call_indirect-last" (func 38)) - (export "as-call_indirect-index" (func 39)) - (export "as-local.set-value" (func 40)) - (export "as-local.tee-value" (func 41)) - (export "as-global.set-value" (func 42)) - (export "as-load-address" (func 43)) - (export "as-loadN-address" (func 44)) - (export "as-store-address" (func 45)) - (export "as-store-value" (func 46)) - (export "as-storeN-address" (func 47)) - (export "as-storeN-value" (func 48)) - (export "as-unary-operand" (func 49)) - (export "as-binary-left" (func 50)) - (export "as-binary-right" (func 51)) - (export "as-test-operand" (func 52)) - (export "as-compare-left" (func 53)) - (export "as-compare-right" (func 54)) - (export "as-convert-operand" (func 55)) - (export "as-memory.grow-size" (func 56)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/loop.wast/0.print b/tests/snapshots/testsuite/loop.wast/0.print index 47294cad45..bbba1df0ea 100644 --- a/tests/snapshots/testsuite/loop.wast/0.print +++ b/tests/snapshots/testsuite/loop.wast/0.print @@ -13,6 +13,63 @@ (type (;11;) (func (param i32 i32) (result i32 i32))) (type (;12;) (func (param i64) (result i64))) (type (;13;) (func (param f32 f32) (result f32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 0) + (export "empty" (func 1)) + (export "singular" (func 2)) + (export "multi" (func 3)) + (export "nested" (func 4)) + (export "deep" (func 5)) + (export "as-select-first" (func 6)) + (export "as-select-mid" (func 7)) + (export "as-select-last" (func 8)) + (export "as-if-condition" (func 9)) + (export "as-if-then" (func 10)) + (export "as-if-else" (func 11)) + (export "as-br_if-first" (func 12)) + (export "as-br_if-last" (func 13)) + (export "as-br_table-first" (func 14)) + (export "as-br_table-last" (func 15)) + (export "as-call_indirect-first" (func 17)) + (export "as-call_indirect-mid" (func 18)) + (export "as-call_indirect-last" (func 19)) + (export "as-store-first" (func 20)) + (export "as-store-last" (func 21)) + (export "as-memory.grow-value" (func 22)) + (export "as-call-value" (func 24)) + (export "as-return-value" (func 25)) + (export "as-drop-operand" (func 26)) + (export "as-br-value" (func 27)) + (export "as-local.set-value" (func 28)) + (export "as-local.tee-value" (func 29)) + (export "as-global.set-value" (func 30)) + (export "as-load-operand" (func 31)) + (export "as-unary-operand" (func 32)) + (export "as-binary-operand" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-operand" (func 35)) + (export "as-binary-operands" (func 36)) + (export "as-compare-operands" (func 37)) + (export "as-mixed-operands" (func 38)) + (export "break-bare" (func 39)) + (export "break-value" (func 40)) + (export "break-multi-value" (func 41)) + (export "break-repeated" (func 42)) + (export "break-inner" (func 43)) + (export "cont-inner" (func 44)) + (export "param" (func 45)) + (export "params" (func 46)) + (export "params-id" (func 47)) + (export "param-break" (func 48)) + (export "params-break" (func 49)) + (export "params-id-break" (func 50)) + (export "effects" (func $fx)) + (export "while" (func 52)) + (export "for" (func 53)) + (export "nesting" (func 54)) + (export "type-use" (func 55)) + (elem (;0;) (i32.const 0) func $func) (func $dummy (;0;) (type $block-sig-1)) (func (;1;) (type $block-sig-1) loop ;; label = @1 @@ -829,61 +886,4 @@ drop drop ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 0) - (export "empty" (func 1)) - (export "singular" (func 2)) - (export "multi" (func 3)) - (export "nested" (func 4)) - (export "deep" (func 5)) - (export "as-select-first" (func 6)) - (export "as-select-mid" (func 7)) - (export "as-select-last" (func 8)) - (export "as-if-condition" (func 9)) - (export "as-if-then" (func 10)) - (export "as-if-else" (func 11)) - (export "as-br_if-first" (func 12)) - (export "as-br_if-last" (func 13)) - (export "as-br_table-first" (func 14)) - (export "as-br_table-last" (func 15)) - (export "as-call_indirect-first" (func 17)) - (export "as-call_indirect-mid" (func 18)) - (export "as-call_indirect-last" (func 19)) - (export "as-store-first" (func 20)) - (export "as-store-last" (func 21)) - (export "as-memory.grow-value" (func 22)) - (export "as-call-value" (func 24)) - (export "as-return-value" (func 25)) - (export "as-drop-operand" (func 26)) - (export "as-br-value" (func 27)) - (export "as-local.set-value" (func 28)) - (export "as-local.tee-value" (func 29)) - (export "as-global.set-value" (func 30)) - (export "as-load-operand" (func 31)) - (export "as-unary-operand" (func 32)) - (export "as-binary-operand" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-operand" (func 35)) - (export "as-binary-operands" (func 36)) - (export "as-compare-operands" (func 37)) - (export "as-mixed-operands" (func 38)) - (export "break-bare" (func 39)) - (export "break-value" (func 40)) - (export "break-multi-value" (func 41)) - (export "break-repeated" (func 42)) - (export "break-inner" (func 43)) - (export "cont-inner" (func 44)) - (export "param" (func 45)) - (export "params" (func 46)) - (export "params-id" (func 47)) - (export "param-break" (func 48)) - (export "params-break" (func 49)) - (export "params-id-break" (func 50)) - (export "effects" (func $fx)) - (export "while" (func 52)) - (export "for" (func 53)) - (export "nesting" (func 54)) - (export "type-use" (func 55)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/memory.wast/10.print b/tests/snapshots/testsuite/memory.wast/10.print index 00b8e1a309..6604488ce4 100644 --- a/tests/snapshots/testsuite/memory.wast/10.print +++ b/tests/snapshots/testsuite/memory.wast/10.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 0 0) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 0 0) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "") ) diff --git a/tests/snapshots/testsuite/memory.wast/12.print b/tests/snapshots/testsuite/memory.wast/12.print index 84bc4686fc..4eb767d55f 100644 --- a/tests/snapshots/testsuite/memory.wast/12.print +++ b/tests/snapshots/testsuite/memory.wast/12.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 1 1) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 1 1) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "x") ) diff --git a/tests/snapshots/testsuite/memory.wast/33.print b/tests/snapshots/testsuite/memory.wast/33.print index 1413e79ade..8d87e11de2 100644 --- a/tests/snapshots/testsuite/memory.wast/33.print +++ b/tests/snapshots/testsuite/memory.wast/33.print @@ -3,6 +3,19 @@ (type (;1;) (func (result f64))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func (param i64) (result i64))) + (memory (;0;) 1) + (export "data" (func 0)) + (export "cast" (func 1)) + (export "i32_load8_s" (func 2)) + (export "i32_load8_u" (func 3)) + (export "i32_load16_s" (func 4)) + (export "i32_load16_u" (func 5)) + (export "i64_load8_s" (func 6)) + (export "i64_load8_u" (func 7)) + (export "i64_load16_s" (func 8)) + (export "i64_load16_u" (func 9)) + (export "i64_load32_s" (func 10)) + (export "i64_load32_u" (func 11)) (func (;0;) (type 0) (result i32) i32.const 0 i32.load8_u @@ -136,19 +149,6 @@ i32.const 8 i64.load32_u ) - (memory (;0;) 1) - (export "data" (func 0)) - (export "cast" (func 1)) - (export "i32_load8_s" (func 2)) - (export "i32_load8_u" (func 3)) - (export "i32_load16_s" (func 4)) - (export "i32_load16_u" (func 5)) - (export "i64_load8_s" (func 6)) - (export "i64_load8_u" (func 7)) - (export "i64_load16_s" (func 8)) - (export "i64_load16_u" (func 9)) - (export "i64_load32_s" (func 10)) - (export "i64_load32_u" (func 11)) (data (;0;) (i32.const 0) "ABC\a7D") (data (;1;) (i32.const 20) "WASM") ) diff --git a/tests/snapshots/testsuite/memory.wast/79.print b/tests/snapshots/testsuite/memory.wast/79.print index 20f91d9cb6..5402b2b5a2 100644 --- a/tests/snapshots/testsuite/memory.wast/79.print +++ b/tests/snapshots/testsuite/memory.wast/79.print @@ -1,9 +1,5 @@ (module (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param i32) (result i32) - local.get 0 - i32.load8_u - ) (memory (;0;) 1 1) (global (;0;) i32 i32.const 10000) (global (;1;) i32 i32.const 10000) @@ -13,4 +9,8 @@ (export "__stack_top" (global 1)) (export "__heap_base" (global 2)) (export "load" (func 0)) + (func (;0;) (type 0) (param i32) (result i32) + local.get 0 + i32.load8_u + ) ) diff --git a/tests/snapshots/testsuite/memory.wast/8.print b/tests/snapshots/testsuite/memory.wast/8.print index 00b8e1a309..6604488ce4 100644 --- a/tests/snapshots/testsuite/memory.wast/8.print +++ b/tests/snapshots/testsuite/memory.wast/8.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 0 0) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 0 0) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/0.print b/tests/snapshots/testsuite/memory_copy.wast/0.print index 9201375bd1..7b642156a7 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/0.print +++ b/tests/snapshots/testsuite/memory_copy.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) nop ) @@ -8,10 +12,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/128.print b/tests/snapshots/testsuite/memory_copy.wast/128.print index f4cd80f807..6439cc2751 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/128.print +++ b/tests/snapshots/testsuite/memory_copy.wast/128.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 20 i32.const 22 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/1310.print b/tests/snapshots/testsuite/memory_copy.wast/1310.print index 783888104c..c318a677c5 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/1310.print +++ b/tests/snapshots/testsuite/memory_copy.wast/1310.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65515) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13\14") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/160.print b/tests/snapshots/testsuite/memory_copy.wast/160.print index ab52e50096..f27204ee35 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/160.print +++ b/tests/snapshots/testsuite/memory_copy.wast/160.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 25 i32.const 1 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/1662.print b/tests/snapshots/testsuite/memory_copy.wast/1662.print index 8ce9b65ba8..1b3a58b268 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/1662.print +++ b/tests/snapshots/testsuite/memory_copy.wast/1662.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65486) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/192.print b/tests/snapshots/testsuite/memory_copy.wast/192.print index 74c0e71909..ca6d049833 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/192.print +++ b/tests/snapshots/testsuite/memory_copy.wast/192.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 10 i32.const 12 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/2013.print b/tests/snapshots/testsuite/memory_copy.wast/2013.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/2013.print +++ b/tests/snapshots/testsuite/memory_copy.wast/2013.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/224.print b/tests/snapshots/testsuite/memory_copy.wast/224.print index 8b58a63f57..40e3ae98d2 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/224.print +++ b/tests/snapshots/testsuite/memory_copy.wast/224.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 12 i32.const 10 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/2364.print b/tests/snapshots/testsuite/memory_copy.wast/2364.print index 53ee133842..e4ac06bad1 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/2364.print +++ b/tests/snapshots/testsuite/memory_copy.wast/2364.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65506) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/256.print b/tests/snapshots/testsuite/memory_copy.wast/256.print index c6b9491833..9741a6b68e 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/256.print +++ b/tests/snapshots/testsuite/memory_copy.wast/256.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/2715.print b/tests/snapshots/testsuite/memory_copy.wast/2715.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/2715.print +++ b/tests/snapshots/testsuite/memory_copy.wast/2715.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/3066.print b/tests/snapshots/testsuite/memory_copy.wast/3066.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/3066.print +++ b/tests/snapshots/testsuite/memory_copy.wast/3066.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/32.print b/tests/snapshots/testsuite/memory_copy.wast/32.print index 7b3f4d758d..e6144f02c3 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/32.print +++ b/tests/snapshots/testsuite/memory_copy.wast/32.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 13 i32.const 2 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/3417.print b/tests/snapshots/testsuite/memory_copy.wast/3417.print index fecddc9fcd..cdb9782959 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/3417.print +++ b/tests/snapshots/testsuite/memory_copy.wast/3417.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/3768.print b/tests/snapshots/testsuite/memory_copy.wast/3768.print index 45f811ee52..d3101b18ca 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/3768.print +++ b/tests/snapshots/testsuite/memory_copy.wast/3768.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 61440) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4183.print b/tests/snapshots/testsuite/memory_copy.wast/4183.print index d169b8587d..80e7eb5256 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4183.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4183.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32 i32 i32) (result i32))) + (memory (;0;) 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i32.const 10 i32.const 85 @@ -35,7 +38,4 @@ local.get $from return ) - (memory (;0;) 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4188.print b/tests/snapshots/testsuite/memory_copy.wast/4188.print index b89b9cba04..62a7897139 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4188.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4188.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32 i32 i32) (result i32))) + (memory (;0;) 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i32.const 10 i32.const 85 @@ -35,7 +38,4 @@ local.get $from return ) - (memory (;0;) 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4193.print b/tests/snapshots/testsuite/memory_copy.wast/4193.print index 6be034da65..38bcce6366 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4193.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4193.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65280 i32.const 32768 i32.const 257 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4195.print b/tests/snapshots/testsuite/memory_copy.wast/4195.print index b3e0e3f46c..1e8648ae08 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4195.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4195.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const -256 i32.const 16384 i32.const 257 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4197.print b/tests/snapshots/testsuite/memory_copy.wast/4197.print index 6b704ed535..7b0bc28598 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4197.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4197.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 32768 i32.const 65280 i32.const 257 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4199.print b/tests/snapshots/testsuite/memory_copy.wast/4199.print index acbc16afb8..7348c08469 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4199.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4199.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 16384 i32.const -256 i32.const 257 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4201.print b/tests/snapshots/testsuite/memory_copy.wast/4201.print index cdccdc17a5..f9a7e5cd95 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4201.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4201.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32 i32 i32) (result i32))) + (memory (;0;) 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i32.const 0 i32.const 85 @@ -39,7 +42,4 @@ local.get $from return ) - (memory (;0;) 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4205.print b/tests/snapshots/testsuite/memory_copy.wast/4205.print index d12349278b..2185feee85 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4205.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4205.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65536 i32.const 28672 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4207.print b/tests/snapshots/testsuite/memory_copy.wast/4207.print index d79c0d3b61..a9c73ebea3 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4207.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4207.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 131072 i32.const 28672 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4209.print b/tests/snapshots/testsuite/memory_copy.wast/4209.print index 0d1ddec5f5..203f630e0e 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4209.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4209.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 36864 i32.const 65536 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4211.print b/tests/snapshots/testsuite/memory_copy.wast/4211.print index ba85e7419c..b0c5a5fe1b 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4211.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4211.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 36864 i32.const 131072 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4213.print b/tests/snapshots/testsuite/memory_copy.wast/4213.print index f0774c0771..77c324a38e 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4213.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4213.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65536 i32.const 65536 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4215.print b/tests/snapshots/testsuite/memory_copy.wast/4215.print index b1d6ee9b79..5cf3f3a4d9 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4215.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4215.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 131072 i32.const 131072 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/4217.print b/tests/snapshots/testsuite/memory_copy.wast/4217.print index 0aad788d6d..4d4928f068 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/4217.print +++ b/tests/snapshots/testsuite/memory_copy.wast/4217.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32 i32 i32) (result i32))) + (memory (;0;) 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i32.const 17767 i32.const 1 @@ -827,7 +830,4 @@ local.get $from return ) - (memory (;0;) 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/607.print b/tests/snapshots/testsuite/memory_copy.wast/607.print index f596350fbe..4bfe59654a 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/607.print +++ b/tests/snapshots/testsuite/memory_copy.wast/607.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13\14") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/64.print b/tests/snapshots/testsuite/memory_copy.wast/64.print index f280f19277..428e01e4d1 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/64.print +++ b/tests/snapshots/testsuite/memory_copy.wast/64.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 25 i32.const 15 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/959.print b/tests/snapshots/testsuite/memory_copy.wast/959.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/959.print +++ b/tests/snapshots/testsuite/memory_copy.wast/959.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/memory_copy.wast/96.print b/tests/snapshots/testsuite/memory_copy.wast/96.print index 7f0eccbb2b..2a1ed6ad87 100644 --- a/tests/snapshots/testsuite/memory_copy.wast/96.print +++ b/tests/snapshots/testsuite/memory_copy.wast/96.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 13 i32.const 25 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/0.print b/tests/snapshots/testsuite/memory_fill.wast/0.print index 15f0a97b9f..a93e135148 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/0.print +++ b/tests/snapshots/testsuite/memory_fill.wast/0.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 256 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/11.print b/tests/snapshots/testsuite/memory_fill.wast/11.print index 07d96e30f8..31babd99da 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/11.print +++ b/tests/snapshots/testsuite/memory_fill.wast/11.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 0 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/13.print b/tests/snapshots/testsuite/memory_fill.wast/13.print index 9f323b898c..611a26cb5c 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/13.print +++ b/tests/snapshots/testsuite/memory_fill.wast/13.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 0 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/15.print b/tests/snapshots/testsuite/memory_fill.wast/15.print index 22bbd04e8f..e5344f7c2d 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/15.print +++ b/tests/snapshots/testsuite/memory_fill.wast/15.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 65534 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/20.print b/tests/snapshots/testsuite/memory_fill.wast/20.print index 6fd18c5b62..f0882323e3 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/20.print +++ b/tests/snapshots/testsuite/memory_fill.wast/20.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -35,7 +38,4 @@ i32.const 4 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/4.print b/tests/snapshots/testsuite/memory_fill.wast/4.print index 84f4b0b7ea..c33cbb009c 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/4.print +++ b/tests/snapshots/testsuite/memory_fill.wast/4.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 257 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/6.print b/tests/snapshots/testsuite/memory_fill.wast/6.print index 862cfea0e9..a18d8a0c2b 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/6.print +++ b/tests/snapshots/testsuite/memory_fill.wast/6.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 257 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/8.print b/tests/snapshots/testsuite/memory_fill.wast/8.print index 39ea80786f..838c323c16 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/8.print +++ b/tests/snapshots/testsuite/memory_fill.wast/8.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 0 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/91.print b/tests/snapshots/testsuite/memory_fill.wast/91.print index 24e901cc21..889d6bae4f 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/91.print +++ b/tests/snapshots/testsuite/memory_fill.wast/91.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ local.get $len memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/94.print b/tests/snapshots/testsuite/memory_fill.wast/94.print index 24e901cc21..889d6bae4f 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/94.print +++ b/tests/snapshots/testsuite/memory_fill.wast/94.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ local.get $len memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_fill.wast/97.print b/tests/snapshots/testsuite/memory_fill.wast/97.print index 24e901cc21..889d6bae4f 100644 --- a/tests/snapshots/testsuite/memory_fill.wast/97.print +++ b/tests/snapshots/testsuite/memory_fill.wast/97.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ local.get $len memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_grow.wast/0.print b/tests/snapshots/testsuite/memory_grow.wast/0.print index afc96c4079..5ebec0f0b3 100644 --- a/tests/snapshots/testsuite/memory_grow.wast/0.print +++ b/tests/snapshots/testsuite/memory_grow.wast/0.print @@ -2,6 +2,13 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i32))) + (memory (;0;) 0) + (export "load_at_zero" (func 0)) + (export "store_at_zero" (func 1)) + (export "load_at_page_size" (func 2)) + (export "store_at_page_size" (func 3)) + (export "grow" (func 4)) + (export "size" (func 5)) (func (;0;) (type 0) (result i32) i32.const 0 i32.load @@ -27,11 +34,4 @@ (func (;5;) (type 0) (result i32) memory.size ) - (memory (;0;) 0) - (export "load_at_zero" (func 0)) - (export "store_at_zero" (func 1)) - (export "load_at_page_size" (func 2)) - (export "store_at_page_size" (func 3)) - (export "grow" (func 4)) - (export "size" (func 5)) ) diff --git a/tests/snapshots/testsuite/memory_grow.wast/21.print b/tests/snapshots/testsuite/memory_grow.wast/21.print index e6b320586d..50555caaed 100644 --- a/tests/snapshots/testsuite/memory_grow.wast/21.print +++ b/tests/snapshots/testsuite/memory_grow.wast/21.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 0) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (memory (;0;) 0) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_grow.wast/30.print b/tests/snapshots/testsuite/memory_grow.wast/30.print index a35d99218a..292fc4d161 100644 --- a/tests/snapshots/testsuite/memory_grow.wast/30.print +++ b/tests/snapshots/testsuite/memory_grow.wast/30.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 0 10) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (memory (;0;) 0 10) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_grow.wast/39.print b/tests/snapshots/testsuite/memory_grow.wast/39.print index b7c5e0e7c3..e5a32ddd56 100644 --- a/tests/snapshots/testsuite/memory_grow.wast/39.print +++ b/tests/snapshots/testsuite/memory_grow.wast/39.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32) (result i32))) + (memory (;0;) 1) + (export "grow" (func 0)) + (export "check-memory-zero" (func 1)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow @@ -34,7 +37,4 @@ end local.get 2 ) - (memory (;0;) 1) - (export "grow" (func 0)) - (export "check-memory-zero" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_grow.wast/51.print b/tests/snapshots/testsuite/memory_grow.wast/51.print index a2125d870b..e6fac4087c 100644 --- a/tests/snapshots/testsuite/memory_grow.wast/51.print +++ b/tests/snapshots/testsuite/memory_grow.wast/51.print @@ -3,6 +3,47 @@ (type (;1;) (func (result i32))) (type (;2;) (func)) (type (;3;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "as-br-value" (func 0)) + (export "as-br_if-cond" (func 1)) + (export "as-br_if-value" (func 2)) + (export "as-br_if-value-cond" (func 3)) + (export "as-br_table-index" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-br_table-value-index" (func 6)) + (export "as-return-value" (func 7)) + (export "as-if-cond" (func 8)) + (export "as-if-then" (func 9)) + (export "as-if-else" (func 10)) + (export "as-select-first" (func 11)) + (export "as-select-second" (func 12)) + (export "as-select-cond" (func 13)) + (export "as-call-first" (func 15)) + (export "as-call-mid" (func 16)) + (export "as-call-last" (func 17)) + (export "as-call_indirect-first" (func 18)) + (export "as-call_indirect-mid" (func 19)) + (export "as-call_indirect-last" (func 20)) + (export "as-call_indirect-index" (func 21)) + (export "as-local.set-value" (func 22)) + (export "as-local.tee-value" (func 23)) + (export "as-global.set-value" (func 24)) + (export "as-load-address" (func 25)) + (export "as-loadN-address" (func 26)) + (export "as-store-address" (func 27)) + (export "as-store-value" (func 28)) + (export "as-storeN-address" (func 29)) + (export "as-storeN-value" (func 30)) + (export "as-unary-operand" (func 31)) + (export "as-binary-left" (func 32)) + (export "as-binary-right" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-left" (func 35)) + (export "as-compare-right" (func 36)) + (export "as-memory.grow-size" (func 37)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) block (result i32) ;; label = @1 i32.const 0 @@ -262,45 +303,4 @@ memory.grow memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "as-br-value" (func 0)) - (export "as-br_if-cond" (func 1)) - (export "as-br_if-value" (func 2)) - (export "as-br_if-value-cond" (func 3)) - (export "as-br_table-index" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-br_table-value-index" (func 6)) - (export "as-return-value" (func 7)) - (export "as-if-cond" (func 8)) - (export "as-if-then" (func 9)) - (export "as-if-else" (func 10)) - (export "as-select-first" (func 11)) - (export "as-select-second" (func 12)) - (export "as-select-cond" (func 13)) - (export "as-call-first" (func 15)) - (export "as-call-mid" (func 16)) - (export "as-call-last" (func 17)) - (export "as-call_indirect-first" (func 18)) - (export "as-call_indirect-mid" (func 19)) - (export "as-call_indirect-last" (func 20)) - (export "as-call_indirect-index" (func 21)) - (export "as-local.set-value" (func 22)) - (export "as-local.tee-value" (func 23)) - (export "as-global.set-value" (func 24)) - (export "as-load-address" (func 25)) - (export "as-loadN-address" (func 26)) - (export "as-store-address" (func 27)) - (export "as-store-value" (func 28)) - (export "as-storeN-address" (func 29)) - (export "as-storeN-value" (func 30)) - (export "as-unary-operand" (func 31)) - (export "as-binary-left" (func 32)) - (export "as-binary-right" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-left" (func 35)) - (export "as-compare-right" (func 36)) - (export "as-memory.grow-size" (func 37)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/memory_grow.wast/89.print b/tests/snapshots/testsuite/memory_grow.wast/89.print index a275054d33..26228bbc15 100644 --- a/tests/snapshots/testsuite/memory_grow.wast/89.print +++ b/tests/snapshots/testsuite/memory_grow.wast/89.print @@ -1,10 +1,10 @@ (module $Mgm (type (;0;) (func (result i32))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "grow" (func 0)) (func (;0;) (type 0) (result i32) i32.const 1 memory.grow ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_grow.wast/92.print b/tests/snapshots/testsuite/memory_grow.wast/92.print index 9f1f4cd732..62be6533dc 100644 --- a/tests/snapshots/testsuite/memory_grow.wast/92.print +++ b/tests/snapshots/testsuite/memory_grow.wast/92.print @@ -1,10 +1,10 @@ (module $Mgim1 (type (;0;) (func (result i32))) (import "grown-memory" "memory" (memory (;0;) 2)) + (export "memory" (memory 0)) + (export "grow" (func 0)) (func (;0;) (type 0) (result i32) i32.const 1 memory.grow ) - (export "memory" (memory 0)) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_grow.wast/95.print b/tests/snapshots/testsuite/memory_grow.wast/95.print index 79892bea12..76ad1bbaef 100644 --- a/tests/snapshots/testsuite/memory_grow.wast/95.print +++ b/tests/snapshots/testsuite/memory_grow.wast/95.print @@ -1,8 +1,8 @@ (module $Mgim2 (type (;0;) (func (result i32))) (import "grown-imported-memory" "memory" (memory (;0;) 3)) + (export "size" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (export "size" (func 0)) ) diff --git a/tests/snapshots/testsuite/memory_init.wast/0.print b/tests/snapshots/testsuite/memory_init.wast/0.print index ea1a83a57b..07219bce53 100644 --- a/tests/snapshots/testsuite/memory_init.wast/0.print +++ b/tests/snapshots/testsuite/memory_init.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) nop ) @@ -8,10 +12,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i32.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/memory_init.wast/130.print b/tests/snapshots/testsuite/memory_init.wast/130.print index f432a7848c..f35718fe29 100644 --- a/tests/snapshots/testsuite/memory_init.wast/130.print +++ b/tests/snapshots/testsuite/memory_init.wast/130.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) data.drop 0 data.drop 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/132.print b/tests/snapshots/testsuite/memory_init.wast/132.print index a96262920f..47c8f3ef73 100644 --- a/tests/snapshots/testsuite/memory_init.wast/132.print +++ b/tests/snapshots/testsuite/memory_init.wast/132.print @@ -1,5 +1,7 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) data.drop 0 i32.const 1234 @@ -7,7 +9,5 @@ i32.const 1 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/134.print b/tests/snapshots/testsuite/memory_init.wast/134.print index ec80df9098..39802accbe 100644 --- a/tests/snapshots/testsuite/memory_init.wast/134.print +++ b/tests/snapshots/testsuite/memory_init.wast/134.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1234 i32.const 1 i32.const 1 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) (i32.const 0) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/138.print b/tests/snapshots/testsuite/memory_init.wast/138.print index f777620c35..f0822ca248 100644 --- a/tests/snapshots/testsuite/memory_init.wast/138.print +++ b/tests/snapshots/testsuite/memory_init.wast/138.print @@ -1,5 +1,7 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1 i32.const 0 @@ -10,7 +12,5 @@ i32.const 1 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/140.print b/tests/snapshots/testsuite/memory_init.wast/140.print index fde98ff46b..496db2f112 100644 --- a/tests/snapshots/testsuite/memory_init.wast/140.print +++ b/tests/snapshots/testsuite/memory_init.wast/140.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1234 i32.const 0 i32.const 5 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/142.print b/tests/snapshots/testsuite/memory_init.wast/142.print index 001a2505c8..fd916a402b 100644 --- a/tests/snapshots/testsuite/memory_init.wast/142.print +++ b/tests/snapshots/testsuite/memory_init.wast/142.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1234 i32.const 2 i32.const 3 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/144.print b/tests/snapshots/testsuite/memory_init.wast/144.print index b0cba04472..0bbf158341 100644 --- a/tests/snapshots/testsuite/memory_init.wast/144.print +++ b/tests/snapshots/testsuite/memory_init.wast/144.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65534 i32.const 1 i32.const 3 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/146.print b/tests/snapshots/testsuite/memory_init.wast/146.print index 01febc20cd..abd5a2f938 100644 --- a/tests/snapshots/testsuite/memory_init.wast/146.print +++ b/tests/snapshots/testsuite/memory_init.wast/146.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1234 i32.const 4 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/148.print b/tests/snapshots/testsuite/memory_init.wast/148.print index edb9ceb7d8..68c667715f 100644 --- a/tests/snapshots/testsuite/memory_init.wast/148.print +++ b/tests/snapshots/testsuite/memory_init.wast/148.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1234 i32.const 1 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/150.print b/tests/snapshots/testsuite/memory_init.wast/150.print index c9c74d66f6..3287be4308 100644 --- a/tests/snapshots/testsuite/memory_init.wast/150.print +++ b/tests/snapshots/testsuite/memory_init.wast/150.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65537 i32.const 0 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/152.print b/tests/snapshots/testsuite/memory_init.wast/152.print index 38f3b18612..c95e1c1490 100644 --- a/tests/snapshots/testsuite/memory_init.wast/152.print +++ b/tests/snapshots/testsuite/memory_init.wast/152.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65536 i32.const 0 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/154.print b/tests/snapshots/testsuite/memory_init.wast/154.print index 81612ee981..14660b42a1 100644 --- a/tests/snapshots/testsuite/memory_init.wast/154.print +++ b/tests/snapshots/testsuite/memory_init.wast/154.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65536 i32.const 1 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/156.print b/tests/snapshots/testsuite/memory_init.wast/156.print index 12847073a3..0566dd2857 100644 --- a/tests/snapshots/testsuite/memory_init.wast/156.print +++ b/tests/snapshots/testsuite/memory_init.wast/156.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65537 i32.const 4 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/221.print b/tests/snapshots/testsuite/memory_init.wast/221.print index eb6c203805..661bd3db4d 100644 --- a/tests/snapshots/testsuite/memory_init.wast/221.print +++ b/tests/snapshots/testsuite/memory_init.wast/221.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/224.print b/tests/snapshots/testsuite/memory_init.wast/224.print index eb6c203805..661bd3db4d 100644 --- a/tests/snapshots/testsuite/memory_init.wast/224.print +++ b/tests/snapshots/testsuite/memory_init.wast/224.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/227.print b/tests/snapshots/testsuite/memory_init.wast/227.print index eb6c203805..661bd3db4d 100644 --- a/tests/snapshots/testsuite/memory_init.wast/227.print +++ b/tests/snapshots/testsuite/memory_init.wast/227.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/230.print b/tests/snapshots/testsuite/memory_init.wast/230.print index eb6c203805..661bd3db4d 100644 --- a/tests/snapshots/testsuite/memory_init.wast/230.print +++ b/tests/snapshots/testsuite/memory_init.wast/230.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/233.print b/tests/snapshots/testsuite/memory_init.wast/233.print index 575212fe1f..96c9217a69 100644 --- a/tests/snapshots/testsuite/memory_init.wast/233.print +++ b/tests/snapshots/testsuite/memory_init.wast/233.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/236.print b/tests/snapshots/testsuite/memory_init.wast/236.print index 575212fe1f..96c9217a69 100644 --- a/tests/snapshots/testsuite/memory_init.wast/236.print +++ b/tests/snapshots/testsuite/memory_init.wast/236.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/memory_init.wast/239.print b/tests/snapshots/testsuite/memory_init.wast/239.print index efc8c46564..f3cf7f27d7 100644 --- a/tests/snapshots/testsuite/memory_init.wast/239.print +++ b/tests/snapshots/testsuite/memory_init.wast/239.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 i32.const 0 i32.const 0 memory.init 64 ) - (memory (;0;) 1) (data (;0;) "") (data (;1;) "") (data (;2;) "") diff --git a/tests/snapshots/testsuite/memory_init.wast/32.print b/tests/snapshots/testsuite/memory_init.wast/32.print index d5baf91207..e828fec8b2 100644 --- a/tests/snapshots/testsuite/memory_init.wast/32.print +++ b/tests/snapshots/testsuite/memory_init.wast/32.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 7 i32.const 0 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i32.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/memory_init.wast/64.print b/tests/snapshots/testsuite/memory_init.wast/64.print index f8a8717aad..f686596171 100644 --- a/tests/snapshots/testsuite/memory_init.wast/64.print +++ b/tests/snapshots/testsuite/memory_init.wast/64.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 15 i32.const 1 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i32.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/memory_init.wast/96.print b/tests/snapshots/testsuite/memory_init.wast/96.print index 0c232877de..7286575463 100644 --- a/tests/snapshots/testsuite/memory_init.wast/96.print +++ b/tests/snapshots/testsuite/memory_init.wast/96.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 7 i32.const 0 @@ -37,10 +41,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i32.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/memory_redundancy.wast/0.print b/tests/snapshots/testsuite/memory_redundancy.wast/0.print index 7521989532..b7a169a23d 100644 --- a/tests/snapshots/testsuite/memory_redundancy.wast/0.print +++ b/tests/snapshots/testsuite/memory_redundancy.wast/0.print @@ -3,6 +3,13 @@ (type (;1;) (func (result i32))) (type (;2;) (func (result f32))) (type (;3;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "zero_everything" (func 0)) + (export "test_store_to_load" (func 1)) + (export "test_redundant_load" (func 2)) + (export "test_dead_store" (func 3)) + (export "malloc" (func $malloc)) + (export "malloc_aliasing" (func 5)) (func (;0;) (type 0) i32.const 0 i32.const 0 @@ -75,11 +82,4 @@ local.get $x i32.load ) - (memory (;0;) 1 1) - (export "zero_everything" (func 0)) - (export "test_store_to_load" (func 1)) - (export "test_redundant_load" (func 2)) - (export "test_dead_store" (func 3)) - (export "malloc" (func $malloc)) - (export "malloc_aliasing" (func 5)) ) diff --git a/tests/snapshots/testsuite/memory_size.wast/0.print b/tests/snapshots/testsuite/memory_size.wast/0.print index 53c0fbc85d..f247a4b0ca 100644 --- a/tests/snapshots/testsuite/memory_size.wast/0.print +++ b/tests/snapshots/testsuite/memory_size.wast/0.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 0) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_size.wast/16.print b/tests/snapshots/testsuite/memory_size.wast/16.print index 8261248fa5..2b2651f453 100644 --- a/tests/snapshots/testsuite/memory_size.wast/16.print +++ b/tests/snapshots/testsuite/memory_size.wast/16.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0 2) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 0 2) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_size.wast/28.print b/tests/snapshots/testsuite/memory_size.wast/28.print index c6b7f9d53f..65456a8c41 100644 --- a/tests/snapshots/testsuite/memory_size.wast/28.print +++ b/tests/snapshots/testsuite/memory_size.wast/28.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 3 8) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 3 8) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_size.wast/8.print b/tests/snapshots/testsuite/memory_size.wast/8.print index 641f76ffe6..7e2597b136 100644 --- a/tests/snapshots/testsuite/memory_size.wast/8.print +++ b/tests/snapshots/testsuite/memory_size.wast/8.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 1) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/memory_trap.wast/0.print b/tests/snapshots/testsuite/memory_trap.wast/0.print index 7f75fb31c1..b5e512aaf8 100644 --- a/tests/snapshots/testsuite/memory_trap.wast/0.print +++ b/tests/snapshots/testsuite/memory_trap.wast/0.print @@ -2,6 +2,10 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32) (result i32))) + (memory (;0;) 1) + (export "store" (func 1)) + (export "load" (func 2)) + (export "memory.grow" (func 3)) (func $addr_limit (;0;) (type 0) (result i32) memory.size i32.const 65536 @@ -24,8 +28,4 @@ local.get 0 memory.grow ) - (memory (;0;) 1) - (export "store" (func 1)) - (export "load" (func 2)) - (export "memory.grow" (func 3)) ) diff --git a/tests/snapshots/testsuite/memory_trap.wast/14.print b/tests/snapshots/testsuite/memory_trap.wast/14.print index 789c1f000d..31bd879d00 100644 --- a/tests/snapshots/testsuite/memory_trap.wast/14.print +++ b/tests/snapshots/testsuite/memory_trap.wast/14.print @@ -7,6 +7,30 @@ (type (;5;) (func (param i32 i64))) (type (;6;) (func (param i32 f32))) (type (;7;) (func (param i32 f64))) + (memory (;0;) 1) + (export "i32.load" (func 0)) + (export "i64.load" (func 1)) + (export "f32.load" (func 2)) + (export "f64.load" (func 3)) + (export "i32.load8_s" (func 4)) + (export "i32.load8_u" (func 5)) + (export "i32.load16_s" (func 6)) + (export "i32.load16_u" (func 7)) + (export "i64.load8_s" (func 8)) + (export "i64.load8_u" (func 9)) + (export "i64.load16_s" (func 10)) + (export "i64.load16_u" (func 11)) + (export "i64.load32_s" (func 12)) + (export "i64.load32_u" (func 13)) + (export "i32.store" (func 14)) + (export "i64.store" (func 15)) + (export "f32.store" (func 16)) + (export "f64.store" (func 17)) + (export "i32.store8" (func 18)) + (export "i32.store16" (func 19)) + (export "i64.store8" (func 20)) + (export "i64.store16" (func 21)) + (export "i64.store32" (func 22)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load @@ -108,30 +132,6 @@ local.get $v i64.store32 ) - (memory (;0;) 1) - (export "i32.load" (func 0)) - (export "i64.load" (func 1)) - (export "f32.load" (func 2)) - (export "f64.load" (func 3)) - (export "i32.load8_s" (func 4)) - (export "i32.load8_u" (func 5)) - (export "i32.load16_s" (func 6)) - (export "i32.load16_u" (func 7)) - (export "i64.load8_s" (func 8)) - (export "i64.load8_u" (func 9)) - (export "i64.load16_s" (func 10)) - (export "i64.load16_u" (func 11)) - (export "i64.load32_s" (func 12)) - (export "i64.load32_u" (func 13)) - (export "i32.store" (func 14)) - (export "i64.store" (func 15)) - (export "f32.store" (func 16)) - (export "f64.store" (func 17)) - (export "i32.store8" (func 18)) - (export "i32.store16" (func 19)) - (export "i64.store8" (func 20)) - (export "i64.store16" (func 21)) - (export "i64.store32" (func 22)) (data (;0;) (i32.const 0) "abcdefgh") (data (;1;) (i32.const 65528) "abcdefgh") ) diff --git a/tests/snapshots/testsuite/names.wast/0.print b/tests/snapshots/testsuite/names.wast/0.print index 29e9854718..5e37982bc1 100644 --- a/tests/snapshots/testsuite/names.wast/0.print +++ b/tests/snapshots/testsuite/names.wast/0.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result i32))) + (export "foo" (func 0)) (func (;0;) (type 0) (result i32) i32.const 0 ) - (export "foo" (func 0)) ) diff --git a/tests/snapshots/testsuite/names.wast/2.print b/tests/snapshots/testsuite/names.wast/2.print index a8de31047b..f307e6ce49 100644 --- a/tests/snapshots/testsuite/names.wast/2.print +++ b/tests/snapshots/testsuite/names.wast/2.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result i32))) + (export "foo" (func 0)) (func (;0;) (type 0) (result i32) i32.const 1 ) - (export "foo" (func 0)) ) diff --git a/tests/snapshots/testsuite/names.wast/4.print b/tests/snapshots/testsuite/names.wast/4.print index a329008281..1080e67b40 100644 --- a/tests/snapshots/testsuite/names.wast/4.print +++ b/tests/snapshots/testsuite/names.wast/4.print @@ -1,1442 +1,5 @@ (module (type (;0;) (func (result i32))) - (func (;0;) (type 0) (result i32) - i32.const 0 - ) - (func (;1;) (type 0) (result i32) - i32.const 1 - ) - (func (;2;) (type 0) (result i32) - i32.const 2 - ) - (func (;3;) (type 0) (result i32) - i32.const 3 - ) - (func (;4;) (type 0) (result i32) - i32.const 4 - ) - (func (;5;) (type 0) (result i32) - i32.const 5 - ) - (func (;6;) (type 0) (result i32) - i32.const 6 - ) - (func (;7;) (type 0) (result i32) - i32.const 7 - ) - (func (;8;) (type 0) (result i32) - i32.const 8 - ) - (func (;9;) (type 0) (result i32) - i32.const 9 - ) - (func (;10;) (type 0) (result i32) - i32.const 10 - ) - (func (;11;) (type 0) (result i32) - i32.const 11 - ) - (func (;12;) (type 0) (result i32) - i32.const 12 - ) - (func (;13;) (type 0) (result i32) - i32.const 13 - ) - (func (;14;) (type 0) (result i32) - i32.const 14 - ) - (func (;15;) (type 0) (result i32) - i32.const 15 - ) - (func (;16;) (type 0) (result i32) - i32.const 16 - ) - (func (;17;) (type 0) (result i32) - i32.const 17 - ) - (func (;18;) (type 0) (result i32) - i32.const 18 - ) - (func (;19;) (type 0) (result i32) - i32.const 19 - ) - (func (;20;) (type 0) (result i32) - i32.const 20 - ) - (func (;21;) (type 0) (result i32) - i32.const 21 - ) - (func (;22;) (type 0) (result i32) - i32.const 22 - ) - (func (;23;) (type 0) (result i32) - i32.const 23 - ) - (func (;24;) (type 0) (result i32) - i32.const 24 - ) - (func (;25;) (type 0) (result i32) - i32.const 25 - ) - (func (;26;) (type 0) (result i32) - i32.const 26 - ) - (func (;27;) (type 0) (result i32) - i32.const 27 - ) - (func (;28;) (type 0) (result i32) - i32.const 28 - ) - (func (;29;) (type 0) (result i32) - i32.const 29 - ) - (func (;30;) (type 0) (result i32) - i32.const 30 - ) - (func (;31;) (type 0) (result i32) - i32.const 31 - ) - (func (;32;) (type 0) (result i32) - i32.const 32 - ) - (func (;33;) (type 0) (result i32) - i32.const 33 - ) - (func (;34;) (type 0) (result i32) - i32.const 34 - ) - (func (;35;) (type 0) (result i32) - i32.const 35 - ) - (func (;36;) (type 0) (result i32) - i32.const 36 - ) - (func (;37;) (type 0) (result i32) - i32.const 37 - ) - (func (;38;) (type 0) (result i32) - i32.const 38 - ) - (func (;39;) (type 0) (result i32) - i32.const 39 - ) - (func (;40;) (type 0) (result i32) - i32.const 40 - ) - (func (;41;) (type 0) (result i32) - i32.const 41 - ) - (func (;42;) (type 0) (result i32) - i32.const 42 - ) - (func (;43;) (type 0) (result i32) - i32.const 43 - ) - (func (;44;) (type 0) (result i32) - i32.const 44 - ) - (func (;45;) (type 0) (result i32) - i32.const 45 - ) - (func (;46;) (type 0) (result i32) - i32.const 46 - ) - (func (;47;) (type 0) (result i32) - i32.const 47 - ) - (func (;48;) (type 0) (result i32) - i32.const 48 - ) - (func (;49;) (type 0) (result i32) - i32.const 49 - ) - (func (;50;) (type 0) (result i32) - i32.const 50 - ) - (func (;51;) (type 0) (result i32) - i32.const 51 - ) - (func (;52;) (type 0) (result i32) - i32.const 52 - ) - (func (;53;) (type 0) (result i32) - i32.const 53 - ) - (func (;54;) (type 0) (result i32) - i32.const 54 - ) - (func (;55;) (type 0) (result i32) - i32.const 55 - ) - (func (;56;) (type 0) (result i32) - i32.const 56 - ) - (func (;57;) (type 0) (result i32) - i32.const 57 - ) - (func (;58;) (type 0) (result i32) - i32.const 58 - ) - (func (;59;) (type 0) (result i32) - i32.const 59 - ) - (func (;60;) (type 0) (result i32) - i32.const 60 - ) - (func (;61;) (type 0) (result i32) - i32.const 61 - ) - (func (;62;) (type 0) (result i32) - i32.const 62 - ) - (func (;63;) (type 0) (result i32) - i32.const 63 - ) - (func (;64;) (type 0) (result i32) - i32.const 64 - ) - (func (;65;) (type 0) (result i32) - i32.const 65 - ) - (func (;66;) (type 0) (result i32) - i32.const 66 - ) - (func (;67;) (type 0) (result i32) - i32.const 67 - ) - (func (;68;) (type 0) (result i32) - i32.const 68 - ) - (func (;69;) (type 0) (result i32) - i32.const 69 - ) - (func (;70;) (type 0) (result i32) - i32.const 70 - ) - (func (;71;) (type 0) (result i32) - i32.const 71 - ) - (func (;72;) (type 0) (result i32) - i32.const 72 - ) - (func (;73;) (type 0) (result i32) - i32.const 73 - ) - (func (;74;) (type 0) (result i32) - i32.const 74 - ) - (func (;75;) (type 0) (result i32) - i32.const 75 - ) - (func (;76;) (type 0) (result i32) - i32.const 76 - ) - (func (;77;) (type 0) (result i32) - i32.const 77 - ) - (func (;78;) (type 0) (result i32) - i32.const 78 - ) - (func (;79;) (type 0) (result i32) - i32.const 79 - ) - (func (;80;) (type 0) (result i32) - i32.const 80 - ) - (func (;81;) (type 0) (result i32) - i32.const 81 - ) - (func (;82;) (type 0) (result i32) - i32.const 82 - ) - (func (;83;) (type 0) (result i32) - i32.const 83 - ) - (func (;84;) (type 0) (result i32) - i32.const 84 - ) - (func (;85;) (type 0) (result i32) - i32.const 85 - ) - (func (;86;) (type 0) (result i32) - i32.const 86 - ) - (func (;87;) (type 0) (result i32) - i32.const 87 - ) - (func (;88;) (type 0) (result i32) - i32.const 88 - ) - (func (;89;) (type 0) (result i32) - i32.const 89 - ) - (func (;90;) (type 0) (result i32) - i32.const 90 - ) - (func (;91;) (type 0) (result i32) - i32.const 91 - ) - (func (;92;) (type 0) (result i32) - i32.const 92 - ) - (func (;93;) (type 0) (result i32) - i32.const 93 - ) - (func (;94;) (type 0) (result i32) - i32.const 94 - ) - (func (;95;) (type 0) (result i32) - i32.const 95 - ) - (func (;96;) (type 0) (result i32) - i32.const 96 - ) - (func (;97;) (type 0) (result i32) - i32.const 97 - ) - (func (;98;) (type 0) (result i32) - i32.const 98 - ) - (func (;99;) (type 0) (result i32) - i32.const 99 - ) - (func (;100;) (type 0) (result i32) - i32.const 100 - ) - (func (;101;) (type 0) (result i32) - i32.const 101 - ) - (func (;102;) (type 0) (result i32) - i32.const 102 - ) - (func (;103;) (type 0) (result i32) - i32.const 103 - ) - (func (;104;) (type 0) (result i32) - i32.const 104 - ) - (func (;105;) (type 0) (result i32) - i32.const 105 - ) - (func (;106;) (type 0) (result i32) - i32.const 106 - ) - (func (;107;) (type 0) (result i32) - i32.const 107 - ) - (func (;108;) (type 0) (result i32) - i32.const 108 - ) - (func (;109;) (type 0) (result i32) - i32.const 109 - ) - (func (;110;) (type 0) (result i32) - i32.const 110 - ) - (func (;111;) (type 0) (result i32) - i32.const 111 - ) - (func (;112;) (type 0) (result i32) - i32.const 112 - ) - (func (;113;) (type 0) (result i32) - i32.const 113 - ) - (func (;114;) (type 0) (result i32) - i32.const 114 - ) - (func (;115;) (type 0) (result i32) - i32.const 115 - ) - (func (;116;) (type 0) (result i32) - i32.const 116 - ) - (func (;117;) (type 0) (result i32) - i32.const 117 - ) - (func (;118;) (type 0) (result i32) - i32.const 118 - ) - (func (;119;) (type 0) (result i32) - i32.const 119 - ) - (func (;120;) (type 0) (result i32) - i32.const 120 - ) - (func (;121;) (type 0) (result i32) - i32.const 121 - ) - (func (;122;) (type 0) (result i32) - i32.const 122 - ) - (func (;123;) (type 0) (result i32) - i32.const 123 - ) - (func (;124;) (type 0) (result i32) - i32.const 124 - ) - (func (;125;) (type 0) (result i32) - i32.const 125 - ) - (func (;126;) (type 0) (result i32) - i32.const 126 - ) - (func (;127;) (type 0) (result i32) - i32.const 127 - ) - (func (;128;) (type 0) (result i32) - i32.const 128 - ) - (func (;129;) (type 0) (result i32) - i32.const 129 - ) - (func (;130;) (type 0) (result i32) - i32.const 130 - ) - (func (;131;) (type 0) (result i32) - i32.const 131 - ) - (func (;132;) (type 0) (result i32) - i32.const 132 - ) - (func (;133;) (type 0) (result i32) - i32.const 133 - ) - (func (;134;) (type 0) (result i32) - i32.const 134 - ) - (func (;135;) (type 0) (result i32) - i32.const 135 - ) - (func (;136;) (type 0) (result i32) - i32.const 136 - ) - (func (;137;) (type 0) (result i32) - i32.const 137 - ) - (func (;138;) (type 0) (result i32) - i32.const 138 - ) - (func (;139;) (type 0) (result i32) - i32.const 139 - ) - (func (;140;) (type 0) (result i32) - i32.const 140 - ) - (func (;141;) (type 0) (result i32) - i32.const 141 - ) - (func (;142;) (type 0) (result i32) - i32.const 142 - ) - (func (;143;) (type 0) (result i32) - i32.const 143 - ) - (func (;144;) (type 0) (result i32) - i32.const 144 - ) - (func (;145;) (type 0) (result i32) - i32.const 145 - ) - (func (;146;) (type 0) (result i32) - i32.const 146 - ) - (func (;147;) (type 0) (result i32) - i32.const 147 - ) - (func (;148;) (type 0) (result i32) - i32.const 148 - ) - (func (;149;) (type 0) (result i32) - i32.const 149 - ) - (func (;150;) (type 0) (result i32) - i32.const 150 - ) - (func (;151;) (type 0) (result i32) - i32.const 151 - ) - (func (;152;) (type 0) (result i32) - i32.const 152 - ) - (func (;153;) (type 0) (result i32) - i32.const 153 - ) - (func (;154;) (type 0) (result i32) - i32.const 154 - ) - (func (;155;) (type 0) (result i32) - i32.const 155 - ) - (func (;156;) (type 0) (result i32) - i32.const 156 - ) - (func (;157;) (type 0) (result i32) - i32.const 157 - ) - (func (;158;) (type 0) (result i32) - i32.const 158 - ) - (func (;159;) (type 0) (result i32) - i32.const 159 - ) - (func (;160;) (type 0) (result i32) - i32.const 160 - ) - (func (;161;) (type 0) (result i32) - i32.const 161 - ) - (func (;162;) (type 0) (result i32) - i32.const 162 - ) - (func (;163;) (type 0) (result i32) - i32.const 163 - ) - (func (;164;) (type 0) (result i32) - i32.const 164 - ) - (func (;165;) (type 0) (result i32) - i32.const 165 - ) - (func (;166;) (type 0) (result i32) - i32.const 166 - ) - (func (;167;) (type 0) (result i32) - i32.const 167 - ) - (func (;168;) (type 0) (result i32) - i32.const 168 - ) - (func (;169;) (type 0) (result i32) - i32.const 169 - ) - (func (;170;) (type 0) (result i32) - i32.const 170 - ) - (func (;171;) (type 0) (result i32) - i32.const 171 - ) - (func (;172;) (type 0) (result i32) - i32.const 172 - ) - (func (;173;) (type 0) (result i32) - i32.const 173 - ) - (func (;174;) (type 0) (result i32) - i32.const 174 - ) - (func (;175;) (type 0) (result i32) - i32.const 175 - ) - (func (;176;) (type 0) (result i32) - i32.const 176 - ) - (func (;177;) (type 0) (result i32) - i32.const 177 - ) - (func (;178;) (type 0) (result i32) - i32.const 178 - ) - (func (;179;) (type 0) (result i32) - i32.const 179 - ) - (func (;180;) (type 0) (result i32) - i32.const 180 - ) - (func (;181;) (type 0) (result i32) - i32.const 181 - ) - (func (;182;) (type 0) (result i32) - i32.const 182 - ) - (func (;183;) (type 0) (result i32) - i32.const 183 - ) - (func (;184;) (type 0) (result i32) - i32.const 184 - ) - (func (;185;) (type 0) (result i32) - i32.const 185 - ) - (func (;186;) (type 0) (result i32) - i32.const 186 - ) - (func (;187;) (type 0) (result i32) - i32.const 187 - ) - (func (;188;) (type 0) (result i32) - i32.const 188 - ) - (func (;189;) (type 0) (result i32) - i32.const 189 - ) - (func (;190;) (type 0) (result i32) - i32.const 190 - ) - (func (;191;) (type 0) (result i32) - i32.const 191 - ) - (func (;192;) (type 0) (result i32) - i32.const 192 - ) - (func (;193;) (type 0) (result i32) - i32.const 193 - ) - (func (;194;) (type 0) (result i32) - i32.const 194 - ) - (func (;195;) (type 0) (result i32) - i32.const 195 - ) - (func (;196;) (type 0) (result i32) - i32.const 196 - ) - (func (;197;) (type 0) (result i32) - i32.const 197 - ) - (func (;198;) (type 0) (result i32) - i32.const 198 - ) - (func (;199;) (type 0) (result i32) - i32.const 199 - ) - (func (;200;) (type 0) (result i32) - i32.const 200 - ) - (func (;201;) (type 0) (result i32) - i32.const 201 - ) - (func (;202;) (type 0) (result i32) - i32.const 202 - ) - (func (;203;) (type 0) (result i32) - i32.const 203 - ) - (func (;204;) (type 0) (result i32) - i32.const 204 - ) - (func (;205;) (type 0) (result i32) - i32.const 205 - ) - (func (;206;) (type 0) (result i32) - i32.const 206 - ) - (func (;207;) (type 0) (result i32) - i32.const 207 - ) - (func (;208;) (type 0) (result i32) - i32.const 208 - ) - (func (;209;) (type 0) (result i32) - i32.const 209 - ) - (func (;210;) (type 0) (result i32) - i32.const 210 - ) - (func (;211;) (type 0) (result i32) - i32.const 211 - ) - (func (;212;) (type 0) (result i32) - i32.const 212 - ) - (func (;213;) (type 0) (result i32) - i32.const 213 - ) - (func (;214;) (type 0) (result i32) - i32.const 214 - ) - (func (;215;) (type 0) (result i32) - i32.const 215 - ) - (func (;216;) (type 0) (result i32) - i32.const 216 - ) - (func (;217;) (type 0) (result i32) - i32.const 217 - ) - (func (;218;) (type 0) (result i32) - i32.const 218 - ) - (func (;219;) (type 0) (result i32) - i32.const 219 - ) - (func (;220;) (type 0) (result i32) - i32.const 220 - ) - (func (;221;) (type 0) (result i32) - i32.const 221 - ) - (func (;222;) (type 0) (result i32) - i32.const 222 - ) - (func (;223;) (type 0) (result i32) - i32.const 223 - ) - (func (;224;) (type 0) (result i32) - i32.const 224 - ) - (func (;225;) (type 0) (result i32) - i32.const 225 - ) - (func (;226;) (type 0) (result i32) - i32.const 226 - ) - (func (;227;) (type 0) (result i32) - i32.const 227 - ) - (func (;228;) (type 0) (result i32) - i32.const 228 - ) - (func (;229;) (type 0) (result i32) - i32.const 229 - ) - (func (;230;) (type 0) (result i32) - i32.const 230 - ) - (func (;231;) (type 0) (result i32) - i32.const 231 - ) - (func (;232;) (type 0) (result i32) - i32.const 232 - ) - (func (;233;) (type 0) (result i32) - i32.const 233 - ) - (func (;234;) (type 0) (result i32) - i32.const 234 - ) - (func (;235;) (type 0) (result i32) - i32.const 235 - ) - (func (;236;) (type 0) (result i32) - i32.const 236 - ) - (func (;237;) (type 0) (result i32) - i32.const 237 - ) - (func (;238;) (type 0) (result i32) - i32.const 238 - ) - (func (;239;) (type 0) (result i32) - i32.const 239 - ) - (func (;240;) (type 0) (result i32) - i32.const 240 - ) - (func (;241;) (type 0) (result i32) - i32.const 241 - ) - (func (;242;) (type 0) (result i32) - i32.const 242 - ) - (func (;243;) (type 0) (result i32) - i32.const 243 - ) - (func (;244;) (type 0) (result i32) - i32.const 244 - ) - (func (;245;) (type 0) (result i32) - i32.const 245 - ) - (func (;246;) (type 0) (result i32) - i32.const 246 - ) - (func (;247;) (type 0) (result i32) - i32.const 247 - ) - (func (;248;) (type 0) (result i32) - i32.const 248 - ) - (func (;249;) (type 0) (result i32) - i32.const 249 - ) - (func (;250;) (type 0) (result i32) - i32.const 250 - ) - (func (;251;) (type 0) (result i32) - i32.const 251 - ) - (func (;252;) (type 0) (result i32) - i32.const 252 - ) - (func (;253;) (type 0) (result i32) - i32.const 253 - ) - (func (;254;) (type 0) (result i32) - i32.const 254 - ) - (func (;255;) (type 0) (result i32) - i32.const 255 - ) - (func (;256;) (type 0) (result i32) - i32.const 256 - ) - (func (;257;) (type 0) (result i32) - i32.const 257 - ) - (func (;258;) (type 0) (result i32) - i32.const 258 - ) - (func (;259;) (type 0) (result i32) - i32.const 259 - ) - (func (;260;) (type 0) (result i32) - i32.const 260 - ) - (func (;261;) (type 0) (result i32) - i32.const 261 - ) - (func (;262;) (type 0) (result i32) - i32.const 262 - ) - (func (;263;) (type 0) (result i32) - i32.const 263 - ) - (func (;264;) (type 0) (result i32) - i32.const 264 - ) - (func (;265;) (type 0) (result i32) - i32.const 265 - ) - (func (;266;) (type 0) (result i32) - i32.const 266 - ) - (func (;267;) (type 0) (result i32) - i32.const 267 - ) - (func (;268;) (type 0) (result i32) - i32.const 268 - ) - (func (;269;) (type 0) (result i32) - i32.const 269 - ) - (func (;270;) (type 0) (result i32) - i32.const 270 - ) - (func (;271;) (type 0) (result i32) - i32.const 271 - ) - (func (;272;) (type 0) (result i32) - i32.const 272 - ) - (func (;273;) (type 0) (result i32) - i32.const 273 - ) - (func (;274;) (type 0) (result i32) - i32.const 274 - ) - (func (;275;) (type 0) (result i32) - i32.const 275 - ) - (func (;276;) (type 0) (result i32) - i32.const 276 - ) - (func (;277;) (type 0) (result i32) - i32.const 277 - ) - (func (;278;) (type 0) (result i32) - i32.const 278 - ) - (func (;279;) (type 0) (result i32) - i32.const 279 - ) - (func (;280;) (type 0) (result i32) - i32.const 280 - ) - (func (;281;) (type 0) (result i32) - i32.const 281 - ) - (func (;282;) (type 0) (result i32) - i32.const 282 - ) - (func (;283;) (type 0) (result i32) - i32.const 283 - ) - (func (;284;) (type 0) (result i32) - i32.const 284 - ) - (func (;285;) (type 0) (result i32) - i32.const 285 - ) - (func (;286;) (type 0) (result i32) - i32.const 286 - ) - (func (;287;) (type 0) (result i32) - i32.const 287 - ) - (func (;288;) (type 0) (result i32) - i32.const 288 - ) - (func (;289;) (type 0) (result i32) - i32.const 289 - ) - (func (;290;) (type 0) (result i32) - i32.const 290 - ) - (func (;291;) (type 0) (result i32) - i32.const 291 - ) - (func (;292;) (type 0) (result i32) - i32.const 292 - ) - (func (;293;) (type 0) (result i32) - i32.const 293 - ) - (func (;294;) (type 0) (result i32) - i32.const 294 - ) - (func (;295;) (type 0) (result i32) - i32.const 295 - ) - (func (;296;) (type 0) (result i32) - i32.const 296 - ) - (func (;297;) (type 0) (result i32) - i32.const 297 - ) - (func (;298;) (type 0) (result i32) - i32.const 298 - ) - (func (;299;) (type 0) (result i32) - i32.const 299 - ) - (func (;300;) (type 0) (result i32) - i32.const 300 - ) - (func (;301;) (type 0) (result i32) - i32.const 301 - ) - (func (;302;) (type 0) (result i32) - i32.const 302 - ) - (func (;303;) (type 0) (result i32) - i32.const 303 - ) - (func (;304;) (type 0) (result i32) - i32.const 304 - ) - (func (;305;) (type 0) (result i32) - i32.const 305 - ) - (func (;306;) (type 0) (result i32) - i32.const 306 - ) - (func (;307;) (type 0) (result i32) - i32.const 307 - ) - (func (;308;) (type 0) (result i32) - i32.const 308 - ) - (func (;309;) (type 0) (result i32) - i32.const 309 - ) - (func (;310;) (type 0) (result i32) - i32.const 310 - ) - (func (;311;) (type 0) (result i32) - i32.const 311 - ) - (func (;312;) (type 0) (result i32) - i32.const 312 - ) - (func (;313;) (type 0) (result i32) - i32.const 313 - ) - (func (;314;) (type 0) (result i32) - i32.const 314 - ) - (func (;315;) (type 0) (result i32) - i32.const 315 - ) - (func (;316;) (type 0) (result i32) - i32.const 316 - ) - (func (;317;) (type 0) (result i32) - i32.const 317 - ) - (func (;318;) (type 0) (result i32) - i32.const 318 - ) - (func (;319;) (type 0) (result i32) - i32.const 319 - ) - (func (;320;) (type 0) (result i32) - i32.const 320 - ) - (func (;321;) (type 0) (result i32) - i32.const 321 - ) - (func (;322;) (type 0) (result i32) - i32.const 322 - ) - (func (;323;) (type 0) (result i32) - i32.const 323 - ) - (func (;324;) (type 0) (result i32) - i32.const 324 - ) - (func (;325;) (type 0) (result i32) - i32.const 325 - ) - (func (;326;) (type 0) (result i32) - i32.const 326 - ) - (func (;327;) (type 0) (result i32) - i32.const 327 - ) - (func (;328;) (type 0) (result i32) - i32.const 328 - ) - (func (;329;) (type 0) (result i32) - i32.const 329 - ) - (func (;330;) (type 0) (result i32) - i32.const 330 - ) - (func (;331;) (type 0) (result i32) - i32.const 331 - ) - (func (;332;) (type 0) (result i32) - i32.const 332 - ) - (func (;333;) (type 0) (result i32) - i32.const 333 - ) - (func (;334;) (type 0) (result i32) - i32.const 334 - ) - (func (;335;) (type 0) (result i32) - i32.const 335 - ) - (func (;336;) (type 0) (result i32) - i32.const 336 - ) - (func (;337;) (type 0) (result i32) - i32.const 337 - ) - (func (;338;) (type 0) (result i32) - i32.const 338 - ) - (func (;339;) (type 0) (result i32) - i32.const 339 - ) - (func (;340;) (type 0) (result i32) - i32.const 340 - ) - (func (;341;) (type 0) (result i32) - i32.const 341 - ) - (func (;342;) (type 0) (result i32) - i32.const 342 - ) - (func (;343;) (type 0) (result i32) - i32.const 343 - ) - (func (;344;) (type 0) (result i32) - i32.const 344 - ) - (func (;345;) (type 0) (result i32) - i32.const 345 - ) - (func (;346;) (type 0) (result i32) - i32.const 346 - ) - (func (;347;) (type 0) (result i32) - i32.const 347 - ) - (func (;348;) (type 0) (result i32) - i32.const 348 - ) - (func (;349;) (type 0) (result i32) - i32.const 349 - ) - (func (;350;) (type 0) (result i32) - i32.const 350 - ) - (func (;351;) (type 0) (result i32) - i32.const 351 - ) - (func (;352;) (type 0) (result i32) - i32.const 352 - ) - (func (;353;) (type 0) (result i32) - i32.const 353 - ) - (func (;354;) (type 0) (result i32) - i32.const 354 - ) - (func (;355;) (type 0) (result i32) - i32.const 355 - ) - (func (;356;) (type 0) (result i32) - i32.const 356 - ) - (func (;357;) (type 0) (result i32) - i32.const 357 - ) - (func (;358;) (type 0) (result i32) - i32.const 358 - ) - (func (;359;) (type 0) (result i32) - i32.const 359 - ) - (func (;360;) (type 0) (result i32) - i32.const 360 - ) - (func (;361;) (type 0) (result i32) - i32.const 361 - ) - (func (;362;) (type 0) (result i32) - i32.const 362 - ) - (func (;363;) (type 0) (result i32) - i32.const 363 - ) - (func (;364;) (type 0) (result i32) - i32.const 364 - ) - (func (;365;) (type 0) (result i32) - i32.const 365 - ) - (func (;366;) (type 0) (result i32) - i32.const 366 - ) - (func (;367;) (type 0) (result i32) - i32.const 367 - ) - (func (;368;) (type 0) (result i32) - i32.const 368 - ) - (func (;369;) (type 0) (result i32) - i32.const 369 - ) - (func (;370;) (type 0) (result i32) - i32.const 370 - ) - (func (;371;) (type 0) (result i32) - i32.const 371 - ) - (func (;372;) (type 0) (result i32) - i32.const 372 - ) - (func (;373;) (type 0) (result i32) - i32.const 373 - ) - (func (;374;) (type 0) (result i32) - i32.const 374 - ) - (func (;375;) (type 0) (result i32) - i32.const 375 - ) - (func (;376;) (type 0) (result i32) - i32.const 376 - ) - (func (;377;) (type 0) (result i32) - i32.const 377 - ) - (func (;378;) (type 0) (result i32) - i32.const 378 - ) - (func (;379;) (type 0) (result i32) - i32.const 379 - ) - (func (;380;) (type 0) (result i32) - i32.const 380 - ) - (func (;381;) (type 0) (result i32) - i32.const 381 - ) - (func (;382;) (type 0) (result i32) - i32.const 382 - ) - (func (;383;) (type 0) (result i32) - i32.const 383 - ) - (func (;384;) (type 0) (result i32) - i32.const 384 - ) - (func (;385;) (type 0) (result i32) - i32.const 385 - ) - (func (;386;) (type 0) (result i32) - i32.const 386 - ) - (func (;387;) (type 0) (result i32) - i32.const 387 - ) - (func (;388;) (type 0) (result i32) - i32.const 388 - ) - (func (;389;) (type 0) (result i32) - i32.const 389 - ) - (func (;390;) (type 0) (result i32) - i32.const 390 - ) - (func (;391;) (type 0) (result i32) - i32.const 391 - ) - (func (;392;) (type 0) (result i32) - i32.const 392 - ) - (func (;393;) (type 0) (result i32) - i32.const 393 - ) - (func (;394;) (type 0) (result i32) - i32.const 394 - ) - (func (;395;) (type 0) (result i32) - i32.const 395 - ) - (func (;396;) (type 0) (result i32) - i32.const 396 - ) - (func (;397;) (type 0) (result i32) - i32.const 397 - ) - (func (;398;) (type 0) (result i32) - i32.const 398 - ) - (func (;399;) (type 0) (result i32) - i32.const 399 - ) - (func (;400;) (type 0) (result i32) - i32.const 400 - ) - (func (;401;) (type 0) (result i32) - i32.const 401 - ) - (func (;402;) (type 0) (result i32) - i32.const 402 - ) - (func (;403;) (type 0) (result i32) - i32.const 403 - ) - (func (;404;) (type 0) (result i32) - i32.const 404 - ) - (func (;405;) (type 0) (result i32) - i32.const 405 - ) - (func (;406;) (type 0) (result i32) - i32.const 406 - ) - (func (;407;) (type 0) (result i32) - i32.const 407 - ) - (func (;408;) (type 0) (result i32) - i32.const 408 - ) - (func (;409;) (type 0) (result i32) - i32.const 409 - ) - (func (;410;) (type 0) (result i32) - i32.const 410 - ) - (func (;411;) (type 0) (result i32) - i32.const 411 - ) - (func (;412;) (type 0) (result i32) - i32.const 412 - ) - (func (;413;) (type 0) (result i32) - i32.const 413 - ) - (func (;414;) (type 0) (result i32) - i32.const 414 - ) - (func (;415;) (type 0) (result i32) - i32.const 415 - ) - (func (;416;) (type 0) (result i32) - i32.const 416 - ) - (func (;417;) (type 0) (result i32) - i32.const 417 - ) - (func (;418;) (type 0) (result i32) - i32.const 418 - ) - (func (;419;) (type 0) (result i32) - i32.const 419 - ) - (func (;420;) (type 0) (result i32) - i32.const 420 - ) - (func (;421;) (type 0) (result i32) - i32.const 421 - ) - (func (;422;) (type 0) (result i32) - i32.const 422 - ) - (func (;423;) (type 0) (result i32) - i32.const 423 - ) - (func (;424;) (type 0) (result i32) - i32.const 424 - ) - (func (;425;) (type 0) (result i32) - i32.const 425 - ) - (func (;426;) (type 0) (result i32) - i32.const 426 - ) - (func (;427;) (type 0) (result i32) - i32.const 427 - ) - (func (;428;) (type 0) (result i32) - i32.const 428 - ) - (func (;429;) (type 0) (result i32) - i32.const 429 - ) - (func (;430;) (type 0) (result i32) - i32.const 430 - ) - (func (;431;) (type 0) (result i32) - i32.const 431 - ) - (func (;432;) (type 0) (result i32) - i32.const 432 - ) - (func (;433;) (type 0) (result i32) - i32.const 433 - ) - (func (;434;) (type 0) (result i32) - i32.const 434 - ) - (func (;435;) (type 0) (result i32) - i32.const 435 - ) - (func (;436;) (type 0) (result i32) - i32.const 436 - ) - (func (;437;) (type 0) (result i32) - i32.const 437 - ) - (func (;438;) (type 0) (result i32) - i32.const 438 - ) - (func (;439;) (type 0) (result i32) - i32.const 439 - ) - (func (;440;) (type 0) (result i32) - i32.const 440 - ) - (func (;441;) (type 0) (result i32) - i32.const 441 - ) - (func (;442;) (type 0) (result i32) - i32.const 442 - ) - (func (;443;) (type 0) (result i32) - i32.const 443 - ) - (func (;444;) (type 0) (result i32) - i32.const 444 - ) - (func (;445;) (type 0) (result i32) - i32.const 445 - ) - (func (;446;) (type 0) (result i32) - i32.const 446 - ) - (func (;447;) (type 0) (result i32) - i32.const 447 - ) - (func (;448;) (type 0) (result i32) - i32.const 448 - ) - (func (;449;) (type 0) (result i32) - i32.const 449 - ) - (func (;450;) (type 0) (result i32) - i32.const 450 - ) - (func (;451;) (type 0) (result i32) - i32.const 451 - ) - (func (;452;) (type 0) (result i32) - i32.const 452 - ) - (func (;453;) (type 0) (result i32) - i32.const 453 - ) - (func (;454;) (type 0) (result i32) - i32.const 454 - ) - (func (;455;) (type 0) (result i32) - i32.const 455 - ) - (func (;456;) (type 0) (result i32) - i32.const 456 - ) - (func (;457;) (type 0) (result i32) - i32.const 457 - ) - (func (;458;) (type 0) (result i32) - i32.const 458 - ) - (func (;459;) (type 0) (result i32) - i32.const 459 - ) - (func (;460;) (type 0) (result i32) - i32.const 460 - ) - (func (;461;) (type 0) (result i32) - i32.const 461 - ) - (func (;462;) (type 0) (result i32) - i32.const 462 - ) - (func (;463;) (type 0) (result i32) - i32.const 463 - ) - (func (;464;) (type 0) (result i32) - i32.const 464 - ) - (func (;465;) (type 0) (result i32) - i32.const 465 - ) - (func (;466;) (type 0) (result i32) - i32.const 466 - ) - (func (;467;) (type 0) (result i32) - i32.const 467 - ) - (func (;468;) (type 0) (result i32) - i32.const 468 - ) - (func (;469;) (type 0) (result i32) - i32.const 469 - ) - (func (;470;) (type 0) (result i32) - i32.const 470 - ) - (func (;471;) (type 0) (result i32) - i32.const 471 - ) - (func (;472;) (type 0) (result i32) - i32.const 472 - ) - (func (;473;) (type 0) (result i32) - i32.const 473 - ) - (func (;474;) (type 0) (result i32) - i32.const 474 - ) - (func (;475;) (type 0) (result i32) - i32.const 475 - ) - (func (;476;) (type 0) (result i32) - i32.const 476 - ) - (func (;477;) (type 0) (result i32) - i32.const 477 - ) - (func (;478;) (type 0) (result i32) - i32.const 478 - ) (export "" (func 0)) (export "0" (func 1)) (export "-0" (func 2)) @@ -1916,4 +479,1441 @@ (export "\u{3d3}" (func 476)) (export "\u{3d4}" (func 477)) (export "\u{1e9b}" (func 478)) + (func (;0;) (type 0) (result i32) + i32.const 0 + ) + (func (;1;) (type 0) (result i32) + i32.const 1 + ) + (func (;2;) (type 0) (result i32) + i32.const 2 + ) + (func (;3;) (type 0) (result i32) + i32.const 3 + ) + (func (;4;) (type 0) (result i32) + i32.const 4 + ) + (func (;5;) (type 0) (result i32) + i32.const 5 + ) + (func (;6;) (type 0) (result i32) + i32.const 6 + ) + (func (;7;) (type 0) (result i32) + i32.const 7 + ) + (func (;8;) (type 0) (result i32) + i32.const 8 + ) + (func (;9;) (type 0) (result i32) + i32.const 9 + ) + (func (;10;) (type 0) (result i32) + i32.const 10 + ) + (func (;11;) (type 0) (result i32) + i32.const 11 + ) + (func (;12;) (type 0) (result i32) + i32.const 12 + ) + (func (;13;) (type 0) (result i32) + i32.const 13 + ) + (func (;14;) (type 0) (result i32) + i32.const 14 + ) + (func (;15;) (type 0) (result i32) + i32.const 15 + ) + (func (;16;) (type 0) (result i32) + i32.const 16 + ) + (func (;17;) (type 0) (result i32) + i32.const 17 + ) + (func (;18;) (type 0) (result i32) + i32.const 18 + ) + (func (;19;) (type 0) (result i32) + i32.const 19 + ) + (func (;20;) (type 0) (result i32) + i32.const 20 + ) + (func (;21;) (type 0) (result i32) + i32.const 21 + ) + (func (;22;) (type 0) (result i32) + i32.const 22 + ) + (func (;23;) (type 0) (result i32) + i32.const 23 + ) + (func (;24;) (type 0) (result i32) + i32.const 24 + ) + (func (;25;) (type 0) (result i32) + i32.const 25 + ) + (func (;26;) (type 0) (result i32) + i32.const 26 + ) + (func (;27;) (type 0) (result i32) + i32.const 27 + ) + (func (;28;) (type 0) (result i32) + i32.const 28 + ) + (func (;29;) (type 0) (result i32) + i32.const 29 + ) + (func (;30;) (type 0) (result i32) + i32.const 30 + ) + (func (;31;) (type 0) (result i32) + i32.const 31 + ) + (func (;32;) (type 0) (result i32) + i32.const 32 + ) + (func (;33;) (type 0) (result i32) + i32.const 33 + ) + (func (;34;) (type 0) (result i32) + i32.const 34 + ) + (func (;35;) (type 0) (result i32) + i32.const 35 + ) + (func (;36;) (type 0) (result i32) + i32.const 36 + ) + (func (;37;) (type 0) (result i32) + i32.const 37 + ) + (func (;38;) (type 0) (result i32) + i32.const 38 + ) + (func (;39;) (type 0) (result i32) + i32.const 39 + ) + (func (;40;) (type 0) (result i32) + i32.const 40 + ) + (func (;41;) (type 0) (result i32) + i32.const 41 + ) + (func (;42;) (type 0) (result i32) + i32.const 42 + ) + (func (;43;) (type 0) (result i32) + i32.const 43 + ) + (func (;44;) (type 0) (result i32) + i32.const 44 + ) + (func (;45;) (type 0) (result i32) + i32.const 45 + ) + (func (;46;) (type 0) (result i32) + i32.const 46 + ) + (func (;47;) (type 0) (result i32) + i32.const 47 + ) + (func (;48;) (type 0) (result i32) + i32.const 48 + ) + (func (;49;) (type 0) (result i32) + i32.const 49 + ) + (func (;50;) (type 0) (result i32) + i32.const 50 + ) + (func (;51;) (type 0) (result i32) + i32.const 51 + ) + (func (;52;) (type 0) (result i32) + i32.const 52 + ) + (func (;53;) (type 0) (result i32) + i32.const 53 + ) + (func (;54;) (type 0) (result i32) + i32.const 54 + ) + (func (;55;) (type 0) (result i32) + i32.const 55 + ) + (func (;56;) (type 0) (result i32) + i32.const 56 + ) + (func (;57;) (type 0) (result i32) + i32.const 57 + ) + (func (;58;) (type 0) (result i32) + i32.const 58 + ) + (func (;59;) (type 0) (result i32) + i32.const 59 + ) + (func (;60;) (type 0) (result i32) + i32.const 60 + ) + (func (;61;) (type 0) (result i32) + i32.const 61 + ) + (func (;62;) (type 0) (result i32) + i32.const 62 + ) + (func (;63;) (type 0) (result i32) + i32.const 63 + ) + (func (;64;) (type 0) (result i32) + i32.const 64 + ) + (func (;65;) (type 0) (result i32) + i32.const 65 + ) + (func (;66;) (type 0) (result i32) + i32.const 66 + ) + (func (;67;) (type 0) (result i32) + i32.const 67 + ) + (func (;68;) (type 0) (result i32) + i32.const 68 + ) + (func (;69;) (type 0) (result i32) + i32.const 69 + ) + (func (;70;) (type 0) (result i32) + i32.const 70 + ) + (func (;71;) (type 0) (result i32) + i32.const 71 + ) + (func (;72;) (type 0) (result i32) + i32.const 72 + ) + (func (;73;) (type 0) (result i32) + i32.const 73 + ) + (func (;74;) (type 0) (result i32) + i32.const 74 + ) + (func (;75;) (type 0) (result i32) + i32.const 75 + ) + (func (;76;) (type 0) (result i32) + i32.const 76 + ) + (func (;77;) (type 0) (result i32) + i32.const 77 + ) + (func (;78;) (type 0) (result i32) + i32.const 78 + ) + (func (;79;) (type 0) (result i32) + i32.const 79 + ) + (func (;80;) (type 0) (result i32) + i32.const 80 + ) + (func (;81;) (type 0) (result i32) + i32.const 81 + ) + (func (;82;) (type 0) (result i32) + i32.const 82 + ) + (func (;83;) (type 0) (result i32) + i32.const 83 + ) + (func (;84;) (type 0) (result i32) + i32.const 84 + ) + (func (;85;) (type 0) (result i32) + i32.const 85 + ) + (func (;86;) (type 0) (result i32) + i32.const 86 + ) + (func (;87;) (type 0) (result i32) + i32.const 87 + ) + (func (;88;) (type 0) (result i32) + i32.const 88 + ) + (func (;89;) (type 0) (result i32) + i32.const 89 + ) + (func (;90;) (type 0) (result i32) + i32.const 90 + ) + (func (;91;) (type 0) (result i32) + i32.const 91 + ) + (func (;92;) (type 0) (result i32) + i32.const 92 + ) + (func (;93;) (type 0) (result i32) + i32.const 93 + ) + (func (;94;) (type 0) (result i32) + i32.const 94 + ) + (func (;95;) (type 0) (result i32) + i32.const 95 + ) + (func (;96;) (type 0) (result i32) + i32.const 96 + ) + (func (;97;) (type 0) (result i32) + i32.const 97 + ) + (func (;98;) (type 0) (result i32) + i32.const 98 + ) + (func (;99;) (type 0) (result i32) + i32.const 99 + ) + (func (;100;) (type 0) (result i32) + i32.const 100 + ) + (func (;101;) (type 0) (result i32) + i32.const 101 + ) + (func (;102;) (type 0) (result i32) + i32.const 102 + ) + (func (;103;) (type 0) (result i32) + i32.const 103 + ) + (func (;104;) (type 0) (result i32) + i32.const 104 + ) + (func (;105;) (type 0) (result i32) + i32.const 105 + ) + (func (;106;) (type 0) (result i32) + i32.const 106 + ) + (func (;107;) (type 0) (result i32) + i32.const 107 + ) + (func (;108;) (type 0) (result i32) + i32.const 108 + ) + (func (;109;) (type 0) (result i32) + i32.const 109 + ) + (func (;110;) (type 0) (result i32) + i32.const 110 + ) + (func (;111;) (type 0) (result i32) + i32.const 111 + ) + (func (;112;) (type 0) (result i32) + i32.const 112 + ) + (func (;113;) (type 0) (result i32) + i32.const 113 + ) + (func (;114;) (type 0) (result i32) + i32.const 114 + ) + (func (;115;) (type 0) (result i32) + i32.const 115 + ) + (func (;116;) (type 0) (result i32) + i32.const 116 + ) + (func (;117;) (type 0) (result i32) + i32.const 117 + ) + (func (;118;) (type 0) (result i32) + i32.const 118 + ) + (func (;119;) (type 0) (result i32) + i32.const 119 + ) + (func (;120;) (type 0) (result i32) + i32.const 120 + ) + (func (;121;) (type 0) (result i32) + i32.const 121 + ) + (func (;122;) (type 0) (result i32) + i32.const 122 + ) + (func (;123;) (type 0) (result i32) + i32.const 123 + ) + (func (;124;) (type 0) (result i32) + i32.const 124 + ) + (func (;125;) (type 0) (result i32) + i32.const 125 + ) + (func (;126;) (type 0) (result i32) + i32.const 126 + ) + (func (;127;) (type 0) (result i32) + i32.const 127 + ) + (func (;128;) (type 0) (result i32) + i32.const 128 + ) + (func (;129;) (type 0) (result i32) + i32.const 129 + ) + (func (;130;) (type 0) (result i32) + i32.const 130 + ) + (func (;131;) (type 0) (result i32) + i32.const 131 + ) + (func (;132;) (type 0) (result i32) + i32.const 132 + ) + (func (;133;) (type 0) (result i32) + i32.const 133 + ) + (func (;134;) (type 0) (result i32) + i32.const 134 + ) + (func (;135;) (type 0) (result i32) + i32.const 135 + ) + (func (;136;) (type 0) (result i32) + i32.const 136 + ) + (func (;137;) (type 0) (result i32) + i32.const 137 + ) + (func (;138;) (type 0) (result i32) + i32.const 138 + ) + (func (;139;) (type 0) (result i32) + i32.const 139 + ) + (func (;140;) (type 0) (result i32) + i32.const 140 + ) + (func (;141;) (type 0) (result i32) + i32.const 141 + ) + (func (;142;) (type 0) (result i32) + i32.const 142 + ) + (func (;143;) (type 0) (result i32) + i32.const 143 + ) + (func (;144;) (type 0) (result i32) + i32.const 144 + ) + (func (;145;) (type 0) (result i32) + i32.const 145 + ) + (func (;146;) (type 0) (result i32) + i32.const 146 + ) + (func (;147;) (type 0) (result i32) + i32.const 147 + ) + (func (;148;) (type 0) (result i32) + i32.const 148 + ) + (func (;149;) (type 0) (result i32) + i32.const 149 + ) + (func (;150;) (type 0) (result i32) + i32.const 150 + ) + (func (;151;) (type 0) (result i32) + i32.const 151 + ) + (func (;152;) (type 0) (result i32) + i32.const 152 + ) + (func (;153;) (type 0) (result i32) + i32.const 153 + ) + (func (;154;) (type 0) (result i32) + i32.const 154 + ) + (func (;155;) (type 0) (result i32) + i32.const 155 + ) + (func (;156;) (type 0) (result i32) + i32.const 156 + ) + (func (;157;) (type 0) (result i32) + i32.const 157 + ) + (func (;158;) (type 0) (result i32) + i32.const 158 + ) + (func (;159;) (type 0) (result i32) + i32.const 159 + ) + (func (;160;) (type 0) (result i32) + i32.const 160 + ) + (func (;161;) (type 0) (result i32) + i32.const 161 + ) + (func (;162;) (type 0) (result i32) + i32.const 162 + ) + (func (;163;) (type 0) (result i32) + i32.const 163 + ) + (func (;164;) (type 0) (result i32) + i32.const 164 + ) + (func (;165;) (type 0) (result i32) + i32.const 165 + ) + (func (;166;) (type 0) (result i32) + i32.const 166 + ) + (func (;167;) (type 0) (result i32) + i32.const 167 + ) + (func (;168;) (type 0) (result i32) + i32.const 168 + ) + (func (;169;) (type 0) (result i32) + i32.const 169 + ) + (func (;170;) (type 0) (result i32) + i32.const 170 + ) + (func (;171;) (type 0) (result i32) + i32.const 171 + ) + (func (;172;) (type 0) (result i32) + i32.const 172 + ) + (func (;173;) (type 0) (result i32) + i32.const 173 + ) + (func (;174;) (type 0) (result i32) + i32.const 174 + ) + (func (;175;) (type 0) (result i32) + i32.const 175 + ) + (func (;176;) (type 0) (result i32) + i32.const 176 + ) + (func (;177;) (type 0) (result i32) + i32.const 177 + ) + (func (;178;) (type 0) (result i32) + i32.const 178 + ) + (func (;179;) (type 0) (result i32) + i32.const 179 + ) + (func (;180;) (type 0) (result i32) + i32.const 180 + ) + (func (;181;) (type 0) (result i32) + i32.const 181 + ) + (func (;182;) (type 0) (result i32) + i32.const 182 + ) + (func (;183;) (type 0) (result i32) + i32.const 183 + ) + (func (;184;) (type 0) (result i32) + i32.const 184 + ) + (func (;185;) (type 0) (result i32) + i32.const 185 + ) + (func (;186;) (type 0) (result i32) + i32.const 186 + ) + (func (;187;) (type 0) (result i32) + i32.const 187 + ) + (func (;188;) (type 0) (result i32) + i32.const 188 + ) + (func (;189;) (type 0) (result i32) + i32.const 189 + ) + (func (;190;) (type 0) (result i32) + i32.const 190 + ) + (func (;191;) (type 0) (result i32) + i32.const 191 + ) + (func (;192;) (type 0) (result i32) + i32.const 192 + ) + (func (;193;) (type 0) (result i32) + i32.const 193 + ) + (func (;194;) (type 0) (result i32) + i32.const 194 + ) + (func (;195;) (type 0) (result i32) + i32.const 195 + ) + (func (;196;) (type 0) (result i32) + i32.const 196 + ) + (func (;197;) (type 0) (result i32) + i32.const 197 + ) + (func (;198;) (type 0) (result i32) + i32.const 198 + ) + (func (;199;) (type 0) (result i32) + i32.const 199 + ) + (func (;200;) (type 0) (result i32) + i32.const 200 + ) + (func (;201;) (type 0) (result i32) + i32.const 201 + ) + (func (;202;) (type 0) (result i32) + i32.const 202 + ) + (func (;203;) (type 0) (result i32) + i32.const 203 + ) + (func (;204;) (type 0) (result i32) + i32.const 204 + ) + (func (;205;) (type 0) (result i32) + i32.const 205 + ) + (func (;206;) (type 0) (result i32) + i32.const 206 + ) + (func (;207;) (type 0) (result i32) + i32.const 207 + ) + (func (;208;) (type 0) (result i32) + i32.const 208 + ) + (func (;209;) (type 0) (result i32) + i32.const 209 + ) + (func (;210;) (type 0) (result i32) + i32.const 210 + ) + (func (;211;) (type 0) (result i32) + i32.const 211 + ) + (func (;212;) (type 0) (result i32) + i32.const 212 + ) + (func (;213;) (type 0) (result i32) + i32.const 213 + ) + (func (;214;) (type 0) (result i32) + i32.const 214 + ) + (func (;215;) (type 0) (result i32) + i32.const 215 + ) + (func (;216;) (type 0) (result i32) + i32.const 216 + ) + (func (;217;) (type 0) (result i32) + i32.const 217 + ) + (func (;218;) (type 0) (result i32) + i32.const 218 + ) + (func (;219;) (type 0) (result i32) + i32.const 219 + ) + (func (;220;) (type 0) (result i32) + i32.const 220 + ) + (func (;221;) (type 0) (result i32) + i32.const 221 + ) + (func (;222;) (type 0) (result i32) + i32.const 222 + ) + (func (;223;) (type 0) (result i32) + i32.const 223 + ) + (func (;224;) (type 0) (result i32) + i32.const 224 + ) + (func (;225;) (type 0) (result i32) + i32.const 225 + ) + (func (;226;) (type 0) (result i32) + i32.const 226 + ) + (func (;227;) (type 0) (result i32) + i32.const 227 + ) + (func (;228;) (type 0) (result i32) + i32.const 228 + ) + (func (;229;) (type 0) (result i32) + i32.const 229 + ) + (func (;230;) (type 0) (result i32) + i32.const 230 + ) + (func (;231;) (type 0) (result i32) + i32.const 231 + ) + (func (;232;) (type 0) (result i32) + i32.const 232 + ) + (func (;233;) (type 0) (result i32) + i32.const 233 + ) + (func (;234;) (type 0) (result i32) + i32.const 234 + ) + (func (;235;) (type 0) (result i32) + i32.const 235 + ) + (func (;236;) (type 0) (result i32) + i32.const 236 + ) + (func (;237;) (type 0) (result i32) + i32.const 237 + ) + (func (;238;) (type 0) (result i32) + i32.const 238 + ) + (func (;239;) (type 0) (result i32) + i32.const 239 + ) + (func (;240;) (type 0) (result i32) + i32.const 240 + ) + (func (;241;) (type 0) (result i32) + i32.const 241 + ) + (func (;242;) (type 0) (result i32) + i32.const 242 + ) + (func (;243;) (type 0) (result i32) + i32.const 243 + ) + (func (;244;) (type 0) (result i32) + i32.const 244 + ) + (func (;245;) (type 0) (result i32) + i32.const 245 + ) + (func (;246;) (type 0) (result i32) + i32.const 246 + ) + (func (;247;) (type 0) (result i32) + i32.const 247 + ) + (func (;248;) (type 0) (result i32) + i32.const 248 + ) + (func (;249;) (type 0) (result i32) + i32.const 249 + ) + (func (;250;) (type 0) (result i32) + i32.const 250 + ) + (func (;251;) (type 0) (result i32) + i32.const 251 + ) + (func (;252;) (type 0) (result i32) + i32.const 252 + ) + (func (;253;) (type 0) (result i32) + i32.const 253 + ) + (func (;254;) (type 0) (result i32) + i32.const 254 + ) + (func (;255;) (type 0) (result i32) + i32.const 255 + ) + (func (;256;) (type 0) (result i32) + i32.const 256 + ) + (func (;257;) (type 0) (result i32) + i32.const 257 + ) + (func (;258;) (type 0) (result i32) + i32.const 258 + ) + (func (;259;) (type 0) (result i32) + i32.const 259 + ) + (func (;260;) (type 0) (result i32) + i32.const 260 + ) + (func (;261;) (type 0) (result i32) + i32.const 261 + ) + (func (;262;) (type 0) (result i32) + i32.const 262 + ) + (func (;263;) (type 0) (result i32) + i32.const 263 + ) + (func (;264;) (type 0) (result i32) + i32.const 264 + ) + (func (;265;) (type 0) (result i32) + i32.const 265 + ) + (func (;266;) (type 0) (result i32) + i32.const 266 + ) + (func (;267;) (type 0) (result i32) + i32.const 267 + ) + (func (;268;) (type 0) (result i32) + i32.const 268 + ) + (func (;269;) (type 0) (result i32) + i32.const 269 + ) + (func (;270;) (type 0) (result i32) + i32.const 270 + ) + (func (;271;) (type 0) (result i32) + i32.const 271 + ) + (func (;272;) (type 0) (result i32) + i32.const 272 + ) + (func (;273;) (type 0) (result i32) + i32.const 273 + ) + (func (;274;) (type 0) (result i32) + i32.const 274 + ) + (func (;275;) (type 0) (result i32) + i32.const 275 + ) + (func (;276;) (type 0) (result i32) + i32.const 276 + ) + (func (;277;) (type 0) (result i32) + i32.const 277 + ) + (func (;278;) (type 0) (result i32) + i32.const 278 + ) + (func (;279;) (type 0) (result i32) + i32.const 279 + ) + (func (;280;) (type 0) (result i32) + i32.const 280 + ) + (func (;281;) (type 0) (result i32) + i32.const 281 + ) + (func (;282;) (type 0) (result i32) + i32.const 282 + ) + (func (;283;) (type 0) (result i32) + i32.const 283 + ) + (func (;284;) (type 0) (result i32) + i32.const 284 + ) + (func (;285;) (type 0) (result i32) + i32.const 285 + ) + (func (;286;) (type 0) (result i32) + i32.const 286 + ) + (func (;287;) (type 0) (result i32) + i32.const 287 + ) + (func (;288;) (type 0) (result i32) + i32.const 288 + ) + (func (;289;) (type 0) (result i32) + i32.const 289 + ) + (func (;290;) (type 0) (result i32) + i32.const 290 + ) + (func (;291;) (type 0) (result i32) + i32.const 291 + ) + (func (;292;) (type 0) (result i32) + i32.const 292 + ) + (func (;293;) (type 0) (result i32) + i32.const 293 + ) + (func (;294;) (type 0) (result i32) + i32.const 294 + ) + (func (;295;) (type 0) (result i32) + i32.const 295 + ) + (func (;296;) (type 0) (result i32) + i32.const 296 + ) + (func (;297;) (type 0) (result i32) + i32.const 297 + ) + (func (;298;) (type 0) (result i32) + i32.const 298 + ) + (func (;299;) (type 0) (result i32) + i32.const 299 + ) + (func (;300;) (type 0) (result i32) + i32.const 300 + ) + (func (;301;) (type 0) (result i32) + i32.const 301 + ) + (func (;302;) (type 0) (result i32) + i32.const 302 + ) + (func (;303;) (type 0) (result i32) + i32.const 303 + ) + (func (;304;) (type 0) (result i32) + i32.const 304 + ) + (func (;305;) (type 0) (result i32) + i32.const 305 + ) + (func (;306;) (type 0) (result i32) + i32.const 306 + ) + (func (;307;) (type 0) (result i32) + i32.const 307 + ) + (func (;308;) (type 0) (result i32) + i32.const 308 + ) + (func (;309;) (type 0) (result i32) + i32.const 309 + ) + (func (;310;) (type 0) (result i32) + i32.const 310 + ) + (func (;311;) (type 0) (result i32) + i32.const 311 + ) + (func (;312;) (type 0) (result i32) + i32.const 312 + ) + (func (;313;) (type 0) (result i32) + i32.const 313 + ) + (func (;314;) (type 0) (result i32) + i32.const 314 + ) + (func (;315;) (type 0) (result i32) + i32.const 315 + ) + (func (;316;) (type 0) (result i32) + i32.const 316 + ) + (func (;317;) (type 0) (result i32) + i32.const 317 + ) + (func (;318;) (type 0) (result i32) + i32.const 318 + ) + (func (;319;) (type 0) (result i32) + i32.const 319 + ) + (func (;320;) (type 0) (result i32) + i32.const 320 + ) + (func (;321;) (type 0) (result i32) + i32.const 321 + ) + (func (;322;) (type 0) (result i32) + i32.const 322 + ) + (func (;323;) (type 0) (result i32) + i32.const 323 + ) + (func (;324;) (type 0) (result i32) + i32.const 324 + ) + (func (;325;) (type 0) (result i32) + i32.const 325 + ) + (func (;326;) (type 0) (result i32) + i32.const 326 + ) + (func (;327;) (type 0) (result i32) + i32.const 327 + ) + (func (;328;) (type 0) (result i32) + i32.const 328 + ) + (func (;329;) (type 0) (result i32) + i32.const 329 + ) + (func (;330;) (type 0) (result i32) + i32.const 330 + ) + (func (;331;) (type 0) (result i32) + i32.const 331 + ) + (func (;332;) (type 0) (result i32) + i32.const 332 + ) + (func (;333;) (type 0) (result i32) + i32.const 333 + ) + (func (;334;) (type 0) (result i32) + i32.const 334 + ) + (func (;335;) (type 0) (result i32) + i32.const 335 + ) + (func (;336;) (type 0) (result i32) + i32.const 336 + ) + (func (;337;) (type 0) (result i32) + i32.const 337 + ) + (func (;338;) (type 0) (result i32) + i32.const 338 + ) + (func (;339;) (type 0) (result i32) + i32.const 339 + ) + (func (;340;) (type 0) (result i32) + i32.const 340 + ) + (func (;341;) (type 0) (result i32) + i32.const 341 + ) + (func (;342;) (type 0) (result i32) + i32.const 342 + ) + (func (;343;) (type 0) (result i32) + i32.const 343 + ) + (func (;344;) (type 0) (result i32) + i32.const 344 + ) + (func (;345;) (type 0) (result i32) + i32.const 345 + ) + (func (;346;) (type 0) (result i32) + i32.const 346 + ) + (func (;347;) (type 0) (result i32) + i32.const 347 + ) + (func (;348;) (type 0) (result i32) + i32.const 348 + ) + (func (;349;) (type 0) (result i32) + i32.const 349 + ) + (func (;350;) (type 0) (result i32) + i32.const 350 + ) + (func (;351;) (type 0) (result i32) + i32.const 351 + ) + (func (;352;) (type 0) (result i32) + i32.const 352 + ) + (func (;353;) (type 0) (result i32) + i32.const 353 + ) + (func (;354;) (type 0) (result i32) + i32.const 354 + ) + (func (;355;) (type 0) (result i32) + i32.const 355 + ) + (func (;356;) (type 0) (result i32) + i32.const 356 + ) + (func (;357;) (type 0) (result i32) + i32.const 357 + ) + (func (;358;) (type 0) (result i32) + i32.const 358 + ) + (func (;359;) (type 0) (result i32) + i32.const 359 + ) + (func (;360;) (type 0) (result i32) + i32.const 360 + ) + (func (;361;) (type 0) (result i32) + i32.const 361 + ) + (func (;362;) (type 0) (result i32) + i32.const 362 + ) + (func (;363;) (type 0) (result i32) + i32.const 363 + ) + (func (;364;) (type 0) (result i32) + i32.const 364 + ) + (func (;365;) (type 0) (result i32) + i32.const 365 + ) + (func (;366;) (type 0) (result i32) + i32.const 366 + ) + (func (;367;) (type 0) (result i32) + i32.const 367 + ) + (func (;368;) (type 0) (result i32) + i32.const 368 + ) + (func (;369;) (type 0) (result i32) + i32.const 369 + ) + (func (;370;) (type 0) (result i32) + i32.const 370 + ) + (func (;371;) (type 0) (result i32) + i32.const 371 + ) + (func (;372;) (type 0) (result i32) + i32.const 372 + ) + (func (;373;) (type 0) (result i32) + i32.const 373 + ) + (func (;374;) (type 0) (result i32) + i32.const 374 + ) + (func (;375;) (type 0) (result i32) + i32.const 375 + ) + (func (;376;) (type 0) (result i32) + i32.const 376 + ) + (func (;377;) (type 0) (result i32) + i32.const 377 + ) + (func (;378;) (type 0) (result i32) + i32.const 378 + ) + (func (;379;) (type 0) (result i32) + i32.const 379 + ) + (func (;380;) (type 0) (result i32) + i32.const 380 + ) + (func (;381;) (type 0) (result i32) + i32.const 381 + ) + (func (;382;) (type 0) (result i32) + i32.const 382 + ) + (func (;383;) (type 0) (result i32) + i32.const 383 + ) + (func (;384;) (type 0) (result i32) + i32.const 384 + ) + (func (;385;) (type 0) (result i32) + i32.const 385 + ) + (func (;386;) (type 0) (result i32) + i32.const 386 + ) + (func (;387;) (type 0) (result i32) + i32.const 387 + ) + (func (;388;) (type 0) (result i32) + i32.const 388 + ) + (func (;389;) (type 0) (result i32) + i32.const 389 + ) + (func (;390;) (type 0) (result i32) + i32.const 390 + ) + (func (;391;) (type 0) (result i32) + i32.const 391 + ) + (func (;392;) (type 0) (result i32) + i32.const 392 + ) + (func (;393;) (type 0) (result i32) + i32.const 393 + ) + (func (;394;) (type 0) (result i32) + i32.const 394 + ) + (func (;395;) (type 0) (result i32) + i32.const 395 + ) + (func (;396;) (type 0) (result i32) + i32.const 396 + ) + (func (;397;) (type 0) (result i32) + i32.const 397 + ) + (func (;398;) (type 0) (result i32) + i32.const 398 + ) + (func (;399;) (type 0) (result i32) + i32.const 399 + ) + (func (;400;) (type 0) (result i32) + i32.const 400 + ) + (func (;401;) (type 0) (result i32) + i32.const 401 + ) + (func (;402;) (type 0) (result i32) + i32.const 402 + ) + (func (;403;) (type 0) (result i32) + i32.const 403 + ) + (func (;404;) (type 0) (result i32) + i32.const 404 + ) + (func (;405;) (type 0) (result i32) + i32.const 405 + ) + (func (;406;) (type 0) (result i32) + i32.const 406 + ) + (func (;407;) (type 0) (result i32) + i32.const 407 + ) + (func (;408;) (type 0) (result i32) + i32.const 408 + ) + (func (;409;) (type 0) (result i32) + i32.const 409 + ) + (func (;410;) (type 0) (result i32) + i32.const 410 + ) + (func (;411;) (type 0) (result i32) + i32.const 411 + ) + (func (;412;) (type 0) (result i32) + i32.const 412 + ) + (func (;413;) (type 0) (result i32) + i32.const 413 + ) + (func (;414;) (type 0) (result i32) + i32.const 414 + ) + (func (;415;) (type 0) (result i32) + i32.const 415 + ) + (func (;416;) (type 0) (result i32) + i32.const 416 + ) + (func (;417;) (type 0) (result i32) + i32.const 417 + ) + (func (;418;) (type 0) (result i32) + i32.const 418 + ) + (func (;419;) (type 0) (result i32) + i32.const 419 + ) + (func (;420;) (type 0) (result i32) + i32.const 420 + ) + (func (;421;) (type 0) (result i32) + i32.const 421 + ) + (func (;422;) (type 0) (result i32) + i32.const 422 + ) + (func (;423;) (type 0) (result i32) + i32.const 423 + ) + (func (;424;) (type 0) (result i32) + i32.const 424 + ) + (func (;425;) (type 0) (result i32) + i32.const 425 + ) + (func (;426;) (type 0) (result i32) + i32.const 426 + ) + (func (;427;) (type 0) (result i32) + i32.const 427 + ) + (func (;428;) (type 0) (result i32) + i32.const 428 + ) + (func (;429;) (type 0) (result i32) + i32.const 429 + ) + (func (;430;) (type 0) (result i32) + i32.const 430 + ) + (func (;431;) (type 0) (result i32) + i32.const 431 + ) + (func (;432;) (type 0) (result i32) + i32.const 432 + ) + (func (;433;) (type 0) (result i32) + i32.const 433 + ) + (func (;434;) (type 0) (result i32) + i32.const 434 + ) + (func (;435;) (type 0) (result i32) + i32.const 435 + ) + (func (;436;) (type 0) (result i32) + i32.const 436 + ) + (func (;437;) (type 0) (result i32) + i32.const 437 + ) + (func (;438;) (type 0) (result i32) + i32.const 438 + ) + (func (;439;) (type 0) (result i32) + i32.const 439 + ) + (func (;440;) (type 0) (result i32) + i32.const 440 + ) + (func (;441;) (type 0) (result i32) + i32.const 441 + ) + (func (;442;) (type 0) (result i32) + i32.const 442 + ) + (func (;443;) (type 0) (result i32) + i32.const 443 + ) + (func (;444;) (type 0) (result i32) + i32.const 444 + ) + (func (;445;) (type 0) (result i32) + i32.const 445 + ) + (func (;446;) (type 0) (result i32) + i32.const 446 + ) + (func (;447;) (type 0) (result i32) + i32.const 447 + ) + (func (;448;) (type 0) (result i32) + i32.const 448 + ) + (func (;449;) (type 0) (result i32) + i32.const 449 + ) + (func (;450;) (type 0) (result i32) + i32.const 450 + ) + (func (;451;) (type 0) (result i32) + i32.const 451 + ) + (func (;452;) (type 0) (result i32) + i32.const 452 + ) + (func (;453;) (type 0) (result i32) + i32.const 453 + ) + (func (;454;) (type 0) (result i32) + i32.const 454 + ) + (func (;455;) (type 0) (result i32) + i32.const 455 + ) + (func (;456;) (type 0) (result i32) + i32.const 456 + ) + (func (;457;) (type 0) (result i32) + i32.const 457 + ) + (func (;458;) (type 0) (result i32) + i32.const 458 + ) + (func (;459;) (type 0) (result i32) + i32.const 459 + ) + (func (;460;) (type 0) (result i32) + i32.const 460 + ) + (func (;461;) (type 0) (result i32) + i32.const 461 + ) + (func (;462;) (type 0) (result i32) + i32.const 462 + ) + (func (;463;) (type 0) (result i32) + i32.const 463 + ) + (func (;464;) (type 0) (result i32) + i32.const 464 + ) + (func (;465;) (type 0) (result i32) + i32.const 465 + ) + (func (;466;) (type 0) (result i32) + i32.const 466 + ) + (func (;467;) (type 0) (result i32) + i32.const 467 + ) + (func (;468;) (type 0) (result i32) + i32.const 468 + ) + (func (;469;) (type 0) (result i32) + i32.const 469 + ) + (func (;470;) (type 0) (result i32) + i32.const 470 + ) + (func (;471;) (type 0) (result i32) + i32.const 471 + ) + (func (;472;) (type 0) (result i32) + i32.const 472 + ) + (func (;473;) (type 0) (result i32) + i32.const 473 + ) + (func (;474;) (type 0) (result i32) + i32.const 474 + ) + (func (;475;) (type 0) (result i32) + i32.const 475 + ) + (func (;476;) (type 0) (result i32) + i32.const 476 + ) + (func (;477;) (type 0) (result i32) + i32.const 477 + ) + (func (;478;) (type 0) (result i32) + i32.const 478 + ) ) diff --git a/tests/snapshots/testsuite/names.wast/484.print b/tests/snapshots/testsuite/names.wast/484.print index 129dee82fe..a438203efd 100644 --- a/tests/snapshots/testsuite/names.wast/484.print +++ b/tests/snapshots/testsuite/names.wast/484.print @@ -3,11 +3,11 @@ (type (;1;) (func (param i32 i32))) (import "spectest" "print_i32" (func (;0;) (type 0))) (import "spectest" "print_i32" (func (;1;) (type 0))) + (export "print32" (func 2)) (func (;2;) (type 1) (param i32 i32) local.get 0 call 0 local.get 1 call 1 ) - (export "print32" (func 2)) ) diff --git a/tests/snapshots/testsuite/nop.wast/0.print b/tests/snapshots/testsuite/nop.wast/0.print index 6ac937db8a..ee1112c9a8 100644 --- a/tests/snapshots/testsuite/nop.wast/0.print +++ b/tests/snapshots/testsuite/nop.wast/0.print @@ -6,6 +6,90 @@ (type (;4;) (func (param i32))) (type (;5;) (func (param i32) (result i32))) (type (;6;) (func (param i32 i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 0) + (export "as-func-first" (func 2)) + (export "as-func-mid" (func 3)) + (export "as-func-last" (func 4)) + (export "as-func-everywhere" (func 5)) + (export "as-drop-first" (func 6)) + (export "as-drop-last" (func 7)) + (export "as-drop-everywhere" (func 8)) + (export "as-select-first" (func 9)) + (export "as-select-mid1" (func 10)) + (export "as-select-mid2" (func 11)) + (export "as-select-last" (func 12)) + (export "as-select-everywhere" (func 13)) + (export "as-block-first" (func 14)) + (export "as-block-mid" (func 15)) + (export "as-block-last" (func 16)) + (export "as-block-everywhere" (func 17)) + (export "as-loop-first" (func 18)) + (export "as-loop-mid" (func 19)) + (export "as-loop-last" (func 20)) + (export "as-loop-everywhere" (func 21)) + (export "as-if-condition" (func 22)) + (export "as-if-then" (func 23)) + (export "as-if-else" (func 24)) + (export "as-br-first" (func 25)) + (export "as-br-last" (func 26)) + (export "as-br-everywhere" (func 27)) + (export "as-br_if-first" (func 28)) + (export "as-br_if-mid" (func 29)) + (export "as-br_if-last" (func 30)) + (export "as-br_if-everywhere" (func 31)) + (export "as-br_table-first" (func 32)) + (export "as-br_table-mid" (func 33)) + (export "as-br_table-last" (func 34)) + (export "as-br_table-everywhere" (func 35)) + (export "as-return-first" (func 36)) + (export "as-return-last" (func 37)) + (export "as-return-everywhere" (func 38)) + (export "as-call-first" (func 39)) + (export "as-call-mid1" (func 40)) + (export "as-call-mid2" (func 41)) + (export "as-call-last" (func 42)) + (export "as-call-everywhere" (func 43)) + (export "as-unary-first" (func 44)) + (export "as-unary-last" (func 45)) + (export "as-unary-everywhere" (func 46)) + (export "as-binary-first" (func 47)) + (export "as-binary-mid" (func 48)) + (export "as-binary-last" (func 49)) + (export "as-binary-everywhere" (func 50)) + (export "as-test-first" (func 51)) + (export "as-test-last" (func 52)) + (export "as-test-everywhere" (func 53)) + (export "as-compare-first" (func 54)) + (export "as-compare-mid" (func 55)) + (export "as-compare-last" (func 56)) + (export "as-compare-everywhere" (func 57)) + (export "as-memory.grow-first" (func 58)) + (export "as-memory.grow-last" (func 59)) + (export "as-memory.grow-everywhere" (func 60)) + (export "as-call_indirect-first" (func 62)) + (export "as-call_indirect-mid1" (func 63)) + (export "as-call_indirect-mid2" (func 64)) + (export "as-call_indirect-last" (func 65)) + (export "as-call_indirect-everywhere" (func 66)) + (export "as-local.set-first" (func 67)) + (export "as-local.set-last" (func 68)) + (export "as-local.set-everywhere" (func 69)) + (export "as-local.tee-first" (func 70)) + (export "as-local.tee-last" (func 71)) + (export "as-local.tee-everywhere" (func 72)) + (export "as-global.set-first" (func 73)) + (export "as-global.set-last" (func 74)) + (export "as-global.set-everywhere" (func 75)) + (export "as-load-first" (func 76)) + (export "as-load-last" (func 77)) + (export "as-load-everywhere" (func 78)) + (export "as-store-first" (func 79)) + (export "as-store-mid" (func 80)) + (export "as-store-last" (func 81)) + (export "as-store-everywhere" (func 82)) + (elem (;0;) (i32.const 0) func $func) (func $dummy (;0;) (type 1)) (func $3-ary (;1;) (type 2) (param i32 i32 i32) (result i32) local.get 0 @@ -612,88 +696,4 @@ nop i32.store ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 0) - (export "as-func-first" (func 2)) - (export "as-func-mid" (func 3)) - (export "as-func-last" (func 4)) - (export "as-func-everywhere" (func 5)) - (export "as-drop-first" (func 6)) - (export "as-drop-last" (func 7)) - (export "as-drop-everywhere" (func 8)) - (export "as-select-first" (func 9)) - (export "as-select-mid1" (func 10)) - (export "as-select-mid2" (func 11)) - (export "as-select-last" (func 12)) - (export "as-select-everywhere" (func 13)) - (export "as-block-first" (func 14)) - (export "as-block-mid" (func 15)) - (export "as-block-last" (func 16)) - (export "as-block-everywhere" (func 17)) - (export "as-loop-first" (func 18)) - (export "as-loop-mid" (func 19)) - (export "as-loop-last" (func 20)) - (export "as-loop-everywhere" (func 21)) - (export "as-if-condition" (func 22)) - (export "as-if-then" (func 23)) - (export "as-if-else" (func 24)) - (export "as-br-first" (func 25)) - (export "as-br-last" (func 26)) - (export "as-br-everywhere" (func 27)) - (export "as-br_if-first" (func 28)) - (export "as-br_if-mid" (func 29)) - (export "as-br_if-last" (func 30)) - (export "as-br_if-everywhere" (func 31)) - (export "as-br_table-first" (func 32)) - (export "as-br_table-mid" (func 33)) - (export "as-br_table-last" (func 34)) - (export "as-br_table-everywhere" (func 35)) - (export "as-return-first" (func 36)) - (export "as-return-last" (func 37)) - (export "as-return-everywhere" (func 38)) - (export "as-call-first" (func 39)) - (export "as-call-mid1" (func 40)) - (export "as-call-mid2" (func 41)) - (export "as-call-last" (func 42)) - (export "as-call-everywhere" (func 43)) - (export "as-unary-first" (func 44)) - (export "as-unary-last" (func 45)) - (export "as-unary-everywhere" (func 46)) - (export "as-binary-first" (func 47)) - (export "as-binary-mid" (func 48)) - (export "as-binary-last" (func 49)) - (export "as-binary-everywhere" (func 50)) - (export "as-test-first" (func 51)) - (export "as-test-last" (func 52)) - (export "as-test-everywhere" (func 53)) - (export "as-compare-first" (func 54)) - (export "as-compare-mid" (func 55)) - (export "as-compare-last" (func 56)) - (export "as-compare-everywhere" (func 57)) - (export "as-memory.grow-first" (func 58)) - (export "as-memory.grow-last" (func 59)) - (export "as-memory.grow-everywhere" (func 60)) - (export "as-call_indirect-first" (func 62)) - (export "as-call_indirect-mid1" (func 63)) - (export "as-call_indirect-mid2" (func 64)) - (export "as-call_indirect-last" (func 65)) - (export "as-call_indirect-everywhere" (func 66)) - (export "as-local.set-first" (func 67)) - (export "as-local.set-last" (func 68)) - (export "as-local.set-everywhere" (func 69)) - (export "as-local.tee-first" (func 70)) - (export "as-local.tee-last" (func 71)) - (export "as-local.tee-everywhere" (func 72)) - (export "as-global.set-first" (func 73)) - (export "as-global.set-last" (func 74)) - (export "as-global.set-everywhere" (func 75)) - (export "as-load-first" (func 76)) - (export "as-load-last" (func 77)) - (export "as-load-everywhere" (func 78)) - (export "as-store-first" (func 79)) - (export "as-store-mid" (func 80)) - (export "as-store-last" (func 81)) - (export "as-store-everywhere" (func 82)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/annotations/annotations.wast/71.print b/tests/snapshots/testsuite/proposals/annotations/annotations.wast/71.print index cea19a4982..e0dc949939 100644 --- a/tests/snapshots/testsuite/proposals/annotations/annotations.wast/71.print +++ b/tests/snapshots/testsuite/proposals/annotations/annotations.wast/71.print @@ -1,15 +1,6 @@ (module $m2 (type $T (;0;) (func (param i32 i64 i32) (result i32))) (type (;1;) (func)) - (func $f (;0;) (type $T) (param i32 i64) (param $x i32) (result i32) - (local i32 i32) (local $y i32) - block (result i32) ;; label = @1 - local.get $x - local.get 0 - i32.add - end - ) - (func $s (;1;) (type 1)) (table $t (;0;) 10 20 funcref) (memory $m (;0;) 1 2) (global $g (;0;) i32 i32.const 42) @@ -19,5 +10,14 @@ (export "f" (func $f)) (start $s) (elem (;0;) (i32.const 0) func $f $f $f) + (func $f (;0;) (type $T) (param i32 i64) (param $x i32) (result i32) + (local i32 i32) (local $y i32) + block (result i32) ;; label = @1 + local.get $x + local.get 0 + i32.add + end + ) + (func $s (;1;) (type 1)) (data (;0;) (i32.const 0) "blaC") ) diff --git a/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/0.print b/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/0.print index b2f0c3763e..52581ca945 100644 --- a/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/0.print +++ b/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/0.print @@ -8,6 +8,42 @@ (type (;6;) (func (param v128 i64) (result v128))) (type (;7;) (func (param v128 f64) (result v128))) (type (;8;) (func (param v128 v128) (result v128))) + (export "i8x16_extract_lane_s-first" (func 0)) + (export "i8x16_extract_lane_s-last" (func 1)) + (export "i8x16_extract_lane_u-first" (func 2)) + (export "i8x16_extract_lane_u-last" (func 3)) + (export "i16x8_extract_lane_s-first" (func 4)) + (export "i16x8_extract_lane_s-last" (func 5)) + (export "i16x8_extract_lane_u-first" (func 6)) + (export "i16x8_extract_lane_u-last" (func 7)) + (export "i32x4_extract_lane-first" (func 8)) + (export "i32x4_extract_lane-last" (func 9)) + (export "f32x4_extract_lane-first" (func 10)) + (export "f32x4_extract_lane-last" (func 11)) + (export "i8x16_replace_lane-first" (func 12)) + (export "i8x16_replace_lane-last" (func 13)) + (export "i16x8_replace_lane-first" (func 14)) + (export "i16x8_replace_lane-last" (func 15)) + (export "i32x4_replace_lane-first" (func 16)) + (export "i32x4_replace_lane-last" (func 17)) + (export "f32x4_replace_lane-first" (func 18)) + (export "f32x4_replace_lane-last" (func 19)) + (export "i64x2_extract_lane-first" (func 20)) + (export "i64x2_extract_lane-last" (func 21)) + (export "f64x2_extract_lane-first" (func 22)) + (export "f64x2_extract_lane-last" (func 23)) + (export "i64x2_replace_lane-first" (func 24)) + (export "i64x2_replace_lane-last" (func 25)) + (export "f64x2_replace_lane-first" (func 26)) + (export "f64x2_replace_lane-last" (func 27)) + (export "v8x16_swizzle" (func 28)) + (export "v8x16_shuffle-1" (func 29)) + (export "v8x16_shuffle-2" (func 30)) + (export "v8x16_shuffle-3" (func 31)) + (export "v8x16_shuffle-4" (func 32)) + (export "v8x16_shuffle-5" (func 33)) + (export "v8x16_shuffle-6" (func 34)) + (export "v8x16_shuffle-7" (func 35)) (func (;0;) (type 0) (param v128) (result i32) local.get 0 i8x16.extract_lane_s 0 @@ -172,40 +208,4 @@ local.get 1 i8x16.shuffle 0 0 0 0 0 0 0 0 16 16 16 16 16 16 16 16 ) - (export "i8x16_extract_lane_s-first" (func 0)) - (export "i8x16_extract_lane_s-last" (func 1)) - (export "i8x16_extract_lane_u-first" (func 2)) - (export "i8x16_extract_lane_u-last" (func 3)) - (export "i16x8_extract_lane_s-first" (func 4)) - (export "i16x8_extract_lane_s-last" (func 5)) - (export "i16x8_extract_lane_u-first" (func 6)) - (export "i16x8_extract_lane_u-last" (func 7)) - (export "i32x4_extract_lane-first" (func 8)) - (export "i32x4_extract_lane-last" (func 9)) - (export "f32x4_extract_lane-first" (func 10)) - (export "f32x4_extract_lane-last" (func 11)) - (export "i8x16_replace_lane-first" (func 12)) - (export "i8x16_replace_lane-last" (func 13)) - (export "i16x8_replace_lane-first" (func 14)) - (export "i16x8_replace_lane-last" (func 15)) - (export "i32x4_replace_lane-first" (func 16)) - (export "i32x4_replace_lane-last" (func 17)) - (export "f32x4_replace_lane-first" (func 18)) - (export "f32x4_replace_lane-last" (func 19)) - (export "i64x2_extract_lane-first" (func 20)) - (export "i64x2_extract_lane-last" (func 21)) - (export "f64x2_extract_lane-first" (func 22)) - (export "f64x2_extract_lane-last" (func 23)) - (export "i64x2_replace_lane-first" (func 24)) - (export "i64x2_replace_lane-last" (func 25)) - (export "f64x2_replace_lane-first" (func 26)) - (export "f64x2_replace_lane-last" (func 27)) - (export "v8x16_swizzle" (func 28)) - (export "v8x16_shuffle-1" (func 29)) - (export "v8x16_shuffle-2" (func 30)) - (export "v8x16_shuffle-3" (func 31)) - (export "v8x16_shuffle-4" (func 32)) - (export "v8x16_shuffle-5" (func 33)) - (export "v8x16_shuffle-6" (func 34)) - (export "v8x16_shuffle-7" (func 35)) ) diff --git a/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/360.print b/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/360.print index 4950536dec..ee382606ad 100644 --- a/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/360.print +++ b/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/360.print @@ -6,6 +6,24 @@ (type (;4;) (func (param v128 f64) (result f64))) (type (;5;) (func (param v128 i32 v128) (result v128))) (type (;6;) (func (param v128 i32 v128 i32) (result v128))) + (export "i8x16_extract_lane_s" (func 0)) + (export "i8x16_extract_lane_u" (func 1)) + (export "i16x8_extract_lane_s" (func 2)) + (export "i16x8_extract_lane_u" (func 3)) + (export "i32x4_extract_lane" (func 4)) + (export "f32x4_extract_lane" (func 5)) + (export "i64x2_extract_lane" (func 6)) + (export "f64x2_extract_lane" (func 7)) + (export "i8x16_replace_lane-s" (func 8)) + (export "i8x16_replace_lane-u" (func 9)) + (export "i16x8_replace_lane-s" (func 10)) + (export "i16x8_replace_lane-u" (func 11)) + (export "i32x4_replace_lane" (func 12)) + (export "f32x4_replace_lane" (func 13)) + (export "i64x2_replace_lane" (func 14)) + (export "f64x2_replace_lane" (func 15)) + (export "as-v8x16_swizzle-operand" (func 16)) + (export "as-v8x16_shuffle-operands" (func 17)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -118,22 +136,4 @@ i8x16.replace_lane 15 i8x16.shuffle 16 1 18 3 20 5 22 7 24 9 26 11 28 13 30 15 ) - (export "i8x16_extract_lane_s" (func 0)) - (export "i8x16_extract_lane_u" (func 1)) - (export "i16x8_extract_lane_s" (func 2)) - (export "i16x8_extract_lane_u" (func 3)) - (export "i32x4_extract_lane" (func 4)) - (export "f32x4_extract_lane" (func 5)) - (export "i64x2_extract_lane" (func 6)) - (export "f64x2_extract_lane" (func 7)) - (export "i8x16_replace_lane-s" (func 8)) - (export "i8x16_replace_lane-u" (func 9)) - (export "i16x8_replace_lane-s" (func 10)) - (export "i16x8_replace_lane-u" (func 11)) - (export "i32x4_replace_lane" (func 12)) - (export "f32x4_replace_lane" (func 13)) - (export "i64x2_replace_lane" (func 14)) - (export "f64x2_replace_lane" (func 15)) - (export "as-v8x16_swizzle-operand" (func 16)) - (export "as-v8x16_shuffle-operands" (func 17)) ) diff --git a/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/379.print b/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/379.print index 9ad2453bba..964c1d4a11 100644 --- a/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/379.print +++ b/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/379.print @@ -6,6 +6,24 @@ (type (;4;) (func (param v128 i32) (result i32))) (type (;5;) (func (param v128 i64) (result i32))) (type (;6;) (func (param v128 v128) (result i32))) + (export "as-i8x16_splat-operand" (func 0)) + (export "as-i16x8_splat-operand" (func 1)) + (export "as-i32x4_splat-operand" (func 2)) + (export "as-f32x4_splat-operand" (func 3)) + (export "as-i64x2_splat-operand" (func 4)) + (export "as-f64x2_splat-operand" (func 5)) + (export "as-i8x16_add-operands" (func 6)) + (export "as-i16x8_add-operands" (func 7)) + (export "as-i32x4_add-operands" (func 8)) + (export "as-i64x2_add-operands" (func 9)) + (export "swizzle-as-i8x16_add-operands" (func 10)) + (export "shuffle-as-i8x16_sub-operands" (func 11)) + (export "as-i8x16_any_true-operand" (func 12)) + (export "as-i16x8_any_true-operand" (func 13)) + (export "as-i32x4_any_true-operand1" (func 14)) + (export "as-i32x4_any_true-operand2" (func 15)) + (export "swizzle-as-i8x16_all_true-operands" (func 16)) + (export "shuffle-as-i8x16_any_true-operands" (func 17)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i8x16.extract_lane_s 0 @@ -126,22 +144,4 @@ i8x16.shuffle 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 v128.any_true ) - (export "as-i8x16_splat-operand" (func 0)) - (export "as-i16x8_splat-operand" (func 1)) - (export "as-i32x4_splat-operand" (func 2)) - (export "as-f32x4_splat-operand" (func 3)) - (export "as-i64x2_splat-operand" (func 4)) - (export "as-f64x2_splat-operand" (func 5)) - (export "as-i8x16_add-operands" (func 6)) - (export "as-i16x8_add-operands" (func 7)) - (export "as-i32x4_add-operands" (func 8)) - (export "as-i64x2_add-operands" (func 9)) - (export "swizzle-as-i8x16_add-operands" (func 10)) - (export "shuffle-as-i8x16_sub-operands" (func 11)) - (export "as-i8x16_any_true-operand" (func 12)) - (export "as-i16x8_any_true-operand" (func 13)) - (export "as-i32x4_any_true-operand1" (func 14)) - (export "as-i32x4_any_true-operand2" (func 15)) - (export "swizzle-as-i8x16_all_true-operands" (func 16)) - (export "shuffle-as-i8x16_any_true-operands" (func 17)) ) diff --git a/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/399.print b/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/399.print index 93fdf8651f..13d06074fb 100644 --- a/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/399.print +++ b/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/399.print @@ -3,6 +3,13 @@ (type (;1;) (func (param v128 f32) (result v128))) (type (;2;) (func (param v128 i64) (result v128))) (type (;3;) (func (param v128 f64) (result v128))) + (memory (;0;) 1) + (export "as-v128_store-operand-1" (func 0)) + (export "as-v128_store-operand-2" (func 1)) + (export "as-v128_store-operand-3" (func 2)) + (export "as-v128_store-operand-4" (func 3)) + (export "as-v128_store-operand-5" (func 4)) + (export "as-v128_store-operand-6" (func 5)) (func (;0;) (type 0) (param v128 i32) (result v128) i32.const 0 local.get 0 @@ -57,11 +64,4 @@ i32.const 0 v128.load ) - (memory (;0;) 1) - (export "as-v128_store-operand-1" (func 0)) - (export "as-v128_store-operand-2" (func 1)) - (export "as-v128_store-operand-3" (func 2)) - (export "as-v128_store-operand-4" (func 3)) - (export "as-v128_store-operand-5" (func 4)) - (export "as-v128_store-operand-6" (func 5)) ) diff --git a/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/406.print b/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/406.print index 1678bb6414..e8cd025ff2 100644 --- a/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/406.print +++ b/tests/snapshots/testsuite/proposals/annotations/simd_lane.wast/406.print @@ -5,6 +5,16 @@ (type (;3;) (func (param v128 v128) (result v128))) (type (;4;) (func (param v128) (result i64))) (type (;5;) (func (param v128 f64) (result v128))) + (global $g (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (global $h (;1;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (export "as-if-condition-value" (func 0)) + (export "as-return-value-1" (func 1)) + (export "as-local_set-value" (func 2)) + (export "as-global_set-value-1" (func 3)) + (export "as-return-value-2" (func 4)) + (export "as-global_set-value-2" (func 5)) + (export "as-local_set-value-1" (func 6)) + (export "as-global_set-value-3" (func 7)) (func (;0;) (type 0) (param v128) (result i32) local.get 0 i8x16.extract_lane_s 0 @@ -66,14 +76,4 @@ global.get $g return ) - (global $g (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (global $h (;1;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (export "as-if-condition-value" (func 0)) - (export "as-return-value-1" (func 1)) - (export "as-local_set-value" (func 2)) - (export "as-global_set-value-1" (func 3)) - (export "as-return-value-2" (func 4)) - (export "as-global_set-value-2" (func 5)) - (export "as-local_set-value-1" (func 6)) - (export "as-global_set-value-3" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/annotations/token.wast/8.print b/tests/snapshots/testsuite/proposals/annotations/token.wast/8.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/annotations/token.wast/8.print +++ b/tests/snapshots/testsuite/proposals/annotations/token.wast/8.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/annotations/token.wast/9.print b/tests/snapshots/testsuite/proposals/annotations/token.wast/9.print index 40b3ac599a..0b9eafb05a 100644 --- a/tests/snapshots/testsuite/proposals/annotations/token.wast/9.print +++ b/tests/snapshots/testsuite/proposals/annotations/token.wast/9.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/110.print b/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/110.print index c6566d0ced..d90addbeb7 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/110.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/110.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (start 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/68.print b/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/68.print index 40e23c382f..f60ef5c6a4 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/68.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/68.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/69.print b/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/69.print index 149738a620..b959a17a4a 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/69.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/69.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/99.print b/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/99.print index a6b9947353..e3c7ff0b0d 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/99.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/binary.wast/99.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/0.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/0.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/0.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/0.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/1.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/1.print index 0e6650207b..edafa1a61f 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/1.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/1.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) (export "b" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/10.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/10.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/10.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/10.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/11.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/11.print index 25c740d656..b564b1964d 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/11.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/11.print @@ -1,10 +1,10 @@ (module $Func (type (;0;) (func (param i32) (result i32))) + (export "e" (func $f)) (func $f (;0;) (type 0) (param $n i32) (result i32) local.get $n i32.const 1 i32.add return ) - (export "e" (func $f)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/17.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/17.print index adb60fae84..e2b67174f5 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/17.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/17.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) - (func (;0;) (type 0) (result i32) - i32.const 42 - ) (export "a" (func 0)) (export "b" (func 0)) (export "c" (func 0)) + (func (;0;) (type 0) (result i32) + i32.const 42 + ) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/2.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/2.print index 69eac22051..b139f8873b 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/2.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/2.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) - (func (;1;) (type 0)) (export "a" (func 0)) (export "b" (func 1)) + (func (;0;) (type 0)) + (func (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/3.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/3.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/3.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/3.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/4.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/4.print index cbaf870965..6852c7b4ce 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/4.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/4.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) (export "b" (func 0)) (export "c" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/5.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/5.print index a74c1debd3..eadffaacbc 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/5.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/5.print @@ -1,6 +1,6 @@ (module (type (;0;) (func (param i32))) - (func (;0;) (type 0) (param i32)) (export "a" (func 0)) (export "b" (func 0)) + (func (;0;) (type 0) (param i32)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/6.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/6.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/6.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/6.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/7.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/7.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/7.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/7.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/8.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/8.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/8.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/8.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/9.print b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/9.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/9.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/exports.wast/9.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/0.print b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/0.print index b544445b7d..d2c3a1ed97 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/0.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/0.print @@ -6,21 +6,6 @@ (type (;4;) (func (result f32))) (type (;5;) (func (param i32) (result i32))) (type (;6;) (func (param i64) (result i64))) - (func (;0;) (type 0)) - (func (;1;) (type 1) (param i32)) - (func (;2;) (type 2) (param f32)) - (func (;3;) (type 3) (result i32) - i32.const 22 - ) - (func (;4;) (type 4) (result f32) - f32.const 0x1.6p+3 (;=11;) - ) - (func (;5;) (type 5) (param i32) (result i32) - local.get 0 - ) - (func (;6;) (type 6) (param i64) (result i64) - local.get 0 - ) (table (;0;) 10 funcref) (table (;1;) 10 20 funcref) (memory (;0;) 2) @@ -46,4 +31,19 @@ (export "tag" (tag 0)) (export "tag-i32" (tag 1)) (export "tag-f32" (tag 2)) + (func (;0;) (type 0)) + (func (;1;) (type 1) (param i32)) + (func (;2;) (type 2) (param f32)) + (func (;3;) (type 3) (result i32) + i32.const 22 + ) + (func (;4;) (type 4) (result f32) + f32.const 0x1.6p+3 (;=11;) + ) + (func (;5;) (type 5) (param i32) (result i32) + local.get 0 + ) + (func (;6;) (type 6) (param i64) (result i64) + local.get 0 + ) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/123.print b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/123.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/123.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/123.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/128.print b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/128.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/128.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/128.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/159.print b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/159.print index c72d519576..c22b9dbe1b 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/159.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/159.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 0 3)) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/2.print b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/2.print index 33d53e48e4..e60965f3b9 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/2.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/2.print @@ -27,6 +27,16 @@ (import "spectest" "print_i32" (func (;15;) (type $func_i32))) (import "spectest" "print_i32" (func (;16;) (type $forward))) (import "spectest" "print_i32" (func (;17;) (type $forward))) + (table (;0;) 2 2 funcref) + (export "p1" (func 11)) + (export "p2" (func $p)) + (export "p3" (func 13)) + (export "p4" (func 13)) + (export "p5" (func 14)) + (export "p6" (func 15)) + (export "print32" (func 18)) + (export "print64" (func 19)) + (elem (;0;) (i32.const 0) func $print_i32 $print_f64) (func (;18;) (type $func_i32) (param $i i32) (local $x f32) local.get $i @@ -72,14 +82,4 @@ i32.const 1 call_indirect (type $func_f64) ) - (table (;0;) 2 2 funcref) - (export "p1" (func 11)) - (export "p2" (func $p)) - (export "p3" (func 13)) - (export "p4" (func 13)) - (export "p5" (func 14)) - (export "p6" (func 15)) - (export "print32" (func 18)) - (export "print64" (func 19)) - (elem (;0;) (i32.const 0) func $print_i32 $print_f64) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/47.print b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/47.print index cdb6d30a03..45653670d6 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/47.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/47.print @@ -10,6 +10,13 @@ (import "spectest" "global_i64" (global (;4;) i64)) (import "spectest" "global_f32" (global (;5;) f32)) (import "spectest" "global_f64" (global (;6;) f64)) + (export "get-0" (func 0)) + (export "get-1" (func 1)) + (export "get-x" (func 2)) + (export "get-y" (func 3)) + (export "get-4" (func 4)) + (export "get-5" (func 5)) + (export "get-6" (func 6)) (func (;0;) (type 0) (result i32) global.get 0 ) @@ -31,11 +38,4 @@ (func (;6;) (type 3) (result f64) global.get 6 ) - (export "get-0" (func 0)) - (export "get-1" (func 1)) - (export "get-x" (func 2)) - (export "get-y" (func 3)) - (export "get-4" (func 4)) - (export "get-5" (func 5)) - (export "get-6" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/6.print b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/6.print index 7111042da6..9c3b885386 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/6.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32))) (import "spectest" "print_i32" (func $imported_print (;0;) (type 0))) + (export "print_i32" (func 1)) (func (;1;) (type 0) (param $i i32) local.get $i call $imported_print ) - (export "print_i32" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/78.print b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/78.print index 6444756a75..9001a9b066 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/78.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/78.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "table" (table $tab (;0;) 10 20 funcref)) + (export "call" (func 0)) + (elem (;0;) (i32.const 1) func $f $g) (func (;0;) (type 1) (param i32) (result i32) local.get 0 call_indirect (type 0) @@ -12,6 +14,4 @@ (func $g (;2;) (type 0) (result i32) i32.const 22 ) - (export "call" (func 0)) - (elem (;0;) (i32.const 1) func $f $g) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/8.print b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/8.print index 0a22ecf481..783e0547c3 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/8.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/8.print @@ -2,10 +2,10 @@ (type (;0;) (func (param i32))) (type (;1;) (func (param i32 i32) (result i32))) (import "spectest" "print_i32" (func $imported_print (;0;) (type 0))) + (export "print_i32" (func 1)) (func (;1;) (type 1) (param $i i32) (param $j i32) (result i32) local.get $i local.get $j i32.add ) - (export "print_i32" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/84.print b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/84.print index 6444756a75..9001a9b066 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/84.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/imports.wast/84.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "table" (table $tab (;0;) 10 20 funcref)) + (export "call" (func 0)) + (elem (;0;) (i32.const 1) func $f $g) (func (;0;) (type 1) (param i32) (result i32) local.get 0 call_indirect (type 0) @@ -12,6 +14,4 @@ (func $g (;2;) (type 0) (result i32) i32.const 22 ) - (export "call" (func 0)) - (elem (;0;) (i32.const 1) func $f $g) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/ref_null.wast/0.print b/tests/snapshots/testsuite/proposals/exception-handling/ref_null.wast/0.print index 32a1233554..611b7ef308 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/ref_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/ref_null.wast/0.print @@ -2,6 +2,12 @@ (type (;0;) (func (result externref))) (type (;1;) (func (result exnref))) (type (;2;) (func (result funcref))) + (global (;0;) externref ref.null extern) + (global (;1;) exnref ref.null exn) + (global (;2;) funcref ref.null func) + (export "externref" (func 0)) + (export "exnref" (func 1)) + (export "funcref" (func 2)) (func (;0;) (type 0) (result externref) ref.null extern ) @@ -11,10 +17,4 @@ (func (;2;) (type 2) (result funcref) ref.null func ) - (global (;0;) externref ref.null extern) - (global (;1;) exnref ref.null exn) - (global (;2;) funcref ref.null func) - (export "externref" (func 0)) - (export "exnref" (func 1)) - (export "funcref" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/throw.wast/0.print b/tests/snapshots/testsuite/proposals/exception-handling/throw.wast/0.print index 1d027daff3..867f4faeb8 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/throw.wast/0.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/throw.wast/0.print @@ -7,6 +7,19 @@ (type (;5;) (func (param i32 i32))) (type (;6;) (func (param i32) (result i32))) (type (;7;) (func (result i32 i32))) + (tag $e0 (;0;) (type 0)) + (tag $e-i32 (;1;) (type 1) (param i32)) + (tag $e-f32 (;2;) (type 2) (param f32)) + (tag $e-i64 (;3;) (type 3) (param i64)) + (tag $e-f64 (;4;) (type 4) (param f64)) + (tag $e-i32-i32 (;5;) (type 5) (param i32 i32)) + (export "throw-if" (func $throw-if)) + (export "throw-param-f32" (func 1)) + (export "throw-param-i64" (func 2)) + (export "throw-param-f64" (func 3)) + (export "throw-polymorphic" (func 4)) + (export "throw-polymorphic-block" (func 5)) + (export "test-throw-1-2" (func 7)) (func $throw-if (;0;) (type 6) (param i32) (result i32) local.get 0 i32.const 0 @@ -61,17 +74,4 @@ unreachable end ) - (tag $e0 (;0;) (type 0)) - (tag $e-i32 (;1;) (type 1) (param i32)) - (tag $e-f32 (;2;) (type 2) (param f32)) - (tag $e-i64 (;3;) (type 3) (param i64)) - (tag $e-f64 (;4;) (type 4) (param f64)) - (tag $e-i32-i32 (;5;) (type 5) (param i32 i32)) - (export "throw-if" (func $throw-if)) - (export "throw-param-f32" (func 1)) - (export "throw-param-i64" (func 2)) - (export "throw-param-f64" (func 3)) - (export "throw-polymorphic" (func 4)) - (export "throw-polymorphic-block" (func 5)) - (export "test-throw-1-2" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/throw_ref.wast/0.print b/tests/snapshots/testsuite/proposals/exception-handling/throw_ref.wast/0.print index c6a4b01f35..61aead2d65 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/throw_ref.wast/0.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/throw_ref.wast/0.print @@ -2,6 +2,15 @@ (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param exnref))) + (tag $e0 (;0;) (type 0)) + (tag $e1 (;1;) (type 0)) + (export "catch-throw_ref-0" (func 0)) + (export "catch-throw_ref-1" (func 1)) + (export "catchall-throw_ref-0" (func 2)) + (export "catchall-throw_ref-1" (func 3)) + (export "throw_ref-nested" (func 4)) + (export "throw_ref-recatch" (func 5)) + (export "throw_ref-stack-polymorphism" (func 6)) (func (;0;) (type 0) block $h (result exnref) try_table (catch_ref $e0 $h) ;; label = @2 @@ -120,13 +129,4 @@ local.get $e throw_ref ) - (tag $e0 (;0;) (type 0)) - (tag $e1 (;1;) (type 0)) - (export "catch-throw_ref-0" (func 0)) - (export "catch-throw_ref-1" (func 1)) - (export "catchall-throw_ref-0" (func 2)) - (export "catchall-throw_ref-1" (func 3)) - (export "throw_ref-nested" (func 4)) - (export "throw_ref-recatch" (func 5)) - (export "throw_ref-stack-polymorphism" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/0.print b/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/0.print index 121840d85f..0fa6ea6f37 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/0.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) - (func (;0;) (type 0) - throw $e0 - ) (tag $e0 (;0;) (type 0)) (export "e0" (tag 0)) (export "throw" (func 0)) + (func (;0;) (type 0) + throw $e0 + ) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/2.print b/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/2.print index 491684ac45..298bc9120b 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/2.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/2.print @@ -16,6 +16,34 @@ (type (;14;) (func (result i32))) (import "test" "e0" (tag $imported-e0 (;0;) (type 0))) (import "test" "throw" (func $imported-throw (;0;) (type 0))) + (table (;0;) 1 1 funcref) + (tag $e0 (;1;) (type 0)) + (tag $e1 (;2;) (type 0)) + (tag $e2 (;3;) (type 0)) + (tag $e-i32 (;4;) (type 1) (param i32)) + (tag $e-f32 (;5;) (type 2) (param f32)) + (tag $e-i64 (;6;) (type 3) (param i64)) + (tag $e-f64 (;7;) (type 4) (param f64)) + (export "simple-throw-catch" (func 2)) + (export "unreachable-not-caught" (func 3)) + (export "trap-in-callee" (func 5)) + (export "catch-complex-1" (func 6)) + (export "catch-complex-2" (func 7)) + (export "throw-catch-param-i32" (func 8)) + (export "throw-catch-param-f32" (func 9)) + (export "throw-catch-param-i64" (func 10)) + (export "throw-catch-param-f64" (func 11)) + (export "throw-catch_ref-param-i32" (func 12)) + (export "throw-catch_ref-param-f32" (func 13)) + (export "throw-catch_ref-param-i64" (func 14)) + (export "throw-catch_ref-param-f64" (func 15)) + (export "catch-param-i32" (func 17)) + (export "catch-imported" (func 18)) + (export "catchless-try" (func 19)) + (export "return-call-in-try-catch" (func 21)) + (export "return-call-indirect-in-try-catch" (func 22)) + (export "try-with-param" (func 23)) + (elem (;0;) (i32.const 0) func $throw-void) (func $throw-if (;1;) (type 5) (param i32) (result i32) local.get 0 i32.const 0 @@ -272,32 +300,4 @@ drop end ) - (table (;0;) 1 1 funcref) - (tag $e0 (;1;) (type 0)) - (tag $e1 (;2;) (type 0)) - (tag $e2 (;3;) (type 0)) - (tag $e-i32 (;4;) (type 1) (param i32)) - (tag $e-f32 (;5;) (type 2) (param f32)) - (tag $e-i64 (;6;) (type 3) (param i64)) - (tag $e-f64 (;7;) (type 4) (param f64)) - (export "simple-throw-catch" (func 2)) - (export "unreachable-not-caught" (func 3)) - (export "trap-in-callee" (func 5)) - (export "catch-complex-1" (func 6)) - (export "catch-complex-2" (func 7)) - (export "throw-catch-param-i32" (func 8)) - (export "throw-catch-param-f32" (func 9)) - (export "throw-catch-param-i64" (func 10)) - (export "throw-catch-param-f64" (func 11)) - (export "throw-catch_ref-param-i32" (func 12)) - (export "throw-catch_ref-param-f32" (func 13)) - (export "throw-catch_ref-param-i64" (func 14)) - (export "throw-catch_ref-param-f64" (func 15)) - (export "catch-param-i32" (func 17)) - (export "catch-imported" (func 18)) - (export "catchless-try" (func 19)) - (export "return-call-in-try-catch" (func 21)) - (export "return-call-indirect-in-try-catch" (func 22)) - (export "try-with-param" (func 23)) - (elem (;0;) (i32.const 0) func $throw-void) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/41.print b/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/41.print index 35d9490ca6..77b15e95c2 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/41.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/41.print @@ -2,6 +2,8 @@ (type (;0;) (func)) (type (;1;) (func (result i32))) (import "test" "throw" (func $imported-throw (;0;) (type 0))) + (tag $e0 (;0;) (type 0)) + (export "imported-mismatch" (func 1)) (func (;1;) (type 1) (result i32) block $h try_table (result i32) (catch_all $h) ;; label = @2 @@ -18,6 +20,4 @@ end i32.const 3 ) - (tag $e0 (;0;) (type 0)) - (export "imported-mismatch" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/45.print b/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/45.print index d60ed2c82d..3b5b9306d7 100644 --- a/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/45.print +++ b/tests/snapshots/testsuite/proposals/exception-handling/try_table.wast/45.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (type (;1;) (func (result exnref))) + (tag $e (;0;) (type 0)) (func (;0;) (type 0) try_table (catch $e 0) (catch $e 0) ;; label = @1 end @@ -28,5 +29,4 @@ end unreachable ) - (tag $e (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/0.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/0.print index cfd9e1e289..3e45036cd8 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/0.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/0.print @@ -1,7 +1,5 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 10 funcref) (elem (;0;) funcref) (elem (;1;) funcref (ref.func $f) (ref.func $f) (ref.null func) (ref.func $g)) @@ -64,4 +62,6 @@ (elem $d2 (;58;) declare funcref (ref.func $f) (ref.func $f) (ref.null func) (ref.func $g)) (elem $d3 (;59;) declare func) (elem $d4 (;60;) declare func $f $f $g $g) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/1.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/1.print index 80603750ee..21462afadc 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/1.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/1.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 3 3 funcref) (elem (;0;) (i32.const 0) funcref (ref.func $f) (ref.null func) (ref.func $g)) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/102.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/102.print index 6109a774b1..d98aefd8d1 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/102.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/102.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "call_in_table" (func 1)) + (elem (;0;) (offset i32.const 2 i32.const 1 i32.sub) funcref (ref.func 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) @@ -8,7 +11,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "call_in_table" (func 1)) - (elem (;0;) (offset i32.const 2 i32.const 1 i32.sub) funcref (ref.func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/105.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/105.print index 1701b8c4de..5e0e75bb50 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/105.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/105.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "call_in_table" (func 1)) + (elem (;0;) (offset i32.const 2 i32.const 2 i32.mul) funcref (ref.func 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) @@ -8,7 +11,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "call_in_table" (func 1)) - (elem (;0;) (offset i32.const 2 i32.const 2 i32.mul) funcref (ref.func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/108.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/108.print index af7077e86d..f7607d0855 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/108.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/108.print @@ -2,6 +2,9 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "global_i32" (global (;0;) i32)) + (table (;0;) 10 funcref) + (export "call_in_table" (func 1)) + (elem (;0;) (offset i32.const 2 global.get 0 i32.const 665 i32.sub i32.const 2 i32.add i32.mul) funcref (ref.func 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) @@ -9,7 +12,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "call_in_table" (func 1)) - (elem (;0;) (offset i32.const 2 global.get 0 i32.const 665 i32.sub i32.const 2 i32.add i32.mul) funcref (ref.func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/11.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/11.print index af187450f7..c2f37af59b 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/11.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/11.print @@ -1,5 +1,10 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 11 funcref) + (export "call-7" (func 2)) + (export "call-9" (func 3)) + (elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a)) + (elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func)) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -14,9 +19,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 11 funcref) - (export "call-7" (func 2)) - (export "call-9" (func 3)) - (elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a)) - (elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/16.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/16.print index 1036785ea1..0ff426ccf4 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/16.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/16.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/17.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/17.print index 0598af2315..cede495716 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/17.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/17.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/2.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/2.print index 8742f0998f..e4d89860d7 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/2.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/2.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/22.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/22.print index 689d51c8e5..c3a0516a05 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/22.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/22.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/23.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/23.print index 91f122086a..ac71e6c1fa 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/23.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/23.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 100 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/24.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/24.print index 016199a256..f7a2bf5894 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/24.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/24.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 1) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/25.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/25.print index 6fd3ef6a92..31a035fc64 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/25.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/25.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 30 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 1) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/3.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/3.print index e932b67331..0b5ef9c184 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/3.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/3.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/38.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/38.print index 4176dfb406..019e8e94d5 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/38.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/38.print @@ -1,5 +1,8 @@ (module (type (;0;) (func)) + (table (;0;) 10 funcref) + (export "init" (func 1)) + (elem $e (;0;) (i32.const 0) func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -7,7 +10,4 @@ i32.const 1 table.init $e ) - (table (;0;) 10 funcref) - (export "init" (func 1)) - (elem $e (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/4.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/4.print index 7ec65dcffb..f3742f6da7 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/4.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/4.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 0) func $f) (elem (;1;) (i32.const 3) func $f) (elem (;2;) (i32.const 7) func $f) (elem (;3;) (i32.const 5) func $f) (elem (;4;) (i32.const 3) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/40.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/40.print index ea36739cb4..7c136d3305 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/40.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/40.print @@ -1,5 +1,8 @@ (module (type (;0;) (func)) + (table (;0;) 10 funcref) + (export "init" (func 1)) + (elem $e (;0;) declare func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -7,7 +10,4 @@ i32.const 1 table.init $e ) - (table (;0;) 10 funcref) - (export "init" (func 1)) - (elem $e (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/5.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/5.print index 107f8e49e9..8dddf1ec50 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/5.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/5.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) (elem (;1;) (i32.const 3) func $f) (elem (;2;) (i32.const 7) func $f) (elem (;3;) (i32.const 3) func $f) (elem (;4;) (i32.const 5) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/6.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/6.print index c1e1f7bb60..a0fc1f553a 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/6.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/6.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) (import "spectest" "global_i32" (global (;0;) i32)) - (func $f (;0;) (type 0)) (table (;0;) 1000 funcref) (elem (;0;) (global.get 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/63.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/63.print index 731f09400d..7de0f1cd97 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/63.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/63.print @@ -1,5 +1,9 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "call-overwritten" (func 2)) + (elem (;0;) (i32.const 9) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -10,8 +14,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call-overwritten" (func 2)) - (elem (;0;) (i32.const 9) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/65.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/65.print index 0f8475a309..4f81cc2d61 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/65.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/65.print @@ -1,6 +1,9 @@ (module (type $out-i32 (;0;) (func (result i32))) (import "spectest" "table" (table (;0;) 10 funcref)) + (export "call-overwritten-element" (func 2)) + (elem (;0;) (i32.const 9) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -11,7 +14,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (export "call-overwritten-element" (func 2)) - (elem (;0;) (i32.const 9) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/67.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/67.print index a15bdac62f..c507078bb1 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/67.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/67.print @@ -1,5 +1,12 @@ (module $module1 (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "shared-table" (table 0)) + (export "call-7" (func 2)) + (export "call-8" (func 3)) + (export "call-9" (func 4)) + (elem (;0;) (i32.const 8) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -18,11 +25,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "shared-table" (table 0)) - (export "call-7" (func 2)) - (export "call-8" (func 3)) - (export "call-9" (func 4)) - (elem (;0;) (i32.const 8) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/7.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/7.print index d9740764aa..bacc6c8181 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/7.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/7.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) (import "spectest" "global_i32" (global $g (;0;) i32)) - (func $f (;0;) (type 0)) (table (;0;) 1000 funcref) (elem (;0;) (global.get $g) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/72.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/72.print index 1a2c3eac24..a42e074452 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/72.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/72.print @@ -1,12 +1,12 @@ (module $module2 (type $out-i32 (;0;) (func (result i32))) (import "module1" "shared-table" (table (;0;) 10 funcref)) + (elem (;0;) (i32.const 7) func $const-i32-c) + (elem (;1;) (i32.const 8) func $const-i32-d) (func $const-i32-c (;0;) (type $out-i32) (result i32) i32.const 67 ) (func $const-i32-d (;1;) (type $out-i32) (result i32) i32.const 68 ) - (elem (;0;) (i32.const 7) func $const-i32-c) - (elem (;1;) (i32.const 8) func $const-i32-d) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/76.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/76.print index 050fba0094..6789cf7c21 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/76.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/76.print @@ -1,12 +1,12 @@ (module $module3 (type $out-i32 (;0;) (func (result i32))) (import "module1" "shared-table" (table (;0;) 10 funcref)) + (elem (;0;) (i32.const 8) func $const-i32-e) + (elem (;1;) (i32.const 9) func $const-i32-f) (func $const-i32-e (;0;) (type $out-i32) (result i32) i32.const 69 ) (func $const-i32-f (;1;) (type $out-i32) (result i32) i32.const 70 ) - (elem (;0;) (i32.const 8) func $const-i32-e) - (elem (;1;) (i32.const 9) func $const-i32-f) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/8.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/8.print index 5e224c4ddf..0fc85614cb 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/8.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/8.print @@ -1,5 +1,10 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "call-7" (func 2)) + (export "call-9" (func 3)) + (elem (;0;) (i32.const 7) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -14,9 +19,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call-7" (func 2)) - (export "call-9" (func 3)) - (elem (;0;) (i32.const 7) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/84.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/84.print index 5345072664..92a31401e3 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/84.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/84.print @@ -1,6 +1,10 @@ (module $m (type (;0;) (func (param i32) (result externref))) (type (;1;) (func (param i32 externref))) + (table $t (;0;) 2 externref) + (export "table" (table $t)) + (export "get" (func 0)) + (export "set" (func 1)) (func (;0;) (type 0) (param $i i32) (result externref) local.get $i table.get $t @@ -10,8 +14,4 @@ local.get $x table.set $t ) - (table $t (;0;) 2 externref) - (export "table" (table $t)) - (export "get" (func 0)) - (export "set" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/95.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/95.print index ae97b235a4..f6c3e3683d 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/95.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/95.print @@ -1,8 +1,8 @@ (module $module4 (type (;0;) (func (result i32))) + (global (;0;) funcref ref.func 0) + (export "f" (global 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) - (global (;0;) funcref ref.func 0) - (export "f" (global 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/97.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/97.print index f0fecff658..e491ba806f 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/97.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/97.print @@ -1,11 +1,11 @@ (module (type $out-i32 (;0;) (func (result i32))) (import "module4" "f" (global (;0;) funcref)) + (table (;0;) 10 funcref) + (export "call_imported_elem" (func 0)) + (elem (;0;) (i32.const 0) funcref (global.get 0)) (func (;0;) (type $out-i32) (result i32) i32.const 0 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call_imported_elem" (func 0)) - (elem (;0;) (i32.const 0) funcref (global.get 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/99.print b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/99.print index a67fa66c54..20ebe6fdfe 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/elem.wast/99.print +++ b/tests/snapshots/testsuite/proposals/extended-const/elem.wast/99.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "call_in_table" (func 1)) + (elem (;0;) (offset i32.const 1 i32.const 2 i32.add) funcref (ref.func 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) @@ -8,7 +11,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "call_in_table" (func 1)) - (elem (;0;) (offset i32.const 1 i32.const 2 i32.add) funcref (ref.func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/extended-const/global.wast/0.print b/tests/snapshots/testsuite/proposals/extended-const/global.wast/0.print index b6e70ee426..eea13ad468 100644 --- a/tests/snapshots/testsuite/proposals/extended-const/global.wast/0.print +++ b/tests/snapshots/testsuite/proposals/extended-const/global.wast/0.print @@ -14,6 +14,77 @@ (type (;12;) (func (param i32) (result i32))) (import "spectest" "global_i32" (global (;0;) i32)) (import "spectest" "global_i64" (global (;1;) i64)) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;2;) i32 i32.const -2) + (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;)) + (global (;4;) f64 f64.const -0x1p+2 (;=-4;)) + (global $b (;5;) i64 i64.const -5) + (global $x (;6;) (mut i32) i32.const -12) + (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;)) + (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;)) + (global $y (;9;) (mut i64) i64.const -15) + (global $z1 (;10;) i32 global.get 0) + (global $z2 (;11;) i64 global.get 1) + (global $z3 (;12;) i32 i32.const 20 i32.const 2 i32.mul i32.const 2 i32.sub i32.const 4 i32.add) + (global $z4 (;13;) i64 i64.const 20 i64.const 2 i64.mul i64.const 2 i64.sub i64.const 5 i64.add) + (global $z5 (;14;) i32 global.get 0 i32.const 42 i32.add) + (global $z6 (;15;) i64 global.get 1 i64.const 42 i64.add) + (global $r (;16;) externref ref.null extern) + (global $mr (;17;) (mut externref) ref.null extern) + (global (;18;) funcref ref.null func) + (export "get-a" (func 0)) + (export "get-b" (func 1)) + (export "get-r" (func 2)) + (export "get-mr" (func 3)) + (export "get-x" (func 4)) + (export "get-y" (func 5)) + (export "get-z1" (func 6)) + (export "get-z2" (func 7)) + (export "get-z3" (func 8)) + (export "get-z4" (func 9)) + (export "get-z5" (func 10)) + (export "get-z6" (func 11)) + (export "set-x" (func 12)) + (export "set-y" (func 13)) + (export "set-mr" (func 14)) + (export "get-3" (func 15)) + (export "get-4" (func 16)) + (export "get-7" (func 17)) + (export "get-8" (func 18)) + (export "set-7" (func 19)) + (export "set-8" (func 20)) + (export "as-select-first" (func 22)) + (export "as-select-mid" (func 23)) + (export "as-select-last" (func 24)) + (export "as-loop-first" (func 25)) + (export "as-loop-mid" (func 26)) + (export "as-loop-last" (func 27)) + (export "as-if-condition" (func 28)) + (export "as-if-then" (func 29)) + (export "as-if-else" (func 30)) + (export "as-br_if-first" (func 31)) + (export "as-br_if-last" (func 32)) + (export "as-br_table-first" (func 33)) + (export "as-br_table-last" (func 34)) + (export "as-call_indirect-first" (func 36)) + (export "as-call_indirect-mid" (func 37)) + (export "as-call_indirect-last" (func 38)) + (export "as-store-first" (func 39)) + (export "as-store-last" (func 40)) + (export "as-load-operand" (func 41)) + (export "as-memory.grow-value" (func 42)) + (export "as-call-value" (func 44)) + (export "as-return-value" (func 45)) + (export "as-drop-operand" (func 46)) + (export "as-br-value" (func 47)) + (export "as-local.set-value" (func 48)) + (export "as-local.tee-value" (func 49)) + (export "as-global.set-value" (func 50)) + (export "as-unary-operand" (func 51)) + (export "as-binary-operand" (func 52)) + (export "as-compare-operand" (func 53)) + (elem (;0;) (i32.const 0) func $func) (func (;0;) (type 1) (result i32) global.get $a ) @@ -274,75 +345,4 @@ i32.const 1 i32.gt_u ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;2;) i32 i32.const -2) - (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;)) - (global (;4;) f64 f64.const -0x1p+2 (;=-4;)) - (global $b (;5;) i64 i64.const -5) - (global $x (;6;) (mut i32) i32.const -12) - (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;)) - (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;)) - (global $y (;9;) (mut i64) i64.const -15) - (global $z1 (;10;) i32 global.get 0) - (global $z2 (;11;) i64 global.get 1) - (global $z3 (;12;) i32 i32.const 20 i32.const 2 i32.mul i32.const 2 i32.sub i32.const 4 i32.add) - (global $z4 (;13;) i64 i64.const 20 i64.const 2 i64.mul i64.const 2 i64.sub i64.const 5 i64.add) - (global $z5 (;14;) i32 global.get 0 i32.const 42 i32.add) - (global $z6 (;15;) i64 global.get 1 i64.const 42 i64.add) - (global $r (;16;) externref ref.null extern) - (global $mr (;17;) (mut externref) ref.null extern) - (global (;18;) funcref ref.null func) - (export "get-a" (func 0)) - (export "get-b" (func 1)) - (export "get-r" (func 2)) - (export "get-mr" (func 3)) - (export "get-x" (func 4)) - (export "get-y" (func 5)) - (export "get-z1" (func 6)) - (export "get-z2" (func 7)) - (export "get-z3" (func 8)) - (export "get-z4" (func 9)) - (export "get-z5" (func 10)) - (export "get-z6" (func 11)) - (export "set-x" (func 12)) - (export "set-y" (func 13)) - (export "set-mr" (func 14)) - (export "get-3" (func 15)) - (export "get-4" (func 16)) - (export "get-7" (func 17)) - (export "get-8" (func 18)) - (export "set-7" (func 19)) - (export "set-8" (func 20)) - (export "as-select-first" (func 22)) - (export "as-select-mid" (func 23)) - (export "as-select-last" (func 24)) - (export "as-loop-first" (func 25)) - (export "as-loop-mid" (func 26)) - (export "as-loop-last" (func 27)) - (export "as-if-condition" (func 28)) - (export "as-if-then" (func 29)) - (export "as-if-else" (func 30)) - (export "as-br_if-first" (func 31)) - (export "as-br_if-last" (func 32)) - (export "as-br_table-first" (func 33)) - (export "as-br_table-last" (func 34)) - (export "as-call_indirect-first" (func 36)) - (export "as-call_indirect-mid" (func 37)) - (export "as-call_indirect-last" (func 38)) - (export "as-store-first" (func 39)) - (export "as-store-last" (func 40)) - (export "as-load-operand" (func 41)) - (export "as-memory.grow-value" (func 42)) - (export "as-call-value" (func 44)) - (export "as-return-value" (func 45)) - (export "as-drop-operand" (func 46)) - (export "as-br-value" (func 47)) - (export "as-local.set-value" (func 48)) - (export "as-local.tee-value" (func 49)) - (export "as-global.set-value" (func 50)) - (export "as-unary-operand" (func 51)) - (export "as-binary-operand" (func 52)) - (export "as-compare-operand" (func 53)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/binary.wast/110.print b/tests/snapshots/testsuite/proposals/function-references/binary.wast/110.print index c6566d0ced..d90addbeb7 100644 --- a/tests/snapshots/testsuite/proposals/function-references/binary.wast/110.print +++ b/tests/snapshots/testsuite/proposals/function-references/binary.wast/110.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (start 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/binary.wast/68.print b/tests/snapshots/testsuite/proposals/function-references/binary.wast/68.print index 40e23c382f..f60ef5c6a4 100644 --- a/tests/snapshots/testsuite/proposals/function-references/binary.wast/68.print +++ b/tests/snapshots/testsuite/proposals/function-references/binary.wast/68.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/binary.wast/69.print b/tests/snapshots/testsuite/proposals/function-references/binary.wast/69.print index 149738a620..b959a17a4a 100644 --- a/tests/snapshots/testsuite/proposals/function-references/binary.wast/69.print +++ b/tests/snapshots/testsuite/proposals/function-references/binary.wast/69.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/binary.wast/99.print b/tests/snapshots/testsuite/proposals/function-references/binary.wast/99.print index a6b9947353..e3c7ff0b0d 100644 --- a/tests/snapshots/testsuite/proposals/function-references/binary.wast/99.print +++ b/tests/snapshots/testsuite/proposals/function-references/binary.wast/99.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/br_on_non_null.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/br_on_non_null.wast/0.print index c31166a513..51d7148ce1 100644 --- a/tests/snapshots/testsuite/proposals/function-references/br_on_non_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/br_on_non_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) block $l (result (ref $t)) local.get $r @@ -44,9 +49,4 @@ end call_ref $t ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/br_on_non_null.wast/6.print b/tests/snapshots/testsuite/proposals/function-references/br_on_non_null.wast/6.print index fd25db678c..80cea5ec37 100644 --- a/tests/snapshots/testsuite/proposals/function-references/br_on_non_null.wast/6.print +++ b/tests/snapshots/testsuite/proposals/function-references/br_on_non_null.wast/6.print @@ -2,6 +2,9 @@ (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 (ref null $t)) (result i32))) (type (;2;) (func (result i32 (ref $t)))) + (export "args-null" (func 2)) + (export "args-f" (func 3)) + (elem (;0;) func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 local.get 0 @@ -26,7 +29,4 @@ ref.func $f call $a ) - (export "args-null" (func 2)) - (export "args-f" (func 3)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/br_on_null.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/br_on_null.wast/0.print index be60e9af88..8d9be86a0a 100644 --- a/tests/snapshots/testsuite/proposals/function-references/br_on_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/br_on_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) block $l local.get $r @@ -44,9 +49,4 @@ end i32.const -1 ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/br_on_null.wast/6.print b/tests/snapshots/testsuite/proposals/function-references/br_on_null.wast/6.print index ffab737fcf..b7124d4dac 100644 --- a/tests/snapshots/testsuite/proposals/function-references/br_on_null.wast/6.print +++ b/tests/snapshots/testsuite/proposals/function-references/br_on_null.wast/6.print @@ -1,6 +1,9 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 (ref null $t)) (result i32))) + (export "args-null" (func 2)) + (export "args-f" (func 3)) + (elem (;0;) func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 local.get 0 @@ -25,7 +28,4 @@ ref.func $f call $a ) - (export "args-null" (func 2)) - (export "args-f" (func 3)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/br_table.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/br_table.wast/0.print index 69ccd9ac2f..7f30574d1a 100644 --- a/tests/snapshots/testsuite/proposals/function-references/br_table.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/br_table.wast/0.print @@ -9,6 +9,87 @@ (type (;7;) (func (param i32 i32) (result i32))) (type (;8;) (func (param i32 externref) (result externref))) (type (;9;) (func (param i32) (result funcref))) + (table (;0;) 1 1 funcref) + (table $t (;1;) 1 1 (ref null $t)) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "type-i32" (func 1)) + (export "type-i64" (func 2)) + (export "type-f32" (func 3)) + (export "type-f64" (func 4)) + (export "type-i32-value" (func 5)) + (export "type-i64-value" (func 6)) + (export "type-f32-value" (func 7)) + (export "type-f64-value" (func 8)) + (export "empty" (func 9)) + (export "empty-value" (func 10)) + (export "singleton" (func 11)) + (export "singleton-value" (func 12)) + (export "multiple" (func 13)) + (export "multiple-value" (func 14)) + (export "large" (func 15)) + (export "as-block-first" (func 16)) + (export "as-block-mid" (func 17)) + (export "as-block-last" (func 18)) + (export "as-block-value" (func 19)) + (export "as-loop-first" (func 20)) + (export "as-loop-mid" (func 21)) + (export "as-loop-last" (func 22)) + (export "as-br-value" (func 23)) + (export "as-br_if-cond" (func 24)) + (export "as-br_if-value" (func 25)) + (export "as-br_if-value-cond" (func 26)) + (export "as-br_table-index" (func 27)) + (export "as-br_table-value" (func 28)) + (export "as-br_table-value-index" (func 29)) + (export "as-return-value" (func 30)) + (export "as-if-cond" (func 31)) + (export "as-if-then" (func 32)) + (export "as-if-else" (func 33)) + (export "as-select-first" (func 34)) + (export "as-select-second" (func 35)) + (export "as-select-cond" (func 36)) + (export "as-call-first" (func 38)) + (export "as-call-mid" (func 39)) + (export "as-call-last" (func 40)) + (export "as-call_indirect-first" (func 41)) + (export "as-call_indirect-mid" (func 42)) + (export "as-call_indirect-last" (func 43)) + (export "as-call_indirect-func" (func 44)) + (export "as-local.set-value" (func 45)) + (export "as-local.tee-value" (func 46)) + (export "as-global.set-value" (func 47)) + (export "as-load-address" (func 48)) + (export "as-loadN-address" (func 49)) + (export "as-store-address" (func 50)) + (export "as-store-value" (func 51)) + (export "as-storeN-address" (func 52)) + (export "as-storeN-value" (func 53)) + (export "as-unary-operand" (func 54)) + (export "as-binary-left" (func 55)) + (export "as-binary-right" (func 56)) + (export "as-test-operand" (func 57)) + (export "as-compare-left" (func 58)) + (export "as-compare-right" (func 59)) + (export "as-convert-operand" (func 60)) + (export "as-memory.grow-size" (func 61)) + (export "nested-block-value" (func 62)) + (export "nested-br-value" (func 63)) + (export "nested-br_if-value" (func 64)) + (export "nested-br_if-value-cond" (func 65)) + (export "nested-br_table-value" (func 66)) + (export "nested-br_table-value-index" (func 67)) + (export "nested-br_table-loop-block" (func 68)) + (export "meet-externref" (func 69)) + (export "meet-bottom" (func 70)) + (export "meet-funcref-1" (func 72)) + (export "meet-funcref-2" (func 73)) + (export "meet-funcref-3" (func 74)) + (export "meet-funcref-4" (func 75)) + (export "meet-nullref" (func 76)) + (export "meet-multi-ref" (func 77)) + (elem (;0;) (i32.const 0) func $f) + (elem (;1;) (table $t) (i32.const 0) (ref null $t) (ref.func $tf)) (func $dummy (;0;) (type $t)) (func (;1;) (type $t) block ;; label = @1 @@ -844,85 +925,4 @@ end end ) - (table (;0;) 1 1 funcref) - (table $t (;1;) 1 1 (ref null $t)) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "type-i32" (func 1)) - (export "type-i64" (func 2)) - (export "type-f32" (func 3)) - (export "type-f64" (func 4)) - (export "type-i32-value" (func 5)) - (export "type-i64-value" (func 6)) - (export "type-f32-value" (func 7)) - (export "type-f64-value" (func 8)) - (export "empty" (func 9)) - (export "empty-value" (func 10)) - (export "singleton" (func 11)) - (export "singleton-value" (func 12)) - (export "multiple" (func 13)) - (export "multiple-value" (func 14)) - (export "large" (func 15)) - (export "as-block-first" (func 16)) - (export "as-block-mid" (func 17)) - (export "as-block-last" (func 18)) - (export "as-block-value" (func 19)) - (export "as-loop-first" (func 20)) - (export "as-loop-mid" (func 21)) - (export "as-loop-last" (func 22)) - (export "as-br-value" (func 23)) - (export "as-br_if-cond" (func 24)) - (export "as-br_if-value" (func 25)) - (export "as-br_if-value-cond" (func 26)) - (export "as-br_table-index" (func 27)) - (export "as-br_table-value" (func 28)) - (export "as-br_table-value-index" (func 29)) - (export "as-return-value" (func 30)) - (export "as-if-cond" (func 31)) - (export "as-if-then" (func 32)) - (export "as-if-else" (func 33)) - (export "as-select-first" (func 34)) - (export "as-select-second" (func 35)) - (export "as-select-cond" (func 36)) - (export "as-call-first" (func 38)) - (export "as-call-mid" (func 39)) - (export "as-call-last" (func 40)) - (export "as-call_indirect-first" (func 41)) - (export "as-call_indirect-mid" (func 42)) - (export "as-call_indirect-last" (func 43)) - (export "as-call_indirect-func" (func 44)) - (export "as-local.set-value" (func 45)) - (export "as-local.tee-value" (func 46)) - (export "as-global.set-value" (func 47)) - (export "as-load-address" (func 48)) - (export "as-loadN-address" (func 49)) - (export "as-store-address" (func 50)) - (export "as-store-value" (func 51)) - (export "as-storeN-address" (func 52)) - (export "as-storeN-value" (func 53)) - (export "as-unary-operand" (func 54)) - (export "as-binary-left" (func 55)) - (export "as-binary-right" (func 56)) - (export "as-test-operand" (func 57)) - (export "as-compare-left" (func 58)) - (export "as-compare-right" (func 59)) - (export "as-convert-operand" (func 60)) - (export "as-memory.grow-size" (func 61)) - (export "nested-block-value" (func 62)) - (export "nested-br-value" (func 63)) - (export "nested-br_if-value" (func 64)) - (export "nested-br_if-value-cond" (func 65)) - (export "nested-br_table-value" (func 66)) - (export "nested-br_table-value-index" (func 67)) - (export "nested-br_table-loop-block" (func 68)) - (export "meet-externref" (func 69)) - (export "meet-bottom" (func 70)) - (export "meet-funcref-1" (func 72)) - (export "meet-funcref-2" (func 73)) - (export "meet-funcref-3" (func 74)) - (export "meet-funcref-4" (func 75)) - (export "meet-nullref" (func 76)) - (export "meet-multi-ref" (func 77)) - (elem (;0;) (i32.const 0) func $f) - (elem (;1;) (table $t) (i32.const 0) (ref null $t) (ref.func $tf)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/0.print index b983464ae1..1c26a475dc 100644 --- a/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/0.print @@ -4,6 +4,23 @@ (type $lll (;2;) (func (param i64 i64) (result i64))) (type (;3;) (func (param (ref $ii) i32) (result i32))) (type (;4;) (func (result i32))) + (global $fac (;0;) (ref $ll) ref.func $fac) + (global $fac-acc (;1;) (ref $lll) ref.func $fac-acc) + (global $fib (;2;) (ref $ll) ref.func $fib) + (global $even (;3;) (ref $ll) ref.func $even) + (global $odd (;4;) (ref $ll) ref.func $odd) + (export "run" (func 3)) + (export "null" (func 4)) + (export "fac" (func $fac)) + (export "fac-acc" (func $fac-acc)) + (export "fib" (func $fib)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) declare func $f $g) + (elem (;1;) declare func $fac) + (elem (;2;) declare func $fac-acc) + (elem (;3;) declare func $fib) + (elem (;4;) declare func $even $odd) (func $apply (;0;) (type 3) (param $f (ref $ii)) (param $x i32) (result i32) local.get $x local.get $f @@ -113,21 +130,4 @@ call_ref $ll end ) - (global $fac (;0;) (ref $ll) ref.func $fac) - (global $fac-acc (;1;) (ref $lll) ref.func $fac-acc) - (global $fib (;2;) (ref $ll) ref.func $fib) - (global $even (;3;) (ref $ll) ref.func $even) - (global $odd (;4;) (ref $ll) ref.func $odd) - (export "run" (func 3)) - (export "null" (func 4)) - (export "fac" (func $fac)) - (export "fac-acc" (func $fac-acc)) - (export "fib" (func $fib)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) declare func $f $g) - (elem (;1;) declare func $fac) - (elem (;2;) declare func $fac-acc) - (elem (;3;) declare func $fib) - (elem (;4;) declare func $even $odd) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/25.print b/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/25.print index 5908d8dfc5..e48a6f1dc3 100644 --- a/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/25.print +++ b/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/25.print @@ -1,9 +1,9 @@ (module (type $t (;0;) (func)) (type (;1;) (func (result i32))) + (export "unreachable" (func 0)) (func (;0;) (type 1) (result i32) unreachable call_ref $t ) - (export "unreachable" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/27.print b/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/27.print index cc20d75bd2..fc7b7707a2 100644 --- a/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/27.print +++ b/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/27.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -9,6 +11,4 @@ ref.func $f call_ref $t ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/29.print b/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/29.print index e159e08980..ab1a399a40 100644 --- a/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/29.print +++ b/tests/snapshots/testsuite/proposals/function-references/call_ref.wast/29.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -12,6 +14,4 @@ drop i32.const 0 ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/custom.wast/2.print b/tests/snapshots/testsuite/proposals/function-references/custom.wast/2.print index 69a27a3f7e..dfbeb1597c 100644 --- a/tests/snapshots/testsuite/proposals/function-references/custom.wast/2.print +++ b/tests/snapshots/testsuite/proposals/function-references/custom.wast/2.print @@ -1,11 +1,11 @@ (module (type (;0;) (func (param i32 i32) (result i32))) (@custom "custom" (after type) "this is the payload") + (export "addTwo" (func 0)) (func (;0;) (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 i32.add ) - (export "addTwo" (func 0)) (@custom "custom2" (after code) "this is the payload") ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/0.print index cfd9e1e289..3e45036cd8 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/0.print @@ -1,7 +1,5 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 10 funcref) (elem (;0;) funcref) (elem (;1;) funcref (ref.func $f) (ref.func $f) (ref.null func) (ref.func $g)) @@ -64,4 +62,6 @@ (elem $d2 (;58;) declare funcref (ref.func $f) (ref.func $f) (ref.null func) (ref.func $g)) (elem $d3 (;59;) declare func) (elem $d4 (;60;) declare func $f $f $g $g) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/1.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/1.print index 80603750ee..21462afadc 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/1.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/1.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 3 3 funcref) (elem (;0;) (i32.const 0) funcref (ref.func $f) (ref.null func) (ref.func $g)) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/102.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/102.print index 731f09400d..7de0f1cd97 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/102.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/102.print @@ -1,5 +1,9 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "call-overwritten" (func 2)) + (elem (;0;) (i32.const 9) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -10,8 +14,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call-overwritten" (func 2)) - (elem (;0;) (i32.const 9) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/104.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/104.print index 0f8475a309..4f81cc2d61 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/104.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/104.print @@ -1,6 +1,9 @@ (module (type $out-i32 (;0;) (func (result i32))) (import "spectest" "table" (table (;0;) 10 funcref)) + (export "call-overwritten-element" (func 2)) + (elem (;0;) (i32.const 9) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -11,7 +14,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (export "call-overwritten-element" (func 2)) - (elem (;0;) (i32.const 9) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/106.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/106.print index a15bdac62f..c507078bb1 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/106.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/106.print @@ -1,5 +1,12 @@ (module $module1 (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "shared-table" (table 0)) + (export "call-7" (func 2)) + (export "call-8" (func 3)) + (export "call-9" (func 4)) + (elem (;0;) (i32.const 8) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -18,11 +25,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "shared-table" (table 0)) - (export "call-7" (func 2)) - (export "call-8" (func 3)) - (export "call-9" (func 4)) - (elem (;0;) (i32.const 8) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/111.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/111.print index 1a2c3eac24..a42e074452 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/111.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/111.print @@ -1,12 +1,12 @@ (module $module2 (type $out-i32 (;0;) (func (result i32))) (import "module1" "shared-table" (table (;0;) 10 funcref)) + (elem (;0;) (i32.const 7) func $const-i32-c) + (elem (;1;) (i32.const 8) func $const-i32-d) (func $const-i32-c (;0;) (type $out-i32) (result i32) i32.const 67 ) (func $const-i32-d (;1;) (type $out-i32) (result i32) i32.const 68 ) - (elem (;0;) (i32.const 7) func $const-i32-c) - (elem (;1;) (i32.const 8) func $const-i32-d) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/115.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/115.print index 050fba0094..6789cf7c21 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/115.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/115.print @@ -1,12 +1,12 @@ (module $module3 (type $out-i32 (;0;) (func (result i32))) (import "module1" "shared-table" (table (;0;) 10 funcref)) + (elem (;0;) (i32.const 8) func $const-i32-e) + (elem (;1;) (i32.const 9) func $const-i32-f) (func $const-i32-e (;0;) (type $out-i32) (result i32) i32.const 69 ) (func $const-i32-f (;1;) (type $out-i32) (result i32) i32.const 70 ) - (elem (;0;) (i32.const 8) func $const-i32-e) - (elem (;1;) (i32.const 9) func $const-i32-f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/12.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/12.print index af187450f7..c2f37af59b 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/12.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/12.print @@ -1,5 +1,10 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 11 funcref) + (export "call-7" (func 2)) + (export "call-9" (func 3)) + (elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a)) + (elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func)) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -14,9 +19,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 11 funcref) - (export "call-7" (func 2)) - (export "call-9" (func 3)) - (elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a)) - (elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/123.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/123.print index 5345072664..92a31401e3 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/123.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/123.print @@ -1,6 +1,10 @@ (module $m (type (;0;) (func (param i32) (result externref))) (type (;1;) (func (param i32 externref))) + (table $t (;0;) 2 externref) + (export "table" (table $t)) + (export "get" (func 0)) + (export "set" (func 1)) (func (;0;) (type 0) (param $i i32) (result externref) local.get $i table.get $t @@ -10,8 +14,4 @@ local.get $x table.set $t ) - (table $t (;0;) 2 externref) - (export "table" (table $t)) - (export "get" (func 0)) - (export "set" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/134.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/134.print index ae97b235a4..f6c3e3683d 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/134.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/134.print @@ -1,8 +1,8 @@ (module $module4 (type (;0;) (func (result i32))) + (global (;0;) funcref ref.func 0) + (export "f" (global 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) - (global (;0;) funcref ref.func 0) - (export "f" (global 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/136.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/136.print index f0fecff658..e491ba806f 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/136.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/136.print @@ -1,11 +1,11 @@ (module (type $out-i32 (;0;) (func (result i32))) (import "module4" "f" (global (;0;) funcref)) + (table (;0;) 10 funcref) + (export "call_imported_elem" (func 0)) + (elem (;0;) (i32.const 0) funcref (global.get 0)) (func (;0;) (type $out-i32) (result i32) i32.const 0 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call_imported_elem" (func 0)) - (elem (;0;) (i32.const 0) funcref (global.get 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/15.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/15.print index 1036785ea1..0ff426ccf4 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/15.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/15.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/16.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/16.print index 0598af2315..cede495716 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/16.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/16.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/2.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/2.print index 26f29f7dec..4f86280a3f 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/2.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/2.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 10 (ref func) ref.func $f) (elem (;0;) (i32.const 3) func $g) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/21.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/21.print index 689d51c8e5..c3a0516a05 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/21.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/21.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/22.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/22.print index 91f122086a..ac71e6c1fa 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/22.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/22.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 100 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/23.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/23.print index 016199a256..f7a2bf5894 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/23.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/23.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 1) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/24.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/24.print index 6fd3ef6a92..31a035fc64 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/24.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/24.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 30 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 1) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/25.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/25.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/25.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/25.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/26.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/26.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/26.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/26.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/27.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/27.print index 291c1feae1..adb2b4e692 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/27.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/27.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/28.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/28.print index 291c1feae1..adb2b4e692 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/28.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/28.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/29.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/29.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/29.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/29.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/3.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/3.print index 8742f0998f..e4d89860d7 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/3.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/3.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/30.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/30.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/30.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/30.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/31.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/31.print index 110c202713..3f6c004be4 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/31.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/31.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/32.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/32.print index 110c202713..3f6c004be4 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/32.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/32.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/33.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/33.print index dd7905c968..4913137806 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/33.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/33.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/34.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/34.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/34.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/34.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/35.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/35.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/35.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/35.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/36.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/36.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/36.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/36.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/37.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/37.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/37.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/37.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/38.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/38.print index f50e33eabb..06aabee6b6 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/38.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/38.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/39.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/39.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/39.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/39.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/4.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/4.print index e932b67331..0b5ef9c184 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/4.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/4.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/40.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/40.print index 15000f0b21..187bbfcc10 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/40.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/40.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/41.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/41.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/41.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/41.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/42.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/42.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/42.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/42.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/43.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/43.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/43.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/43.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/44.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/44.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/44.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/44.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/45.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/45.print index 5c49397d5d..13ea981519 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/45.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/45.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/46.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/46.print index 5c49397d5d..13ea981519 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/46.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/46.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/47.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/47.print index a27d903b90..cacad77028 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/47.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/47.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/48.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/48.print index a27d903b90..cacad77028 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/48.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/48.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/49.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/49.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/49.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/49.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/5.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/5.print index 7ec65dcffb..f3742f6da7 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/5.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/5.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 0) func $f) (elem (;1;) (i32.const 3) func $f) (elem (;2;) (i32.const 7) func $f) (elem (;3;) (i32.const 5) func $f) (elem (;4;) (i32.const 3) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/50.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/50.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/50.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/50.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/51.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/51.print index 80ae3bd47f..a17517ada0 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/51.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/51.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/52.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/52.print index 80ae3bd47f..a17517ada0 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/52.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/52.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/53.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/53.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/53.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/53.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/54.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/54.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/54.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/54.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/55.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/55.print index 608ee1aff3..38eb42e996 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/55.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/55.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/56.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/56.print index 608ee1aff3..38eb42e996 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/56.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/56.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/59.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/59.print index 4d04cddbcd..63071007d3 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/59.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/59.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/6.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/6.print index 107f8e49e9..8dddf1ec50 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/6.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/6.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) (elem (;1;) (i32.const 3) func $f) (elem (;2;) (i32.const 7) func $f) (elem (;3;) (i32.const 3) func $f) (elem (;4;) (i32.const 5) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/60.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/60.print index 4d04cddbcd..63071007d3 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/60.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/60.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/61.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/61.print index 693f397a20..c304de3a38 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/61.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/61.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/62.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/62.print index 693f397a20..c304de3a38 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/62.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/62.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/63.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/63.print index f8f71b170b..05e25013bc 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/63.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/63.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/64.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/64.print index f8f71b170b..05e25013bc 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/64.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/64.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/7.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/7.print index c1e1f7bb60..a0fc1f553a 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/7.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/7.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) (import "spectest" "global_i32" (global (;0;) i32)) - (func $f (;0;) (type 0)) (table (;0;) 1000 funcref) (elem (;0;) (global.get 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/77.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/77.print index 4176dfb406..019e8e94d5 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/77.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/77.print @@ -1,5 +1,8 @@ (module (type (;0;) (func)) + (table (;0;) 10 funcref) + (export "init" (func 1)) + (elem $e (;0;) (i32.const 0) func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -7,7 +10,4 @@ i32.const 1 table.init $e ) - (table (;0;) 10 funcref) - (export "init" (func 1)) - (elem $e (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/79.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/79.print index ea36739cb4..7c136d3305 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/79.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/79.print @@ -1,5 +1,8 @@ (module (type (;0;) (func)) + (table (;0;) 10 funcref) + (export "init" (func 1)) + (elem $e (;0;) declare func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -7,7 +10,4 @@ i32.const 1 table.init $e ) - (table (;0;) 10 funcref) - (export "init" (func 1)) - (elem $e (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/8.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/8.print index d9740764aa..bacc6c8181 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/8.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/8.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) (import "spectest" "global_i32" (global $g (;0;) i32)) - (func $f (;0;) (type 0)) (table (;0;) 1000 funcref) (elem (;0;) (global.get $g) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/elem.wast/9.print b/tests/snapshots/testsuite/proposals/function-references/elem.wast/9.print index 5e224c4ddf..0fc85614cb 100644 --- a/tests/snapshots/testsuite/proposals/function-references/elem.wast/9.print +++ b/tests/snapshots/testsuite/proposals/function-references/elem.wast/9.print @@ -1,5 +1,10 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "call-7" (func 2)) + (export "call-9" (func 3)) + (elem (;0;) (i32.const 7) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -14,9 +19,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call-7" (func 2)) - (export "call-9" (func 3)) - (elem (;0;) (i32.const 7) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/func.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/func.wast/0.print index 87259d3a49..2abed53f69 100644 --- a/tests/snapshots/testsuite/proposals/function-references/func.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/func.wast/0.print @@ -28,6 +28,76 @@ (type (;26;) (func (param i32) (result i32 i32))) (type (;27;) (func (result i32 i32))) (type (;28;) (func (param i32 i64 f32 f32 i32 f64 f32 i32 i32 i32 f32 f64 f64 f64 i32 i32 f32) (result f64 f32 i32 i32 i32 i64 f32 i32 i32 f32 f64 f64 i32 f32 i32 f64))) + (export "f" (func 2)) + (export "g" (func $h)) + (export "type-use-1" (func 25)) + (export "type-use-2" (func 26)) + (export "type-use-3" (func 27)) + (export "type-use-4" (func 28)) + (export "type-use-5" (func 29)) + (export "type-use-6" (func 30)) + (export "type-use-7" (func 31)) + (export "local-first-i32" (func 36)) + (export "local-first-i64" (func 37)) + (export "local-first-f32" (func 38)) + (export "local-first-f64" (func 39)) + (export "local-second-i32" (func 40)) + (export "local-second-i64" (func 41)) + (export "local-second-f32" (func 42)) + (export "local-second-f64" (func 43)) + (export "local-mixed" (func 44)) + (export "param-first-i32" (func 45)) + (export "param-first-i64" (func 46)) + (export "param-first-f32" (func 47)) + (export "param-first-f64" (func 48)) + (export "param-second-i32" (func 49)) + (export "param-second-i64" (func 50)) + (export "param-second-f32" (func 51)) + (export "param-second-f64" (func 52)) + (export "param-mixed" (func 53)) + (export "empty" (func 54)) + (export "value-void" (func 55)) + (export "value-i32" (func 56)) + (export "value-i64" (func 57)) + (export "value-f32" (func 58)) + (export "value-f64" (func 59)) + (export "value-i32-f64" (func 60)) + (export "value-i32-i32-i32" (func 61)) + (export "value-block-void" (func 62)) + (export "value-block-i32" (func 63)) + (export "value-block-i32-i64" (func 64)) + (export "return-empty" (func 65)) + (export "return-i32" (func 66)) + (export "return-i64" (func 67)) + (export "return-f32" (func 68)) + (export "return-f64" (func 69)) + (export "return-i32-f64" (func 70)) + (export "return-i32-i32-i32" (func 71)) + (export "return-block-i32" (func 72)) + (export "return-block-i32-i64" (func 73)) + (export "break-empty" (func 74)) + (export "break-i32" (func 75)) + (export "break-i64" (func 76)) + (export "break-f32" (func 77)) + (export "break-f64" (func 78)) + (export "break-i32-f64" (func 79)) + (export "break-i32-i32-i32" (func 80)) + (export "break-block-i32" (func 81)) + (export "break-block-i32-i64" (func 82)) + (export "break-br_if-empty" (func 83)) + (export "break-br_if-num" (func 84)) + (export "break-br_if-num-num" (func 85)) + (export "break-br_table-empty" (func 86)) + (export "break-br_table-num" (func 87)) + (export "break-br_table-num-num" (func 88)) + (export "break-br_table-nested-empty" (func 89)) + (export "break-br_table-nested-num" (func 90)) + (export "break-br_table-nested-num-num" (func 91)) + (export "large-sig" (func 92)) + (export "init-local-i32" (func 93)) + (export "init-local-i64" (func 94)) + (export "init-local-f32" (func 95)) + (export "init-local-f64" (func 96)) (func $dummy (;0;) (type $sig)) (func (;1;) (type $sig)) (func (;2;) (type $sig)) @@ -432,74 +502,4 @@ (local f64) local.get 0 ) - (export "f" (func 2)) - (export "g" (func $h)) - (export "type-use-1" (func 25)) - (export "type-use-2" (func 26)) - (export "type-use-3" (func 27)) - (export "type-use-4" (func 28)) - (export "type-use-5" (func 29)) - (export "type-use-6" (func 30)) - (export "type-use-7" (func 31)) - (export "local-first-i32" (func 36)) - (export "local-first-i64" (func 37)) - (export "local-first-f32" (func 38)) - (export "local-first-f64" (func 39)) - (export "local-second-i32" (func 40)) - (export "local-second-i64" (func 41)) - (export "local-second-f32" (func 42)) - (export "local-second-f64" (func 43)) - (export "local-mixed" (func 44)) - (export "param-first-i32" (func 45)) - (export "param-first-i64" (func 46)) - (export "param-first-f32" (func 47)) - (export "param-first-f64" (func 48)) - (export "param-second-i32" (func 49)) - (export "param-second-i64" (func 50)) - (export "param-second-f32" (func 51)) - (export "param-second-f64" (func 52)) - (export "param-mixed" (func 53)) - (export "empty" (func 54)) - (export "value-void" (func 55)) - (export "value-i32" (func 56)) - (export "value-i64" (func 57)) - (export "value-f32" (func 58)) - (export "value-f64" (func 59)) - (export "value-i32-f64" (func 60)) - (export "value-i32-i32-i32" (func 61)) - (export "value-block-void" (func 62)) - (export "value-block-i32" (func 63)) - (export "value-block-i32-i64" (func 64)) - (export "return-empty" (func 65)) - (export "return-i32" (func 66)) - (export "return-i64" (func 67)) - (export "return-f32" (func 68)) - (export "return-f64" (func 69)) - (export "return-i32-f64" (func 70)) - (export "return-i32-i32-i32" (func 71)) - (export "return-block-i32" (func 72)) - (export "return-block-i32-i64" (func 73)) - (export "break-empty" (func 74)) - (export "break-i32" (func 75)) - (export "break-i64" (func 76)) - (export "break-f32" (func 77)) - (export "break-f64" (func 78)) - (export "break-i32-f64" (func 79)) - (export "break-i32-i32-i32" (func 80)) - (export "break-block-i32" (func 81)) - (export "break-block-i32-i64" (func 82)) - (export "break-br_if-empty" (func 83)) - (export "break-br_if-num" (func 84)) - (export "break-br_if-num-num" (func 85)) - (export "break-br_table-empty" (func 86)) - (export "break-br_table-num" (func 87)) - (export "break-br_table-num-num" (func 88)) - (export "break-br_table-nested-empty" (func 89)) - (export "break-br_table-nested-num" (func 90)) - (export "break-br_table-nested-num-num" (func 91)) - (export "large-sig" (func 92)) - (export "init-local-i32" (func 93)) - (export "init-local-i64" (func 94)) - (export "init-local-f32" (func 95)) - (export "init-local-f64" (func 96)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/func.wast/93.print b/tests/snapshots/testsuite/proposals/function-references/func.wast/93.print index 8dfe06bc6c..3a1d573d47 100644 --- a/tests/snapshots/testsuite/proposals/function-references/func.wast/93.print +++ b/tests/snapshots/testsuite/proposals/function-references/func.wast/93.print @@ -1,6 +1,9 @@ (module (type $proc (;0;) (func (result i32))) (type $sig (;1;) (func (param i32) (result i32))) + (export "f" (func 0)) + (export "g" (func 2)) + (export "p" (func 3)) (func (;0;) (type $sig) (param $var i32) (result i32) (local i32) local.get 1 @@ -19,7 +22,4 @@ local.set $var local.get $var ) - (export "f" (func 0)) - (export "g" (func 2)) - (export "p" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/func.wast/97.print b/tests/snapshots/testsuite/proposals/function-references/func.wast/97.print index 2d86f1a6cf..65433cdaf1 100644 --- a/tests/snapshots/testsuite/proposals/function-references/func.wast/97.print +++ b/tests/snapshots/testsuite/proposals/function-references/func.wast/97.print @@ -3,6 +3,12 @@ (type $empty-sig-duplicate (;1;) (func)) (type $complex-sig-duplicate (;2;) (func (param i64 i64 f64 i64 f64 i64 f32 i32))) (type (;3;) (func (param f64 i64 f64 i64 f64 i64 f32 i32))) + (table (;0;) 7 7 funcref) + (export "signature-explicit-reused" (func 7)) + (export "signature-implicit-reused" (func 8)) + (export "signature-explicit-duplicate" (func 9)) + (export "signature-implicit-duplicate" (func 10)) + (elem (;0;) (i32.const 0) func $complex-sig-3 $empty-sig-2 $complex-sig-1 $complex-sig-3 $empty-sig-1 $complex-sig-4 $complex-sig-5) (func $empty-sig-1 (;0;) (type $sig)) (func $complex-sig-1 (;1;) (type 3) (param f64 i64 f64 i64 f64 i64 f32 i32)) (func $empty-sig-2 (;2;) (type $sig)) @@ -74,10 +80,4 @@ i32.const 6 call_indirect (type $complex-sig-duplicate) ) - (table (;0;) 7 7 funcref) - (export "signature-explicit-reused" (func 7)) - (export "signature-implicit-reused" (func 8)) - (export "signature-explicit-duplicate" (func 9)) - (export "signature-implicit-duplicate" (func 10)) - (elem (;0;) (i32.const 0) func $complex-sig-3 $empty-sig-2 $complex-sig-1 $complex-sig-3 $empty-sig-1 $complex-sig-4 $complex-sig-5) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/global.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/global.wast/0.print index 0c5f587f6a..95bc129c4c 100644 --- a/tests/snapshots/testsuite/proposals/function-references/global.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/global.wast/0.print @@ -14,6 +14,69 @@ (type (;12;) (func (param i32) (result i32))) (import "spectest" "global_i32" (global (;0;) i32)) (import "spectest" "global_i64" (global (;1;) i64)) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;2;) i32 i32.const -2) + (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;)) + (global (;4;) f64 f64.const -0x1p+2 (;=-4;)) + (global $b (;5;) i64 i64.const -5) + (global $x (;6;) (mut i32) i32.const -12) + (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;)) + (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;)) + (global $y (;9;) (mut i64) i64.const -15) + (global $z1 (;10;) i32 global.get 0) + (global $z2 (;11;) i64 global.get 1) + (global $r (;12;) externref ref.null extern) + (global $mr (;13;) (mut externref) ref.null extern) + (global (;14;) funcref ref.null func) + (export "get-a" (func 0)) + (export "get-b" (func 1)) + (export "get-r" (func 2)) + (export "get-mr" (func 3)) + (export "get-x" (func 4)) + (export "get-y" (func 5)) + (export "get-z1" (func 6)) + (export "get-z2" (func 7)) + (export "set-x" (func 8)) + (export "set-y" (func 9)) + (export "set-mr" (func 10)) + (export "get-3" (func 11)) + (export "get-4" (func 12)) + (export "get-7" (func 13)) + (export "get-8" (func 14)) + (export "set-7" (func 15)) + (export "set-8" (func 16)) + (export "as-select-first" (func 18)) + (export "as-select-mid" (func 19)) + (export "as-select-last" (func 20)) + (export "as-loop-first" (func 21)) + (export "as-loop-mid" (func 22)) + (export "as-loop-last" (func 23)) + (export "as-if-condition" (func 24)) + (export "as-if-then" (func 25)) + (export "as-if-else" (func 26)) + (export "as-br_if-first" (func 27)) + (export "as-br_if-last" (func 28)) + (export "as-br_table-first" (func 29)) + (export "as-br_table-last" (func 30)) + (export "as-call_indirect-first" (func 32)) + (export "as-call_indirect-mid" (func 33)) + (export "as-call_indirect-last" (func 34)) + (export "as-store-first" (func 35)) + (export "as-store-last" (func 36)) + (export "as-load-operand" (func 37)) + (export "as-memory.grow-value" (func 38)) + (export "as-call-value" (func 40)) + (export "as-return-value" (func 41)) + (export "as-drop-operand" (func 42)) + (export "as-br-value" (func 43)) + (export "as-local.set-value" (func 44)) + (export "as-local.tee-value" (func 45)) + (export "as-global.set-value" (func 46)) + (export "as-unary-operand" (func 47)) + (export "as-binary-operand" (func 48)) + (export "as-compare-operand" (func 49)) + (elem (;0;) (i32.const 0) func $func) (func (;0;) (type 1) (result i32) global.get $a ) @@ -262,67 +325,4 @@ i32.const 1 i32.gt_u ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;2;) i32 i32.const -2) - (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;)) - (global (;4;) f64 f64.const -0x1p+2 (;=-4;)) - (global $b (;5;) i64 i64.const -5) - (global $x (;6;) (mut i32) i32.const -12) - (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;)) - (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;)) - (global $y (;9;) (mut i64) i64.const -15) - (global $z1 (;10;) i32 global.get 0) - (global $z2 (;11;) i64 global.get 1) - (global $r (;12;) externref ref.null extern) - (global $mr (;13;) (mut externref) ref.null extern) - (global (;14;) funcref ref.null func) - (export "get-a" (func 0)) - (export "get-b" (func 1)) - (export "get-r" (func 2)) - (export "get-mr" (func 3)) - (export "get-x" (func 4)) - (export "get-y" (func 5)) - (export "get-z1" (func 6)) - (export "get-z2" (func 7)) - (export "set-x" (func 8)) - (export "set-y" (func 9)) - (export "set-mr" (func 10)) - (export "get-3" (func 11)) - (export "get-4" (func 12)) - (export "get-7" (func 13)) - (export "get-8" (func 14)) - (export "set-7" (func 15)) - (export "set-8" (func 16)) - (export "as-select-first" (func 18)) - (export "as-select-mid" (func 19)) - (export "as-select-last" (func 20)) - (export "as-loop-first" (func 21)) - (export "as-loop-mid" (func 22)) - (export "as-loop-last" (func 23)) - (export "as-if-condition" (func 24)) - (export "as-if-then" (func 25)) - (export "as-if-else" (func 26)) - (export "as-br_if-first" (func 27)) - (export "as-br_if-last" (func 28)) - (export "as-br_table-first" (func 29)) - (export "as-br_table-last" (func 30)) - (export "as-call_indirect-first" (func 32)) - (export "as-call_indirect-mid" (func 33)) - (export "as-call_indirect-last" (func 34)) - (export "as-store-first" (func 35)) - (export "as-store-last" (func 36)) - (export "as-load-operand" (func 37)) - (export "as-memory.grow-value" (func 38)) - (export "as-call-value" (func 40)) - (export "as-return-value" (func 41)) - (export "as-drop-operand" (func 42)) - (export "as-br-value" (func 43)) - (export "as-local.set-value" (func 44)) - (export "as-local.tee-value" (func 45)) - (export "as-global.set-value" (func 46)) - (export "as-unary-operand" (func 47)) - (export "as-binary-operand" (func 48)) - (export "as-compare-operand" (func 49)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/if.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/if.wast/0.print index a9941caedc..57caff7d3a 100644 --- a/tests/snapshots/testsuite/proposals/function-references/if.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/if.wast/0.print @@ -15,6 +15,60 @@ (type (;13;) (func (param i64 i64 i32) (result i64 i32))) (type (;14;) (func (param i64 i64) (result i64))) (type (;15;) (func (param i64) (result i64))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "empty" (func 1)) + (export "singular" (func 2)) + (export "multi" (func 3)) + (export "nested" (func 4)) + (export "as-select-first" (func 5)) + (export "as-select-mid" (func 6)) + (export "as-select-last" (func 7)) + (export "as-loop-first" (func 8)) + (export "as-loop-mid" (func 9)) + (export "as-loop-last" (func 10)) + (export "as-if-condition" (func 11)) + (export "as-br_if-first" (func 12)) + (export "as-br_if-last" (func 13)) + (export "as-br_table-first" (func 14)) + (export "as-br_table-last" (func 15)) + (export "as-call_indirect-first" (func 17)) + (export "as-call_indirect-mid" (func 18)) + (export "as-call_indirect-last" (func 19)) + (export "as-store-first" (func 20)) + (export "as-store-last" (func 21)) + (export "as-memory.grow-value" (func 22)) + (export "as-call-value" (func 24)) + (export "as-return-value" (func 25)) + (export "as-drop-operand" (func 26)) + (export "as-br-value" (func 27)) + (export "as-local.set-value" (func 28)) + (export "as-local.tee-value" (func 29)) + (export "as-global.set-value" (func 30)) + (export "as-load-operand" (func 31)) + (export "as-unary-operand" (func 32)) + (export "as-binary-operand" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-operand" (func 35)) + (export "as-binary-operands" (func 36)) + (export "as-compare-operands" (func 37)) + (export "as-mixed-operands" (func 38)) + (export "break-bare" (func 39)) + (export "break-value" (func 40)) + (export "break-multi-value" (func 41)) + (export "param" (func 42)) + (export "params" (func 43)) + (export "params-id" (func 44)) + (export "param-break" (func 45)) + (export "params-break" (func 46)) + (export "params-id-break" (func 47)) + (export "effects" (func 48)) + (export "add64_u_with_carry" (func $add64_u_with_carry)) + (export "add64_u_saturated" (func $add64_u_saturated)) + (export "type-use" (func 51)) + (export "atypical-condition" (func 52)) + (elem (;0;) (i32.const 0) func $func) (func $dummy (;0;) (type $block-sig-1)) (func (;1;) (type $block-sig-3) (param i32) local.get 0 @@ -873,58 +927,4 @@ else end ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "empty" (func 1)) - (export "singular" (func 2)) - (export "multi" (func 3)) - (export "nested" (func 4)) - (export "as-select-first" (func 5)) - (export "as-select-mid" (func 6)) - (export "as-select-last" (func 7)) - (export "as-loop-first" (func 8)) - (export "as-loop-mid" (func 9)) - (export "as-loop-last" (func 10)) - (export "as-if-condition" (func 11)) - (export "as-br_if-first" (func 12)) - (export "as-br_if-last" (func 13)) - (export "as-br_table-first" (func 14)) - (export "as-br_table-last" (func 15)) - (export "as-call_indirect-first" (func 17)) - (export "as-call_indirect-mid" (func 18)) - (export "as-call_indirect-last" (func 19)) - (export "as-store-first" (func 20)) - (export "as-store-last" (func 21)) - (export "as-memory.grow-value" (func 22)) - (export "as-call-value" (func 24)) - (export "as-return-value" (func 25)) - (export "as-drop-operand" (func 26)) - (export "as-br-value" (func 27)) - (export "as-local.set-value" (func 28)) - (export "as-local.tee-value" (func 29)) - (export "as-global.set-value" (func 30)) - (export "as-load-operand" (func 31)) - (export "as-unary-operand" (func 32)) - (export "as-binary-operand" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-operand" (func 35)) - (export "as-binary-operands" (func 36)) - (export "as-compare-operands" (func 37)) - (export "as-mixed-operands" (func 38)) - (export "break-bare" (func 39)) - (export "break-value" (func 40)) - (export "break-multi-value" (func 41)) - (export "param" (func 42)) - (export "params" (func 43)) - (export "params-id" (func 44)) - (export "param-break" (func 45)) - (export "params-break" (func 46)) - (export "params-id-break" (func 47)) - (export "effects" (func 48)) - (export "add64_u_with_carry" (func $add64_u_with_carry)) - (export "add64_u_saturated" (func $add64_u_saturated)) - (export "type-use" (func 51)) - (export "atypical-condition" (func 52)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/0.print index 3e6a6cd0ef..154a8afa07 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/0.print @@ -1,10 +1,10 @@ (module $Mf (type (;0;) (func (result i32))) + (export "call" (func 0)) (func (;0;) (type 0) (result i32) call $g ) (func $g (;1;) (type 0) (result i32) i32.const 2 ) - (export "call" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/11.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/11.print index 84ed2c075e..5d12ab8bcd 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/11.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/11.print @@ -1,6 +1,13 @@ (module $Mg (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (global $glob (;0;) i32 i32.const 42) + (global $mut_glob (;1;) (mut i32) i32.const 142) + (export "glob" (global $glob)) + (export "get" (func 0)) + (export "mut_glob" (global $mut_glob)) + (export "get_mut" (func 1)) + (export "set_mut" (func 2)) (func (;0;) (type 0) (result i32) global.get $glob ) @@ -11,11 +18,4 @@ local.get 0 global.set $mut_glob ) - (global $glob (;0;) i32 i32.const 42) - (global $mut_glob (;1;) (mut i32) i32.const 142) - (export "glob" (global $glob)) - (export "get" (func 0)) - (export "mut_glob" (global $mut_glob)) - (export "get_mut" (func 1)) - (export "set_mut" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/111.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/111.print index 2858bb5556..c422f16ee8 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/111.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/111.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "Mt" "tab" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/13.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/13.print index 221a4d2a23..c4e8d1282f 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/13.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/13.print @@ -6,9 +6,6 @@ (import "Mg" "get" (func $f (;0;) (type 0))) (import "Mg" "get_mut" (func $get_mut (;1;) (type 0))) (import "Mg" "set_mut" (func $set_mut (;2;) (type 1))) - (func (;3;) (type 0) (result i32) - global.get $glob - ) (global $glob (;2;) i32 i32.const 43) (export "Mg.glob" (global $x)) (export "Mg.get" (func $f)) @@ -17,4 +14,7 @@ (export "Mg.mut_glob" (global $mut_glob)) (export "Mg.get_mut" (func $get_mut)) (export "Mg.set_mut" (func $set_mut)) + (func (;3;) (type 0) (result i32) + global.get $glob + ) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/133.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/133.print index f21eaa4f0a..3a67a6d945 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/133.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/133.print @@ -1,11 +1,11 @@ (module $Mm (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 1 5) + (export "mem" (memory 0)) + (export "load" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (memory (;0;) 1 5) - (export "mem" (memory 0)) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\00\01\02\03\04\05\06\07\08\09") ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/135.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/135.print index dbbedca99e..3c11a7ecbc 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/135.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/135.print @@ -1,12 +1,12 @@ (module $Nm (type (;0;) (func (param i32) (result i32))) (import "Mm" "load" (func $loadM (;0;) (type 0))) + (memory (;0;) 1) + (export "Mm.load" (func $loadM)) + (export "load" (func 1)) (func (;1;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (memory (;0;) 1) - (export "Mm.load" (func $loadM)) - (export "load" (func 1)) (data (;0;) (i32.const 10) "\f0\f1\f2\f3\f4\f5") ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/139.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/139.print index b370afdd26..8954f387ab 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/139.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/139.print @@ -1,10 +1,10 @@ (module $Om (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem" (memory (;0;) 1)) + (export "load" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (export "load" (func 0)) (data (;0;) (i32.const 5) "\a0\a1\a2\a3\a4\a5\a6\a7") ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/146.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/146.print index 6917dc02ac..d44420614c 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/146.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/146.print @@ -1,9 +1,9 @@ (module $Pm (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem" (memory (;0;) 1 8)) + (export "grow" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/162.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/162.print index fb3eabaa79..310c6e31f7 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/162.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/162.print @@ -1,5 +1,11 @@ (module $Ms (type $t (;0;) (func (result i32))) + (table (;0;) 1 funcref) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "table" (table 0)) + (export "get memory[0]" (func 0)) + (export "get table[0]" (func 1)) (func (;0;) (type $t) (result i32) i32.const 0 i32.load8_u @@ -8,10 +14,4 @@ i32.const 0 call_indirect (type $t) ) - (table (;0;) 1 funcref) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "table" (table 0)) - (export "get memory[0]" (func 0)) - (export "get table[0]" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/2.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/2.print index c7bcf16e6c..9b37d161a3 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/2.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/2.print @@ -1,6 +1,9 @@ (module $Nf (type (;0;) (func (result i32))) (import "Mf" "call" (func $f (;0;) (type 0))) + (export "Mf.call" (func $f)) + (export "call Mf.call" (func 1)) + (export "call" (func 2)) (func (;1;) (type 0) (result i32) call $f ) @@ -10,7 +13,4 @@ (func $g (;3;) (type 0) (result i32) i32.const 3 ) - (export "Mf.call" (func $f)) - (export "call Mf.call" (func 1)) - (export "call" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/31.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/31.print index 7c9865ad76..32c67def17 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/31.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/31.print @@ -1,6 +1,5 @@ (module $Mref_ex (type $t (;0;) (func)) - (func $f (;0;) (type $t)) (global (;0;) funcref ref.null func) (global (;1;) (ref func) ref.func $f) (global (;2;) (ref null $t) ref.null $t) @@ -22,4 +21,5 @@ (export "g-var-ref" (global 8)) (export "g-var-extern" (global 9)) (elem (;0;) declare func $f) + (func $f (;0;) (type $t)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/69.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/69.print index 1527e89cb1..b9ee3f5214 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/69.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/69.print @@ -2,6 +2,11 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "tab" (table 0)) + (export "h" (func 1)) + (export "call" (func 2)) + (elem (;0;) (i32.const 2) func $g $g $g $g) (func $g (;0;) (type 0) (result i32) i32.const 4 ) @@ -12,9 +17,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "tab" (table 0)) - (export "h" (func 1)) - (export "call" (func 2)) - (elem (;0;) (i32.const 2) func $g $g $g $g) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/71.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/71.print index 624fdd1ef4..282b723860 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/71.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/71.print @@ -4,6 +4,11 @@ (type (;2;) (func (param i32) (result i32))) (import "Mt" "call" (func $f (;0;) (type 2))) (import "Mt" "h" (func $h (;1;) (type 1))) + (table (;0;) 5 5 funcref) + (export "Mt.call" (func $f)) + (export "call Mt.call" (func 3)) + (export "call" (func 4)) + (elem (;0;) (i32.const 0) func $g $g $g $h $f) (func $g (;2;) (type 1) (result i32) i32.const 5 ) @@ -15,9 +20,4 @@ local.get 0 call_indirect (type 1) ) - (table (;0;) 5 5 funcref) - (export "Mt.call" (func $f)) - (export "call Mt.call" (func 3)) - (export "call" (func 4)) - (elem (;0;) (i32.const 0) func $g $g $g $h $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/linking.wast/90.print b/tests/snapshots/testsuite/proposals/function-references/linking.wast/90.print index e2f5bf2ae5..5651c85a30 100644 --- a/tests/snapshots/testsuite/proposals/function-references/linking.wast/90.print +++ b/tests/snapshots/testsuite/proposals/function-references/linking.wast/90.print @@ -3,6 +3,8 @@ (type (;1;) (func (param i32) (result i32))) (import "Mt" "h" (func $h (;0;) (type 0))) (import "Mt" "tab" (table (;0;) 5 funcref)) + (export "call" (func 2)) + (elem (;0;) (i32.const 1) func $i $h) (func $i (;1;) (type 0) (result i32) i32.const 6 ) @@ -10,6 +12,4 @@ local.get 0 call_indirect (type 0) ) - (export "call" (func 2)) - (elem (;0;) (i32.const 1) func $i $h) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/local_get.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/local_get.wast/0.print index 7ac605c8a9..2a199e5b8b 100644 --- a/tests/snapshots/testsuite/proposals/function-references/local_get.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/local_get.wast/0.print @@ -9,6 +9,25 @@ (type (;7;) (func (param f64) (result f64))) (type (;8;) (func (param i64 f32 f64 i32 i32))) (type (;9;) (func (param i64 f32 f64 i32 i32) (result f64))) + (export "type-local-i32" (func 0)) + (export "type-local-i64" (func 1)) + (export "type-local-f32" (func 2)) + (export "type-local-f64" (func 3)) + (export "type-param-i32" (func 4)) + (export "type-param-i64" (func 5)) + (export "type-param-f32" (func 6)) + (export "type-param-f64" (func 7)) + (export "type-mixed" (func 8)) + (export "read" (func 9)) + (export "as-block-value" (func 10)) + (export "as-loop-value" (func 11)) + (export "as-br-value" (func 12)) + (export "as-br_if-value" (func 13)) + (export "as-br_if-value-cond" (func 14)) + (export "as-br_table-value" (func 15)) + (export "as-return-value" (func 16)) + (export "as-if-then" (func 17)) + (export "as-if-else" (func 18)) (func (;0;) (type 0) (result i32) (local i32) local.get 0 @@ -167,23 +186,4 @@ local.get 0 end ) - (export "type-local-i32" (func 0)) - (export "type-local-i64" (func 1)) - (export "type-local-f32" (func 2)) - (export "type-local-f64" (func 3)) - (export "type-param-i32" (func 4)) - (export "type-param-i64" (func 5)) - (export "type-param-f32" (func 6)) - (export "type-param-f64" (func 7)) - (export "type-mixed" (func 8)) - (export "read" (func 9)) - (export "as-block-value" (func 10)) - (export "as-loop-value" (func 11)) - (export "as-br-value" (func 12)) - (export "as-br_if-value" (func 13)) - (export "as-br_if-value-cond" (func 14)) - (export "as-br_table-value" (func 15)) - (export "as-return-value" (func 16)) - (export "as-if-then" (func 17)) - (export "as-if-else" (func 18)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/local_init.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/local_init.wast/0.print index 75e231dcda..a7cb4af591 100644 --- a/tests/snapshots/testsuite/proposals/function-references/local_init.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/local_init.wast/0.print @@ -1,5 +1,8 @@ (module (type (;0;) (func (param (ref extern)) (result (ref extern)))) + (export "get-after-set" (func 0)) + (export "get-after-tee" (func 1)) + (export "get-in-block-after-set" (func 2)) (func (;0;) (type 0) (param $p (ref extern)) (result (ref extern)) (local $x (ref extern)) local.get $p @@ -21,7 +24,4 @@ local.get $x end ) - (export "get-after-set" (func 0)) - (export "get-after-tee" (func 1)) - (export "get-in-block-after-set" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/local_init.wast/8.print b/tests/snapshots/testsuite/proposals/function-references/local_init.wast/8.print index b6af69a1e2..954a43489e 100644 --- a/tests/snapshots/testsuite/proposals/function-references/local_init.wast/8.print +++ b/tests/snapshots/testsuite/proposals/function-references/local_init.wast/8.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (param (ref extern)) (result (ref extern)))) + (export "tee-init" (func 0)) (func (;0;) (type 0) (param $p (ref extern)) (result (ref extern)) (local $x (ref extern)) local.get $p @@ -7,5 +8,4 @@ drop local.get $x ) - (export "tee-init" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/ref_as_non_null.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/ref_as_non_null.wast/0.print index d4861f7951..8f70c457c5 100644 --- a/tests/snapshots/testsuite/proposals/function-references/ref_as_non_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/ref_as_non_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) local.get $r ref.as_non_null @@ -32,9 +37,4 @@ ref.as_non_null call $nn ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/0.print index b5232db074..c8493c258b 100644 --- a/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/0.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (param i32) (result i32))) + (export "f" (func 0)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/14.print b/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/14.print index 6a0959c3a1..b934427fb1 100644 --- a/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/14.print +++ b/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/14.print @@ -1,5 +1,12 @@ (module (type (;0;) (func)) + (table $t (;0;) 1 funcref) + (global (;0;) funcref ref.func $f1) + (export "f" (func $f2)) + (elem (;0;) (i32.const 0) func $f3) + (elem (;1;) (i32.const 0) funcref (ref.func $f4)) + (elem (;2;) func $f5) + (elem (;3;) funcref (ref.func $f6)) (func $f1 (;0;) (type 0)) (func $f2 (;1;) (type 0)) (func $f3 (;2;) (type 0)) @@ -15,11 +22,4 @@ ref.func $f6 return ) - (table $t (;0;) 1 funcref) - (global (;0;) funcref ref.func $f1) - (export "f" (func $f2)) - (elem (;0;) (i32.const 0) func $f3) - (elem (;1;) (i32.const 0) funcref (ref.func $f4)) - (elem (;2;) func $f5) - (elem (;3;) funcref (ref.func $f6)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/2.print b/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/2.print index 0107ee28d7..b81df3c3a2 100644 --- a/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/2.print +++ b/tests/snapshots/testsuite/proposals/function-references/ref_func.wast/2.print @@ -3,6 +3,23 @@ (type (;1;) (func)) (type (;2;) (func (result i32))) (import "M" "f" (func $f (;0;) (type 0))) + (table $t (;0;) 1 funcref) + (global (;0;) funcref ref.func $f) + (global (;1;) funcref ref.func $g) + (global $v (;2;) (mut funcref) ref.func $f) + (global (;3;) funcref ref.func $gf1) + (global (;4;) funcref ref.func $gf2) + (export "is_null-f" (func 7)) + (export "is_null-g" (func 8)) + (export "is_null-v" (func 9)) + (export "set-f" (func 10)) + (export "set-g" (func 11)) + (export "call-f" (func 12)) + (export "call-g" (func 13)) + (export "call-v" (func 14)) + (elem (;0;) declare func $gf1 $ff1) + (elem (;1;) declare funcref (ref.func $gf2) (ref.func $ff2)) + (elem (;2;) declare func $f $g) (func $g (;1;) (type 0) (param $x i32) (result i32) local.get $x i32.const 1 @@ -62,21 +79,4 @@ i32.const 0 call_indirect (type 0) ) - (table $t (;0;) 1 funcref) - (global (;0;) funcref ref.func $f) - (global (;1;) funcref ref.func $g) - (global $v (;2;) (mut funcref) ref.func $f) - (global (;3;) funcref ref.func $gf1) - (global (;4;) funcref ref.func $gf2) - (export "is_null-f" (func 7)) - (export "is_null-g" (func 8)) - (export "is_null-v" (func 9)) - (export "set-f" (func 10)) - (export "set-g" (func 11)) - (export "call-f" (func 12)) - (export "call-g" (func 13)) - (export "call-v" (func 14)) - (elem (;0;) declare func $gf1 $ff1) - (elem (;1;) declare funcref (ref.func $gf2) (ref.func $ff2)) - (elem (;2;) declare func $f $g) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/ref_is_null.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/ref_is_null.wast/0.print index f354ae718f..1097f20712 100644 --- a/tests/snapshots/testsuite/proposals/function-references/ref_is_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/ref_is_null.wast/0.print @@ -6,6 +6,19 @@ (type (;4;) (func (result i32))) (type (;5;) (func (param externref))) (type (;6;) (func (param i32) (result i32))) + (table $t1 (;0;) 2 funcref) + (table $t2 (;1;) 2 externref) + (table $t3 (;2;) 2 (ref null $t)) + (export "funcref" (func $f1)) + (export "externref" (func $f2)) + (export "ref-null" (func $f3')) + (export "init" (func 5)) + (export "deinit" (func 6)) + (export "funcref-elem" (func 7)) + (export "externref-elem" (func 8)) + (export "ref-elem" (func 9)) + (elem (;0;) (i32.const 1) func $dummy) + (elem (;1;) (table $t3) (i32.const 1) (ref $t) (ref.func $dummy)) (func $dummy (;0;) (type $t)) (func $f1 (;1;) (type 1) (param $x funcref) (result i32) local.get $x @@ -54,17 +67,4 @@ table.get $t3 call $f3 ) - (table $t1 (;0;) 2 funcref) - (table $t2 (;1;) 2 externref) - (table $t3 (;2;) 2 (ref null $t)) - (export "funcref" (func $f1)) - (export "externref" (func $f2)) - (export "ref-null" (func $f3')) - (export "init" (func 5)) - (export "deinit" (func 6)) - (export "funcref-elem" (func 7)) - (export "externref-elem" (func 8)) - (export "ref-elem" (func 9)) - (elem (;0;) (i32.const 1) func $dummy) - (elem (;1;) (table $t3) (i32.const 1) (ref $t) (ref.func $dummy)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/ref_null.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/ref_null.wast/0.print index ac72881414..faedb8e6cf 100644 --- a/tests/snapshots/testsuite/proposals/function-references/ref_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/ref_null.wast/0.print @@ -3,6 +3,12 @@ (type (;1;) (func (result externref))) (type (;2;) (func (result funcref))) (type (;3;) (func (result (ref null $t)))) + (global (;0;) externref ref.null extern) + (global (;1;) funcref ref.null func) + (global (;2;) (ref null $t) ref.null $t) + (export "externref" (func 0)) + (export "funcref" (func 1)) + (export "ref" (func 2)) (func (;0;) (type 1) (result externref) ref.null extern ) @@ -12,10 +18,4 @@ (func (;2;) (type 3) (result (ref null $t)) ref.null $t ) - (global (;0;) externref ref.null extern) - (global (;1;) funcref ref.null func) - (global (;2;) (ref null $t) ref.null $t) - (export "externref" (func 0)) - (export "funcref" (func 1)) - (export "ref" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/return_call.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/return_call.wast/0.print index d1e65c0f4d..5d4c4c7bed 100644 --- a/tests/snapshots/testsuite/proposals/function-references/return_call.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/return_call.wast/0.print @@ -13,6 +13,22 @@ (type (;11;) (func (param i64 f64) (result f64))) (type (;12;) (func (param i64 i64) (result i64))) (type (;13;) (func (param i64) (result i32))) + (export "type-i32" (func 12)) + (export "type-i64" (func 13)) + (export "type-f32" (func 14)) + (export "type-f64" (func 15)) + (export "type-first-i32" (func 16)) + (export "type-first-i64" (func 17)) + (export "type-first-f32" (func 18)) + (export "type-first-f64" (func 19)) + (export "type-second-i32" (func 20)) + (export "type-second-i64" (func 21)) + (export "type-second-f32" (func 22)) + (export "type-second-f64" (func 23)) + (export "fac-acc" (func $fac-acc)) + (export "count" (func $count)) + (export "even" (func $even)) + (export "odd" (func $odd)) (func $const-i32 (;0;) (type 0) (result i32) i32.const 306 ) @@ -148,20 +164,4 @@ return_call $even end ) - (export "type-i32" (func 12)) - (export "type-i64" (func 13)) - (export "type-f32" (func 14)) - (export "type-f64" (func 15)) - (export "type-first-i32" (func 16)) - (export "type-first-i64" (func 17)) - (export "type-first-f32" (func 18)) - (export "type-first-f64" (func 19)) - (export "type-second-i32" (func 20)) - (export "type-second-i64" (func 21)) - (export "type-second-f32" (func 22)) - (export "type-second-f64" (func 23)) - (export "fac-acc" (func $fac-acc)) - (export "count" (func $count)) - (export "even" (func $even)) - (export "odd" (func $odd)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/0.print index ba76cb3e1d..be0799bf90 100644 --- a/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/0.print @@ -22,6 +22,31 @@ (type (;20;) (func (param i64 f64 i32 i64) (result i32))) (type (;21;) (func (param i32) (result i64))) (type (;22;) (func (param i64 i64) (result i64))) + (table (;0;) 20 20 funcref) + (table $tab2 (;1;) 1 1 funcref) + (table $tab3 (;2;) 1 1 funcref) + (export "type-i32" (func 19)) + (export "type-i64" (func 20)) + (export "type-f32" (func 21)) + (export "type-f64" (func 22)) + (export "type-index" (func 23)) + (export "type-first-i32" (func 24)) + (export "type-first-i64" (func 25)) + (export "type-first-f32" (func 26)) + (export "type-first-f64" (func 27)) + (export "type-second-i32" (func 28)) + (export "type-second-i64" (func 29)) + (export "type-second-f32" (func 30)) + (export "type-second-f64" (func 31)) + (export "dispatch" (func 32)) + (export "dispatch-structural" (func 33)) + (export "call-tab" (func 36)) + (export "fac" (func $fac)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac $fac-acc $even $odd $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate) + (elem (;1;) (table $tab2) (i32.const 0) func $tab-f1) + (elem (;2;) (table $tab3) (i32.const 0) func $tab-f2) (func $const-i32 (;0;) (type $out-i32) (result i32) i32.const 306 ) @@ -258,29 +283,4 @@ return_call_indirect (type $over-i32) end ) - (table (;0;) 20 20 funcref) - (table $tab2 (;1;) 1 1 funcref) - (table $tab3 (;2;) 1 1 funcref) - (export "type-i32" (func 19)) - (export "type-i64" (func 20)) - (export "type-f32" (func 21)) - (export "type-f64" (func 22)) - (export "type-index" (func 23)) - (export "type-first-i32" (func 24)) - (export "type-first-i64" (func 25)) - (export "type-first-f32" (func 26)) - (export "type-first-f64" (func 27)) - (export "type-second-i32" (func 28)) - (export "type-second-i64" (func 29)) - (export "type-second-f32" (func 30)) - (export "type-second-f64" (func 31)) - (export "dispatch" (func 32)) - (export "dispatch-structural" (func 33)) - (export "call-tab" (func 36)) - (export "fac" (func $fac)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac $fac-acc $even $odd $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate) - (elem (;1;) (table $tab2) (i32.const 0) func $tab-f1) - (elem (;2;) (table $tab3) (i32.const 0) func $tab-f2) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/64.print b/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/64.print index b26615ee35..60d6b9f329 100644 --- a/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/64.print +++ b/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/64.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (table (;0;) 0 funcref) (func $arity-1-vs-0 (;0;) (type 0) i32.const 1 i32.const 0 return_call_indirect (type 0) ) - (table (;0;) 0 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/65.print b/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/65.print index 0e28863cfd..5a4ef5a82d 100644 --- a/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/65.print +++ b/tests/snapshots/testsuite/proposals/function-references/return_call_indirect.wast/65.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (table (;0;) 0 funcref) (func $arity-2-vs-0 (;0;) (type 0) f64.const 0x1p+1 (;=2;) i32.const 1 i32.const 0 return_call_indirect (type 0) ) - (table (;0;) 0 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/0.print index 451693d9de..9aa4084243 100644 --- a/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/0.print @@ -13,6 +13,44 @@ (type $f64-f32 (;11;) (func (param f64 f32) (result f32))) (type $i64-f64 (;12;) (func (param i64 f64) (result f64))) (type $i64i64-i64 (;13;) (func (param i64 i64) (result i64))) + (global $const-i32 (;0;) (ref $-i32) ref.func $const-i32) + (global $const-i64 (;1;) (ref $-i64) ref.func $const-i64) + (global $const-f32 (;2;) (ref $-f32) ref.func $const-f32) + (global $const-f64 (;3;) (ref $-f64) ref.func $const-f64) + (global $id-i32 (;4;) (ref $i32-i32) ref.func $id-i32) + (global $id-i64 (;5;) (ref $i64-i64) ref.func $id-i64) + (global $id-f32 (;6;) (ref $f32-f32) ref.func $id-f32) + (global $id-f64 (;7;) (ref $f64-f64) ref.func $id-f64) + (global $f32-i32 (;8;) (ref $f32-i32) ref.func $f32-i32) + (global $i32-i64 (;9;) (ref $i32-i64) ref.func $i32-i64) + (global $f64-f32 (;10;) (ref $f64-f32) ref.func $f64-f32) + (global $i64-f64 (;11;) (ref $i64-f64) ref.func $i64-f64) + (global $fac-acc (;12;) (ref $i64i64-i64) ref.func $fac-acc) + (global $count (;13;) (ref $i64-i64) ref.func $count) + (global $even (;14;) (ref $i64-i64) ref.func $even) + (global $odd (;15;) (ref $i64-i64) ref.func $odd) + (export "type-i32" (func 12)) + (export "type-i64" (func 13)) + (export "type-f32" (func 14)) + (export "type-f64" (func 15)) + (export "type-first-i32" (func 16)) + (export "type-first-i64" (func 17)) + (export "type-first-f32" (func 18)) + (export "type-first-f64" (func 19)) + (export "type-second-i32" (func 20)) + (export "type-second-i64" (func 21)) + (export "type-second-f32" (func 22)) + (export "type-second-f64" (func 23)) + (export "null" (func 24)) + (export "fac-acc" (func $fac-acc)) + (export "count" (func $count)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) declare func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64) + (elem (;1;) declare func $fac-acc) + (elem (;2;) declare func $count) + (elem (;3;) declare func $even) + (elem (;4;) declare func $odd) (func $const-i32 (;0;) (type $-i32) (result i32) i32.const 306 ) @@ -168,42 +206,4 @@ return_call_ref $i64-i64 end ) - (global $const-i32 (;0;) (ref $-i32) ref.func $const-i32) - (global $const-i64 (;1;) (ref $-i64) ref.func $const-i64) - (global $const-f32 (;2;) (ref $-f32) ref.func $const-f32) - (global $const-f64 (;3;) (ref $-f64) ref.func $const-f64) - (global $id-i32 (;4;) (ref $i32-i32) ref.func $id-i32) - (global $id-i64 (;5;) (ref $i64-i64) ref.func $id-i64) - (global $id-f32 (;6;) (ref $f32-f32) ref.func $id-f32) - (global $id-f64 (;7;) (ref $f64-f64) ref.func $id-f64) - (global $f32-i32 (;8;) (ref $f32-i32) ref.func $f32-i32) - (global $i32-i64 (;9;) (ref $i32-i64) ref.func $i32-i64) - (global $f64-f32 (;10;) (ref $f64-f32) ref.func $f64-f32) - (global $i64-f64 (;11;) (ref $i64-f64) ref.func $i64-f64) - (global $fac-acc (;12;) (ref $i64i64-i64) ref.func $fac-acc) - (global $count (;13;) (ref $i64-i64) ref.func $count) - (global $even (;14;) (ref $i64-i64) ref.func $even) - (global $odd (;15;) (ref $i64-i64) ref.func $odd) - (export "type-i32" (func 12)) - (export "type-i64" (func 13)) - (export "type-f32" (func 14)) - (export "type-f64" (func 15)) - (export "type-first-i32" (func 16)) - (export "type-first-i64" (func 17)) - (export "type-first-f32" (func 18)) - (export "type-first-f64" (func 19)) - (export "type-second-i32" (func 20)) - (export "type-second-i64" (func 21)) - (export "type-second-f32" (func 22)) - (export "type-second-f64" (func 23)) - (export "null" (func 24)) - (export "fac-acc" (func $fac-acc)) - (export "count" (func $count)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) declare func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64) - (elem (;1;) declare func $fac-acc) - (elem (;2;) declare func $count) - (elem (;3;) declare func $even) - (elem (;4;) declare func $odd) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/33.print b/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/33.print index 11dc25a989..737330a1d8 100644 --- a/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/33.print +++ b/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/33.print @@ -4,6 +4,7 @@ (type $t2 (;2;) (func (result (ref null $t)))) (type $t3 (;3;) (func (result (ref func)))) (type $t4 (;4;) (func (result funcref))) + (elem (;0;) declare func $f11 $f22 $f33 $f44) (func $f11 (;0;) (type $t1) (result (ref $t)) ref.func $f11 return_call_ref $t1 @@ -40,5 +41,4 @@ ref.func $f44 return_call_ref $t4 ) - (elem (;0;) declare func $f11 $f22 $f33 $f44) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/40.print b/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/40.print index 182b29b127..fe1559354e 100644 --- a/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/40.print +++ b/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/40.print @@ -1,8 +1,8 @@ (module (type $t (;0;) (func (result i32))) + (export "unreachable" (func 0)) (func (;0;) (type $t) (result i32) unreachable return_call_ref $t ) - (export "unreachable" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/42.print b/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/42.print index d7a4a98905..5dd9aceb2e 100644 --- a/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/42.print +++ b/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/42.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -9,6 +11,4 @@ ref.func $f return_call_ref $t ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/44.print b/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/44.print index 49bfa9ac42..43026ed34a 100644 --- a/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/44.print +++ b/tests/snapshots/testsuite/proposals/function-references/return_call_ref.wast/44.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -11,6 +13,4 @@ return_call_ref $t i32.const 0 ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/select.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/select.wast/0.print index 1c4c3b0541..70dfa7ea6c 100644 --- a/tests/snapshots/testsuite/proposals/function-references/select.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/select.wast/0.print @@ -12,6 +12,62 @@ (type (;10;) (func (result i32))) (type (;11;) (func (result i64))) (type (;12;) (func (param i32))) + (table $tab (;0;) 1 1 funcref) + (table $t (;1;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "select-i32" (func 1)) + (export "select-i64" (func 2)) + (export "select-f32" (func 3)) + (export "select-f64" (func 4)) + (export "select-i32-t" (func 5)) + (export "select-i64-t" (func 6)) + (export "select-f32-t" (func 7)) + (export "select-f64-t" (func 8)) + (export "select-funcref" (func 9)) + (export "select-externref" (func 10)) + (export "join-funcnull" (func 12)) + (export "select-trap-left" (func 13)) + (export "select-trap-right" (func 14)) + (export "select-unreached" (func 15)) + (export "select_unreached_result_1" (func 16)) + (export "select_unreached_result_2" (func 17)) + (export "as-select-first" (func 18)) + (export "as-select-mid" (func 19)) + (export "as-select-last" (func 20)) + (export "as-loop-first" (func 21)) + (export "as-loop-mid" (func 22)) + (export "as-loop-last" (func 23)) + (export "as-if-condition" (func 24)) + (export "as-if-then" (func 25)) + (export "as-if-else" (func 26)) + (export "as-br_if-first" (func 27)) + (export "as-br_if-last" (func 28)) + (export "as-br_table-first" (func 29)) + (export "as-br_table-last" (func 30)) + (export "as-call_indirect-first" (func 32)) + (export "as-call_indirect-mid" (func 33)) + (export "as-call_indirect-last" (func 34)) + (export "as-store-first" (func 35)) + (export "as-store-last" (func 36)) + (export "as-memory.grow-value" (func 37)) + (export "as-call-value" (func 39)) + (export "as-return-value" (func 40)) + (export "as-drop-operand" (func 41)) + (export "as-br-value" (func 42)) + (export "as-local.set-value" (func 43)) + (export "as-local.tee-value" (func 44)) + (export "as-global.set-value" (func 45)) + (export "as-load-operand" (func 46)) + (export "as-unary-operand" (func 47)) + (export "as-binary-operand" (func 48)) + (export "as-test-operand" (func 49)) + (export "as-compare-left" (func 50)) + (export "as-compare-right" (func 51)) + (export "as-convert-operand" (func 52)) + (elem (;0;) (i32.const 0) func $dummy) + (elem (;1;) declare func $tf) + (elem (;2;) (table $t) (i32.const 0) func $func) (func $dummy (;0;) (type $t)) (func (;1;) (type 2) (param i32 i32 i32) (result i32) local.get 0 @@ -432,60 +488,4 @@ i32.wrap_i64 end ) - (table $tab (;0;) 1 1 funcref) - (table $t (;1;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "select-i32" (func 1)) - (export "select-i64" (func 2)) - (export "select-f32" (func 3)) - (export "select-f64" (func 4)) - (export "select-i32-t" (func 5)) - (export "select-i64-t" (func 6)) - (export "select-f32-t" (func 7)) - (export "select-f64-t" (func 8)) - (export "select-funcref" (func 9)) - (export "select-externref" (func 10)) - (export "join-funcnull" (func 12)) - (export "select-trap-left" (func 13)) - (export "select-trap-right" (func 14)) - (export "select-unreached" (func 15)) - (export "select_unreached_result_1" (func 16)) - (export "select_unreached_result_2" (func 17)) - (export "as-select-first" (func 18)) - (export "as-select-mid" (func 19)) - (export "as-select-last" (func 20)) - (export "as-loop-first" (func 21)) - (export "as-loop-mid" (func 22)) - (export "as-loop-last" (func 23)) - (export "as-if-condition" (func 24)) - (export "as-if-then" (func 25)) - (export "as-if-else" (func 26)) - (export "as-br_if-first" (func 27)) - (export "as-br_if-last" (func 28)) - (export "as-br_table-first" (func 29)) - (export "as-br_table-last" (func 30)) - (export "as-call_indirect-first" (func 32)) - (export "as-call_indirect-mid" (func 33)) - (export "as-call_indirect-last" (func 34)) - (export "as-store-first" (func 35)) - (export "as-store-last" (func 36)) - (export "as-memory.grow-value" (func 37)) - (export "as-call-value" (func 39)) - (export "as-return-value" (func 40)) - (export "as-drop-operand" (func 41)) - (export "as-br-value" (func 42)) - (export "as-local.set-value" (func 43)) - (export "as-local.tee-value" (func 44)) - (export "as-global.set-value" (func 45)) - (export "as-load-operand" (func 46)) - (export "as-unary-operand" (func 47)) - (export "as-binary-operand" (func 48)) - (export "as-test-operand" (func 49)) - (export "as-compare-left" (func 50)) - (export "as-compare-right" (func 51)) - (export "as-convert-operand" (func 52)) - (elem (;0;) (i32.const 0) func $dummy) - (elem (;1;) declare func $tf) - (elem (;2;) (table $t) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/select.wast/156.print b/tests/snapshots/testsuite/proposals/function-references/select.wast/156.print index 7206792a79..ec6fa70029 100644 --- a/tests/snapshots/testsuite/proposals/function-references/select.wast/156.print +++ b/tests/snapshots/testsuite/proposals/function-references/select.wast/156.print @@ -1,6 +1,7 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table (;0;) 1 funcref) (func (;0;) (type 0) (result i32) unreachable select @@ -55,5 +56,4 @@ call_indirect (type 1) select ) - (table (;0;) 1 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/table-sub.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/table-sub.wast/0.print index cc4f3a21c3..41ace13823 100644 --- a/tests/snapshots/testsuite/proposals/function-references/table-sub.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/table-sub.wast/0.print @@ -1,5 +1,8 @@ (module (type $t (;0;) (func)) + (table $t1 (;0;) 10 funcref) + (table $t2 (;1;) 10 (ref null $t)) + (elem $el (;0;) funcref) (func $f (;0;) (type $t) i32.const 0 i32.const 1 @@ -10,7 +13,4 @@ i32.const 2 table.copy $t1 $t2 ) - (table $t1 (;0;) 10 funcref) - (table $t2 (;1;) 10 (ref null $t)) - (elem $el (;0;) funcref) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/table.wast/29.print b/tests/snapshots/testsuite/proposals/function-references/table.wast/29.print index 3122c840d6..0b18be026e 100644 --- a/tests/snapshots/testsuite/proposals/function-references/table.wast/29.print +++ b/tests/snapshots/testsuite/proposals/function-references/table.wast/29.print @@ -1,6 +1,6 @@ (module (type $f (;0;) (func)) - (func $f (;0;) (type $f)) (global (;0;) (ref $f) ref.func $f) (export "g" (global 0)) + (func $f (;0;) (type $f)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/table.wast/31.print b/tests/snapshots/testsuite/proposals/function-references/table.wast/31.print index 1639a3daa1..14c7c9db29 100644 --- a/tests/snapshots/testsuite/proposals/function-references/table.wast/31.print +++ b/tests/snapshots/testsuite/proposals/function-references/table.wast/31.print @@ -2,6 +2,16 @@ (type $dummy (;0;) (func)) (type (;1;) (func (result funcref))) (import "M" "g" (global $g (;0;) (ref $dummy))) + (table $t1 (;0;) 10 funcref) + (table $t2 (;1;) 10 funcref ref.func $dummy) + (table $t3 (;2;) 10 (ref $dummy) ref.func $dummy) + (table $t4 (;3;) 10 funcref global.get $g) + (table $t5 (;4;) 10 (ref $dummy) global.get $g) + (export "get1" (func 1)) + (export "get2" (func 2)) + (export "get3" (func 3)) + (export "get4" (func 4)) + (export "get5" (func 5)) (func $dummy (;0;) (type $dummy)) (func (;1;) (type 1) (result funcref) i32.const 1 @@ -23,14 +33,4 @@ i32.const 9 table.get $t5 ) - (table $t1 (;0;) 10 funcref) - (table $t2 (;1;) 10 funcref ref.func $dummy) - (table $t3 (;2;) 10 (ref $dummy) ref.func $dummy) - (table $t4 (;3;) 10 funcref global.get $g) - (table $t5 (;4;) 10 (ref $dummy) global.get $g) - (export "get1" (func 1)) - (export "get2" (func 2)) - (export "get3" (func 3)) - (export "get4" (func 4)) - (export "get5" (func 5)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/11.print b/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/11.print index 66a9157ef6..603776e583 100644 --- a/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/11.print +++ b/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/11.print @@ -5,8 +5,8 @@ (type $t1 (;3;) (func (param (ref $s1)) (result (ref $s2)))) (type $t2 (;4;) (func (param (ref $s2)) (result (ref $s1)))) (type (;5;) (func (param (ref $t1)))) - (func (;0;) (type 5) (param (ref $t1))) - (func (;1;) (type 5) (param (ref $t1))) (export "f1" (func 0)) (export "f2" (func 1)) + (func (;0;) (type 5) (param (ref $t1))) + (func (;1;) (type 5) (param (ref $t1))) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/4.print b/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/4.print index c60b8bd8ea..ecb7350560 100644 --- a/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/4.print +++ b/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/4.print @@ -2,6 +2,9 @@ (type $t1 (;0;) (func (param f32 f32))) (type $t2 (;1;) (func (param f32 f32))) (type (;2;) (func)) + (table (;0;) 2 2 funcref) + (export "run" (func 2)) + (elem (;0;) (i32.const 0) func $f1 $f2) (func $f1 (;0;) (type $t1) (param f32 f32)) (func $f2 (;1;) (type $t2) (param f32 f32)) (func (;2;) (type 2) @@ -14,7 +17,4 @@ i32.const 0 call_indirect (type $t2) ) - (table (;0;) 2 2 funcref) - (export "run" (func 2)) - (elem (;0;) (i32.const 0) func $f1 $f2) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/6.print b/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/6.print index 7a8741b793..a9fed0f084 100644 --- a/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/6.print +++ b/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/6.print @@ -5,6 +5,9 @@ (type $t1 (;3;) (func (param (ref $s1)))) (type $t2 (;4;) (func (param (ref $s2)))) (type (;5;) (func)) + (table (;0;) 4 4 funcref) + (export "run" (func 4)) + (elem (;0;) (i32.const 0) func $f1 $f2 $s1 $s2) (func $s1 (;0;) (type $s1) (param i32 (ref $s0))) (func $s2 (;1;) (type $s2) (param i32 (ref $s0))) (func $f1 (;2;) (type $t1) (param (ref $s1))) @@ -35,7 +38,4 @@ i32.const 1 call_indirect (type $t2) ) - (table (;0;) 4 4 funcref) - (export "run" (func 4)) - (elem (;0;) (i32.const 0) func $f1 $f2 $s1 $s2) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/8.print b/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/8.print index f9f69387ba..98744111b1 100644 --- a/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/8.print +++ b/tests/snapshots/testsuite/proposals/function-references/type-equivalence.wast/8.print @@ -1,6 +1,6 @@ (module (type $t1 (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param (ref $t1)))) - (func (;0;) (type 1) (param (ref $t1))) (export "f" (func 0)) + (func (;0;) (type 1) (param (ref $t1))) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/unreached-valid.wast/0.print b/tests/snapshots/testsuite/proposals/function-references/unreached-valid.wast/0.print index 78096b126f..878560637f 100644 --- a/tests/snapshots/testsuite/proposals/function-references/unreached-valid.wast/0.print +++ b/tests/snapshots/testsuite/proposals/function-references/unreached-valid.wast/0.print @@ -3,6 +3,14 @@ (type (;1;) (func)) (type (;2;) (func (result i32))) (type (;3;) (func (result i64))) + (export "select-trap-left" (func 0)) + (export "select-trap-right" (func 1)) + (export "select-unreached" (func 2)) + (export "select-unreached-result1" (func 3)) + (export "select-unreached-result2" (func 4)) + (export "select-unreached-num" (func 5)) + (export "select-unreached-ref" (func 6)) + (export "call_ref-unreached" (func 7)) (func (;0;) (type $t) (param $cond i32) (result i32) unreachable i32.const 0 @@ -64,12 +72,4 @@ unreachable call_ref $t ) - (export "select-trap-left" (func 0)) - (export "select-trap-right" (func 1)) - (export "select-unreached" (func 2)) - (export "select-unreached-result1" (func 3)) - (export "select-unreached-result2" (func 4)) - (export "select-unreached-num" (func 5)) - (export "select-unreached-ref" (func 6)) - (export "call_ref-unreached" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/function-references/unreached-valid.wast/10.print b/tests/snapshots/testsuite/proposals/function-references/unreached-valid.wast/10.print index 3baf0b6d5d..6595b36d4b 100644 --- a/tests/snapshots/testsuite/proposals/function-references/unreached-valid.wast/10.print +++ b/tests/snapshots/testsuite/proposals/function-references/unreached-valid.wast/10.print @@ -1,5 +1,6 @@ (module (type (;0;) (func)) + (export "meet-bottom" (func 0)) (func (;0;) (type 0) block (result f64) ;; label = @1 block (result f32) ;; label = @2 @@ -12,5 +13,4 @@ end drop ) - (export "meet-bottom" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/array.wast/13.print b/tests/snapshots/testsuite/proposals/gc/array.wast/13.print index 422c19dbe9..9330371daf 100644 --- a/tests/snapshots/testsuite/proposals/gc/array.wast/13.print +++ b/tests/snapshots/testsuite/proposals/gc/array.wast/13.print @@ -8,6 +8,11 @@ (type (;6;) (func (param i32 f32) (result f32))) (type (;7;) (func (param (ref array)) (result i32))) (type (;8;) (func (result i32))) + (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) array.new_fixed $vec 2) + (export "new" (func $new)) + (export "get" (func 2)) + (export "set_get" (func 4)) + (export "len" (func 6)) (func $new (;0;) (type 2) (result (ref $vec)) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) @@ -49,9 +54,4 @@ call $new call $len ) - (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) array.new_fixed $vec 2) - (export "new" (func $new)) - (export "get" (func 2)) - (export "set_get" (func 4)) - (export "len" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/array.wast/21.print b/tests/snapshots/testsuite/proposals/gc/array.wast/21.print index 927e520fc5..b5206580e6 100644 --- a/tests/snapshots/testsuite/proposals/gc/array.wast/21.print +++ b/tests/snapshots/testsuite/proposals/gc/array.wast/21.print @@ -8,6 +8,11 @@ (type (;6;) (func (param i32 i32) (result i32))) (type (;7;) (func (param (ref array)) (result i32))) (type (;8;) (func (result i32))) + (export "new" (func $new)) + (export "get_u" (func 2)) + (export "get_s" (func 4)) + (export "set_get" (func 6)) + (export "len" (func 8)) (func $new (;0;) (type 2) (result (ref $vec)) i32.const 1 i32.const 3 @@ -58,10 +63,5 @@ call $new call $len ) - (export "new" (func $new)) - (export "get_u" (func 2)) - (export "get_s" (func 4)) - (export "set_get" (func 6)) - (export "len" (func 8)) (data $d (;0;) "\00\01\02\ff\04") ) diff --git a/tests/snapshots/testsuite/proposals/gc/array.wast/31.print b/tests/snapshots/testsuite/proposals/gc/array.wast/31.print index 74f431fa8a..5e314e04f1 100644 --- a/tests/snapshots/testsuite/proposals/gc/array.wast/31.print +++ b/tests/snapshots/testsuite/proposals/gc/array.wast/31.print @@ -13,6 +13,11 @@ (type (;11;) (func (param i32 i32 i32) (result i32))) (type (;12;) (func (param (ref array)) (result i32))) (type (;13;) (func (result i32))) + (export "new" (func $new)) + (export "get" (func 4)) + (export "set_get" (func 6)) + (export "len" (func 8)) + (elem $e (;0;) (ref $bvec) (item i32.const 7 i32.const 3 array.new $bvec) (item i32.const 1 i32.const 2 array.new_fixed $bvec 2)) (func $new (;0;) (type 5) (result (ref $vec)) i32.const 0 i32.const 2 @@ -71,9 +76,4 @@ call $new call $len ) - (export "new" (func $new)) - (export "get" (func 4)) - (export "set_get" (func 6)) - (export "len" (func 8)) - (elem $e (;0;) (ref $bvec) (item i32.const 7 i32.const 3 array.new $bvec) (item i32.const 1 i32.const 2 array.new_fixed $bvec 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/array.wast/43.print b/tests/snapshots/testsuite/proposals/gc/array.wast/43.print index 395ecc153f..b1b4bbc0e7 100644 --- a/tests/snapshots/testsuite/proposals/gc/array.wast/43.print +++ b/tests/snapshots/testsuite/proposals/gc/array.wast/43.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (array (mut i32))) (type (;1;) (func)) + (export "array.get-null" (func 0)) + (export "array.set-null" (func 1)) (func (;0;) (type 1) (local (ref null $t)) local.get 0 @@ -15,6 +17,4 @@ i32.const 0 array.set $t ) - (export "array.get-null" (func 0)) - (export "array.set-null" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/array.wast/5.print b/tests/snapshots/testsuite/proposals/gc/array.wast/5.print index 97a18bb8f7..9af66edd68 100644 --- a/tests/snapshots/testsuite/proposals/gc/array.wast/5.print +++ b/tests/snapshots/testsuite/proposals/gc/array.wast/5.print @@ -8,6 +8,12 @@ (type (;6;) (func (param i32 f32) (result f32))) (type (;7;) (func (param (ref array)) (result i32))) (type (;8;) (func (result i32))) + (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) i32.const 3 array.new $vec) + (global (;1;) (ref $vec) i32.const 3 array.new_default $vec) + (export "new" (func $new)) + (export "get" (func 2)) + (export "set_get" (func 4)) + (export "len" (func 6)) (func $new (;0;) (type 2) (result (ref $vec)) i32.const 3 array.new_default $vec @@ -46,10 +52,4 @@ call $new call $len ) - (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) i32.const 3 array.new $vec) - (global (;1;) (ref $vec) i32.const 3 array.new_default $vec) - (export "new" (func $new)) - (export "get" (func 2)) - (export "set_get" (func 4)) - (export "len" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/array_copy.wast/4.print b/tests/snapshots/testsuite/proposals/gc/array_copy.wast/4.print index 8c7870cc0e..88b330bbf8 100644 --- a/tests/snapshots/testsuite/proposals/gc/array_copy.wast/4.print +++ b/tests/snapshots/testsuite/proposals/gc/array_copy.wast/4.print @@ -4,6 +4,14 @@ (type (;2;) (func (param i32) (result i32))) (type (;3;) (func)) (type (;4;) (func (param i32 i32 i32))) + (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) + (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) + (export "array_get_nth" (func 0)) + (export "array_copy-null-left" (func 1)) + (export "array_copy-null-right" (func 2)) + (export "array_copy" (func 3)) + (export "array_copy_overlap_test-1" (func 4)) + (export "array_copy_overlap_test-2" (func 5)) (func (;0;) (type 2) (param $1 i32) (result i32) global.get $g_arr8_mut local.get $1 @@ -63,13 +71,5 @@ local.get $1 global.set $g_arr8_mut ) - (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) - (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) - (export "array_get_nth" (func 0)) - (export "array_copy-null-left" (func 1)) - (export "array_copy-null-right" (func 2)) - (export "array_copy" (func 3)) - (export "array_copy_overlap_test-1" (func 4)) - (export "array_copy_overlap_test-2" (func 5)) (data $d1 (;0;) "abcdefghijkl") ) diff --git a/tests/snapshots/testsuite/proposals/gc/array_fill.wast/3.print b/tests/snapshots/testsuite/proposals/gc/array_fill.wast/3.print index e6c8602d9c..99aeeb7dbc 100644 --- a/tests/snapshots/testsuite/proposals/gc/array_fill.wast/3.print +++ b/tests/snapshots/testsuite/proposals/gc/array_fill.wast/3.print @@ -4,6 +4,11 @@ (type (;2;) (func (param i32) (result i32))) (type (;3;) (func)) (type (;4;) (func (param i32 i32 i32))) + (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) + (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) + (export "array_get_nth" (func 0)) + (export "array_fill-null" (func 1)) + (export "array_fill" (func 2)) (func (;0;) (type 2) (param $1 i32) (result i32) global.get $g_arr8_mut local.get $1 @@ -23,9 +28,4 @@ local.get $3 array.fill $arr8_mut ) - (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) - (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) - (export "array_get_nth" (func 0)) - (export "array_fill-null" (func 1)) - (export "array_fill" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/array_init_data.wast/2.print b/tests/snapshots/testsuite/proposals/gc/array_init_data.wast/2.print index a9e9f95451..3cb4860adf 100644 --- a/tests/snapshots/testsuite/proposals/gc/array_init_data.wast/2.print +++ b/tests/snapshots/testsuite/proposals/gc/array_init_data.wast/2.print @@ -5,6 +5,15 @@ (type (;3;) (func (param i32) (result i32))) (type (;4;) (func)) (type (;5;) (func (param i32 i32 i32))) + (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) + (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) + (global $g_arr16_mut (;2;) (ref $arr16_mut) i32.const 6 array.new_default $arr16_mut) + (export "array_get_nth" (func 0)) + (export "array_get_nth_i16" (func 1)) + (export "array_init_data-null" (func 2)) + (export "array_init_data" (func 3)) + (export "array_init_data_i16" (func 4)) + (export "drop_segs" (func 5)) (func (;0;) (type 3) (param $1 i32) (result i32) global.get $g_arr8_mut local.get $1 @@ -39,14 +48,5 @@ (func (;5;) (type 4) data.drop $d1 ) - (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) - (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) - (global $g_arr16_mut (;2;) (ref $arr16_mut) i32.const 6 array.new_default $arr16_mut) - (export "array_get_nth" (func 0)) - (export "array_get_nth_i16" (func 1)) - (export "array_init_data-null" (func 2)) - (export "array_init_data" (func 3)) - (export "array_init_data_i16" (func 4)) - (export "drop_segs" (func 5)) (data $d1 (;0;) "abcdefghijkl") ) diff --git a/tests/snapshots/testsuite/proposals/gc/array_init_elem.wast/3.print b/tests/snapshots/testsuite/proposals/gc/array_init_elem.wast/3.print index 392c3fbeb5..38bf0f2e68 100644 --- a/tests/snapshots/testsuite/proposals/gc/array_init_elem.wast/3.print +++ b/tests/snapshots/testsuite/proposals/gc/array_init_elem.wast/3.print @@ -4,6 +4,14 @@ (type $arrref_mut (;2;) (array (mut funcref))) (type (;3;) (func (param i32))) (type (;4;) (func (param i32 i32 i32))) + (table $t (;0;) 1 funcref) + (global $g_arrref (;0;) (ref $arrref) ref.func $dummy i32.const 12 array.new $arrref) + (global $g_arrref_mut (;1;) (ref $arrref_mut) i32.const 12 array.new_default $arrref_mut) + (export "array_call_nth" (func 1)) + (export "array_init_elem-null" (func 2)) + (export "array_init_elem" (func 3)) + (export "drop_segs" (func 4)) + (elem $e1 (;0;) func $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy) (func $dummy (;0;) (type $t_f)) (func (;1;) (type 3) (param $1 i32) i32.const 0 @@ -31,12 +39,4 @@ (func (;4;) (type $t_f) elem.drop $e1 ) - (table $t (;0;) 1 funcref) - (global $g_arrref (;0;) (ref $arrref) ref.func $dummy i32.const 12 array.new $arrref) - (global $g_arrref_mut (;1;) (ref $arrref_mut) i32.const 12 array.new_default $arrref_mut) - (export "array_call_nth" (func 1)) - (export "array_init_elem-null" (func 2)) - (export "array_init_elem" (func 3)) - (export "drop_segs" (func 4)) - (elem $e1 (;0;) func $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy) ) diff --git a/tests/snapshots/testsuite/proposals/gc/binary.wast/110.print b/tests/snapshots/testsuite/proposals/gc/binary.wast/110.print index c6566d0ced..d90addbeb7 100644 --- a/tests/snapshots/testsuite/proposals/gc/binary.wast/110.print +++ b/tests/snapshots/testsuite/proposals/gc/binary.wast/110.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (start 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/binary.wast/68.print b/tests/snapshots/testsuite/proposals/gc/binary.wast/68.print index 40e23c382f..f60ef5c6a4 100644 --- a/tests/snapshots/testsuite/proposals/gc/binary.wast/68.print +++ b/tests/snapshots/testsuite/proposals/gc/binary.wast/68.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/binary.wast/69.print b/tests/snapshots/testsuite/proposals/gc/binary.wast/69.print index 149738a620..b959a17a4a 100644 --- a/tests/snapshots/testsuite/proposals/gc/binary.wast/69.print +++ b/tests/snapshots/testsuite/proposals/gc/binary.wast/69.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/binary.wast/99.print b/tests/snapshots/testsuite/proposals/gc/binary.wast/99.print index a6b9947353..e3c7ff0b0d 100644 --- a/tests/snapshots/testsuite/proposals/gc/binary.wast/99.print +++ b/tests/snapshots/testsuite/proposals/gc/binary.wast/99.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/br_if.wast/0.print b/tests/snapshots/testsuite/proposals/gc/br_if.wast/0.print index a5c16483dd..7f0cd64211 100644 --- a/tests/snapshots/testsuite/proposals/gc/br_if.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/br_if.wast/0.print @@ -8,6 +8,70 @@ (type (;6;) (func (param i32) (result i32))) (type (;7;) (func (param i32))) (type (;8;) (func (param i32 i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "type-i32" (func 1)) + (export "type-i64" (func 2)) + (export "type-f32" (func 3)) + (export "type-f64" (func 4)) + (export "type-i32-value" (func 5)) + (export "type-i64-value" (func 6)) + (export "type-f32-value" (func 7)) + (export "type-f64-value" (func 8)) + (export "as-block-first" (func 9)) + (export "as-block-mid" (func 10)) + (export "as-block-last" (func 11)) + (export "as-block-first-value" (func 12)) + (export "as-block-mid-value" (func 13)) + (export "as-block-last-value" (func 14)) + (export "as-loop-first" (func 15)) + (export "as-loop-mid" (func 16)) + (export "as-loop-last" (func 17)) + (export "as-br-value" (func 18)) + (export "as-br_if-cond" (func 19)) + (export "as-br_if-value" (func 20)) + (export "as-br_if-value-cond" (func 21)) + (export "as-br_table-index" (func 22)) + (export "as-br_table-value" (func 23)) + (export "as-br_table-value-index" (func 24)) + (export "as-return-value" (func 25)) + (export "as-if-cond" (func 26)) + (export "as-if-then" (func 27)) + (export "as-if-else" (func 28)) + (export "as-select-first" (func 29)) + (export "as-select-second" (func 30)) + (export "as-select-cond" (func 31)) + (export "as-call-first" (func 33)) + (export "as-call-mid" (func 34)) + (export "as-call-last" (func 35)) + (export "as-call_indirect-func" (func 37)) + (export "as-call_indirect-first" (func 38)) + (export "as-call_indirect-mid" (func 39)) + (export "as-call_indirect-last" (func 40)) + (export "as-local.set-value" (func 41)) + (export "as-local.tee-value" (func 42)) + (export "as-global.set-value" (func 43)) + (export "as-load-address" (func 44)) + (export "as-loadN-address" (func 45)) + (export "as-store-address" (func 46)) + (export "as-store-value" (func 47)) + (export "as-storeN-address" (func 48)) + (export "as-storeN-value" (func 49)) + (export "as-unary-operand" (func 50)) + (export "as-binary-left" (func 51)) + (export "as-binary-right" (func 52)) + (export "as-test-operand" (func 53)) + (export "as-compare-left" (func 54)) + (export "as-compare-right" (func 55)) + (export "as-memory.grow-size" (func 56)) + (export "nested-block-value" (func 57)) + (export "nested-br-value" (func 58)) + (export "nested-br_if-value" (func 59)) + (export "nested-br_if-value-cond" (func 60)) + (export "nested-br_table-value" (func 61)) + (export "nested-br_table-value-index" (func 62)) + (elem (;0;) (i32.const 0) func $func) (func $dummy (;0;) (type 1)) (func (;1;) (type 1) block ;; label = @1 @@ -636,68 +700,4 @@ end i32.add ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "type-i32" (func 1)) - (export "type-i64" (func 2)) - (export "type-f32" (func 3)) - (export "type-f64" (func 4)) - (export "type-i32-value" (func 5)) - (export "type-i64-value" (func 6)) - (export "type-f32-value" (func 7)) - (export "type-f64-value" (func 8)) - (export "as-block-first" (func 9)) - (export "as-block-mid" (func 10)) - (export "as-block-last" (func 11)) - (export "as-block-first-value" (func 12)) - (export "as-block-mid-value" (func 13)) - (export "as-block-last-value" (func 14)) - (export "as-loop-first" (func 15)) - (export "as-loop-mid" (func 16)) - (export "as-loop-last" (func 17)) - (export "as-br-value" (func 18)) - (export "as-br_if-cond" (func 19)) - (export "as-br_if-value" (func 20)) - (export "as-br_if-value-cond" (func 21)) - (export "as-br_table-index" (func 22)) - (export "as-br_table-value" (func 23)) - (export "as-br_table-value-index" (func 24)) - (export "as-return-value" (func 25)) - (export "as-if-cond" (func 26)) - (export "as-if-then" (func 27)) - (export "as-if-else" (func 28)) - (export "as-select-first" (func 29)) - (export "as-select-second" (func 30)) - (export "as-select-cond" (func 31)) - (export "as-call-first" (func 33)) - (export "as-call-mid" (func 34)) - (export "as-call-last" (func 35)) - (export "as-call_indirect-func" (func 37)) - (export "as-call_indirect-first" (func 38)) - (export "as-call_indirect-mid" (func 39)) - (export "as-call_indirect-last" (func 40)) - (export "as-local.set-value" (func 41)) - (export "as-local.tee-value" (func 42)) - (export "as-global.set-value" (func 43)) - (export "as-load-address" (func 44)) - (export "as-loadN-address" (func 45)) - (export "as-store-address" (func 46)) - (export "as-store-value" (func 47)) - (export "as-storeN-address" (func 48)) - (export "as-storeN-value" (func 49)) - (export "as-unary-operand" (func 50)) - (export "as-binary-left" (func 51)) - (export "as-binary-right" (func 52)) - (export "as-test-operand" (func 53)) - (export "as-compare-left" (func 54)) - (export "as-compare-right" (func 55)) - (export "as-memory.grow-size" (func 56)) - (export "nested-block-value" (func 57)) - (export "nested-br-value" (func 58)) - (export "nested-br_if-value" (func 59)) - (export "nested-br_if-value-cond" (func 60)) - (export "nested-br_table-value" (func 61)) - (export "nested-br_table-value-index" (func 62)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/gc/br_on_cast.wast/0.print b/tests/snapshots/testsuite/proposals/gc/br_on_cast.wast/0.print index b04f4513ea..3b0ae0ec4b 100644 --- a/tests/snapshots/testsuite/proposals/gc/br_on_cast.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/br_on_cast.wast/0.print @@ -6,6 +6,14 @@ (type (;4;) (func (param i32) (result i32))) (type (;5;) (func (param structref) (result (ref $st)))) (type (;6;) (func (param structref) (result (ref $at)))) + (table (;0;) 10 anyref) + (export "init" (func 1)) + (export "br_on_null" (func 2)) + (export "br_on_i31" (func 3)) + (export "br_on_struct" (func 4)) + (export "br_on_array" (func 5)) + (export "null-diff" (func 6)) + (elem (;0;) declare func $f) (func $f (;0;) (type $ft) (result i32) i32.const 9 ) @@ -95,12 +103,4 @@ i32.const 1 return ) - (table (;0;) 10 anyref) - (export "init" (func 1)) - (export "br_on_null" (func 2)) - (export "br_on_i31" (func 3)) - (export "br_on_struct" (func 4)) - (export "br_on_array" (func 5)) - (export "null-diff" (func 6)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/br_on_cast.wast/27.print b/tests/snapshots/testsuite/proposals/gc/br_on_cast.wast/27.print index 94106f3988..5b7b1e9078 100644 --- a/tests/snapshots/testsuite/proposals/gc/br_on_cast.wast/27.print +++ b/tests/snapshots/testsuite/proposals/gc/br_on_cast.wast/27.print @@ -8,6 +8,9 @@ (type $t0' (;6;) (sub $t0 (struct))) (type $t4 (;7;) (sub $t0' (struct (field i32) (field i32)))) (type (;8;) (func)) + (table (;0;) 20 structref) + (export "test-sub" (func 1)) + (export "test-canon" (func 2)) (func $init (;0;) (type 8) i32.const 0 struct.new_default $t0 @@ -262,7 +265,4 @@ end unreachable ) - (table (;0;) 20 structref) - (export "test-sub" (func 1)) - (export "test-canon" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/br_on_cast_fail.wast/0.print b/tests/snapshots/testsuite/proposals/gc/br_on_cast_fail.wast/0.print index 6074cb4bf0..36bca64cb8 100644 --- a/tests/snapshots/testsuite/proposals/gc/br_on_cast_fail.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/br_on_cast_fail.wast/0.print @@ -6,6 +6,14 @@ (type (;4;) (func (param i32) (result i32))) (type (;5;) (func (param structref) (result (ref $st)))) (type (;6;) (func (param structref) (result (ref $at)))) + (table (;0;) 10 anyref) + (export "init" (func 1)) + (export "br_on_non_null" (func 2)) + (export "br_on_non_i31" (func 3)) + (export "br_on_non_struct" (func 4)) + (export "br_on_non_array" (func 5)) + (export "null-diff" (func 6)) + (elem (;0;) declare func $f) (func $f (;0;) (type $ft) (result i32) i32.const 9 ) @@ -99,12 +107,4 @@ i32.const 0 return ) - (table (;0;) 10 anyref) - (export "init" (func 1)) - (export "br_on_non_null" (func 2)) - (export "br_on_non_i31" (func 3)) - (export "br_on_non_struct" (func 4)) - (export "br_on_non_array" (func 5)) - (export "null-diff" (func 6)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/br_on_cast_fail.wast/27.print b/tests/snapshots/testsuite/proposals/gc/br_on_cast_fail.wast/27.print index 48f56789a3..246f1f5049 100644 --- a/tests/snapshots/testsuite/proposals/gc/br_on_cast_fail.wast/27.print +++ b/tests/snapshots/testsuite/proposals/gc/br_on_cast_fail.wast/27.print @@ -8,6 +8,9 @@ (type $t0' (;6;) (sub $t0 (struct))) (type $t4 (;7;) (sub $t0' (struct (field i32) (field i32)))) (type (;8;) (func)) + (table (;0;) 20 structref) + (export "test-sub" (func 1)) + (export "test-canon" (func 2)) (func $init (;0;) (type 8) i32.const 0 struct.new_default $t0 @@ -275,7 +278,4 @@ end unreachable ) - (table (;0;) 20 structref) - (export "test-sub" (func 1)) - (export "test-canon" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/br_on_non_null.wast/0.print b/tests/snapshots/testsuite/proposals/gc/br_on_non_null.wast/0.print index c31166a513..51d7148ce1 100644 --- a/tests/snapshots/testsuite/proposals/gc/br_on_non_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/br_on_non_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) block $l (result (ref $t)) local.get $r @@ -44,9 +49,4 @@ end call_ref $t ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/br_on_non_null.wast/6.print b/tests/snapshots/testsuite/proposals/gc/br_on_non_null.wast/6.print index fd25db678c..80cea5ec37 100644 --- a/tests/snapshots/testsuite/proposals/gc/br_on_non_null.wast/6.print +++ b/tests/snapshots/testsuite/proposals/gc/br_on_non_null.wast/6.print @@ -2,6 +2,9 @@ (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 (ref null $t)) (result i32))) (type (;2;) (func (result i32 (ref $t)))) + (export "args-null" (func 2)) + (export "args-f" (func 3)) + (elem (;0;) func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 local.get 0 @@ -26,7 +29,4 @@ ref.func $f call $a ) - (export "args-null" (func 2)) - (export "args-f" (func 3)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/br_on_null.wast/0.print b/tests/snapshots/testsuite/proposals/gc/br_on_null.wast/0.print index be60e9af88..8d9be86a0a 100644 --- a/tests/snapshots/testsuite/proposals/gc/br_on_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/br_on_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) block $l local.get $r @@ -44,9 +49,4 @@ end i32.const -1 ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/br_on_null.wast/6.print b/tests/snapshots/testsuite/proposals/gc/br_on_null.wast/6.print index ffab737fcf..b7124d4dac 100644 --- a/tests/snapshots/testsuite/proposals/gc/br_on_null.wast/6.print +++ b/tests/snapshots/testsuite/proposals/gc/br_on_null.wast/6.print @@ -1,6 +1,9 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 (ref null $t)) (result i32))) + (export "args-null" (func 2)) + (export "args-f" (func 3)) + (elem (;0;) func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 local.get 0 @@ -25,7 +28,4 @@ ref.func $f call $a ) - (export "args-null" (func 2)) - (export "args-f" (func 3)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/br_table.wast/0.print b/tests/snapshots/testsuite/proposals/gc/br_table.wast/0.print index 69ccd9ac2f..7f30574d1a 100644 --- a/tests/snapshots/testsuite/proposals/gc/br_table.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/br_table.wast/0.print @@ -9,6 +9,87 @@ (type (;7;) (func (param i32 i32) (result i32))) (type (;8;) (func (param i32 externref) (result externref))) (type (;9;) (func (param i32) (result funcref))) + (table (;0;) 1 1 funcref) + (table $t (;1;) 1 1 (ref null $t)) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "type-i32" (func 1)) + (export "type-i64" (func 2)) + (export "type-f32" (func 3)) + (export "type-f64" (func 4)) + (export "type-i32-value" (func 5)) + (export "type-i64-value" (func 6)) + (export "type-f32-value" (func 7)) + (export "type-f64-value" (func 8)) + (export "empty" (func 9)) + (export "empty-value" (func 10)) + (export "singleton" (func 11)) + (export "singleton-value" (func 12)) + (export "multiple" (func 13)) + (export "multiple-value" (func 14)) + (export "large" (func 15)) + (export "as-block-first" (func 16)) + (export "as-block-mid" (func 17)) + (export "as-block-last" (func 18)) + (export "as-block-value" (func 19)) + (export "as-loop-first" (func 20)) + (export "as-loop-mid" (func 21)) + (export "as-loop-last" (func 22)) + (export "as-br-value" (func 23)) + (export "as-br_if-cond" (func 24)) + (export "as-br_if-value" (func 25)) + (export "as-br_if-value-cond" (func 26)) + (export "as-br_table-index" (func 27)) + (export "as-br_table-value" (func 28)) + (export "as-br_table-value-index" (func 29)) + (export "as-return-value" (func 30)) + (export "as-if-cond" (func 31)) + (export "as-if-then" (func 32)) + (export "as-if-else" (func 33)) + (export "as-select-first" (func 34)) + (export "as-select-second" (func 35)) + (export "as-select-cond" (func 36)) + (export "as-call-first" (func 38)) + (export "as-call-mid" (func 39)) + (export "as-call-last" (func 40)) + (export "as-call_indirect-first" (func 41)) + (export "as-call_indirect-mid" (func 42)) + (export "as-call_indirect-last" (func 43)) + (export "as-call_indirect-func" (func 44)) + (export "as-local.set-value" (func 45)) + (export "as-local.tee-value" (func 46)) + (export "as-global.set-value" (func 47)) + (export "as-load-address" (func 48)) + (export "as-loadN-address" (func 49)) + (export "as-store-address" (func 50)) + (export "as-store-value" (func 51)) + (export "as-storeN-address" (func 52)) + (export "as-storeN-value" (func 53)) + (export "as-unary-operand" (func 54)) + (export "as-binary-left" (func 55)) + (export "as-binary-right" (func 56)) + (export "as-test-operand" (func 57)) + (export "as-compare-left" (func 58)) + (export "as-compare-right" (func 59)) + (export "as-convert-operand" (func 60)) + (export "as-memory.grow-size" (func 61)) + (export "nested-block-value" (func 62)) + (export "nested-br-value" (func 63)) + (export "nested-br_if-value" (func 64)) + (export "nested-br_if-value-cond" (func 65)) + (export "nested-br_table-value" (func 66)) + (export "nested-br_table-value-index" (func 67)) + (export "nested-br_table-loop-block" (func 68)) + (export "meet-externref" (func 69)) + (export "meet-bottom" (func 70)) + (export "meet-funcref-1" (func 72)) + (export "meet-funcref-2" (func 73)) + (export "meet-funcref-3" (func 74)) + (export "meet-funcref-4" (func 75)) + (export "meet-nullref" (func 76)) + (export "meet-multi-ref" (func 77)) + (elem (;0;) (i32.const 0) func $f) + (elem (;1;) (table $t) (i32.const 0) (ref null $t) (ref.func $tf)) (func $dummy (;0;) (type $t)) (func (;1;) (type $t) block ;; label = @1 @@ -844,85 +925,4 @@ end end ) - (table (;0;) 1 1 funcref) - (table $t (;1;) 1 1 (ref null $t)) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "type-i32" (func 1)) - (export "type-i64" (func 2)) - (export "type-f32" (func 3)) - (export "type-f64" (func 4)) - (export "type-i32-value" (func 5)) - (export "type-i64-value" (func 6)) - (export "type-f32-value" (func 7)) - (export "type-f64-value" (func 8)) - (export "empty" (func 9)) - (export "empty-value" (func 10)) - (export "singleton" (func 11)) - (export "singleton-value" (func 12)) - (export "multiple" (func 13)) - (export "multiple-value" (func 14)) - (export "large" (func 15)) - (export "as-block-first" (func 16)) - (export "as-block-mid" (func 17)) - (export "as-block-last" (func 18)) - (export "as-block-value" (func 19)) - (export "as-loop-first" (func 20)) - (export "as-loop-mid" (func 21)) - (export "as-loop-last" (func 22)) - (export "as-br-value" (func 23)) - (export "as-br_if-cond" (func 24)) - (export "as-br_if-value" (func 25)) - (export "as-br_if-value-cond" (func 26)) - (export "as-br_table-index" (func 27)) - (export "as-br_table-value" (func 28)) - (export "as-br_table-value-index" (func 29)) - (export "as-return-value" (func 30)) - (export "as-if-cond" (func 31)) - (export "as-if-then" (func 32)) - (export "as-if-else" (func 33)) - (export "as-select-first" (func 34)) - (export "as-select-second" (func 35)) - (export "as-select-cond" (func 36)) - (export "as-call-first" (func 38)) - (export "as-call-mid" (func 39)) - (export "as-call-last" (func 40)) - (export "as-call_indirect-first" (func 41)) - (export "as-call_indirect-mid" (func 42)) - (export "as-call_indirect-last" (func 43)) - (export "as-call_indirect-func" (func 44)) - (export "as-local.set-value" (func 45)) - (export "as-local.tee-value" (func 46)) - (export "as-global.set-value" (func 47)) - (export "as-load-address" (func 48)) - (export "as-loadN-address" (func 49)) - (export "as-store-address" (func 50)) - (export "as-store-value" (func 51)) - (export "as-storeN-address" (func 52)) - (export "as-storeN-value" (func 53)) - (export "as-unary-operand" (func 54)) - (export "as-binary-left" (func 55)) - (export "as-binary-right" (func 56)) - (export "as-test-operand" (func 57)) - (export "as-compare-left" (func 58)) - (export "as-compare-right" (func 59)) - (export "as-convert-operand" (func 60)) - (export "as-memory.grow-size" (func 61)) - (export "nested-block-value" (func 62)) - (export "nested-br-value" (func 63)) - (export "nested-br_if-value" (func 64)) - (export "nested-br_if-value-cond" (func 65)) - (export "nested-br_table-value" (func 66)) - (export "nested-br_table-value-index" (func 67)) - (export "nested-br_table-loop-block" (func 68)) - (export "meet-externref" (func 69)) - (export "meet-bottom" (func 70)) - (export "meet-funcref-1" (func 72)) - (export "meet-funcref-2" (func 73)) - (export "meet-funcref-3" (func 74)) - (export "meet-funcref-4" (func 75)) - (export "meet-nullref" (func 76)) - (export "meet-multi-ref" (func 77)) - (elem (;0;) (i32.const 0) func $f) - (elem (;1;) (table $t) (i32.const 0) (ref null $t) (ref.func $tf)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/call_ref.wast/0.print b/tests/snapshots/testsuite/proposals/gc/call_ref.wast/0.print index b983464ae1..1c26a475dc 100644 --- a/tests/snapshots/testsuite/proposals/gc/call_ref.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/call_ref.wast/0.print @@ -4,6 +4,23 @@ (type $lll (;2;) (func (param i64 i64) (result i64))) (type (;3;) (func (param (ref $ii) i32) (result i32))) (type (;4;) (func (result i32))) + (global $fac (;0;) (ref $ll) ref.func $fac) + (global $fac-acc (;1;) (ref $lll) ref.func $fac-acc) + (global $fib (;2;) (ref $ll) ref.func $fib) + (global $even (;3;) (ref $ll) ref.func $even) + (global $odd (;4;) (ref $ll) ref.func $odd) + (export "run" (func 3)) + (export "null" (func 4)) + (export "fac" (func $fac)) + (export "fac-acc" (func $fac-acc)) + (export "fib" (func $fib)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) declare func $f $g) + (elem (;1;) declare func $fac) + (elem (;2;) declare func $fac-acc) + (elem (;3;) declare func $fib) + (elem (;4;) declare func $even $odd) (func $apply (;0;) (type 3) (param $f (ref $ii)) (param $x i32) (result i32) local.get $x local.get $f @@ -113,21 +130,4 @@ call_ref $ll end ) - (global $fac (;0;) (ref $ll) ref.func $fac) - (global $fac-acc (;1;) (ref $lll) ref.func $fac-acc) - (global $fib (;2;) (ref $ll) ref.func $fib) - (global $even (;3;) (ref $ll) ref.func $even) - (global $odd (;4;) (ref $ll) ref.func $odd) - (export "run" (func 3)) - (export "null" (func 4)) - (export "fac" (func $fac)) - (export "fac-acc" (func $fac-acc)) - (export "fib" (func $fib)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) declare func $f $g) - (elem (;1;) declare func $fac) - (elem (;2;) declare func $fac-acc) - (elem (;3;) declare func $fib) - (elem (;4;) declare func $even $odd) ) diff --git a/tests/snapshots/testsuite/proposals/gc/call_ref.wast/25.print b/tests/snapshots/testsuite/proposals/gc/call_ref.wast/25.print index 5908d8dfc5..e48a6f1dc3 100644 --- a/tests/snapshots/testsuite/proposals/gc/call_ref.wast/25.print +++ b/tests/snapshots/testsuite/proposals/gc/call_ref.wast/25.print @@ -1,9 +1,9 @@ (module (type $t (;0;) (func)) (type (;1;) (func (result i32))) + (export "unreachable" (func 0)) (func (;0;) (type 1) (result i32) unreachable call_ref $t ) - (export "unreachable" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/call_ref.wast/27.print b/tests/snapshots/testsuite/proposals/gc/call_ref.wast/27.print index cc20d75bd2..fc7b7707a2 100644 --- a/tests/snapshots/testsuite/proposals/gc/call_ref.wast/27.print +++ b/tests/snapshots/testsuite/proposals/gc/call_ref.wast/27.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -9,6 +11,4 @@ ref.func $f call_ref $t ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/call_ref.wast/29.print b/tests/snapshots/testsuite/proposals/gc/call_ref.wast/29.print index e159e08980..ab1a399a40 100644 --- a/tests/snapshots/testsuite/proposals/gc/call_ref.wast/29.print +++ b/tests/snapshots/testsuite/proposals/gc/call_ref.wast/29.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -12,6 +14,4 @@ drop i32.const 0 ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/0.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/0.print index cfd9e1e289..3e45036cd8 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/0.print @@ -1,7 +1,5 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 10 funcref) (elem (;0;) funcref) (elem (;1;) funcref (ref.func $f) (ref.func $f) (ref.null func) (ref.func $g)) @@ -64,4 +62,6 @@ (elem $d2 (;58;) declare funcref (ref.func $f) (ref.func $f) (ref.null func) (ref.func $g)) (elem $d3 (;59;) declare func) (elem $d4 (;60;) declare func $f $f $g $g) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/1.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/1.print index 80603750ee..21462afadc 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/1.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/1.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 3 3 funcref) (elem (;0;) (i32.const 0) funcref (ref.func $f) (ref.null func) (ref.func $g)) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/104.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/104.print index 731f09400d..7de0f1cd97 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/104.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/104.print @@ -1,5 +1,9 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "call-overwritten" (func 2)) + (elem (;0;) (i32.const 9) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -10,8 +14,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call-overwritten" (func 2)) - (elem (;0;) (i32.const 9) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/106.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/106.print index 0f8475a309..4f81cc2d61 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/106.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/106.print @@ -1,6 +1,9 @@ (module (type $out-i32 (;0;) (func (result i32))) (import "spectest" "table" (table (;0;) 10 funcref)) + (export "call-overwritten-element" (func 2)) + (elem (;0;) (i32.const 9) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -11,7 +14,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (export "call-overwritten-element" (func 2)) - (elem (;0;) (i32.const 9) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/108.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/108.print index a15bdac62f..c507078bb1 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/108.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/108.print @@ -1,5 +1,12 @@ (module $module1 (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "shared-table" (table 0)) + (export "call-7" (func 2)) + (export "call-8" (func 3)) + (export "call-9" (func 4)) + (elem (;0;) (i32.const 8) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -18,11 +25,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "shared-table" (table 0)) - (export "call-7" (func 2)) - (export "call-8" (func 3)) - (export "call-9" (func 4)) - (elem (;0;) (i32.const 8) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/113.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/113.print index 1a2c3eac24..a42e074452 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/113.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/113.print @@ -1,12 +1,12 @@ (module $module2 (type $out-i32 (;0;) (func (result i32))) (import "module1" "shared-table" (table (;0;) 10 funcref)) + (elem (;0;) (i32.const 7) func $const-i32-c) + (elem (;1;) (i32.const 8) func $const-i32-d) (func $const-i32-c (;0;) (type $out-i32) (result i32) i32.const 67 ) (func $const-i32-d (;1;) (type $out-i32) (result i32) i32.const 68 ) - (elem (;0;) (i32.const 7) func $const-i32-c) - (elem (;1;) (i32.const 8) func $const-i32-d) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/117.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/117.print index 050fba0094..6789cf7c21 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/117.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/117.print @@ -1,12 +1,12 @@ (module $module3 (type $out-i32 (;0;) (func (result i32))) (import "module1" "shared-table" (table (;0;) 10 funcref)) + (elem (;0;) (i32.const 8) func $const-i32-e) + (elem (;1;) (i32.const 9) func $const-i32-f) (func $const-i32-e (;0;) (type $out-i32) (result i32) i32.const 69 ) (func $const-i32-f (;1;) (type $out-i32) (result i32) i32.const 70 ) - (elem (;0;) (i32.const 8) func $const-i32-e) - (elem (;1;) (i32.const 9) func $const-i32-f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/12.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/12.print index af187450f7..c2f37af59b 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/12.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/12.print @@ -1,5 +1,10 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 11 funcref) + (export "call-7" (func 2)) + (export "call-9" (func 3)) + (elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a)) + (elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func)) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -14,9 +19,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 11 funcref) - (export "call-7" (func 2)) - (export "call-9" (func 3)) - (elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a)) - (elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/125.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/125.print index 5345072664..92a31401e3 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/125.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/125.print @@ -1,6 +1,10 @@ (module $m (type (;0;) (func (param i32) (result externref))) (type (;1;) (func (param i32 externref))) + (table $t (;0;) 2 externref) + (export "table" (table $t)) + (export "get" (func 0)) + (export "set" (func 1)) (func (;0;) (type 0) (param $i i32) (result externref) local.get $i table.get $t @@ -10,8 +14,4 @@ local.get $x table.set $t ) - (table $t (;0;) 2 externref) - (export "table" (table $t)) - (export "get" (func 0)) - (export "set" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/136.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/136.print index ae97b235a4..f6c3e3683d 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/136.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/136.print @@ -1,8 +1,8 @@ (module $module4 (type (;0;) (func (result i32))) + (global (;0;) funcref ref.func 0) + (export "f" (global 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) - (global (;0;) funcref ref.func 0) - (export "f" (global 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/138.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/138.print index f0fecff658..e491ba806f 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/138.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/138.print @@ -1,11 +1,11 @@ (module (type $out-i32 (;0;) (func (result i32))) (import "module4" "f" (global (;0;) funcref)) + (table (;0;) 10 funcref) + (export "call_imported_elem" (func 0)) + (elem (;0;) (i32.const 0) funcref (global.get 0)) (func (;0;) (type $out-i32) (result i32) i32.const 0 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call_imported_elem" (func 0)) - (elem (;0;) (i32.const 0) funcref (global.get 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/15.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/15.print index e5caa87c45..58c05938f2 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/15.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/15.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 1 funcref) (global (;0;) i32 i32.const 0) (elem (;0;) (global.get 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/16.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/16.print index 0bd5f164f8..0eff5942b6 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/16.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/16.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 1 funcref) (global $g (;0;) i32 i32.const 0) (elem (;0;) (global.get $g) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/17.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/17.print index 1036785ea1..0ff426ccf4 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/17.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/17.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/18.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/18.print index 0598af2315..cede495716 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/18.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/18.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/2.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/2.print index 26f29f7dec..4f86280a3f 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/2.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/2.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 10 (ref func) ref.func $f) (elem (;0;) (i32.const 3) func $g) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/23.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/23.print index 689d51c8e5..c3a0516a05 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/23.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/23.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/24.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/24.print index 91f122086a..ac71e6c1fa 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/24.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/24.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 100 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/25.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/25.print index 016199a256..f7a2bf5894 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/25.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/25.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 1) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/26.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/26.print index 6fd3ef6a92..31a035fc64 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/26.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/26.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 30 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 1) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/27.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/27.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/27.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/27.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/28.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/28.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/28.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/28.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/29.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/29.print index 291c1feae1..adb2b4e692 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/29.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/29.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/3.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/3.print index 8742f0998f..e4d89860d7 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/3.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/3.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/30.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/30.print index 291c1feae1..adb2b4e692 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/30.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/30.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/31.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/31.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/31.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/31.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/32.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/32.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/32.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/32.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/33.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/33.print index 110c202713..3f6c004be4 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/33.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/33.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/34.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/34.print index 110c202713..3f6c004be4 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/34.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/34.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/35.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/35.print index dd7905c968..4913137806 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/35.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/35.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/36.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/36.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/36.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/36.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/37.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/37.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/37.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/37.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/38.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/38.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/38.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/38.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/39.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/39.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/39.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/39.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/4.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/4.print index e932b67331..0b5ef9c184 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/4.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/4.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/40.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/40.print index f50e33eabb..06aabee6b6 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/40.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/40.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/41.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/41.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/41.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/41.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/42.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/42.print index 15000f0b21..187bbfcc10 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/42.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/42.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/43.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/43.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/43.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/43.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/44.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/44.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/44.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/44.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/45.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/45.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/45.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/45.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/46.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/46.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/46.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/46.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/47.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/47.print index 5c49397d5d..13ea981519 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/47.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/47.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/48.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/48.print index 5c49397d5d..13ea981519 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/48.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/48.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/49.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/49.print index a27d903b90..cacad77028 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/49.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/49.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/5.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/5.print index 7ec65dcffb..f3742f6da7 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/5.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/5.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 0) func $f) (elem (;1;) (i32.const 3) func $f) (elem (;2;) (i32.const 7) func $f) (elem (;3;) (i32.const 5) func $f) (elem (;4;) (i32.const 3) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/50.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/50.print index a27d903b90..cacad77028 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/50.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/50.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/51.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/51.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/51.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/51.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/52.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/52.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/52.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/52.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/53.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/53.print index 80ae3bd47f..a17517ada0 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/53.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/53.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/54.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/54.print index 80ae3bd47f..a17517ada0 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/54.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/54.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/55.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/55.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/55.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/55.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/56.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/56.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/56.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/56.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/57.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/57.print index 608ee1aff3..38eb42e996 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/57.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/57.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/58.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/58.print index 608ee1aff3..38eb42e996 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/58.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/58.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/6.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/6.print index 107f8e49e9..8dddf1ec50 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/6.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/6.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) (elem (;1;) (i32.const 3) func $f) (elem (;2;) (i32.const 7) func $f) (elem (;3;) (i32.const 3) func $f) (elem (;4;) (i32.const 5) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/61.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/61.print index 4d04cddbcd..63071007d3 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/61.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/61.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/62.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/62.print index 4d04cddbcd..63071007d3 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/62.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/62.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/63.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/63.print index 693f397a20..c304de3a38 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/63.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/63.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/64.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/64.print index 693f397a20..c304de3a38 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/64.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/64.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/65.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/65.print index f8f71b170b..05e25013bc 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/65.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/65.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/66.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/66.print index f8f71b170b..05e25013bc 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/66.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/66.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/7.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/7.print index c1e1f7bb60..a0fc1f553a 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/7.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/7.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) (import "spectest" "global_i32" (global (;0;) i32)) - (func $f (;0;) (type 0)) (table (;0;) 1000 funcref) (elem (;0;) (global.get 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/79.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/79.print index 4176dfb406..019e8e94d5 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/79.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/79.print @@ -1,5 +1,8 @@ (module (type (;0;) (func)) + (table (;0;) 10 funcref) + (export "init" (func 1)) + (elem $e (;0;) (i32.const 0) func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -7,7 +10,4 @@ i32.const 1 table.init $e ) - (table (;0;) 10 funcref) - (export "init" (func 1)) - (elem $e (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/8.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/8.print index d9740764aa..bacc6c8181 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/8.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/8.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) (import "spectest" "global_i32" (global $g (;0;) i32)) - (func $f (;0;) (type 0)) (table (;0;) 1000 funcref) (elem (;0;) (global.get $g) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/81.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/81.print index ea36739cb4..7c136d3305 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/81.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/81.print @@ -1,5 +1,8 @@ (module (type (;0;) (func)) + (table (;0;) 10 funcref) + (export "init" (func 1)) + (elem $e (;0;) declare func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -7,7 +10,4 @@ i32.const 1 table.init $e ) - (table (;0;) 10 funcref) - (export "init" (func 1)) - (elem $e (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/elem.wast/9.print b/tests/snapshots/testsuite/proposals/gc/elem.wast/9.print index 5e224c4ddf..0fc85614cb 100644 --- a/tests/snapshots/testsuite/proposals/gc/elem.wast/9.print +++ b/tests/snapshots/testsuite/proposals/gc/elem.wast/9.print @@ -1,5 +1,10 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "call-7" (func 2)) + (export "call-9" (func 3)) + (elem (;0;) (i32.const 7) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -14,9 +19,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call-7" (func 2)) - (export "call-9" (func 3)) - (elem (;0;) (i32.const 7) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/gc/extern.wast/0.print b/tests/snapshots/testsuite/proposals/gc/extern.wast/0.print index fe70b4f112..5a855566e6 100644 --- a/tests/snapshots/testsuite/proposals/gc/extern.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/extern.wast/0.print @@ -7,6 +7,13 @@ (type (;5;) (func (param anyref) (result externref))) (type (;6;) (func (param i32) (result externref))) (type (;7;) (func (param i32) (result anyref))) + (table (;0;) 10 anyref) + (export "init" (func 1)) + (export "internalize" (func 2)) + (export "externalize" (func 3)) + (export "externalize-i" (func 4)) + (export "externalize-ii" (func 5)) + (elem (;0;) declare func $f) (func $f (;0;) (type $ft)) (func (;1;) (type 3) (param $x externref) i32.const 0 @@ -47,11 +54,4 @@ extern.convert_any any.convert_extern ) - (table (;0;) 10 anyref) - (export "init" (func 1)) - (export "internalize" (func 2)) - (export "externalize" (func 3)) - (export "externalize-i" (func 4)) - (export "externalize-ii" (func 5)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/func.wast/0.print b/tests/snapshots/testsuite/proposals/gc/func.wast/0.print index 87259d3a49..2abed53f69 100644 --- a/tests/snapshots/testsuite/proposals/gc/func.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/func.wast/0.print @@ -28,6 +28,76 @@ (type (;26;) (func (param i32) (result i32 i32))) (type (;27;) (func (result i32 i32))) (type (;28;) (func (param i32 i64 f32 f32 i32 f64 f32 i32 i32 i32 f32 f64 f64 f64 i32 i32 f32) (result f64 f32 i32 i32 i32 i64 f32 i32 i32 f32 f64 f64 i32 f32 i32 f64))) + (export "f" (func 2)) + (export "g" (func $h)) + (export "type-use-1" (func 25)) + (export "type-use-2" (func 26)) + (export "type-use-3" (func 27)) + (export "type-use-4" (func 28)) + (export "type-use-5" (func 29)) + (export "type-use-6" (func 30)) + (export "type-use-7" (func 31)) + (export "local-first-i32" (func 36)) + (export "local-first-i64" (func 37)) + (export "local-first-f32" (func 38)) + (export "local-first-f64" (func 39)) + (export "local-second-i32" (func 40)) + (export "local-second-i64" (func 41)) + (export "local-second-f32" (func 42)) + (export "local-second-f64" (func 43)) + (export "local-mixed" (func 44)) + (export "param-first-i32" (func 45)) + (export "param-first-i64" (func 46)) + (export "param-first-f32" (func 47)) + (export "param-first-f64" (func 48)) + (export "param-second-i32" (func 49)) + (export "param-second-i64" (func 50)) + (export "param-second-f32" (func 51)) + (export "param-second-f64" (func 52)) + (export "param-mixed" (func 53)) + (export "empty" (func 54)) + (export "value-void" (func 55)) + (export "value-i32" (func 56)) + (export "value-i64" (func 57)) + (export "value-f32" (func 58)) + (export "value-f64" (func 59)) + (export "value-i32-f64" (func 60)) + (export "value-i32-i32-i32" (func 61)) + (export "value-block-void" (func 62)) + (export "value-block-i32" (func 63)) + (export "value-block-i32-i64" (func 64)) + (export "return-empty" (func 65)) + (export "return-i32" (func 66)) + (export "return-i64" (func 67)) + (export "return-f32" (func 68)) + (export "return-f64" (func 69)) + (export "return-i32-f64" (func 70)) + (export "return-i32-i32-i32" (func 71)) + (export "return-block-i32" (func 72)) + (export "return-block-i32-i64" (func 73)) + (export "break-empty" (func 74)) + (export "break-i32" (func 75)) + (export "break-i64" (func 76)) + (export "break-f32" (func 77)) + (export "break-f64" (func 78)) + (export "break-i32-f64" (func 79)) + (export "break-i32-i32-i32" (func 80)) + (export "break-block-i32" (func 81)) + (export "break-block-i32-i64" (func 82)) + (export "break-br_if-empty" (func 83)) + (export "break-br_if-num" (func 84)) + (export "break-br_if-num-num" (func 85)) + (export "break-br_table-empty" (func 86)) + (export "break-br_table-num" (func 87)) + (export "break-br_table-num-num" (func 88)) + (export "break-br_table-nested-empty" (func 89)) + (export "break-br_table-nested-num" (func 90)) + (export "break-br_table-nested-num-num" (func 91)) + (export "large-sig" (func 92)) + (export "init-local-i32" (func 93)) + (export "init-local-i64" (func 94)) + (export "init-local-f32" (func 95)) + (export "init-local-f64" (func 96)) (func $dummy (;0;) (type $sig)) (func (;1;) (type $sig)) (func (;2;) (type $sig)) @@ -432,74 +502,4 @@ (local f64) local.get 0 ) - (export "f" (func 2)) - (export "g" (func $h)) - (export "type-use-1" (func 25)) - (export "type-use-2" (func 26)) - (export "type-use-3" (func 27)) - (export "type-use-4" (func 28)) - (export "type-use-5" (func 29)) - (export "type-use-6" (func 30)) - (export "type-use-7" (func 31)) - (export "local-first-i32" (func 36)) - (export "local-first-i64" (func 37)) - (export "local-first-f32" (func 38)) - (export "local-first-f64" (func 39)) - (export "local-second-i32" (func 40)) - (export "local-second-i64" (func 41)) - (export "local-second-f32" (func 42)) - (export "local-second-f64" (func 43)) - (export "local-mixed" (func 44)) - (export "param-first-i32" (func 45)) - (export "param-first-i64" (func 46)) - (export "param-first-f32" (func 47)) - (export "param-first-f64" (func 48)) - (export "param-second-i32" (func 49)) - (export "param-second-i64" (func 50)) - (export "param-second-f32" (func 51)) - (export "param-second-f64" (func 52)) - (export "param-mixed" (func 53)) - (export "empty" (func 54)) - (export "value-void" (func 55)) - (export "value-i32" (func 56)) - (export "value-i64" (func 57)) - (export "value-f32" (func 58)) - (export "value-f64" (func 59)) - (export "value-i32-f64" (func 60)) - (export "value-i32-i32-i32" (func 61)) - (export "value-block-void" (func 62)) - (export "value-block-i32" (func 63)) - (export "value-block-i32-i64" (func 64)) - (export "return-empty" (func 65)) - (export "return-i32" (func 66)) - (export "return-i64" (func 67)) - (export "return-f32" (func 68)) - (export "return-f64" (func 69)) - (export "return-i32-f64" (func 70)) - (export "return-i32-i32-i32" (func 71)) - (export "return-block-i32" (func 72)) - (export "return-block-i32-i64" (func 73)) - (export "break-empty" (func 74)) - (export "break-i32" (func 75)) - (export "break-i64" (func 76)) - (export "break-f32" (func 77)) - (export "break-f64" (func 78)) - (export "break-i32-f64" (func 79)) - (export "break-i32-i32-i32" (func 80)) - (export "break-block-i32" (func 81)) - (export "break-block-i32-i64" (func 82)) - (export "break-br_if-empty" (func 83)) - (export "break-br_if-num" (func 84)) - (export "break-br_if-num-num" (func 85)) - (export "break-br_table-empty" (func 86)) - (export "break-br_table-num" (func 87)) - (export "break-br_table-num-num" (func 88)) - (export "break-br_table-nested-empty" (func 89)) - (export "break-br_table-nested-num" (func 90)) - (export "break-br_table-nested-num-num" (func 91)) - (export "large-sig" (func 92)) - (export "init-local-i32" (func 93)) - (export "init-local-i64" (func 94)) - (export "init-local-f32" (func 95)) - (export "init-local-f64" (func 96)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/func.wast/93.print b/tests/snapshots/testsuite/proposals/gc/func.wast/93.print index 8dfe06bc6c..3a1d573d47 100644 --- a/tests/snapshots/testsuite/proposals/gc/func.wast/93.print +++ b/tests/snapshots/testsuite/proposals/gc/func.wast/93.print @@ -1,6 +1,9 @@ (module (type $proc (;0;) (func (result i32))) (type $sig (;1;) (func (param i32) (result i32))) + (export "f" (func 0)) + (export "g" (func 2)) + (export "p" (func 3)) (func (;0;) (type $sig) (param $var i32) (result i32) (local i32) local.get 1 @@ -19,7 +22,4 @@ local.set $var local.get $var ) - (export "f" (func 0)) - (export "g" (func 2)) - (export "p" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/func.wast/97.print b/tests/snapshots/testsuite/proposals/gc/func.wast/97.print index 2d86f1a6cf..65433cdaf1 100644 --- a/tests/snapshots/testsuite/proposals/gc/func.wast/97.print +++ b/tests/snapshots/testsuite/proposals/gc/func.wast/97.print @@ -3,6 +3,12 @@ (type $empty-sig-duplicate (;1;) (func)) (type $complex-sig-duplicate (;2;) (func (param i64 i64 f64 i64 f64 i64 f32 i32))) (type (;3;) (func (param f64 i64 f64 i64 f64 i64 f32 i32))) + (table (;0;) 7 7 funcref) + (export "signature-explicit-reused" (func 7)) + (export "signature-implicit-reused" (func 8)) + (export "signature-explicit-duplicate" (func 9)) + (export "signature-implicit-duplicate" (func 10)) + (elem (;0;) (i32.const 0) func $complex-sig-3 $empty-sig-2 $complex-sig-1 $complex-sig-3 $empty-sig-1 $complex-sig-4 $complex-sig-5) (func $empty-sig-1 (;0;) (type $sig)) (func $complex-sig-1 (;1;) (type 3) (param f64 i64 f64 i64 f64 i64 f32 i32)) (func $empty-sig-2 (;2;) (type $sig)) @@ -74,10 +80,4 @@ i32.const 6 call_indirect (type $complex-sig-duplicate) ) - (table (;0;) 7 7 funcref) - (export "signature-explicit-reused" (func 7)) - (export "signature-implicit-reused" (func 8)) - (export "signature-explicit-duplicate" (func 9)) - (export "signature-implicit-duplicate" (func 10)) - (elem (;0;) (i32.const 0) func $complex-sig-3 $empty-sig-2 $complex-sig-1 $complex-sig-3 $empty-sig-1 $complex-sig-4 $complex-sig-5) ) diff --git a/tests/snapshots/testsuite/proposals/gc/global.wast/0.print b/tests/snapshots/testsuite/proposals/gc/global.wast/0.print index 0c5f587f6a..95bc129c4c 100644 --- a/tests/snapshots/testsuite/proposals/gc/global.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/global.wast/0.print @@ -14,6 +14,69 @@ (type (;12;) (func (param i32) (result i32))) (import "spectest" "global_i32" (global (;0;) i32)) (import "spectest" "global_i64" (global (;1;) i64)) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;2;) i32 i32.const -2) + (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;)) + (global (;4;) f64 f64.const -0x1p+2 (;=-4;)) + (global $b (;5;) i64 i64.const -5) + (global $x (;6;) (mut i32) i32.const -12) + (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;)) + (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;)) + (global $y (;9;) (mut i64) i64.const -15) + (global $z1 (;10;) i32 global.get 0) + (global $z2 (;11;) i64 global.get 1) + (global $r (;12;) externref ref.null extern) + (global $mr (;13;) (mut externref) ref.null extern) + (global (;14;) funcref ref.null func) + (export "get-a" (func 0)) + (export "get-b" (func 1)) + (export "get-r" (func 2)) + (export "get-mr" (func 3)) + (export "get-x" (func 4)) + (export "get-y" (func 5)) + (export "get-z1" (func 6)) + (export "get-z2" (func 7)) + (export "set-x" (func 8)) + (export "set-y" (func 9)) + (export "set-mr" (func 10)) + (export "get-3" (func 11)) + (export "get-4" (func 12)) + (export "get-7" (func 13)) + (export "get-8" (func 14)) + (export "set-7" (func 15)) + (export "set-8" (func 16)) + (export "as-select-first" (func 18)) + (export "as-select-mid" (func 19)) + (export "as-select-last" (func 20)) + (export "as-loop-first" (func 21)) + (export "as-loop-mid" (func 22)) + (export "as-loop-last" (func 23)) + (export "as-if-condition" (func 24)) + (export "as-if-then" (func 25)) + (export "as-if-else" (func 26)) + (export "as-br_if-first" (func 27)) + (export "as-br_if-last" (func 28)) + (export "as-br_table-first" (func 29)) + (export "as-br_table-last" (func 30)) + (export "as-call_indirect-first" (func 32)) + (export "as-call_indirect-mid" (func 33)) + (export "as-call_indirect-last" (func 34)) + (export "as-store-first" (func 35)) + (export "as-store-last" (func 36)) + (export "as-load-operand" (func 37)) + (export "as-memory.grow-value" (func 38)) + (export "as-call-value" (func 40)) + (export "as-return-value" (func 41)) + (export "as-drop-operand" (func 42)) + (export "as-br-value" (func 43)) + (export "as-local.set-value" (func 44)) + (export "as-local.tee-value" (func 45)) + (export "as-global.set-value" (func 46)) + (export "as-unary-operand" (func 47)) + (export "as-binary-operand" (func 48)) + (export "as-compare-operand" (func 49)) + (elem (;0;) (i32.const 0) func $func) (func (;0;) (type 1) (result i32) global.get $a ) @@ -262,67 +325,4 @@ i32.const 1 i32.gt_u ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;2;) i32 i32.const -2) - (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;)) - (global (;4;) f64 f64.const -0x1p+2 (;=-4;)) - (global $b (;5;) i64 i64.const -5) - (global $x (;6;) (mut i32) i32.const -12) - (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;)) - (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;)) - (global $y (;9;) (mut i64) i64.const -15) - (global $z1 (;10;) i32 global.get 0) - (global $z2 (;11;) i64 global.get 1) - (global $r (;12;) externref ref.null extern) - (global $mr (;13;) (mut externref) ref.null extern) - (global (;14;) funcref ref.null func) - (export "get-a" (func 0)) - (export "get-b" (func 1)) - (export "get-r" (func 2)) - (export "get-mr" (func 3)) - (export "get-x" (func 4)) - (export "get-y" (func 5)) - (export "get-z1" (func 6)) - (export "get-z2" (func 7)) - (export "set-x" (func 8)) - (export "set-y" (func 9)) - (export "set-mr" (func 10)) - (export "get-3" (func 11)) - (export "get-4" (func 12)) - (export "get-7" (func 13)) - (export "get-8" (func 14)) - (export "set-7" (func 15)) - (export "set-8" (func 16)) - (export "as-select-first" (func 18)) - (export "as-select-mid" (func 19)) - (export "as-select-last" (func 20)) - (export "as-loop-first" (func 21)) - (export "as-loop-mid" (func 22)) - (export "as-loop-last" (func 23)) - (export "as-if-condition" (func 24)) - (export "as-if-then" (func 25)) - (export "as-if-else" (func 26)) - (export "as-br_if-first" (func 27)) - (export "as-br_if-last" (func 28)) - (export "as-br_table-first" (func 29)) - (export "as-br_table-last" (func 30)) - (export "as-call_indirect-first" (func 32)) - (export "as-call_indirect-mid" (func 33)) - (export "as-call_indirect-last" (func 34)) - (export "as-store-first" (func 35)) - (export "as-store-last" (func 36)) - (export "as-load-operand" (func 37)) - (export "as-memory.grow-value" (func 38)) - (export "as-call-value" (func 40)) - (export "as-return-value" (func 41)) - (export "as-drop-operand" (func 42)) - (export "as-br-value" (func 43)) - (export "as-local.set-value" (func 44)) - (export "as-local.tee-value" (func 45)) - (export "as-global.set-value" (func 46)) - (export "as-unary-operand" (func 47)) - (export "as-binary-operand" (func 48)) - (export "as-compare-operand" (func 49)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/gc/global.wast/109.print b/tests/snapshots/testsuite/proposals/gc/global.wast/109.print index 7b328ddb8e..823cc2fd34 100644 --- a/tests/snapshots/testsuite/proposals/gc/global.wast/109.print +++ b/tests/snapshots/testsuite/proposals/gc/global.wast/109.print @@ -3,15 +3,6 @@ (type (;1;) (func (param i32) (result funcref))) (type (;2;) (func (param i32) (result i32))) (import "G" "g" (global $g0 (;0;) i32)) - (func $f (;0;) (type 0)) - (func (;1;) (type 1) (param $i i32) (result funcref) - local.get $i - table.get $t - ) - (func (;2;) (type 2) (param $i i32) (result i32) - local.get $i - i32.load - ) (table $t (;0;) 10 funcref ref.null func) (memory $m (;0;) 1) (global $g1 (;1;) i32 i32.const 8) @@ -22,6 +13,15 @@ (export "get-data" (func 2)) (elem (;0;) (global.get $g2) funcref (ref.func $f)) (elem (;1;) (global.get $g3) funcref (global.get $gf)) + (func $f (;0;) (type 0)) + (func (;1;) (type 1) (param $i i32) (result funcref) + local.get $i + table.get $t + ) + (func (;2;) (type 2) (param $i i32) (result i32) + local.get $i + i32.load + ) (data (;0;) (global.get $g2) "DDDD") (data (;1;) (global.get $g3) "\88\88\88\88") ) diff --git a/tests/snapshots/testsuite/proposals/gc/i31.wast/0.print b/tests/snapshots/testsuite/proposals/gc/i31.wast/0.print index b8e421f5a6..4f05ff42c7 100644 --- a/tests/snapshots/testsuite/proposals/gc/i31.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/i31.wast/0.print @@ -4,6 +4,15 @@ (type (;2;) (func (result i32))) (type (;3;) (func (result i32 i32))) (type (;4;) (func (param i32))) + (global $i (;0;) (ref i31) i32.const 2 ref.i31) + (global $m (;1;) (mut (ref i31)) i32.const 3 ref.i31) + (export "new" (func 0)) + (export "get_u" (func 1)) + (export "get_s" (func 2)) + (export "get_u-null" (func 3)) + (export "get_s-null" (func 4)) + (export "get_globals" (func 5)) + (export "set_global" (func 6)) (func (;0;) (type 0) (param $i i32) (result (ref i31)) local.get $i ref.i31 @@ -37,13 +46,4 @@ ref.i31 global.set $m ) - (global $i (;0;) (ref i31) i32.const 2 ref.i31) - (global $m (;1;) (mut (ref i31)) i32.const 3 ref.i31) - (export "new" (func 0)) - (export "get_u" (func 1)) - (export "get_s" (func 2)) - (export "get_u-null" (func 3)) - (export "get_s-null" (func 4)) - (export "get_globals" (func 5)) - (export "set_global" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/i31.wast/23.print b/tests/snapshots/testsuite/proposals/gc/i31.wast/23.print index 5870a4a9f6..70b4717eb2 100644 --- a/tests/snapshots/testsuite/proposals/gc/i31.wast/23.print +++ b/tests/snapshots/testsuite/proposals/gc/i31.wast/23.print @@ -3,6 +3,15 @@ (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) + (table $table (;0;) 3 10 i31ref) + (export "size" (func 0)) + (export "get" (func 1)) + (export "grow" (func 2)) + (export "fill" (func 3)) + (export "copy" (func 4)) + (export "init" (func 5)) + (elem (;0;) (i32.const 0) i31ref (item i32.const 999 ref.i31) (item i32.const 888 ref.i31) (item i32.const 777 ref.i31)) + (elem $elem (;1;) i31ref (item i32.const 123 ref.i31) (item i32.const 456 ref.i31) (item i32.const 789 ref.i31)) (func (;0;) (type 0) (result i32) table.size $table ) @@ -36,13 +45,4 @@ local.get 2 table.init $elem ) - (table $table (;0;) 3 10 i31ref) - (export "size" (func 0)) - (export "get" (func 1)) - (export "grow" (func 2)) - (export "fill" (func 3)) - (export "copy" (func 4)) - (export "init" (func 5)) - (elem (;0;) (i32.const 0) i31ref (item i32.const 999 ref.i31) (item i32.const 888 ref.i31) (item i32.const 777 ref.i31)) - (elem $elem (;1;) i31ref (item i32.const 123 ref.i31) (item i32.const 456 ref.i31) (item i32.const 789 ref.i31)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/i31.wast/44.print b/tests/snapshots/testsuite/proposals/gc/i31.wast/44.print index 35188e1d32..f45fc3051b 100644 --- a/tests/snapshots/testsuite/proposals/gc/i31.wast/44.print +++ b/tests/snapshots/testsuite/proposals/gc/i31.wast/44.print @@ -1,11 +1,11 @@ (module $i31ref_of_global_table_initializer (type (;0;) (func (param i32) (result i32))) (import "env" "g" (global $g (;0;) i32)) + (table $t (;0;) 3 3 (ref i31) global.get $g ref.i31) + (export "get" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 table.get $t i31.get_u ) - (table $t (;0;) 3 3 (ref i31) global.get $g ref.i31) - (export "get" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/i31.wast/48.print b/tests/snapshots/testsuite/proposals/gc/i31.wast/48.print index 7559027361..14ec1282df 100644 --- a/tests/snapshots/testsuite/proposals/gc/i31.wast/48.print +++ b/tests/snapshots/testsuite/proposals/gc/i31.wast/48.print @@ -1,10 +1,10 @@ (module $i31ref_of_global_global_initializer (type (;0;) (func (result i32))) (import "env" "g" (global $g0 (;0;) i32)) + (global $g1 (;1;) i31ref global.get $g0 ref.i31) + (export "get" (func 0)) (func (;0;) (type 0) (result i32) global.get $g1 i31.get_u ) - (global $g1 (;1;) i31ref global.get $g0 ref.i31) - (export "get" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/i31.wast/50.print b/tests/snapshots/testsuite/proposals/gc/i31.wast/50.print index d246bb351b..990f397321 100644 --- a/tests/snapshots/testsuite/proposals/gc/i31.wast/50.print +++ b/tests/snapshots/testsuite/proposals/gc/i31.wast/50.print @@ -1,6 +1,10 @@ (module $anyref_global_of_i31ref (type (;0;) (func (result i32 i32))) (type (;1;) (func (param i32))) + (global $c (;0;) anyref i32.const 1234 ref.i31) + (global $m (;1;) (mut anyref) i32.const 5678 ref.i31) + (export "get_globals" (func 0)) + (export "set_global" (func 1)) (func (;0;) (type 0) (result i32 i32) global.get $c ref.cast i31ref @@ -14,8 +18,4 @@ ref.i31 global.set $m ) - (global $c (;0;) anyref i32.const 1234 ref.i31) - (global $m (;1;) (mut anyref) i32.const 5678 ref.i31) - (export "get_globals" (func 0)) - (export "set_global" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/i31.wast/54.print b/tests/snapshots/testsuite/proposals/gc/i31.wast/54.print index cc3ea9e481..b8065640f2 100644 --- a/tests/snapshots/testsuite/proposals/gc/i31.wast/54.print +++ b/tests/snapshots/testsuite/proposals/gc/i31.wast/54.print @@ -3,6 +3,15 @@ (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) + (table $table (;0;) 3 10 anyref) + (export "size" (func 0)) + (export "get" (func 1)) + (export "grow" (func 2)) + (export "fill" (func 3)) + (export "copy" (func 4)) + (export "init" (func 5)) + (elem (;0;) (i32.const 0) i31ref (item i32.const 999 ref.i31) (item i32.const 888 ref.i31) (item i32.const 777 ref.i31)) + (elem $elem (;1;) i31ref (item i32.const 123 ref.i31) (item i32.const 456 ref.i31) (item i32.const 789 ref.i31)) (func (;0;) (type 0) (result i32) table.size $table ) @@ -37,13 +46,4 @@ local.get 2 table.init $elem ) - (table $table (;0;) 3 10 anyref) - (export "size" (func 0)) - (export "get" (func 1)) - (export "grow" (func 2)) - (export "fill" (func 3)) - (export "copy" (func 4)) - (export "init" (func 5)) - (elem (;0;) (i32.const 0) i31ref (item i32.const 999 ref.i31) (item i32.const 888 ref.i31) (item i32.const 777 ref.i31)) - (elem $elem (;1;) i31ref (item i32.const 123 ref.i31) (item i32.const 456 ref.i31) (item i32.const 789 ref.i31)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/if.wast/0.print b/tests/snapshots/testsuite/proposals/gc/if.wast/0.print index a9941caedc..57caff7d3a 100644 --- a/tests/snapshots/testsuite/proposals/gc/if.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/if.wast/0.print @@ -15,6 +15,60 @@ (type (;13;) (func (param i64 i64 i32) (result i64 i32))) (type (;14;) (func (param i64 i64) (result i64))) (type (;15;) (func (param i64) (result i64))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "empty" (func 1)) + (export "singular" (func 2)) + (export "multi" (func 3)) + (export "nested" (func 4)) + (export "as-select-first" (func 5)) + (export "as-select-mid" (func 6)) + (export "as-select-last" (func 7)) + (export "as-loop-first" (func 8)) + (export "as-loop-mid" (func 9)) + (export "as-loop-last" (func 10)) + (export "as-if-condition" (func 11)) + (export "as-br_if-first" (func 12)) + (export "as-br_if-last" (func 13)) + (export "as-br_table-first" (func 14)) + (export "as-br_table-last" (func 15)) + (export "as-call_indirect-first" (func 17)) + (export "as-call_indirect-mid" (func 18)) + (export "as-call_indirect-last" (func 19)) + (export "as-store-first" (func 20)) + (export "as-store-last" (func 21)) + (export "as-memory.grow-value" (func 22)) + (export "as-call-value" (func 24)) + (export "as-return-value" (func 25)) + (export "as-drop-operand" (func 26)) + (export "as-br-value" (func 27)) + (export "as-local.set-value" (func 28)) + (export "as-local.tee-value" (func 29)) + (export "as-global.set-value" (func 30)) + (export "as-load-operand" (func 31)) + (export "as-unary-operand" (func 32)) + (export "as-binary-operand" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-operand" (func 35)) + (export "as-binary-operands" (func 36)) + (export "as-compare-operands" (func 37)) + (export "as-mixed-operands" (func 38)) + (export "break-bare" (func 39)) + (export "break-value" (func 40)) + (export "break-multi-value" (func 41)) + (export "param" (func 42)) + (export "params" (func 43)) + (export "params-id" (func 44)) + (export "param-break" (func 45)) + (export "params-break" (func 46)) + (export "params-id-break" (func 47)) + (export "effects" (func 48)) + (export "add64_u_with_carry" (func $add64_u_with_carry)) + (export "add64_u_saturated" (func $add64_u_saturated)) + (export "type-use" (func 51)) + (export "atypical-condition" (func 52)) + (elem (;0;) (i32.const 0) func $func) (func $dummy (;0;) (type $block-sig-1)) (func (;1;) (type $block-sig-3) (param i32) local.get 0 @@ -873,58 +927,4 @@ else end ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "empty" (func 1)) - (export "singular" (func 2)) - (export "multi" (func 3)) - (export "nested" (func 4)) - (export "as-select-first" (func 5)) - (export "as-select-mid" (func 6)) - (export "as-select-last" (func 7)) - (export "as-loop-first" (func 8)) - (export "as-loop-mid" (func 9)) - (export "as-loop-last" (func 10)) - (export "as-if-condition" (func 11)) - (export "as-br_if-first" (func 12)) - (export "as-br_if-last" (func 13)) - (export "as-br_table-first" (func 14)) - (export "as-br_table-last" (func 15)) - (export "as-call_indirect-first" (func 17)) - (export "as-call_indirect-mid" (func 18)) - (export "as-call_indirect-last" (func 19)) - (export "as-store-first" (func 20)) - (export "as-store-last" (func 21)) - (export "as-memory.grow-value" (func 22)) - (export "as-call-value" (func 24)) - (export "as-return-value" (func 25)) - (export "as-drop-operand" (func 26)) - (export "as-br-value" (func 27)) - (export "as-local.set-value" (func 28)) - (export "as-local.tee-value" (func 29)) - (export "as-global.set-value" (func 30)) - (export "as-load-operand" (func 31)) - (export "as-unary-operand" (func 32)) - (export "as-binary-operand" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-operand" (func 35)) - (export "as-binary-operands" (func 36)) - (export "as-compare-operands" (func 37)) - (export "as-mixed-operands" (func 38)) - (export "break-bare" (func 39)) - (export "break-value" (func 40)) - (export "break-multi-value" (func 41)) - (export "param" (func 42)) - (export "params" (func 43)) - (export "params-id" (func 44)) - (export "param-break" (func 45)) - (export "params-break" (func 46)) - (export "params-id-break" (func 47)) - (export "effects" (func 48)) - (export "add64_u_with_carry" (func $add64_u_with_carry)) - (export "add64_u_saturated" (func $add64_u_saturated)) - (export "type-use" (func 51)) - (export "atypical-condition" (func 52)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/0.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/0.print index 3e6a6cd0ef..154a8afa07 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/0.print @@ -1,10 +1,10 @@ (module $Mf (type (;0;) (func (result i32))) + (export "call" (func 0)) (func (;0;) (type 0) (result i32) call $g ) (func $g (;1;) (type 0) (result i32) i32.const 2 ) - (export "call" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/107.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/107.print index 2858bb5556..c422f16ee8 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/107.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/107.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "Mt" "tab" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/11.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/11.print index 84ed2c075e..5d12ab8bcd 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/11.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/11.print @@ -1,6 +1,13 @@ (module $Mg (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (global $glob (;0;) i32 i32.const 42) + (global $mut_glob (;1;) (mut i32) i32.const 142) + (export "glob" (global $glob)) + (export "get" (func 0)) + (export "mut_glob" (global $mut_glob)) + (export "get_mut" (func 1)) + (export "set_mut" (func 2)) (func (;0;) (type 0) (result i32) global.get $glob ) @@ -11,11 +18,4 @@ local.get 0 global.set $mut_glob ) - (global $glob (;0;) i32 i32.const 42) - (global $mut_glob (;1;) (mut i32) i32.const 142) - (export "glob" (global $glob)) - (export "get" (func 0)) - (export "mut_glob" (global $mut_glob)) - (export "get_mut" (func 1)) - (export "set_mut" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/129.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/129.print index f21eaa4f0a..3a67a6d945 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/129.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/129.print @@ -1,11 +1,11 @@ (module $Mm (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 1 5) + (export "mem" (memory 0)) + (export "load" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (memory (;0;) 1 5) - (export "mem" (memory 0)) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\00\01\02\03\04\05\06\07\08\09") ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/13.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/13.print index 221a4d2a23..c4e8d1282f 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/13.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/13.print @@ -6,9 +6,6 @@ (import "Mg" "get" (func $f (;0;) (type 0))) (import "Mg" "get_mut" (func $get_mut (;1;) (type 0))) (import "Mg" "set_mut" (func $set_mut (;2;) (type 1))) - (func (;3;) (type 0) (result i32) - global.get $glob - ) (global $glob (;2;) i32 i32.const 43) (export "Mg.glob" (global $x)) (export "Mg.get" (func $f)) @@ -17,4 +14,7 @@ (export "Mg.mut_glob" (global $mut_glob)) (export "Mg.get_mut" (func $get_mut)) (export "Mg.set_mut" (func $set_mut)) + (func (;3;) (type 0) (result i32) + global.get $glob + ) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/131.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/131.print index dbbedca99e..3c11a7ecbc 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/131.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/131.print @@ -1,12 +1,12 @@ (module $Nm (type (;0;) (func (param i32) (result i32))) (import "Mm" "load" (func $loadM (;0;) (type 0))) + (memory (;0;) 1) + (export "Mm.load" (func $loadM)) + (export "load" (func 1)) (func (;1;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (memory (;0;) 1) - (export "Mm.load" (func $loadM)) - (export "load" (func 1)) (data (;0;) (i32.const 10) "\f0\f1\f2\f3\f4\f5") ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/135.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/135.print index b370afdd26..8954f387ab 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/135.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/135.print @@ -1,10 +1,10 @@ (module $Om (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem" (memory (;0;) 1)) + (export "load" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (export "load" (func 0)) (data (;0;) (i32.const 5) "\a0\a1\a2\a3\a4\a5\a6\a7") ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/142.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/142.print index 6917dc02ac..d44420614c 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/142.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/142.print @@ -1,9 +1,9 @@ (module $Pm (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem" (memory (;0;) 1 8)) + (export "grow" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/158.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/158.print index fb3eabaa79..310c6e31f7 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/158.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/158.print @@ -1,5 +1,11 @@ (module $Ms (type $t (;0;) (func (result i32))) + (table (;0;) 1 funcref) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "table" (table 0)) + (export "get memory[0]" (func 0)) + (export "get table[0]" (func 1)) (func (;0;) (type $t) (result i32) i32.const 0 i32.load8_u @@ -8,10 +14,4 @@ i32.const 0 call_indirect (type $t) ) - (table (;0;) 1 funcref) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "table" (table 0)) - (export "get memory[0]" (func 0)) - (export "get table[0]" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/2.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/2.print index c7bcf16e6c..9b37d161a3 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/2.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/2.print @@ -1,6 +1,9 @@ (module $Nf (type (;0;) (func (result i32))) (import "Mf" "call" (func $f (;0;) (type 0))) + (export "Mf.call" (func $f)) + (export "call Mf.call" (func 1)) + (export "call" (func 2)) (func (;1;) (type 0) (result i32) call $f ) @@ -10,7 +13,4 @@ (func $g (;3;) (type 0) (result i32) i32.const 3 ) - (export "Mf.call" (func $f)) - (export "call Mf.call" (func 1)) - (export "call" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/31.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/31.print index 7c9865ad76..32c67def17 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/31.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/31.print @@ -1,6 +1,5 @@ (module $Mref_ex (type $t (;0;) (func)) - (func $f (;0;) (type $t)) (global (;0;) funcref ref.null func) (global (;1;) (ref func) ref.func $f) (global (;2;) (ref null $t) ref.null $t) @@ -22,4 +21,5 @@ (export "g-var-ref" (global 8)) (export "g-var-extern" (global 9)) (elem (;0;) declare func $f) + (func $f (;0;) (type $t)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/65.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/65.print index 1527e89cb1..b9ee3f5214 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/65.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/65.print @@ -2,6 +2,11 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "tab" (table 0)) + (export "h" (func 1)) + (export "call" (func 2)) + (elem (;0;) (i32.const 2) func $g $g $g $g) (func $g (;0;) (type 0) (result i32) i32.const 4 ) @@ -12,9 +17,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "tab" (table 0)) - (export "h" (func 1)) - (export "call" (func 2)) - (elem (;0;) (i32.const 2) func $g $g $g $g) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/67.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/67.print index 624fdd1ef4..282b723860 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/67.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/67.print @@ -4,6 +4,11 @@ (type (;2;) (func (param i32) (result i32))) (import "Mt" "call" (func $f (;0;) (type 2))) (import "Mt" "h" (func $h (;1;) (type 1))) + (table (;0;) 5 5 funcref) + (export "Mt.call" (func $f)) + (export "call Mt.call" (func 3)) + (export "call" (func 4)) + (elem (;0;) (i32.const 0) func $g $g $g $h $f) (func $g (;2;) (type 1) (result i32) i32.const 5 ) @@ -15,9 +20,4 @@ local.get 0 call_indirect (type 1) ) - (table (;0;) 5 5 funcref) - (export "Mt.call" (func $f)) - (export "call Mt.call" (func 3)) - (export "call" (func 4)) - (elem (;0;) (i32.const 0) func $g $g $g $h $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/linking.wast/86.print b/tests/snapshots/testsuite/proposals/gc/linking.wast/86.print index e2f5bf2ae5..5651c85a30 100644 --- a/tests/snapshots/testsuite/proposals/gc/linking.wast/86.print +++ b/tests/snapshots/testsuite/proposals/gc/linking.wast/86.print @@ -3,6 +3,8 @@ (type (;1;) (func (param i32) (result i32))) (import "Mt" "h" (func $h (;0;) (type 0))) (import "Mt" "tab" (table (;0;) 5 funcref)) + (export "call" (func 2)) + (elem (;0;) (i32.const 1) func $i $h) (func $i (;1;) (type 0) (result i32) i32.const 6 ) @@ -10,6 +12,4 @@ local.get 0 call_indirect (type 0) ) - (export "call" (func 2)) - (elem (;0;) (i32.const 1) func $i $h) ) diff --git a/tests/snapshots/testsuite/proposals/gc/local_get.wast/0.print b/tests/snapshots/testsuite/proposals/gc/local_get.wast/0.print index 7ac605c8a9..2a199e5b8b 100644 --- a/tests/snapshots/testsuite/proposals/gc/local_get.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/local_get.wast/0.print @@ -9,6 +9,25 @@ (type (;7;) (func (param f64) (result f64))) (type (;8;) (func (param i64 f32 f64 i32 i32))) (type (;9;) (func (param i64 f32 f64 i32 i32) (result f64))) + (export "type-local-i32" (func 0)) + (export "type-local-i64" (func 1)) + (export "type-local-f32" (func 2)) + (export "type-local-f64" (func 3)) + (export "type-param-i32" (func 4)) + (export "type-param-i64" (func 5)) + (export "type-param-f32" (func 6)) + (export "type-param-f64" (func 7)) + (export "type-mixed" (func 8)) + (export "read" (func 9)) + (export "as-block-value" (func 10)) + (export "as-loop-value" (func 11)) + (export "as-br-value" (func 12)) + (export "as-br_if-value" (func 13)) + (export "as-br_if-value-cond" (func 14)) + (export "as-br_table-value" (func 15)) + (export "as-return-value" (func 16)) + (export "as-if-then" (func 17)) + (export "as-if-else" (func 18)) (func (;0;) (type 0) (result i32) (local i32) local.get 0 @@ -167,23 +186,4 @@ local.get 0 end ) - (export "type-local-i32" (func 0)) - (export "type-local-i64" (func 1)) - (export "type-local-f32" (func 2)) - (export "type-local-f64" (func 3)) - (export "type-param-i32" (func 4)) - (export "type-param-i64" (func 5)) - (export "type-param-f32" (func 6)) - (export "type-param-f64" (func 7)) - (export "type-mixed" (func 8)) - (export "read" (func 9)) - (export "as-block-value" (func 10)) - (export "as-loop-value" (func 11)) - (export "as-br-value" (func 12)) - (export "as-br_if-value" (func 13)) - (export "as-br_if-value-cond" (func 14)) - (export "as-br_table-value" (func 15)) - (export "as-return-value" (func 16)) - (export "as-if-then" (func 17)) - (export "as-if-else" (func 18)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/local_init.wast/0.print b/tests/snapshots/testsuite/proposals/gc/local_init.wast/0.print index 75e231dcda..a7cb4af591 100644 --- a/tests/snapshots/testsuite/proposals/gc/local_init.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/local_init.wast/0.print @@ -1,5 +1,8 @@ (module (type (;0;) (func (param (ref extern)) (result (ref extern)))) + (export "get-after-set" (func 0)) + (export "get-after-tee" (func 1)) + (export "get-in-block-after-set" (func 2)) (func (;0;) (type 0) (param $p (ref extern)) (result (ref extern)) (local $x (ref extern)) local.get $p @@ -21,7 +24,4 @@ local.get $x end ) - (export "get-after-set" (func 0)) - (export "get-after-tee" (func 1)) - (export "get-in-block-after-set" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/local_init.wast/8.print b/tests/snapshots/testsuite/proposals/gc/local_init.wast/8.print index b6af69a1e2..954a43489e 100644 --- a/tests/snapshots/testsuite/proposals/gc/local_init.wast/8.print +++ b/tests/snapshots/testsuite/proposals/gc/local_init.wast/8.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (param (ref extern)) (result (ref extern)))) + (export "tee-init" (func 0)) (func (;0;) (type 0) (param $p (ref extern)) (result (ref extern)) (local $x (ref extern)) local.get $p @@ -7,5 +8,4 @@ drop local.get $x ) - (export "tee-init" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/local_tee.wast/0.print b/tests/snapshots/testsuite/proposals/gc/local_tee.wast/0.print index 3756f6e72f..b4455f3cb7 100644 --- a/tests/snapshots/testsuite/proposals/gc/local_tee.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/local_tee.wast/0.print @@ -15,6 +15,65 @@ (type (;13;) (func (param i32))) (type (;14;) (func (param i32 i32) (result i32))) (type (;15;) (func (param i64) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "type-local-i32" (func 0)) + (export "type-local-i64" (func 1)) + (export "type-local-f32" (func 2)) + (export "type-local-f64" (func 3)) + (export "type-param-i32" (func 4)) + (export "type-param-i64" (func 5)) + (export "type-param-f32" (func 6)) + (export "type-param-f64" (func 7)) + (export "type-mixed" (func 8)) + (export "write" (func 9)) + (export "result" (func 10)) + (export "as-block-first" (func 12)) + (export "as-block-mid" (func 13)) + (export "as-block-last" (func 14)) + (export "as-loop-first" (func 15)) + (export "as-loop-mid" (func 16)) + (export "as-loop-last" (func 17)) + (export "as-br-value" (func 18)) + (export "as-br_if-cond" (func 19)) + (export "as-br_if-value" (func 20)) + (export "as-br_if-value-cond" (func 21)) + (export "as-br_table-index" (func 22)) + (export "as-br_table-value" (func 23)) + (export "as-br_table-value-index" (func 24)) + (export "as-return-value" (func 25)) + (export "as-if-cond" (func 26)) + (export "as-if-then" (func 27)) + (export "as-if-else" (func 28)) + (export "as-select-first" (func 29)) + (export "as-select-second" (func 30)) + (export "as-select-cond" (func 31)) + (export "as-call-first" (func 33)) + (export "as-call-mid" (func 34)) + (export "as-call-last" (func 35)) + (export "as-call_indirect-first" (func 36)) + (export "as-call_indirect-mid" (func 37)) + (export "as-call_indirect-last" (func 38)) + (export "as-call_indirect-index" (func 39)) + (export "as-local.set-value" (func 40)) + (export "as-local.tee-value" (func 41)) + (export "as-global.set-value" (func 42)) + (export "as-load-address" (func 43)) + (export "as-loadN-address" (func 44)) + (export "as-store-address" (func 45)) + (export "as-store-value" (func 46)) + (export "as-storeN-address" (func 47)) + (export "as-storeN-value" (func 48)) + (export "as-unary-operand" (func 49)) + (export "as-binary-left" (func 50)) + (export "as-binary-right" (func 51)) + (export "as-test-operand" (func 52)) + (export "as-compare-left" (func 53)) + (export "as-compare-right" (func 54)) + (export "as-convert-operand" (func 55)) + (export "as-memory.grow-size" (func 56)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) (local i32) i32.const 0 @@ -482,63 +541,4 @@ local.tee 0 memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "type-local-i32" (func 0)) - (export "type-local-i64" (func 1)) - (export "type-local-f32" (func 2)) - (export "type-local-f64" (func 3)) - (export "type-param-i32" (func 4)) - (export "type-param-i64" (func 5)) - (export "type-param-f32" (func 6)) - (export "type-param-f64" (func 7)) - (export "type-mixed" (func 8)) - (export "write" (func 9)) - (export "result" (func 10)) - (export "as-block-first" (func 12)) - (export "as-block-mid" (func 13)) - (export "as-block-last" (func 14)) - (export "as-loop-first" (func 15)) - (export "as-loop-mid" (func 16)) - (export "as-loop-last" (func 17)) - (export "as-br-value" (func 18)) - (export "as-br_if-cond" (func 19)) - (export "as-br_if-value" (func 20)) - (export "as-br_if-value-cond" (func 21)) - (export "as-br_table-index" (func 22)) - (export "as-br_table-value" (func 23)) - (export "as-br_table-value-index" (func 24)) - (export "as-return-value" (func 25)) - (export "as-if-cond" (func 26)) - (export "as-if-then" (func 27)) - (export "as-if-else" (func 28)) - (export "as-select-first" (func 29)) - (export "as-select-second" (func 30)) - (export "as-select-cond" (func 31)) - (export "as-call-first" (func 33)) - (export "as-call-mid" (func 34)) - (export "as-call-last" (func 35)) - (export "as-call_indirect-first" (func 36)) - (export "as-call_indirect-mid" (func 37)) - (export "as-call_indirect-last" (func 38)) - (export "as-call_indirect-index" (func 39)) - (export "as-local.set-value" (func 40)) - (export "as-local.tee-value" (func 41)) - (export "as-global.set-value" (func 42)) - (export "as-load-address" (func 43)) - (export "as-loadN-address" (func 44)) - (export "as-store-address" (func 45)) - (export "as-store-value" (func 46)) - (export "as-storeN-address" (func 47)) - (export "as-storeN-value" (func 48)) - (export "as-unary-operand" (func 49)) - (export "as-binary-left" (func 50)) - (export "as-binary-right" (func 51)) - (export "as-test-operand" (func 52)) - (export "as-compare-left" (func 53)) - (export "as-compare-right" (func 54)) - (export "as-convert-operand" (func 55)) - (export "as-memory.grow-size" (func 56)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/ref_as_non_null.wast/0.print b/tests/snapshots/testsuite/proposals/gc/ref_as_non_null.wast/0.print index d4861f7951..8f70c457c5 100644 --- a/tests/snapshots/testsuite/proposals/gc/ref_as_non_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/ref_as_non_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) local.get $r ref.as_non_null @@ -32,9 +37,4 @@ ref.as_non_null call $nn ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/ref_cast.wast/0.print b/tests/snapshots/testsuite/proposals/gc/ref_cast.wast/0.print index d91240e95b..20ee4db464 100644 --- a/tests/snapshots/testsuite/proposals/gc/ref_cast.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/ref_cast.wast/0.print @@ -4,6 +4,14 @@ (type $at (;2;) (array i8)) (type (;3;) (func (param externref))) (type (;4;) (func (param i32))) + (table (;0;) 10 anyref) + (export "init" (func 1)) + (export "ref_cast_non_null" (func 2)) + (export "ref_cast_null" (func 3)) + (export "ref_cast_i31" (func 4)) + (export "ref_cast_struct" (func 5)) + (export "ref_cast_array" (func 6)) + (elem (;0;) declare func $f) (func $f (;0;) (type $ft)) (func (;1;) (type 3) (param $x externref) i32.const 0 @@ -96,12 +104,4 @@ ref.cast arrayref drop ) - (table (;0;) 10 anyref) - (export "init" (func 1)) - (export "ref_cast_non_null" (func 2)) - (export "ref_cast_null" (func 3)) - (export "ref_cast_i31" (func 4)) - (export "ref_cast_struct" (func 5)) - (export "ref_cast_array" (func 6)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/ref_cast.wast/42.print b/tests/snapshots/testsuite/proposals/gc/ref_cast.wast/42.print index 29b16b582b..acd6e3cd55 100644 --- a/tests/snapshots/testsuite/proposals/gc/ref_cast.wast/42.print +++ b/tests/snapshots/testsuite/proposals/gc/ref_cast.wast/42.print @@ -8,6 +8,9 @@ (type $t0' (;6;) (sub $t0 (struct))) (type $t4 (;7;) (sub $t0' (struct (field i32) (field i32)))) (type (;8;) (func)) + (table (;0;) 20 structref) + (export "test-sub" (func 1)) + (export "test-canon" (func 2)) (func $init (;0;) (type 8) i32.const 0 struct.new_default $t0 @@ -188,7 +191,4 @@ ref.cast (ref $t2) drop ) - (table (;0;) 20 structref) - (export "test-sub" (func 1)) - (export "test-canon" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/ref_eq.wast/0.print b/tests/snapshots/testsuite/proposals/gc/ref_eq.wast/0.print index 194caf3285..4fd522349b 100644 --- a/tests/snapshots/testsuite/proposals/gc/ref_eq.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/ref_eq.wast/0.print @@ -8,6 +8,9 @@ (type $st'-sub2 (;6;) (sub $st' (struct (field i32)))) (type (;7;) (func)) (type (;8;) (func (param i32 i32) (result i32))) + (table (;0;) 20 eqref) + (export "init" (func 0)) + (export "eq" (func 1)) (func (;0;) (type 7) i32.const 0 ref.null eq @@ -49,7 +52,4 @@ table.get 0 ref.eq ) - (table (;0;) 20 eqref) - (export "init" (func 0)) - (export "eq" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/ref_is_null.wast/0.print b/tests/snapshots/testsuite/proposals/gc/ref_is_null.wast/0.print index f354ae718f..1097f20712 100644 --- a/tests/snapshots/testsuite/proposals/gc/ref_is_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/ref_is_null.wast/0.print @@ -6,6 +6,19 @@ (type (;4;) (func (result i32))) (type (;5;) (func (param externref))) (type (;6;) (func (param i32) (result i32))) + (table $t1 (;0;) 2 funcref) + (table $t2 (;1;) 2 externref) + (table $t3 (;2;) 2 (ref null $t)) + (export "funcref" (func $f1)) + (export "externref" (func $f2)) + (export "ref-null" (func $f3')) + (export "init" (func 5)) + (export "deinit" (func 6)) + (export "funcref-elem" (func 7)) + (export "externref-elem" (func 8)) + (export "ref-elem" (func 9)) + (elem (;0;) (i32.const 1) func $dummy) + (elem (;1;) (table $t3) (i32.const 1) (ref $t) (ref.func $dummy)) (func $dummy (;0;) (type $t)) (func $f1 (;1;) (type 1) (param $x funcref) (result i32) local.get $x @@ -54,17 +67,4 @@ table.get $t3 call $f3 ) - (table $t1 (;0;) 2 funcref) - (table $t2 (;1;) 2 externref) - (table $t3 (;2;) 2 (ref null $t)) - (export "funcref" (func $f1)) - (export "externref" (func $f2)) - (export "ref-null" (func $f3')) - (export "init" (func 5)) - (export "deinit" (func 6)) - (export "funcref-elem" (func 7)) - (export "externref-elem" (func 8)) - (export "ref-elem" (func 9)) - (elem (;0;) (i32.const 1) func $dummy) - (elem (;1;) (table $t3) (i32.const 1) (ref $t) (ref.func $dummy)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/ref_null.wast/0.print b/tests/snapshots/testsuite/proposals/gc/ref_null.wast/0.print index f167669fba..8f2bc8ecbc 100644 --- a/tests/snapshots/testsuite/proposals/gc/ref_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/ref_null.wast/0.print @@ -3,6 +3,12 @@ (type (;1;) (func (result anyref))) (type (;2;) (func (result funcref))) (type (;3;) (func (result (ref null $t)))) + (global (;0;) anyref ref.null any) + (global (;1;) funcref ref.null func) + (global (;2;) (ref null $t) ref.null $t) + (export "anyref" (func 0)) + (export "funcref" (func 1)) + (export "ref" (func 2)) (func (;0;) (type 1) (result anyref) ref.null any ) @@ -12,10 +18,4 @@ (func (;2;) (type 3) (result (ref null $t)) ref.null $t ) - (global (;0;) anyref ref.null any) - (global (;1;) funcref ref.null func) - (global (;2;) (ref null $t) ref.null $t) - (export "anyref" (func 0)) - (export "funcref" (func 1)) - (export "ref" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/ref_null.wast/4.print b/tests/snapshots/testsuite/proposals/gc/ref_null.wast/4.print index 347e7b4b7b..c116b84adc 100644 --- a/tests/snapshots/testsuite/proposals/gc/ref_null.wast/4.print +++ b/tests/snapshots/testsuite/proposals/gc/ref_null.wast/4.print @@ -7,27 +7,6 @@ (type (;5;) (func (result externref))) (type (;6;) (func (result nullexternref))) (type (;7;) (func (result (ref null $t)))) - (func (;0;) (type 1) (result anyref) - global.get $null - ) - (func (;1;) (type 2) (result nullref) - global.get $null - ) - (func (;2;) (type 3) (result funcref) - global.get $nullfunc - ) - (func (;3;) (type 4) (result nullfuncref) - global.get $nullfunc - ) - (func (;4;) (type 5) (result externref) - global.get $nullextern - ) - (func (;5;) (type 6) (result nullexternref) - global.get $nullextern - ) - (func (;6;) (type 7) (result (ref null $t)) - global.get $nullfunc - ) (global $null (;0;) nullref ref.null none) (global $nullfunc (;1;) nullfuncref ref.null nofunc) (global $nullextern (;2;) nullexternref ref.null noextern) @@ -49,4 +28,25 @@ (export "externref" (func 4)) (export "nullexternref" (func 5)) (export "ref" (func 6)) + (func (;0;) (type 1) (result anyref) + global.get $null + ) + (func (;1;) (type 2) (result nullref) + global.get $null + ) + (func (;2;) (type 3) (result funcref) + global.get $nullfunc + ) + (func (;3;) (type 4) (result nullfuncref) + global.get $nullfunc + ) + (func (;4;) (type 5) (result externref) + global.get $nullextern + ) + (func (;5;) (type 6) (result nullexternref) + global.get $nullextern + ) + (func (;6;) (type 7) (result (ref null $t)) + global.get $nullfunc + ) ) diff --git a/tests/snapshots/testsuite/proposals/gc/ref_test.wast/0.print b/tests/snapshots/testsuite/proposals/gc/ref_test.wast/0.print index ae06d1f526..a690050df1 100644 --- a/tests/snapshots/testsuite/proposals/gc/ref_test.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/ref_test.wast/0.print @@ -4,6 +4,21 @@ (type $at (;2;) (array i8)) (type (;3;) (func (param externref))) (type (;4;) (func (param i32) (result i32))) + (table $ta (;0;) 10 anyref) + (table $tf (;1;) 10 funcref) + (table $te (;2;) 10 externref) + (export "init" (func 1)) + (export "ref_test_null_data" (func 2)) + (export "ref_test_any" (func 3)) + (export "ref_test_eq" (func 4)) + (export "ref_test_i31" (func 5)) + (export "ref_test_struct" (func 6)) + (export "ref_test_array" (func 7)) + (export "ref_test_null_func" (func 8)) + (export "ref_test_func" (func 9)) + (export "ref_test_null_extern" (func 10)) + (export "ref_test_extern" (func 11)) + (elem (;0;) declare func $f) (func $f (;0;) (type $ft)) (func (;1;) (type 3) (param $x externref) i32.const 0 @@ -156,19 +171,4 @@ ref.test externref i32.add ) - (table $ta (;0;) 10 anyref) - (table $tf (;1;) 10 funcref) - (table $te (;2;) 10 externref) - (export "init" (func 1)) - (export "ref_test_null_data" (func 2)) - (export "ref_test_any" (func 3)) - (export "ref_test_eq" (func 4)) - (export "ref_test_i31" (func 5)) - (export "ref_test_struct" (func 6)) - (export "ref_test_array" (func 7)) - (export "ref_test_null_func" (func 8)) - (export "ref_test_func" (func 9)) - (export "ref_test_null_extern" (func 10)) - (export "ref_test_extern" (func 11)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/ref_test.wast/68.print b/tests/snapshots/testsuite/proposals/gc/ref_test.wast/68.print index d291d00426..136b30f07a 100644 --- a/tests/snapshots/testsuite/proposals/gc/ref_test.wast/68.print +++ b/tests/snapshots/testsuite/proposals/gc/ref_test.wast/68.print @@ -8,6 +8,9 @@ (type $t0' (;6;) (sub $t0 (struct))) (type $t4 (;7;) (sub $t0' (struct (field i32) (field i32)))) (type (;8;) (func)) + (table (;0;) 20 structref) + (export "test-sub" (func 1)) + (export "test-canon" (func 2)) (func $init (;0;) (type 8) i32.const 0 struct.new_default $t0 @@ -413,7 +416,4 @@ end unreachable ) - (table (;0;) 20 structref) - (export "test-sub" (func 1)) - (export "test-canon" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/return_call.wast/0.print b/tests/snapshots/testsuite/proposals/gc/return_call.wast/0.print index d1e65c0f4d..5d4c4c7bed 100644 --- a/tests/snapshots/testsuite/proposals/gc/return_call.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/return_call.wast/0.print @@ -13,6 +13,22 @@ (type (;11;) (func (param i64 f64) (result f64))) (type (;12;) (func (param i64 i64) (result i64))) (type (;13;) (func (param i64) (result i32))) + (export "type-i32" (func 12)) + (export "type-i64" (func 13)) + (export "type-f32" (func 14)) + (export "type-f64" (func 15)) + (export "type-first-i32" (func 16)) + (export "type-first-i64" (func 17)) + (export "type-first-f32" (func 18)) + (export "type-first-f64" (func 19)) + (export "type-second-i32" (func 20)) + (export "type-second-i64" (func 21)) + (export "type-second-f32" (func 22)) + (export "type-second-f64" (func 23)) + (export "fac-acc" (func $fac-acc)) + (export "count" (func $count)) + (export "even" (func $even)) + (export "odd" (func $odd)) (func $const-i32 (;0;) (type 0) (result i32) i32.const 306 ) @@ -148,20 +164,4 @@ return_call $even end ) - (export "type-i32" (func 12)) - (export "type-i64" (func 13)) - (export "type-f32" (func 14)) - (export "type-f64" (func 15)) - (export "type-first-i32" (func 16)) - (export "type-first-i64" (func 17)) - (export "type-first-f32" (func 18)) - (export "type-first-f64" (func 19)) - (export "type-second-i32" (func 20)) - (export "type-second-i64" (func 21)) - (export "type-second-f32" (func 22)) - (export "type-second-f64" (func 23)) - (export "fac-acc" (func $fac-acc)) - (export "count" (func $count)) - (export "even" (func $even)) - (export "odd" (func $odd)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/0.print b/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/0.print index ba76cb3e1d..be0799bf90 100644 --- a/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/0.print @@ -22,6 +22,31 @@ (type (;20;) (func (param i64 f64 i32 i64) (result i32))) (type (;21;) (func (param i32) (result i64))) (type (;22;) (func (param i64 i64) (result i64))) + (table (;0;) 20 20 funcref) + (table $tab2 (;1;) 1 1 funcref) + (table $tab3 (;2;) 1 1 funcref) + (export "type-i32" (func 19)) + (export "type-i64" (func 20)) + (export "type-f32" (func 21)) + (export "type-f64" (func 22)) + (export "type-index" (func 23)) + (export "type-first-i32" (func 24)) + (export "type-first-i64" (func 25)) + (export "type-first-f32" (func 26)) + (export "type-first-f64" (func 27)) + (export "type-second-i32" (func 28)) + (export "type-second-i64" (func 29)) + (export "type-second-f32" (func 30)) + (export "type-second-f64" (func 31)) + (export "dispatch" (func 32)) + (export "dispatch-structural" (func 33)) + (export "call-tab" (func 36)) + (export "fac" (func $fac)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac $fac-acc $even $odd $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate) + (elem (;1;) (table $tab2) (i32.const 0) func $tab-f1) + (elem (;2;) (table $tab3) (i32.const 0) func $tab-f2) (func $const-i32 (;0;) (type $out-i32) (result i32) i32.const 306 ) @@ -258,29 +283,4 @@ return_call_indirect (type $over-i32) end ) - (table (;0;) 20 20 funcref) - (table $tab2 (;1;) 1 1 funcref) - (table $tab3 (;2;) 1 1 funcref) - (export "type-i32" (func 19)) - (export "type-i64" (func 20)) - (export "type-f32" (func 21)) - (export "type-f64" (func 22)) - (export "type-index" (func 23)) - (export "type-first-i32" (func 24)) - (export "type-first-i64" (func 25)) - (export "type-first-f32" (func 26)) - (export "type-first-f64" (func 27)) - (export "type-second-i32" (func 28)) - (export "type-second-i64" (func 29)) - (export "type-second-f32" (func 30)) - (export "type-second-f64" (func 31)) - (export "dispatch" (func 32)) - (export "dispatch-structural" (func 33)) - (export "call-tab" (func 36)) - (export "fac" (func $fac)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac $fac-acc $even $odd $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate) - (elem (;1;) (table $tab2) (i32.const 0) func $tab-f1) - (elem (;2;) (table $tab3) (i32.const 0) func $tab-f2) ) diff --git a/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/64.print b/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/64.print index b26615ee35..60d6b9f329 100644 --- a/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/64.print +++ b/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/64.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (table (;0;) 0 funcref) (func $arity-1-vs-0 (;0;) (type 0) i32.const 1 i32.const 0 return_call_indirect (type 0) ) - (table (;0;) 0 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/65.print b/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/65.print index 0e28863cfd..5a4ef5a82d 100644 --- a/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/65.print +++ b/tests/snapshots/testsuite/proposals/gc/return_call_indirect.wast/65.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (table (;0;) 0 funcref) (func $arity-2-vs-0 (;0;) (type 0) f64.const 0x1p+1 (;=2;) i32.const 1 i32.const 0 return_call_indirect (type 0) ) - (table (;0;) 0 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/0.print b/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/0.print index 451693d9de..9aa4084243 100644 --- a/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/0.print @@ -13,6 +13,44 @@ (type $f64-f32 (;11;) (func (param f64 f32) (result f32))) (type $i64-f64 (;12;) (func (param i64 f64) (result f64))) (type $i64i64-i64 (;13;) (func (param i64 i64) (result i64))) + (global $const-i32 (;0;) (ref $-i32) ref.func $const-i32) + (global $const-i64 (;1;) (ref $-i64) ref.func $const-i64) + (global $const-f32 (;2;) (ref $-f32) ref.func $const-f32) + (global $const-f64 (;3;) (ref $-f64) ref.func $const-f64) + (global $id-i32 (;4;) (ref $i32-i32) ref.func $id-i32) + (global $id-i64 (;5;) (ref $i64-i64) ref.func $id-i64) + (global $id-f32 (;6;) (ref $f32-f32) ref.func $id-f32) + (global $id-f64 (;7;) (ref $f64-f64) ref.func $id-f64) + (global $f32-i32 (;8;) (ref $f32-i32) ref.func $f32-i32) + (global $i32-i64 (;9;) (ref $i32-i64) ref.func $i32-i64) + (global $f64-f32 (;10;) (ref $f64-f32) ref.func $f64-f32) + (global $i64-f64 (;11;) (ref $i64-f64) ref.func $i64-f64) + (global $fac-acc (;12;) (ref $i64i64-i64) ref.func $fac-acc) + (global $count (;13;) (ref $i64-i64) ref.func $count) + (global $even (;14;) (ref $i64-i64) ref.func $even) + (global $odd (;15;) (ref $i64-i64) ref.func $odd) + (export "type-i32" (func 12)) + (export "type-i64" (func 13)) + (export "type-f32" (func 14)) + (export "type-f64" (func 15)) + (export "type-first-i32" (func 16)) + (export "type-first-i64" (func 17)) + (export "type-first-f32" (func 18)) + (export "type-first-f64" (func 19)) + (export "type-second-i32" (func 20)) + (export "type-second-i64" (func 21)) + (export "type-second-f32" (func 22)) + (export "type-second-f64" (func 23)) + (export "null" (func 24)) + (export "fac-acc" (func $fac-acc)) + (export "count" (func $count)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) declare func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64) + (elem (;1;) declare func $fac-acc) + (elem (;2;) declare func $count) + (elem (;3;) declare func $even) + (elem (;4;) declare func $odd) (func $const-i32 (;0;) (type $-i32) (result i32) i32.const 306 ) @@ -168,42 +206,4 @@ return_call_ref $i64-i64 end ) - (global $const-i32 (;0;) (ref $-i32) ref.func $const-i32) - (global $const-i64 (;1;) (ref $-i64) ref.func $const-i64) - (global $const-f32 (;2;) (ref $-f32) ref.func $const-f32) - (global $const-f64 (;3;) (ref $-f64) ref.func $const-f64) - (global $id-i32 (;4;) (ref $i32-i32) ref.func $id-i32) - (global $id-i64 (;5;) (ref $i64-i64) ref.func $id-i64) - (global $id-f32 (;6;) (ref $f32-f32) ref.func $id-f32) - (global $id-f64 (;7;) (ref $f64-f64) ref.func $id-f64) - (global $f32-i32 (;8;) (ref $f32-i32) ref.func $f32-i32) - (global $i32-i64 (;9;) (ref $i32-i64) ref.func $i32-i64) - (global $f64-f32 (;10;) (ref $f64-f32) ref.func $f64-f32) - (global $i64-f64 (;11;) (ref $i64-f64) ref.func $i64-f64) - (global $fac-acc (;12;) (ref $i64i64-i64) ref.func $fac-acc) - (global $count (;13;) (ref $i64-i64) ref.func $count) - (global $even (;14;) (ref $i64-i64) ref.func $even) - (global $odd (;15;) (ref $i64-i64) ref.func $odd) - (export "type-i32" (func 12)) - (export "type-i64" (func 13)) - (export "type-f32" (func 14)) - (export "type-f64" (func 15)) - (export "type-first-i32" (func 16)) - (export "type-first-i64" (func 17)) - (export "type-first-f32" (func 18)) - (export "type-first-f64" (func 19)) - (export "type-second-i32" (func 20)) - (export "type-second-i64" (func 21)) - (export "type-second-f32" (func 22)) - (export "type-second-f64" (func 23)) - (export "null" (func 24)) - (export "fac-acc" (func $fac-acc)) - (export "count" (func $count)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) declare func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64) - (elem (;1;) declare func $fac-acc) - (elem (;2;) declare func $count) - (elem (;3;) declare func $even) - (elem (;4;) declare func $odd) ) diff --git a/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/33.print b/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/33.print index 11dc25a989..737330a1d8 100644 --- a/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/33.print +++ b/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/33.print @@ -4,6 +4,7 @@ (type $t2 (;2;) (func (result (ref null $t)))) (type $t3 (;3;) (func (result (ref func)))) (type $t4 (;4;) (func (result funcref))) + (elem (;0;) declare func $f11 $f22 $f33 $f44) (func $f11 (;0;) (type $t1) (result (ref $t)) ref.func $f11 return_call_ref $t1 @@ -40,5 +41,4 @@ ref.func $f44 return_call_ref $t4 ) - (elem (;0;) declare func $f11 $f22 $f33 $f44) ) diff --git a/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/40.print b/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/40.print index 182b29b127..fe1559354e 100644 --- a/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/40.print +++ b/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/40.print @@ -1,8 +1,8 @@ (module (type $t (;0;) (func (result i32))) + (export "unreachable" (func 0)) (func (;0;) (type $t) (result i32) unreachable return_call_ref $t ) - (export "unreachable" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/42.print b/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/42.print index d7a4a98905..5dd9aceb2e 100644 --- a/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/42.print +++ b/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/42.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -9,6 +11,4 @@ ref.func $f return_call_ref $t ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/44.print b/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/44.print index 49bfa9ac42..43026ed34a 100644 --- a/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/44.print +++ b/tests/snapshots/testsuite/proposals/gc/return_call_ref.wast/44.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -11,6 +13,4 @@ return_call_ref $t i32.const 0 ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/select.wast/0.print b/tests/snapshots/testsuite/proposals/gc/select.wast/0.print index 1c4c3b0541..70dfa7ea6c 100644 --- a/tests/snapshots/testsuite/proposals/gc/select.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/select.wast/0.print @@ -12,6 +12,62 @@ (type (;10;) (func (result i32))) (type (;11;) (func (result i64))) (type (;12;) (func (param i32))) + (table $tab (;0;) 1 1 funcref) + (table $t (;1;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "select-i32" (func 1)) + (export "select-i64" (func 2)) + (export "select-f32" (func 3)) + (export "select-f64" (func 4)) + (export "select-i32-t" (func 5)) + (export "select-i64-t" (func 6)) + (export "select-f32-t" (func 7)) + (export "select-f64-t" (func 8)) + (export "select-funcref" (func 9)) + (export "select-externref" (func 10)) + (export "join-funcnull" (func 12)) + (export "select-trap-left" (func 13)) + (export "select-trap-right" (func 14)) + (export "select-unreached" (func 15)) + (export "select_unreached_result_1" (func 16)) + (export "select_unreached_result_2" (func 17)) + (export "as-select-first" (func 18)) + (export "as-select-mid" (func 19)) + (export "as-select-last" (func 20)) + (export "as-loop-first" (func 21)) + (export "as-loop-mid" (func 22)) + (export "as-loop-last" (func 23)) + (export "as-if-condition" (func 24)) + (export "as-if-then" (func 25)) + (export "as-if-else" (func 26)) + (export "as-br_if-first" (func 27)) + (export "as-br_if-last" (func 28)) + (export "as-br_table-first" (func 29)) + (export "as-br_table-last" (func 30)) + (export "as-call_indirect-first" (func 32)) + (export "as-call_indirect-mid" (func 33)) + (export "as-call_indirect-last" (func 34)) + (export "as-store-first" (func 35)) + (export "as-store-last" (func 36)) + (export "as-memory.grow-value" (func 37)) + (export "as-call-value" (func 39)) + (export "as-return-value" (func 40)) + (export "as-drop-operand" (func 41)) + (export "as-br-value" (func 42)) + (export "as-local.set-value" (func 43)) + (export "as-local.tee-value" (func 44)) + (export "as-global.set-value" (func 45)) + (export "as-load-operand" (func 46)) + (export "as-unary-operand" (func 47)) + (export "as-binary-operand" (func 48)) + (export "as-test-operand" (func 49)) + (export "as-compare-left" (func 50)) + (export "as-compare-right" (func 51)) + (export "as-convert-operand" (func 52)) + (elem (;0;) (i32.const 0) func $dummy) + (elem (;1;) declare func $tf) + (elem (;2;) (table $t) (i32.const 0) func $func) (func $dummy (;0;) (type $t)) (func (;1;) (type 2) (param i32 i32 i32) (result i32) local.get 0 @@ -432,60 +488,4 @@ i32.wrap_i64 end ) - (table $tab (;0;) 1 1 funcref) - (table $t (;1;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "select-i32" (func 1)) - (export "select-i64" (func 2)) - (export "select-f32" (func 3)) - (export "select-f64" (func 4)) - (export "select-i32-t" (func 5)) - (export "select-i64-t" (func 6)) - (export "select-f32-t" (func 7)) - (export "select-f64-t" (func 8)) - (export "select-funcref" (func 9)) - (export "select-externref" (func 10)) - (export "join-funcnull" (func 12)) - (export "select-trap-left" (func 13)) - (export "select-trap-right" (func 14)) - (export "select-unreached" (func 15)) - (export "select_unreached_result_1" (func 16)) - (export "select_unreached_result_2" (func 17)) - (export "as-select-first" (func 18)) - (export "as-select-mid" (func 19)) - (export "as-select-last" (func 20)) - (export "as-loop-first" (func 21)) - (export "as-loop-mid" (func 22)) - (export "as-loop-last" (func 23)) - (export "as-if-condition" (func 24)) - (export "as-if-then" (func 25)) - (export "as-if-else" (func 26)) - (export "as-br_if-first" (func 27)) - (export "as-br_if-last" (func 28)) - (export "as-br_table-first" (func 29)) - (export "as-br_table-last" (func 30)) - (export "as-call_indirect-first" (func 32)) - (export "as-call_indirect-mid" (func 33)) - (export "as-call_indirect-last" (func 34)) - (export "as-store-first" (func 35)) - (export "as-store-last" (func 36)) - (export "as-memory.grow-value" (func 37)) - (export "as-call-value" (func 39)) - (export "as-return-value" (func 40)) - (export "as-drop-operand" (func 41)) - (export "as-br-value" (func 42)) - (export "as-local.set-value" (func 43)) - (export "as-local.tee-value" (func 44)) - (export "as-global.set-value" (func 45)) - (export "as-load-operand" (func 46)) - (export "as-unary-operand" (func 47)) - (export "as-binary-operand" (func 48)) - (export "as-test-operand" (func 49)) - (export "as-compare-left" (func 50)) - (export "as-compare-right" (func 51)) - (export "as-convert-operand" (func 52)) - (elem (;0;) (i32.const 0) func $dummy) - (elem (;1;) declare func $tf) - (elem (;2;) (table $t) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/gc/select.wast/156.print b/tests/snapshots/testsuite/proposals/gc/select.wast/156.print index 7206792a79..ec6fa70029 100644 --- a/tests/snapshots/testsuite/proposals/gc/select.wast/156.print +++ b/tests/snapshots/testsuite/proposals/gc/select.wast/156.print @@ -1,6 +1,7 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table (;0;) 1 funcref) (func (;0;) (type 0) (result i32) unreachable select @@ -55,5 +56,4 @@ call_indirect (type 1) select ) - (table (;0;) 1 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/gc/struct.wast/16.print b/tests/snapshots/testsuite/proposals/gc/struct.wast/16.print index 83697b5886..4f57641849 100644 --- a/tests/snapshots/testsuite/proposals/gc/struct.wast/16.print +++ b/tests/snapshots/testsuite/proposals/gc/struct.wast/16.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (struct (field i32) (field (mut i32)))) (type (;1;) (func)) + (export "struct.get-null" (func 0)) + (export "struct.set-null" (func 1)) (func (;0;) (type 1) (local (ref null $t)) local.get 0 @@ -13,6 +15,4 @@ i32.const 0 struct.set $t 1 ) - (export "struct.get-null" (func 0)) - (export "struct.set-null" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/struct.wast/19.print b/tests/snapshots/testsuite/proposals/gc/struct.wast/19.print index 590c2cbc62..967dc450b3 100644 --- a/tests/snapshots/testsuite/proposals/gc/struct.wast/19.print +++ b/tests/snapshots/testsuite/proposals/gc/struct.wast/19.print @@ -2,6 +2,20 @@ (type $s (;0;) (struct (field i8) (field (mut i8)) (field i16) (field (mut i16)))) (type (;1;) (func (result i32 i32))) (type (;2;) (func (param i32) (result i32 i32))) + (global (;0;) (ref $s) i32.const 0 i32.const 1 i32.const 2 i32.const 3 struct.new $s) + (global (;1;) (ref $s) i32.const 254 i32.const 255 i32.const 65534 i32.const 65535 struct.new $s) + (export "g0" (global 0)) + (export "g1" (global 1)) + (export "get_packed_g0_0" (func 0)) + (export "get_packed_g1_0" (func 1)) + (export "get_packed_g0_1" (func 2)) + (export "get_packed_g1_1" (func 3)) + (export "get_packed_g0_2" (func 4)) + (export "get_packed_g1_2" (func 5)) + (export "get_packed_g0_3" (func 6)) + (export "get_packed_g1_3" (func 7)) + (export "set_get_packed_g0_1" (func 8)) + (export "set_get_packed_g0_3" (func 9)) (func (;0;) (type 1) (result i32 i32) global.get 0 struct.get_s $s 0 @@ -68,18 +82,4 @@ global.get 0 struct.get_u $s 3 ) - (global (;0;) (ref $s) i32.const 0 i32.const 1 i32.const 2 i32.const 3 struct.new $s) - (global (;1;) (ref $s) i32.const 254 i32.const 255 i32.const 65534 i32.const 65535 struct.new $s) - (export "g0" (global 0)) - (export "g1" (global 1)) - (export "get_packed_g0_0" (func 0)) - (export "get_packed_g1_0" (func 1)) - (export "get_packed_g0_1" (func 2)) - (export "get_packed_g1_1" (func 3)) - (export "get_packed_g0_2" (func 4)) - (export "get_packed_g1_2" (func 5)) - (export "get_packed_g0_3" (func 6)) - (export "get_packed_g1_3" (func 7)) - (export "set_get_packed_g0_1" (func 8)) - (export "set_get_packed_g0_3" (func 9)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/struct.wast/7.print b/tests/snapshots/testsuite/proposals/gc/struct.wast/7.print index 64caae268f..0e20bcc3c3 100644 --- a/tests/snapshots/testsuite/proposals/gc/struct.wast/7.print +++ b/tests/snapshots/testsuite/proposals/gc/struct.wast/7.print @@ -5,6 +5,15 @@ (type (;3;) (func (result f32))) (type (;4;) (func (param (ref $vec) f32) (result f32))) (type (;5;) (func (param f32) (result f32))) + (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) f32.const 0x1.8p+1 (;=3;) struct.new $vec) + (global (;1;) (ref $vec) struct.new_default $vec) + (export "new" (func 0)) + (export "get_0_0" (func 2)) + (export "get_vec_0" (func 4)) + (export "get_0_y" (func 6)) + (export "get_vec_y" (func 8)) + (export "set_get_y" (func 10)) + (export "set_get_1" (func 12)) (func (;0;) (type 1) (result anyref) struct.new_default $vec ) @@ -64,13 +73,4 @@ local.get $y call $set_get_1 ) - (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) f32.const 0x1.8p+1 (;=3;) struct.new $vec) - (global (;1;) (ref $vec) struct.new_default $vec) - (export "new" (func 0)) - (export "get_0_0" (func 2)) - (export "get_vec_0" (func 4)) - (export "get_0_y" (func 6)) - (export "get_vec_y" (func 8)) - (export "set_get_y" (func 10)) - (export "set_get_1" (func 12)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/table-sub.wast/0.print b/tests/snapshots/testsuite/proposals/gc/table-sub.wast/0.print index cc4f3a21c3..41ace13823 100644 --- a/tests/snapshots/testsuite/proposals/gc/table-sub.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/table-sub.wast/0.print @@ -1,5 +1,8 @@ (module (type $t (;0;) (func)) + (table $t1 (;0;) 10 funcref) + (table $t2 (;1;) 10 (ref null $t)) + (elem $el (;0;) funcref) (func $f (;0;) (type $t) i32.const 0 i32.const 1 @@ -10,7 +13,4 @@ i32.const 2 table.copy $t1 $t2 ) - (table $t1 (;0;) 10 funcref) - (table $t2 (;1;) 10 (ref null $t)) - (elem $el (;0;) funcref) ) diff --git a/tests/snapshots/testsuite/proposals/gc/table.wast/29.print b/tests/snapshots/testsuite/proposals/gc/table.wast/29.print index 3122c840d6..0b18be026e 100644 --- a/tests/snapshots/testsuite/proposals/gc/table.wast/29.print +++ b/tests/snapshots/testsuite/proposals/gc/table.wast/29.print @@ -1,6 +1,6 @@ (module (type $f (;0;) (func)) - (func $f (;0;) (type $f)) (global (;0;) (ref $f) ref.func $f) (export "g" (global 0)) + (func $f (;0;) (type $f)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/table.wast/31.print b/tests/snapshots/testsuite/proposals/gc/table.wast/31.print index 1639a3daa1..14c7c9db29 100644 --- a/tests/snapshots/testsuite/proposals/gc/table.wast/31.print +++ b/tests/snapshots/testsuite/proposals/gc/table.wast/31.print @@ -2,6 +2,16 @@ (type $dummy (;0;) (func)) (type (;1;) (func (result funcref))) (import "M" "g" (global $g (;0;) (ref $dummy))) + (table $t1 (;0;) 10 funcref) + (table $t2 (;1;) 10 funcref ref.func $dummy) + (table $t3 (;2;) 10 (ref $dummy) ref.func $dummy) + (table $t4 (;3;) 10 funcref global.get $g) + (table $t5 (;4;) 10 (ref $dummy) global.get $g) + (export "get1" (func 1)) + (export "get2" (func 2)) + (export "get3" (func 3)) + (export "get4" (func 4)) + (export "get5" (func 5)) (func $dummy (;0;) (type $dummy)) (func (;1;) (type 1) (result funcref) i32.const 1 @@ -23,14 +33,4 @@ i32.const 9 table.get $t5 ) - (table $t1 (;0;) 10 funcref) - (table $t2 (;1;) 10 funcref ref.func $dummy) - (table $t3 (;2;) 10 (ref $dummy) ref.func $dummy) - (table $t4 (;3;) 10 funcref global.get $g) - (table $t5 (;4;) 10 (ref $dummy) global.get $g) - (export "get1" (func 1)) - (export "get2" (func 2)) - (export "get3" (func 3)) - (export "get4" (func 4)) - (export "get5" (func 5)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/10.print b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/10.print index 1c5b77136a..66ce7e5f75 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/10.print +++ b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/10.print @@ -6,6 +6,9 @@ (type $t2 (;1;) (func (result (ref null $t2)))) ) (type (;2;) (func)) + (table (;0;) 2 2 funcref) + (export "run" (func 2)) + (elem (;0;) (i32.const 0) func $f1 $f2) (func $f1 (;0;) (type $t1) (result (ref null $t1)) ref.null $t1 ) @@ -47,7 +50,4 @@ end br 0 ) - (table (;0;) 2 2 funcref) - (export "run" (func 2)) - (elem (;0;) (i32.const 0) func $f1 $f2) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/12.print b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/12.print index 2b6d605e8e..7bd1275c19 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/12.print +++ b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/12.print @@ -10,6 +10,9 @@ (type $u3 (;5;) (func (param i32 (ref $u2)))) ) (type (;6;) (func)) + (table (;0;) 3 3 funcref) + (export "run" (func 3)) + (elem (;0;) (i32.const 0) func $f1 $f2 $f3) (func $f1 (;0;) (type $t1) (param i32 (ref $t1))) (func $f2 (;1;) (type $t2) (param i32 (ref $t3))) (func $f3 (;2;) (type $t3) (param i32 (ref $t2))) @@ -39,7 +42,4 @@ i32.const 2 call_indirect (type $u3) ) - (table (;0;) 3 3 funcref) - (export "run" (func 3)) - (elem (;0;) (i32.const 0) func $f1 $f2 $f3) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/14.print b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/14.print index f9f69387ba..98744111b1 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/14.print +++ b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/14.print @@ -1,6 +1,6 @@ (module (type $t1 (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param (ref $t1)))) - (func (;0;) (type 1) (param (ref $t1))) (export "f" (func 0)) + (func (;0;) (type 1) (param (ref $t1))) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/17.print b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/17.print index 66a9157ef6..603776e583 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/17.print +++ b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/17.print @@ -5,8 +5,8 @@ (type $t1 (;3;) (func (param (ref $s1)) (result (ref $s2)))) (type $t2 (;4;) (func (param (ref $s2)) (result (ref $s1)))) (type (;5;) (func (param (ref $t1)))) - (func (;0;) (type 5) (param (ref $t1))) - (func (;1;) (type 5) (param (ref $t1))) (export "f1" (func 0)) (export "f2" (func 1)) + (func (;0;) (type 5) (param (ref $t1))) + (func (;1;) (type 5) (param (ref $t1))) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/20.print b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/20.print index 80f1754ceb..4d22d55cbb 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/20.print +++ b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/20.print @@ -3,6 +3,6 @@ (type $t1 (;0;) (func (param i32 (ref $t1)))) ) (type (;1;) (func (param (ref $t1)))) - (func (;0;) (type 1) (param (ref $t1))) (export "f" (func 0)) + (func (;0;) (type 1) (param (ref $t1))) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/23.print b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/23.print index f1956d65f2..2f19c29808 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/23.print +++ b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/23.print @@ -7,10 +7,10 @@ (type (;3;) (func (param (ref $t1)))) (type (;4;) (func (param (ref $t2)))) (type (;5;) (func (param (ref $t3)))) - (func (;0;) (type 3) (param (ref $t1))) - (func (;1;) (type 4) (param (ref $t2))) - (func (;2;) (type 5) (param (ref $t3))) (export "f1" (func 0)) (export "f2" (func 1)) (export "f3" (func 2)) + (func (;0;) (type 3) (param (ref $t1))) + (func (;1;) (type 4) (param (ref $t2))) + (func (;2;) (type 5) (param (ref $t3))) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/26.print b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/26.print index 8ea47fabc6..60d7e31d88 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/26.print +++ b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/26.print @@ -7,10 +7,10 @@ (type (;3;) (func (param (ref $t1)))) (type (;4;) (func (param (ref $t2)))) (type (;5;) (func (param (ref $t3)))) - (func (;0;) (type 3) (param (ref $t1))) - (func (;1;) (type 4) (param (ref $t2))) - (func (;2;) (type 5) (param (ref $t3))) (export "f1" (func 0)) (export "f2" (func 1)) (export "f3" (func 2)) + (func (;0;) (type 3) (param (ref $t1))) + (func (;1;) (type 4) (param (ref $t2))) + (func (;2;) (type 5) (param (ref $t3))) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/29.print b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/29.print index 64e1999cc9..d6b0196998 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/29.print +++ b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/29.print @@ -12,10 +12,10 @@ (type (;6;) (func (param (ref $t1)))) (type (;7;) (func (param (ref $t2)))) (type (;8;) (func (param (ref $t3)))) - (func (;0;) (type 6) (param (ref $t1))) - (func (;1;) (type 7) (param (ref $t2))) - (func (;2;) (type 8) (param (ref $t3))) (export "f1" (func 0)) (export "f2" (func 1)) (export "f3" (func 2)) + (func (;0;) (type 6) (param (ref $t1))) + (func (;1;) (type 7) (param (ref $t2))) + (func (;2;) (type 8) (param (ref $t3))) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/6.print b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/6.print index c60b8bd8ea..ecb7350560 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/6.print +++ b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/6.print @@ -2,6 +2,9 @@ (type $t1 (;0;) (func (param f32 f32))) (type $t2 (;1;) (func (param f32 f32))) (type (;2;) (func)) + (table (;0;) 2 2 funcref) + (export "run" (func 2)) + (elem (;0;) (i32.const 0) func $f1 $f2) (func $f1 (;0;) (type $t1) (param f32 f32)) (func $f2 (;1;) (type $t2) (param f32 f32)) (func (;2;) (type 2) @@ -14,7 +17,4 @@ i32.const 0 call_indirect (type $t2) ) - (table (;0;) 2 2 funcref) - (export "run" (func 2)) - (elem (;0;) (i32.const 0) func $f1 $f2) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/8.print b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/8.print index 7a8741b793..a9fed0f084 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/8.print +++ b/tests/snapshots/testsuite/proposals/gc/type-equivalence.wast/8.print @@ -5,6 +5,9 @@ (type $t1 (;3;) (func (param (ref $s1)))) (type $t2 (;4;) (func (param (ref $s2)))) (type (;5;) (func)) + (table (;0;) 4 4 funcref) + (export "run" (func 4)) + (elem (;0;) (i32.const 0) func $f1 $f2 $s1 $s2) (func $s1 (;0;) (type $s1) (param i32 (ref $s0))) (func $s2 (;1;) (type $s2) (param i32 (ref $s0))) (func $f1 (;2;) (type $t1) (param (ref $s1))) @@ -35,7 +38,4 @@ i32.const 1 call_indirect (type $t2) ) - (table (;0;) 4 4 funcref) - (export "run" (func 4)) - (elem (;0;) (i32.const 0) func $f1 $f2 $s1 $s2) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/0.print b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/0.print index b30ff3c506..9ff07da2c5 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/0.print @@ -7,6 +7,6 @@ (type $f2 (;2;) (func)) (type (;3;) (struct (field (ref $f2)))) ) - (func $f (;0;) (type $f2)) (global (;0;) (ref $f1) ref.func $f) + (func $f (;0;) (type $f2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/1.print b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/1.print index 85d75cb372..e0c26ed162 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/1.print +++ b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/1.print @@ -15,6 +15,6 @@ (type $g2 (;6;) (func)) (type (;7;) (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2)))) ) - (func $g (;0;) (type $g2)) (global (;0;) (ref $g1) ref.func $g) + (func $g (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/11.print b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/11.print index 9305718dff..fa24131869 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/11.print +++ b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/11.print @@ -8,12 +8,12 @@ (type (;3;) (struct)) ) (type (;4;) (func)) + (table (;0;) 1 1 funcref) + (export "run" (func 1)) + (elem (;0;) (i32.const 0) func $f1) (func $f1 (;0;) (type $f1)) (func (;1;) (type 4) i32.const 0 call_indirect (type $f2) ) - (table (;0;) 1 1 funcref) - (export "run" (func 1)) - (elem (;0;) (i32.const 0) func $f1) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/13.print b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/13.print index 1303d3a668..23a9cac4bb 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/13.print +++ b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/13.print @@ -8,12 +8,12 @@ (type $f2 (;3;) (func)) ) (type (;4;) (func)) + (table (;0;) 1 1 funcref) + (export "run" (func 1)) + (elem (;0;) (i32.const 0) func $f1) (func $f1 (;0;) (type $f1)) (func (;1;) (type 4) i32.const 0 call_indirect (type $f2) ) - (table (;0;) 1 1 funcref) - (export "run" (func 1)) - (elem (;0;) (i32.const 0) func $f1) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/15.print b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/15.print index d31e6979d8..4db56d4062 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/15.print +++ b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/15.print @@ -7,12 +7,12 @@ (type $f2 (;2;) (func)) ) (type (;3;) (func)) + (table (;0;) 1 1 funcref) + (export "run" (func 1)) + (elem (;0;) (i32.const 0) func $f1) (func $f1 (;0;) (type $f1)) (func (;1;) (type 3) i32.const 0 call_indirect (type $f2) ) - (table (;0;) 1 1 funcref) - (export "run" (func 1)) - (elem (;0;) (i32.const 0) func $f1) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/17.print b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/17.print index 1c8a861bef..1025956e5c 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/17.print +++ b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/17.print @@ -6,6 +6,6 @@ (type $t (;1;) (func (param (ref $s)))) ) (type (;2;) (func (param (ref $s)))) - (func $f (;0;) (type 2) (param (ref $s))) (global (;0;) (ref $t) ref.func $f) + (func $f (;0;) (type 2) (param (ref $s))) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/6.print b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/6.print index 803d29bfdc..36a21ff615 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-rec.wast/6.print +++ b/tests/snapshots/testsuite/proposals/gc/type-rec.wast/6.print @@ -3,6 +3,6 @@ (type $f1 (;0;) (func)) (type (;1;) (struct)) ) - (func (;0;) (type $f1)) (export "f" (func 0)) + (func (;0;) (type $f1)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/11.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/11.print index 818a6c3a4f..defb31edb5 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/11.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/11.print @@ -11,6 +11,6 @@ (type $g (;4;) (sub $f1 (func))) (type (;5;) (struct)) ) - (func $g (;0;) (type $g)) (global (;0;) (ref $f1) ref.func $g) + (func $g (;0;) (type $g)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/12.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/12.print index e349860da2..8600cdfc4a 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/12.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/12.print @@ -19,7 +19,7 @@ (type $h (;8;) (sub $g2 (func))) (type (;9;) (struct)) ) - (func $h (;0;) (type $h)) (global (;0;) (ref $f1) ref.func $h) (global (;1;) (ref $g1) ref.func $h) + (func $h (;0;) (type $h)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/13.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/13.print index f98f044e99..aa4f19f7ed 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/13.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/13.print @@ -7,14 +7,14 @@ (type $f21 (;2;) (sub (func (result (ref func))))) (type $f22 (;3;) (sub $f21 (func (result (ref $f21))))) ) + (global (;0;) (ref $f11) ref.func $f11) + (global (;1;) (ref $f21) ref.func $f11) + (global (;2;) (ref $f12) ref.func $f12) + (global (;3;) (ref $f22) ref.func $f12) (func $f11 (;0;) (type $f11) (result (ref func)) unreachable ) (func $f12 (;1;) (type $f12) (result (ref $f11)) unreachable ) - (global (;0;) (ref $f11) ref.func $f11) - (global (;1;) (ref $f21) ref.func $f11) - (global (;2;) (ref $f12) ref.func $f12) - (global (;3;) (ref $f22) ref.func $f12) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/14.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/14.print index 8961773ebc..77aaa04e76 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/14.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/14.print @@ -15,12 +15,6 @@ (type $g21 (;6;) (sub $f21 (func (result (ref func))))) (type $g22 (;7;) (sub $g21 (func (result (ref $g21))))) ) - (func $g11 (;0;) (type $g11) (result (ref func)) - unreachable - ) - (func $g12 (;1;) (type $g12) (result (ref $g11)) - unreachable - ) (global (;0;) (ref $f11) ref.func $g11) (global (;1;) (ref $f21) ref.func $g11) (global (;2;) (ref $f11) ref.func $g12) @@ -29,4 +23,10 @@ (global (;5;) (ref $g21) ref.func $g11) (global (;6;) (ref $g12) ref.func $g12) (global (;7;) (ref $g22) ref.func $g12) + (func $g11 (;0;) (type $g11) (result (ref func)) + unreachable + ) + (func $g12 (;1;) (type $g12) (result (ref $g11)) + unreachable + ) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/17.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/17.print index 98ebf663e9..068b22b0cf 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/17.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/17.print @@ -7,6 +7,15 @@ (type $t2 (;2;) (sub $t1 (func (result (ref null $t2))))) ) (type (;3;) (func)) + (table (;0;) 3 3 funcref) + (export "run" (func 3)) + (export "fail1" (func 4)) + (export "fail2" (func 5)) + (export "fail3" (func 6)) + (export "fail4" (func 7)) + (export "fail5" (func 8)) + (export "fail6" (func 9)) + (elem (;0;) (i32.const 0) func $f0 $f1 $f2) (func $f0 (;0;) (type $t0) (result funcref) ref.null func ) @@ -112,13 +121,4 @@ ref.cast (ref $t2) br 0 ) - (table (;0;) 3 3 funcref) - (export "run" (func 3)) - (export "fail1" (func 4)) - (export "fail2" (func 5)) - (export "fail3" (func 6)) - (export "fail4" (func 7)) - (export "fail5" (func 8)) - (export "fail6" (func 9)) - (elem (;0;) (i32.const 0) func $f0 $f1 $f2) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/25.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/25.print index 7a3c81e1ed..5ba9c153d9 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/25.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/25.print @@ -1,6 +1,12 @@ (module (type $t1 (;0;) (sub (func))) (type $t2 (;1;) (func)) + (table (;0;) 2 2 funcref) + (export "fail1" (func 2)) + (export "fail2" (func 3)) + (export "fail3" (func 4)) + (export "fail4" (func 5)) + (elem (;0;) (i32.const 0) func $f1 $f2) (func $f1 (;0;) (type $t1)) (func $f2 (;1;) (type $t2)) (func (;2;) (type $t1) @@ -27,10 +33,4 @@ ref.cast (ref $t2) drop ) - (table (;0;) 2 2 funcref) - (export "fail1" (func 2)) - (export "fail2" (func 3)) - (export "fail3" (func 4)) - (export "fail4" (func 5)) - (elem (;0;) (i32.const 0) func $f1 $f2) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/30.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/30.print index 189b0c5776..1090685677 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/30.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/30.print @@ -3,6 +3,11 @@ (type $t2 (;1;) (sub $t1 (func))) (type $t3 (;2;) (sub $t2 (func))) (type $t4 (;3;) (func)) + (table (;0;) 2 2 (ref null $t2)) + (export "run" (func 2)) + (export "fail1" (func 3)) + (export "fail2" (func 4)) + (elem (;0;) (i32.const 0) (ref null $t2) (ref.func $f2) (ref.func $f3)) (func $f2 (;0;) (type $t2)) (func $f3 (;1;) (type $t3)) (func (;2;) (type $t1) @@ -25,9 +30,4 @@ i32.const 0 call_indirect (type $t4) ) - (table (;0;) 2 2 (ref null $t2)) - (export "run" (func 2)) - (export "fail1" (func 3)) - (export "fail2" (func 4)) - (elem (;0;) (i32.const 0) (ref null $t2) (ref.func $f2) (ref.func $f3)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/34.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/34.print index 52fbaef1df..2a35106a41 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/34.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/34.print @@ -16,11 +16,11 @@ (type (;7;) (struct)) ) (type (;8;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $g) (func $g (;0;) (type $g2)) (func (;1;) (type 8) (result i32) ref.func $g ref.test (ref $g1) ) - (export "run" (func 1)) - (elem (;0;) declare func $g) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/36.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/36.print index 73d9873650..8176feb999 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/36.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/36.print @@ -16,11 +16,11 @@ (type (;7;) (sub $s2 (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2))))) ) (type (;8;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $g) (func $g (;0;) (type $g2)) (func (;1;) (type 8) (result i32) ref.func $g ref.test (ref $g1) ) - (export "run" (func 1)) - (elem (;0;) declare func $g) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/38.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/38.print index e7269e968a..6ffba1e781 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/38.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/38.print @@ -16,11 +16,11 @@ (type (;7;) (struct)) ) (type (;8;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $g) (func $g (;0;) (type $g2)) (func (;1;) (type 8) (result i32) ref.func $g ref.test (ref $g1) ) - (export "run" (func 1)) - (elem (;0;) declare func $g) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/40.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/40.print index 943f1ccd5e..a2402f87ab 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/40.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/40.print @@ -12,11 +12,11 @@ (type (;5;) (struct)) ) (type (;6;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $g) (func $g (;0;) (type $g)) (func (;1;) (type 6) (result i32) ref.func $g ref.test (ref $f1) ) - (export "run" (func 1)) - (elem (;0;) declare func $g) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/42.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/42.print index 4c6a454975..e216c696ba 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/42.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/42.print @@ -20,6 +20,8 @@ (type (;9;) (struct)) ) (type (;10;) (func (result i32 i32))) + (export "run" (func 1)) + (elem (;0;) declare func $h) (func $h (;0;) (type $h)) (func (;1;) (type 10) (result i32 i32) ref.func $h @@ -27,6 +29,4 @@ ref.func $h ref.test (ref $g1) ) - (export "run" (func 1)) - (elem (;0;) declare func $h) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/44.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/44.print index 26645c88d5..c9fae9e43d 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/44.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/44.print @@ -8,6 +8,9 @@ (type $f22 (;3;) (sub $f21 (func (result (ref $f21))))) ) (type (;4;) (func (result i32 i32 i32 i32))) + (export "run" (func 2)) + (elem (;0;) declare func $f11) + (elem (;1;) declare func $f12) (func $f11 (;0;) (type $f11) (result (ref func)) unreachable ) @@ -24,7 +27,4 @@ ref.func $f12 ref.test (ref $f22) ) - (export "run" (func 2)) - (elem (;0;) declare func $f11) - (elem (;1;) declare func $f12) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/46.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/46.print index 8b073a6d51..da182e8031 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/46.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/46.print @@ -16,6 +16,9 @@ (type $g22 (;7;) (sub $g21 (func (result (ref $g21))))) ) (type (;8;) (func (result i32 i32 i32 i32 i32 i32 i32 i32))) + (export "run" (func 2)) + (elem (;0;) declare func $g11) + (elem (;1;) declare func $g12) (func $g11 (;0;) (type $g11) (result (ref func)) unreachable ) @@ -40,7 +43,4 @@ ref.func $g12 ref.test (ref $g22) ) - (export "run" (func 2)) - (elem (;0;) declare func $g11) - (elem (;1;) declare func $g12) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/48.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/48.print index 79dea0e0a5..f1868bd768 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/48.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/48.print @@ -8,11 +8,11 @@ (type $f22 (;3;) (sub $f11 (func))) ) (type (;4;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $f21)) (func (;1;) (type 4) (result i32) ref.func $f ref.test (ref $f11) ) - (export "run" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/50.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/50.print index 57d5a2dbb8..e86353cb45 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/50.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/50.print @@ -12,11 +12,11 @@ (type $f22 (;5;) (sub $f11 (func))) ) (type (;6;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $f21)) (func (;1;) (type 6) (result i32) ref.func $f ref.test (ref $f11) ) - (export "run" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/52.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/52.print index 5b1fc39f0e..7b1919bed3 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/52.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/52.print @@ -6,6 +6,9 @@ (rec (type $t2 (;2;) (sub $t1 (func (result (ref null $t2))))) ) + (export "f0" (func 0)) + (export "f1" (func 1)) + (export "f2" (func 2)) (func (;0;) (type $t0) (result funcref) ref.null func ) @@ -15,7 +18,4 @@ (func (;2;) (type $t2) (result (ref null $t2)) ref.null $t2 ) - (export "f0" (func 0)) - (export "f1" (func 1)) - (export "f2" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/58.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/58.print index 17442b2ced..4fd6647b51 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/58.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/58.print @@ -1,8 +1,8 @@ (module (type $t1 (;0;) (sub (func))) (type $t2 (;1;) (func)) - (func (;0;) (type $t1)) - (func (;1;) (type $t2)) (export "f1" (func 0)) (export "f2" (func 1)) + (func (;0;) (type $t1)) + (func (;1;) (type $t2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/62.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/62.print index 166d73dbbd..01474d2e24 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/62.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/62.print @@ -7,6 +7,6 @@ (type $g2 (;2;) (sub $f2 (func))) (type (;3;) (struct)) ) - (func (;0;) (type $g2)) (export "g" (func 0)) + (func (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/65.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/65.print index 311eba83f7..b58299ea5c 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/65.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/65.print @@ -11,6 +11,6 @@ (type $g2 (;4;) (sub $f2 (func))) (type (;5;) (sub $s2 (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2))))) ) - (func (;0;) (type $g2)) (export "g" (func 0)) + (func (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/68.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/68.print index 4933f3415d..26d9bf3393 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/68.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/68.print @@ -11,6 +11,6 @@ (type $g2 (;4;) (sub $f2 (func))) (type (;5;) (struct)) ) - (func (;0;) (type $g2)) (export "g" (func 0)) + (func (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/71.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/71.print index 650668d0a2..0dda8366d8 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/71.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/71.print @@ -11,6 +11,6 @@ (type $g (;4;) (sub $f1 (func))) (type (;5;) (struct)) ) - (func (;0;) (type $g)) (export "g" (func 0)) + (func (;0;) (type $g)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/74.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/74.print index 678221f7d9..3552c862df 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/74.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/74.print @@ -15,6 +15,6 @@ (type $h (;6;) (sub $g2 (func))) (type (;7;) (struct)) ) - (func (;0;) (type $h)) (export "h" (func 0)) + (func (;0;) (type $h)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/77.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/77.print index 9940d23b0e..4e5e40a636 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/77.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/77.print @@ -7,12 +7,12 @@ (type $f21 (;2;) (sub (func (result (ref func))))) (type $f22 (;3;) (sub $f21 (func (result (ref $f21))))) ) + (export "f11" (func 0)) + (export "f12" (func 1)) (func (;0;) (type $f11) (result (ref func)) unreachable ) (func (;1;) (type $f12) (result (ref $f11)) unreachable ) - (export "f11" (func 0)) - (export "f12" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/8.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/8.print index 20d055b5b4..9a3a31faf2 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/8.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/8.print @@ -15,6 +15,6 @@ (type $g2 (;6;) (sub $f2 (func))) (type (;7;) (struct)) ) - (func $g (;0;) (type $g2)) (global (;0;) (ref $g1) ref.func $g) + (func $g (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/80.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/80.print index e46030e6f6..05b9e26836 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/80.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/80.print @@ -15,12 +15,12 @@ (type $g21 (;6;) (sub $f21 (func (result (ref func))))) (type $g22 (;7;) (sub $g21 (func (result (ref $g21))))) ) + (export "g11" (func 0)) + (export "g12" (func 1)) (func (;0;) (type $g11) (result (ref func)) unreachable ) (func (;1;) (type $g12) (result (ref $g11)) unreachable ) - (export "g11" (func 0)) - (export "g12" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/83.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/83.print index 7036cc5420..752d548a65 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/83.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/83.print @@ -7,6 +7,6 @@ (type $f21 (;2;) (sub (func))) (type $f22 (;3;) (sub $f11 (func))) ) - (func (;0;) (type $f21)) (export "f" (func 0)) + (func (;0;) (type $f21)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/86.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/86.print index 2b83232510..1333a6d633 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/86.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/86.print @@ -11,6 +11,6 @@ (type $f21 (;4;) (sub (func))) (type $f22 (;5;) (sub $f11 (func))) ) - (func (;0;) (type $f21)) (export "f" (func 0)) + (func (;0;) (type $f21)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/9.print b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/9.print index f8b1d74433..cf8030ee26 100644 --- a/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/9.print +++ b/tests/snapshots/testsuite/proposals/gc/type-subtyping.wast/9.print @@ -15,6 +15,6 @@ (type $g2 (;6;) (sub $f2 (func))) (type (;7;) (sub $s2 (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2))))) ) - (func $g (;0;) (type $g2)) (global (;0;) (ref $g1) ref.func $g) + (func $g (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/unreached-valid.wast/0.print b/tests/snapshots/testsuite/proposals/gc/unreached-valid.wast/0.print index 78096b126f..878560637f 100644 --- a/tests/snapshots/testsuite/proposals/gc/unreached-valid.wast/0.print +++ b/tests/snapshots/testsuite/proposals/gc/unreached-valid.wast/0.print @@ -3,6 +3,14 @@ (type (;1;) (func)) (type (;2;) (func (result i32))) (type (;3;) (func (result i64))) + (export "select-trap-left" (func 0)) + (export "select-trap-right" (func 1)) + (export "select-unreached" (func 2)) + (export "select-unreached-result1" (func 3)) + (export "select-unreached-result2" (func 4)) + (export "select-unreached-num" (func 5)) + (export "select-unreached-ref" (func 6)) + (export "call_ref-unreached" (func 7)) (func (;0;) (type $t) (param $cond i32) (result i32) unreachable i32.const 0 @@ -64,12 +72,4 @@ unreachable call_ref $t ) - (export "select-trap-left" (func 0)) - (export "select-trap-right" (func 1)) - (export "select-unreached" (func 2)) - (export "select-unreached-result1" (func 3)) - (export "select-unreached-result2" (func 4)) - (export "select-unreached-num" (func 5)) - (export "select-unreached-ref" (func 6)) - (export "call_ref-unreached" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/gc/unreached-valid.wast/10.print b/tests/snapshots/testsuite/proposals/gc/unreached-valid.wast/10.print index 3baf0b6d5d..6595b36d4b 100644 --- a/tests/snapshots/testsuite/proposals/gc/unreached-valid.wast/10.print +++ b/tests/snapshots/testsuite/proposals/gc/unreached-valid.wast/10.print @@ -1,5 +1,6 @@ (module (type (;0;) (func)) + (export "meet-bottom" (func 0)) (func (;0;) (type 0) block (result f64) ;; label = @1 block (result f32) ;; label = @2 @@ -12,5 +13,4 @@ end drop ) - (export "meet-bottom" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/address.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/address.wast/0.print index ea2bb14e0c..b66abe15ac 100644 --- a/tests/snapshots/testsuite/proposals/memory64/address.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/address.wast/0.print @@ -1,6 +1,37 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "8u_good1" (func 0)) + (export "8u_good2" (func 1)) + (export "8u_good3" (func 2)) + (export "8u_good4" (func 3)) + (export "8u_good5" (func 4)) + (export "8s_good1" (func 5)) + (export "8s_good2" (func 6)) + (export "8s_good3" (func 7)) + (export "8s_good4" (func 8)) + (export "8s_good5" (func 9)) + (export "16u_good1" (func 10)) + (export "16u_good2" (func 11)) + (export "16u_good3" (func 12)) + (export "16u_good4" (func 13)) + (export "16u_good5" (func 14)) + (export "16s_good1" (func 15)) + (export "16s_good2" (func 16)) + (export "16s_good3" (func 17)) + (export "16s_good4" (func 18)) + (export "16s_good5" (func 19)) + (export "32_good1" (func 20)) + (export "32_good2" (func 21)) + (export "32_good3" (func 22)) + (export "32_good4" (func 23)) + (export "32_good5" (func 24)) + (export "8u_bad" (func 25)) + (export "8s_bad" (func 26)) + (export "16u_bad" (func 27)) + (export "16s_bad" (func 28)) + (export "32_bad" (func 29)) (func (;0;) (type 0) (param $i i32) (result i32) local.get $i i32.load8_u @@ -126,36 +157,5 @@ i32.load offset=4294967295 drop ) - (memory (;0;) 1) - (export "8u_good1" (func 0)) - (export "8u_good2" (func 1)) - (export "8u_good3" (func 2)) - (export "8u_good4" (func 3)) - (export "8u_good5" (func 4)) - (export "8s_good1" (func 5)) - (export "8s_good2" (func 6)) - (export "8s_good3" (func 7)) - (export "8s_good4" (func 8)) - (export "8s_good5" (func 9)) - (export "16u_good1" (func 10)) - (export "16u_good2" (func 11)) - (export "16u_good3" (func 12)) - (export "16u_good4" (func 13)) - (export "16u_good5" (func 14)) - (export "16s_good1" (func 15)) - (export "16s_good2" (func 16)) - (export "16s_good3" (func 17)) - (export "16s_good4" (func 18)) - (export "16s_good5" (func 19)) - (export "32_good1" (func 20)) - (export "32_good2" (func 21)) - (export "32_good3" (func 22)) - (export "32_good4" (func 23)) - (export "32_good5" (func 24)) - (export "8u_bad" (func 25)) - (export "8s_bad" (func 26)) - (export "16u_bad" (func 27)) - (export "16s_bad" (func 28)) - (export "32_bad" (func 29)) (data (;0;) (i32.const 0) "abcdefghijklmnopqrstuvwxyz") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/address.wast/220.print b/tests/snapshots/testsuite/proposals/memory64/address.wast/220.print index e9e8eaec2c..72afb91b4c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/address.wast/220.print +++ b/tests/snapshots/testsuite/proposals/memory64/address.wast/220.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (param i32) (result f32))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "32_good1" (func 0)) + (export "32_good2" (func 1)) + (export "32_good3" (func 2)) + (export "32_good4" (func 3)) + (export "32_good5" (func 4)) + (export "32_bad" (func 5)) (func (;0;) (type 0) (param $i i32) (result f32) local.get $i f32.load @@ -26,12 +33,5 @@ f32.load offset=4294967295 drop ) - (memory (;0;) 1) - (export "32_good1" (func 0)) - (export "32_good2" (func 1)) - (export "32_good3" (func 2)) - (export "32_good4" (func 3)) - (export "32_good5" (func 4)) - (export "32_bad" (func 5)) (data (;0;) (i32.const 0) "\00\00\00\00\00\00\a0\7f\01\00\d0\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/address.wast/240.print b/tests/snapshots/testsuite/proposals/memory64/address.wast/240.print index c35e77c080..c9fbc17896 100644 --- a/tests/snapshots/testsuite/proposals/memory64/address.wast/240.print +++ b/tests/snapshots/testsuite/proposals/memory64/address.wast/240.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (param i32) (result f64))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "64_good1" (func 0)) + (export "64_good2" (func 1)) + (export "64_good3" (func 2)) + (export "64_good4" (func 3)) + (export "64_good5" (func 4)) + (export "64_bad" (func 5)) (func (;0;) (type 0) (param $i i32) (result f64) local.get $i f64.load @@ -26,12 +33,5 @@ f64.load offset=4294967295 drop ) - (memory (;0;) 1) - (export "64_good1" (func 0)) - (export "64_good2" (func 1)) - (export "64_good3" (func 2)) - (export "64_good4" (func 3)) - (export "64_good5" (func 4)) - (export "64_bad" (func 5)) (data (;0;) (i32.const 0) "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\f4\7f\01\00\00\00\00\00\fc\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/address.wast/93.print b/tests/snapshots/testsuite/proposals/memory64/address.wast/93.print index defcb46097..863b0fe254 100644 --- a/tests/snapshots/testsuite/proposals/memory64/address.wast/93.print +++ b/tests/snapshots/testsuite/proposals/memory64/address.wast/93.print @@ -1,6 +1,49 @@ (module (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "8u_good1" (func 0)) + (export "8u_good2" (func 1)) + (export "8u_good3" (func 2)) + (export "8u_good4" (func 3)) + (export "8u_good5" (func 4)) + (export "8s_good1" (func 5)) + (export "8s_good2" (func 6)) + (export "8s_good3" (func 7)) + (export "8s_good4" (func 8)) + (export "8s_good5" (func 9)) + (export "16u_good1" (func 10)) + (export "16u_good2" (func 11)) + (export "16u_good3" (func 12)) + (export "16u_good4" (func 13)) + (export "16u_good5" (func 14)) + (export "16s_good1" (func 15)) + (export "16s_good2" (func 16)) + (export "16s_good3" (func 17)) + (export "16s_good4" (func 18)) + (export "16s_good5" (func 19)) + (export "32u_good1" (func 20)) + (export "32u_good2" (func 21)) + (export "32u_good3" (func 22)) + (export "32u_good4" (func 23)) + (export "32u_good5" (func 24)) + (export "32s_good1" (func 25)) + (export "32s_good2" (func 26)) + (export "32s_good3" (func 27)) + (export "32s_good4" (func 28)) + (export "32s_good5" (func 29)) + (export "64_good1" (func 30)) + (export "64_good2" (func 31)) + (export "64_good3" (func 32)) + (export "64_good4" (func 33)) + (export "64_good5" (func 34)) + (export "8u_bad" (func 35)) + (export "8s_bad" (func 36)) + (export "16u_bad" (func 37)) + (export "16s_bad" (func 38)) + (export "32u_bad" (func 39)) + (export "32s_bad" (func 40)) + (export "64_bad" (func 41)) (func (;0;) (type 0) (param $i i32) (result i64) local.get $i i64.load8_u @@ -176,48 +219,5 @@ i64.load offset=4294967295 drop ) - (memory (;0;) 1) - (export "8u_good1" (func 0)) - (export "8u_good2" (func 1)) - (export "8u_good3" (func 2)) - (export "8u_good4" (func 3)) - (export "8u_good5" (func 4)) - (export "8s_good1" (func 5)) - (export "8s_good2" (func 6)) - (export "8s_good3" (func 7)) - (export "8s_good4" (func 8)) - (export "8s_good5" (func 9)) - (export "16u_good1" (func 10)) - (export "16u_good2" (func 11)) - (export "16u_good3" (func 12)) - (export "16u_good4" (func 13)) - (export "16u_good5" (func 14)) - (export "16s_good1" (func 15)) - (export "16s_good2" (func 16)) - (export "16s_good3" (func 17)) - (export "16s_good4" (func 18)) - (export "16s_good5" (func 19)) - (export "32u_good1" (func 20)) - (export "32u_good2" (func 21)) - (export "32u_good3" (func 22)) - (export "32u_good4" (func 23)) - (export "32u_good5" (func 24)) - (export "32s_good1" (func 25)) - (export "32s_good2" (func 26)) - (export "32s_good3" (func 27)) - (export "32s_good4" (func 28)) - (export "32s_good5" (func 29)) - (export "64_good1" (func 30)) - (export "64_good2" (func 31)) - (export "64_good3" (func 32)) - (export "64_good4" (func 33)) - (export "64_good5" (func 34)) - (export "8u_bad" (func 35)) - (export "8s_bad" (func 36)) - (export "16u_bad" (func 37)) - (export "16s_bad" (func 38)) - (export "32u_bad" (func 39)) - (export "32s_bad" (func 40)) - (export "64_bad" (func 41)) (data (;0;) (i32.const 0) "abcdefghijklmnopqrstuvwxyz") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/address0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/address0.wast/0.print index a3e9101715..7165da378e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/address0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/address0.wast/0.print @@ -1,6 +1,38 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 1) + (export "8u_good1" (func 0)) + (export "8u_good2" (func 1)) + (export "8u_good3" (func 2)) + (export "8u_good4" (func 3)) + (export "8u_good5" (func 4)) + (export "8s_good1" (func 5)) + (export "8s_good2" (func 6)) + (export "8s_good3" (func 7)) + (export "8s_good4" (func 8)) + (export "8s_good5" (func 9)) + (export "16u_good1" (func 10)) + (export "16u_good2" (func 11)) + (export "16u_good3" (func 12)) + (export "16u_good4" (func 13)) + (export "16u_good5" (func 14)) + (export "16s_good1" (func 15)) + (export "16s_good2" (func 16)) + (export "16s_good3" (func 17)) + (export "16s_good4" (func 18)) + (export "16s_good5" (func 19)) + (export "32_good1" (func 20)) + (export "32_good2" (func 21)) + (export "32_good3" (func 22)) + (export "32_good4" (func 23)) + (export "32_good5" (func 24)) + (export "8u_bad" (func 25)) + (export "8s_bad" (func 26)) + (export "16u_bad" (func 27)) + (export "16s_bad" (func 28)) + (export "32_bad" (func 29)) (func (;0;) (type 0) (param $i i32) (result i32) local.get $i i32.load8_u $mem1 @@ -126,37 +158,5 @@ i32.load $mem1 offset=4294967295 drop ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 1) - (export "8u_good1" (func 0)) - (export "8u_good2" (func 1)) - (export "8u_good3" (func 2)) - (export "8u_good4" (func 3)) - (export "8u_good5" (func 4)) - (export "8s_good1" (func 5)) - (export "8s_good2" (func 6)) - (export "8s_good3" (func 7)) - (export "8s_good4" (func 8)) - (export "8s_good5" (func 9)) - (export "16u_good1" (func 10)) - (export "16u_good2" (func 11)) - (export "16u_good3" (func 12)) - (export "16u_good4" (func 13)) - (export "16u_good5" (func 14)) - (export "16s_good1" (func 15)) - (export "16s_good2" (func 16)) - (export "16s_good3" (func 17)) - (export "16s_good4" (func 18)) - (export "16s_good5" (func 19)) - (export "32_good1" (func 20)) - (export "32_good2" (func 21)) - (export "32_good3" (func 22)) - (export "32_good4" (func 23)) - (export "32_good5" (func 24)) - (export "8u_bad" (func 25)) - (export "8s_bad" (func 26)) - (export "16u_bad" (func 27)) - (export "16s_bad" (func 28)) - (export "32_bad" (func 29)) (data (;0;) (memory $mem1) (i32.const 0) "abcdefghijklmnopqrstuvwxyz") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/address1.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/address1.wast/0.print index a35d14db30..a8e02d8e21 100644 --- a/tests/snapshots/testsuite/proposals/memory64/address1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/address1.wast/0.print @@ -1,6 +1,53 @@ (module (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 0) + (memory $mem2 (;2;) 0) + (memory $mem3 (;3;) 0) + (memory $mem4 (;4;) 1) + (export "8u_good1" (func 0)) + (export "8u_good2" (func 1)) + (export "8u_good3" (func 2)) + (export "8u_good4" (func 3)) + (export "8u_good5" (func 4)) + (export "8s_good1" (func 5)) + (export "8s_good2" (func 6)) + (export "8s_good3" (func 7)) + (export "8s_good4" (func 8)) + (export "8s_good5" (func 9)) + (export "16u_good1" (func 10)) + (export "16u_good2" (func 11)) + (export "16u_good3" (func 12)) + (export "16u_good4" (func 13)) + (export "16u_good5" (func 14)) + (export "16s_good1" (func 15)) + (export "16s_good2" (func 16)) + (export "16s_good3" (func 17)) + (export "16s_good4" (func 18)) + (export "16s_good5" (func 19)) + (export "32u_good1" (func 20)) + (export "32u_good2" (func 21)) + (export "32u_good3" (func 22)) + (export "32u_good4" (func 23)) + (export "32u_good5" (func 24)) + (export "32s_good1" (func 25)) + (export "32s_good2" (func 26)) + (export "32s_good3" (func 27)) + (export "32s_good4" (func 28)) + (export "32s_good5" (func 29)) + (export "64_good1" (func 30)) + (export "64_good2" (func 31)) + (export "64_good3" (func 32)) + (export "64_good4" (func 33)) + (export "64_good5" (func 34)) + (export "8u_bad" (func 35)) + (export "8s_bad" (func 36)) + (export "16u_bad" (func 37)) + (export "16s_bad" (func 38)) + (export "32u_bad" (func 39)) + (export "32s_bad" (func 40)) + (export "64_bad" (func 41)) (func (;0;) (type 0) (param $i i32) (result i64) local.get $i i64.load8_u $mem4 @@ -176,52 +223,5 @@ i64.load $mem4 offset=4294967295 drop ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 0) - (memory $mem2 (;2;) 0) - (memory $mem3 (;3;) 0) - (memory $mem4 (;4;) 1) - (export "8u_good1" (func 0)) - (export "8u_good2" (func 1)) - (export "8u_good3" (func 2)) - (export "8u_good4" (func 3)) - (export "8u_good5" (func 4)) - (export "8s_good1" (func 5)) - (export "8s_good2" (func 6)) - (export "8s_good3" (func 7)) - (export "8s_good4" (func 8)) - (export "8s_good5" (func 9)) - (export "16u_good1" (func 10)) - (export "16u_good2" (func 11)) - (export "16u_good3" (func 12)) - (export "16u_good4" (func 13)) - (export "16u_good5" (func 14)) - (export "16s_good1" (func 15)) - (export "16s_good2" (func 16)) - (export "16s_good3" (func 17)) - (export "16s_good4" (func 18)) - (export "16s_good5" (func 19)) - (export "32u_good1" (func 20)) - (export "32u_good2" (func 21)) - (export "32u_good3" (func 22)) - (export "32u_good4" (func 23)) - (export "32u_good5" (func 24)) - (export "32s_good1" (func 25)) - (export "32s_good2" (func 26)) - (export "32s_good3" (func 27)) - (export "32s_good4" (func 28)) - (export "32s_good5" (func 29)) - (export "64_good1" (func 30)) - (export "64_good2" (func 31)) - (export "64_good3" (func 32)) - (export "64_good4" (func 33)) - (export "64_good5" (func 34)) - (export "8u_bad" (func 35)) - (export "8s_bad" (func 36)) - (export "16u_bad" (func 37)) - (export "16s_bad" (func 38)) - (export "32u_bad" (func 39)) - (export "32s_bad" (func 40)) - (export "64_bad" (func 41)) (data (;0;) (memory $mem4) (i32.const 0) "abcdefghijklmnopqrstuvwxyz") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/address64.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/address64.wast/0.print index 009d5461f0..ed1382815c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/address64.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/address64.wast/0.print @@ -1,6 +1,37 @@ (module (type (;0;) (func (param i64) (result i32))) (type (;1;) (func (param i64))) + (memory (;0;) i64 1) + (export "8u_good1" (func 0)) + (export "8u_good2" (func 1)) + (export "8u_good3" (func 2)) + (export "8u_good4" (func 3)) + (export "8u_good5" (func 4)) + (export "8s_good1" (func 5)) + (export "8s_good2" (func 6)) + (export "8s_good3" (func 7)) + (export "8s_good4" (func 8)) + (export "8s_good5" (func 9)) + (export "16u_good1" (func 10)) + (export "16u_good2" (func 11)) + (export "16u_good3" (func 12)) + (export "16u_good4" (func 13)) + (export "16u_good5" (func 14)) + (export "16s_good1" (func 15)) + (export "16s_good2" (func 16)) + (export "16s_good3" (func 17)) + (export "16s_good4" (func 18)) + (export "16s_good5" (func 19)) + (export "32_good1" (func 20)) + (export "32_good2" (func 21)) + (export "32_good3" (func 22)) + (export "32_good4" (func 23)) + (export "32_good5" (func 24)) + (export "8u_bad" (func 25)) + (export "8s_bad" (func 26)) + (export "16u_bad" (func 27)) + (export "16s_bad" (func 28)) + (export "32_bad" (func 29)) (func (;0;) (type 0) (param $i i64) (result i32) local.get $i i32.load8_u @@ -126,36 +157,5 @@ i32.load offset=4294967295 drop ) - (memory (;0;) i64 1) - (export "8u_good1" (func 0)) - (export "8u_good2" (func 1)) - (export "8u_good3" (func 2)) - (export "8u_good4" (func 3)) - (export "8u_good5" (func 4)) - (export "8s_good1" (func 5)) - (export "8s_good2" (func 6)) - (export "8s_good3" (func 7)) - (export "8s_good4" (func 8)) - (export "8s_good5" (func 9)) - (export "16u_good1" (func 10)) - (export "16u_good2" (func 11)) - (export "16u_good3" (func 12)) - (export "16u_good4" (func 13)) - (export "16u_good5" (func 14)) - (export "16s_good1" (func 15)) - (export "16s_good2" (func 16)) - (export "16s_good3" (func 17)) - (export "16s_good4" (func 18)) - (export "16s_good5" (func 19)) - (export "32_good1" (func 20)) - (export "32_good2" (func 21)) - (export "32_good3" (func 22)) - (export "32_good4" (func 23)) - (export "32_good5" (func 24)) - (export "8u_bad" (func 25)) - (export "8s_bad" (func 26)) - (export "16u_bad" (func 27)) - (export "16s_bad" (func 28)) - (export "32_bad" (func 29)) (data (;0;) (i64.const 0) "abcdefghijklmnopqrstuvwxyz") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/address64.wast/206.print b/tests/snapshots/testsuite/proposals/memory64/address64.wast/206.print index b72e11ec83..366e34e436 100644 --- a/tests/snapshots/testsuite/proposals/memory64/address64.wast/206.print +++ b/tests/snapshots/testsuite/proposals/memory64/address64.wast/206.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (param i64) (result f32))) (type (;1;) (func (param i64))) + (memory (;0;) i64 1) + (export "32_good1" (func 0)) + (export "32_good2" (func 1)) + (export "32_good3" (func 2)) + (export "32_good4" (func 3)) + (export "32_good5" (func 4)) + (export "32_bad" (func 5)) (func (;0;) (type 0) (param $i i64) (result f32) local.get $i f32.load @@ -26,12 +33,5 @@ f32.load offset=4294967295 drop ) - (memory (;0;) i64 1) - (export "32_good1" (func 0)) - (export "32_good2" (func 1)) - (export "32_good3" (func 2)) - (export "32_good4" (func 3)) - (export "32_good5" (func 4)) - (export "32_bad" (func 5)) (data (;0;) (i64.const 0) "\00\00\00\00\00\00\a0\7f\01\00\d0\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/address64.wast/224.print b/tests/snapshots/testsuite/proposals/memory64/address64.wast/224.print index e975a20906..5ab2ffb235 100644 --- a/tests/snapshots/testsuite/proposals/memory64/address64.wast/224.print +++ b/tests/snapshots/testsuite/proposals/memory64/address64.wast/224.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (param i64) (result f64))) (type (;1;) (func (param i64))) + (memory (;0;) i64 1) + (export "64_good1" (func 0)) + (export "64_good2" (func 1)) + (export "64_good3" (func 2)) + (export "64_good4" (func 3)) + (export "64_good5" (func 4)) + (export "64_bad" (func 5)) (func (;0;) (type 0) (param $i i64) (result f64) local.get $i f64.load @@ -26,12 +33,5 @@ f64.load offset=4294967295 drop ) - (memory (;0;) i64 1) - (export "64_good1" (func 0)) - (export "64_good2" (func 1)) - (export "64_good3" (func 2)) - (export "64_good4" (func 3)) - (export "64_good5" (func 4)) - (export "64_bad" (func 5)) (data (;0;) (i64.const 0) "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\f4\7f\01\00\00\00\00\00\fc\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/address64.wast/86.print b/tests/snapshots/testsuite/proposals/memory64/address64.wast/86.print index 184c473a69..861f00b734 100644 --- a/tests/snapshots/testsuite/proposals/memory64/address64.wast/86.print +++ b/tests/snapshots/testsuite/proposals/memory64/address64.wast/86.print @@ -1,6 +1,49 @@ (module (type (;0;) (func (param i64) (result i64))) (type (;1;) (func (param i64))) + (memory (;0;) i64 1) + (export "8u_good1" (func 0)) + (export "8u_good2" (func 1)) + (export "8u_good3" (func 2)) + (export "8u_good4" (func 3)) + (export "8u_good5" (func 4)) + (export "8s_good1" (func 5)) + (export "8s_good2" (func 6)) + (export "8s_good3" (func 7)) + (export "8s_good4" (func 8)) + (export "8s_good5" (func 9)) + (export "16u_good1" (func 10)) + (export "16u_good2" (func 11)) + (export "16u_good3" (func 12)) + (export "16u_good4" (func 13)) + (export "16u_good5" (func 14)) + (export "16s_good1" (func 15)) + (export "16s_good2" (func 16)) + (export "16s_good3" (func 17)) + (export "16s_good4" (func 18)) + (export "16s_good5" (func 19)) + (export "32u_good1" (func 20)) + (export "32u_good2" (func 21)) + (export "32u_good3" (func 22)) + (export "32u_good4" (func 23)) + (export "32u_good5" (func 24)) + (export "32s_good1" (func 25)) + (export "32s_good2" (func 26)) + (export "32s_good3" (func 27)) + (export "32s_good4" (func 28)) + (export "32s_good5" (func 29)) + (export "64_good1" (func 30)) + (export "64_good2" (func 31)) + (export "64_good3" (func 32)) + (export "64_good4" (func 33)) + (export "64_good5" (func 34)) + (export "8u_bad" (func 35)) + (export "8s_bad" (func 36)) + (export "16u_bad" (func 37)) + (export "16s_bad" (func 38)) + (export "32u_bad" (func 39)) + (export "32s_bad" (func 40)) + (export "64_bad" (func 41)) (func (;0;) (type 0) (param $i i64) (result i64) local.get $i i64.load8_u @@ -176,48 +219,5 @@ i64.load offset=4294967295 drop ) - (memory (;0;) i64 1) - (export "8u_good1" (func 0)) - (export "8u_good2" (func 1)) - (export "8u_good3" (func 2)) - (export "8u_good4" (func 3)) - (export "8u_good5" (func 4)) - (export "8s_good1" (func 5)) - (export "8s_good2" (func 6)) - (export "8s_good3" (func 7)) - (export "8s_good4" (func 8)) - (export "8s_good5" (func 9)) - (export "16u_good1" (func 10)) - (export "16u_good2" (func 11)) - (export "16u_good3" (func 12)) - (export "16u_good4" (func 13)) - (export "16u_good5" (func 14)) - (export "16s_good1" (func 15)) - (export "16s_good2" (func 16)) - (export "16s_good3" (func 17)) - (export "16s_good4" (func 18)) - (export "16s_good5" (func 19)) - (export "32u_good1" (func 20)) - (export "32u_good2" (func 21)) - (export "32u_good3" (func 22)) - (export "32u_good4" (func 23)) - (export "32u_good5" (func 24)) - (export "32s_good1" (func 25)) - (export "32s_good2" (func 26)) - (export "32s_good3" (func 27)) - (export "32s_good4" (func 28)) - (export "32s_good5" (func 29)) - (export "64_good1" (func 30)) - (export "64_good2" (func 31)) - (export "64_good3" (func 32)) - (export "64_good4" (func 33)) - (export "64_good5" (func 34)) - (export "8u_bad" (func 35)) - (export "8s_bad" (func 36)) - (export "16u_bad" (func 37)) - (export "16s_bad" (func 38)) - (export "32u_bad" (func 39)) - (export "32s_bad" (func 40)) - (export "64_bad" (func 41)) (data (;0;) (i64.const 0) "abcdefghijklmnopqrstuvwxyz") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/0.print index 52297c90fd..df7e2445fd 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.load8_s drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/1.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/1.print index 5813d54f5f..7dd0cbd9b0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/1.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/1.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.load8_u drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/10.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/10.print index b2dc1dada8..fd0c80a6b2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/10.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/10.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load32_u drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/106.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/106.print index 678409d928..ba4f85a357 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/106.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/106.print @@ -3,6 +3,11 @@ (type (;1;) (func (param i32) (result f64))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func (param i32 i32) (result i64))) + (memory (;0;) 1) + (export "f32_align_switch" (func 0)) + (export "f64_align_switch" (func 1)) + (export "i32_align_switch" (func 2)) + (export "i64_align_switch" (func 3)) (func (;0;) (type 0) (param i32) (result f32) (local f32 f32) f32.const 0x1.4p+3 (;=10;) @@ -563,9 +568,4 @@ end local.get 3 ) - (memory (;0;) 1) - (export "f32_align_switch" (func 0)) - (export "f64_align_switch" (func 1)) - (export "i32_align_switch" (func 2)) - (export "i64_align_switch" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/11.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/11.print index f59d995aca..bcda150970 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/11.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/11.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/12.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/12.print index 01bceccdfe..44b09c3a24 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/12.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/12.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 f32.load drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/13.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/13.print index 6de1d3fcc2..d9ea6b25ed 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/13.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/13.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 f64.load drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/14.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/14.print index c855137cdd..683c26ab31 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/14.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/14.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.const 1 i32.store8 ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/15.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/15.print index adb4763493..620230bee6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/15.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/15.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.const 1 i32.store16 ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/153.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/153.print index b43b5337e9..32dbb616e7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/153.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/153.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i64))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1) + (export "store" (func 0)) + (export "load" (func 1)) (func (;0;) (type 0) (param i32 i64) local.get 0 local.get 1 @@ -10,7 +13,4 @@ local.get 0 i32.load ) - (memory (;0;) 1) - (export "store" (func 0)) - (export "load" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/16.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/16.print index 7a3eb98033..b47aec37ba 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/16.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/16.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.const 1 i32.store ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/17.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/17.print index 3d9e3e0341..ebf742ba95 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/17.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/17.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.const 1 i64.store8 ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/18.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/18.print index ba0d8d77b0..b51b495d02 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/18.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/18.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.const 1 i64.store16 ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/19.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/19.print index e9b3dc6e0e..fed577711f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/19.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/19.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.const 1 i64.store32 ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/2.print index 1bcc9125a0..9a7d53108c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/2.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.load16_s drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/20.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/20.print index b257e06059..0b046d6d67 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/20.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/20.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.const 1 i64.store ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/21.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/21.print index 245b5e9677..e91e877334 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/21.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/21.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 f32.const 0x1p+0 (;=1;) f32.store ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/22.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/22.print index e245bf52bc..443632e673 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/22.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/22.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 f64.const 0x1p+0 (;=1;) f64.store ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/3.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/3.print index 8db2a0b6a8..d7e78d7ebc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/3.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/3.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.load16_u drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/4.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/4.print index 92efde3001..be6c5f6c02 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/4.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/4.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i32.load drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/5.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/5.print index a464418302..4e84bcc75e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/5.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/5.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load8_s drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/6.print index 7dc6ccf10d..bd322035b8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load8_u drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/7.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/7.print index 9cd079e9dc..577db0d69a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/7.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/7.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load16_s drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/8.print index b7b5e451b6..6df5b9eba0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/8.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load16_u drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align.wast/9.print b/tests/snapshots/testsuite/proposals/memory64/align.wast/9.print index 3bd6a0d3f8..50b7306a03 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align.wast/9.print +++ b/tests/snapshots/testsuite/proposals/memory64/align.wast/9.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 0) (func (;0;) (type 0) i32.const 0 i64.load32_s drop ) - (memory (;0;) 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/align0.wast/0.print index 07393d5638..dabc40312f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/align0.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param i32) (result f32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 1) + (memory $mem2 (;2;) 0) + (export "f32_align_switch" (func 0)) (func (;0;) (type 0) (param i32) (result f32) (local f32 f32) f32.const 0x1.4p+3 (;=10;) @@ -45,8 +49,4 @@ end local.get 2 ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 1) - (memory $mem2 (;2;) 0) - (export "f32_align_switch" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/0.print index d6b4399edc..d386bad94a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i32.load8_s drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/1.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/1.print index 1df5507905..35a75d99c7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/1.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/1.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i32.load8_u drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/10.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/10.print index 367361979d..484aaed000 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/10.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/10.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.load32_u drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/106.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/106.print index 9699098ac9..c439cfe6f0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/106.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/106.print @@ -3,6 +3,11 @@ (type (;1;) (func (param i32) (result f64))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func (param i32 i32) (result i64))) + (memory (;0;) i64 1) + (export "f32_align_switch" (func 0)) + (export "f64_align_switch" (func 1)) + (export "i32_align_switch" (func 2)) + (export "i64_align_switch" (func 3)) (func (;0;) (type 0) (param i32) (result f32) (local f32 f32) f32.const 0x1.4p+3 (;=10;) @@ -563,9 +568,4 @@ end local.get 3 ) - (memory (;0;) i64 1) - (export "f32_align_switch" (func 0)) - (export "f64_align_switch" (func 1)) - (export "i32_align_switch" (func 2)) - (export "i64_align_switch" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/11.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/11.print index a28e0407c1..2701cbcd38 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/11.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/11.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.load drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/12.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/12.print index cc5e3e0a2e..30b724c5cc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/12.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/12.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 f32.load drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/13.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/13.print index 0d7e739838..65d270106d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/13.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/13.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 f64.load drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/14.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/14.print index 308b986550..f15e4cd5a3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/14.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/14.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i32.const 1 i32.store8 ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/15.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/15.print index 9a7ba94226..f2b36b0b3e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/15.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/15.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i32.const 1 i32.store16 ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/153.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/153.print index aacdbe0edb..261f4f8589 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/153.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/153.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64))) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1) + (export "store" (func 0)) + (export "load" (func 1)) (func (;0;) (type 0) (param i64 i64) local.get 0 local.get 1 @@ -10,7 +13,4 @@ local.get 0 i32.load ) - (memory (;0;) i64 1) - (export "store" (func 0)) - (export "load" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/16.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/16.print index 2c0671c724..d4c08aeafa 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/16.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/16.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i32.const 1 i32.store ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/17.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/17.print index 19c207c52b..f60459c1f7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/17.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/17.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.const 1 i64.store8 ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/18.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/18.print index 31190f074c..e3579eeda9 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/18.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/18.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.const 1 i64.store16 ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/19.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/19.print index e4558133cf..45225238fc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/19.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/19.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.const 1 i64.store32 ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/2.print index 64cd2ba426..a12f0daebf 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/2.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i32.load16_s drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/20.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/20.print index e656c073e6..f9e421f7d3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/20.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/20.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.const 1 i64.store ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/21.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/21.print index e082fe1a9d..e5a6463680 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/21.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/21.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 f32.const 0x1p+0 (;=1;) f32.store ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/22.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/22.print index a5a4ce674b..dc8af18e2f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/22.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/22.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 f64.const 0x1p+0 (;=1;) f64.store ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/3.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/3.print index 1bb5a1462f..3f39180964 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/3.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/3.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i32.load16_u drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/4.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/4.print index d2e91c18ab..948fdc1b18 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/4.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/4.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i32.load drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/5.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/5.print index f1b0db960f..5ca20aac4e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/5.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/5.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.load8_s drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/6.print index 6ca99806f4..9140f6e277 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.load8_u drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/7.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/7.print index 94c23fa2e2..0c1ae250e5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/7.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/7.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.load16_s drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/8.print index 80e004e2d1..7c64c790f3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/8.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.load16_u drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/align64.wast/9.print b/tests/snapshots/testsuite/proposals/memory64/align64.wast/9.print index 59789c1174..6944fd9565 100644 --- a/tests/snapshots/testsuite/proposals/memory64/align64.wast/9.print +++ b/tests/snapshots/testsuite/proposals/memory64/align64.wast/9.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i64.load32_s drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/annotations.wast/71.print b/tests/snapshots/testsuite/proposals/memory64/annotations.wast/71.print index cea19a4982..e0dc949939 100644 --- a/tests/snapshots/testsuite/proposals/memory64/annotations.wast/71.print +++ b/tests/snapshots/testsuite/proposals/memory64/annotations.wast/71.print @@ -1,15 +1,6 @@ (module $m2 (type $T (;0;) (func (param i32 i64 i32) (result i32))) (type (;1;) (func)) - (func $f (;0;) (type $T) (param i32 i64) (param $x i32) (result i32) - (local i32 i32) (local $y i32) - block (result i32) ;; label = @1 - local.get $x - local.get 0 - i32.add - end - ) - (func $s (;1;) (type 1)) (table $t (;0;) 10 20 funcref) (memory $m (;0;) 1 2) (global $g (;0;) i32 i32.const 42) @@ -19,5 +10,14 @@ (export "f" (func $f)) (start $s) (elem (;0;) (i32.const 0) func $f $f $f) + (func $f (;0;) (type $T) (param i32 i64) (param $x i32) (result i32) + (local i32 i32) (local $y i32) + block (result i32) ;; label = @1 + local.get $x + local.get 0 + i32.add + end + ) + (func $s (;1;) (type 1)) (data (;0;) (i32.const 0) "blaC") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/array.wast/13.print b/tests/snapshots/testsuite/proposals/memory64/array.wast/13.print index 422c19dbe9..9330371daf 100644 --- a/tests/snapshots/testsuite/proposals/memory64/array.wast/13.print +++ b/tests/snapshots/testsuite/proposals/memory64/array.wast/13.print @@ -8,6 +8,11 @@ (type (;6;) (func (param i32 f32) (result f32))) (type (;7;) (func (param (ref array)) (result i32))) (type (;8;) (func (result i32))) + (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) array.new_fixed $vec 2) + (export "new" (func $new)) + (export "get" (func 2)) + (export "set_get" (func 4)) + (export "len" (func 6)) (func $new (;0;) (type 2) (result (ref $vec)) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) @@ -49,9 +54,4 @@ call $new call $len ) - (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) array.new_fixed $vec 2) - (export "new" (func $new)) - (export "get" (func 2)) - (export "set_get" (func 4)) - (export "len" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/array.wast/21.print b/tests/snapshots/testsuite/proposals/memory64/array.wast/21.print index 927e520fc5..b5206580e6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/array.wast/21.print +++ b/tests/snapshots/testsuite/proposals/memory64/array.wast/21.print @@ -8,6 +8,11 @@ (type (;6;) (func (param i32 i32) (result i32))) (type (;7;) (func (param (ref array)) (result i32))) (type (;8;) (func (result i32))) + (export "new" (func $new)) + (export "get_u" (func 2)) + (export "get_s" (func 4)) + (export "set_get" (func 6)) + (export "len" (func 8)) (func $new (;0;) (type 2) (result (ref $vec)) i32.const 1 i32.const 3 @@ -58,10 +63,5 @@ call $new call $len ) - (export "new" (func $new)) - (export "get_u" (func 2)) - (export "get_s" (func 4)) - (export "set_get" (func 6)) - (export "len" (func 8)) (data $d (;0;) "\00\01\02\ff\04") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/array.wast/31.print b/tests/snapshots/testsuite/proposals/memory64/array.wast/31.print index 74f431fa8a..5e314e04f1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/array.wast/31.print +++ b/tests/snapshots/testsuite/proposals/memory64/array.wast/31.print @@ -13,6 +13,11 @@ (type (;11;) (func (param i32 i32 i32) (result i32))) (type (;12;) (func (param (ref array)) (result i32))) (type (;13;) (func (result i32))) + (export "new" (func $new)) + (export "get" (func 4)) + (export "set_get" (func 6)) + (export "len" (func 8)) + (elem $e (;0;) (ref $bvec) (item i32.const 7 i32.const 3 array.new $bvec) (item i32.const 1 i32.const 2 array.new_fixed $bvec 2)) (func $new (;0;) (type 5) (result (ref $vec)) i32.const 0 i32.const 2 @@ -71,9 +76,4 @@ call $new call $len ) - (export "new" (func $new)) - (export "get" (func 4)) - (export "set_get" (func 6)) - (export "len" (func 8)) - (elem $e (;0;) (ref $bvec) (item i32.const 7 i32.const 3 array.new $bvec) (item i32.const 1 i32.const 2 array.new_fixed $bvec 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/array.wast/43.print b/tests/snapshots/testsuite/proposals/memory64/array.wast/43.print index 395ecc153f..b1b4bbc0e7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/array.wast/43.print +++ b/tests/snapshots/testsuite/proposals/memory64/array.wast/43.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (array (mut i32))) (type (;1;) (func)) + (export "array.get-null" (func 0)) + (export "array.set-null" (func 1)) (func (;0;) (type 1) (local (ref null $t)) local.get 0 @@ -15,6 +17,4 @@ i32.const 0 array.set $t ) - (export "array.get-null" (func 0)) - (export "array.set-null" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/array.wast/5.print b/tests/snapshots/testsuite/proposals/memory64/array.wast/5.print index 97a18bb8f7..9af66edd68 100644 --- a/tests/snapshots/testsuite/proposals/memory64/array.wast/5.print +++ b/tests/snapshots/testsuite/proposals/memory64/array.wast/5.print @@ -8,6 +8,12 @@ (type (;6;) (func (param i32 f32) (result f32))) (type (;7;) (func (param (ref array)) (result i32))) (type (;8;) (func (result i32))) + (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) i32.const 3 array.new $vec) + (global (;1;) (ref $vec) i32.const 3 array.new_default $vec) + (export "new" (func $new)) + (export "get" (func 2)) + (export "set_get" (func 4)) + (export "len" (func 6)) (func $new (;0;) (type 2) (result (ref $vec)) i32.const 3 array.new_default $vec @@ -46,10 +52,4 @@ call $new call $len ) - (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) i32.const 3 array.new $vec) - (global (;1;) (ref $vec) i32.const 3 array.new_default $vec) - (export "new" (func $new)) - (export "get" (func 2)) - (export "set_get" (func 4)) - (export "len" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/array_copy.wast/4.print b/tests/snapshots/testsuite/proposals/memory64/array_copy.wast/4.print index 8c7870cc0e..88b330bbf8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/array_copy.wast/4.print +++ b/tests/snapshots/testsuite/proposals/memory64/array_copy.wast/4.print @@ -4,6 +4,14 @@ (type (;2;) (func (param i32) (result i32))) (type (;3;) (func)) (type (;4;) (func (param i32 i32 i32))) + (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) + (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) + (export "array_get_nth" (func 0)) + (export "array_copy-null-left" (func 1)) + (export "array_copy-null-right" (func 2)) + (export "array_copy" (func 3)) + (export "array_copy_overlap_test-1" (func 4)) + (export "array_copy_overlap_test-2" (func 5)) (func (;0;) (type 2) (param $1 i32) (result i32) global.get $g_arr8_mut local.get $1 @@ -63,13 +71,5 @@ local.get $1 global.set $g_arr8_mut ) - (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) - (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) - (export "array_get_nth" (func 0)) - (export "array_copy-null-left" (func 1)) - (export "array_copy-null-right" (func 2)) - (export "array_copy" (func 3)) - (export "array_copy_overlap_test-1" (func 4)) - (export "array_copy_overlap_test-2" (func 5)) (data $d1 (;0;) "abcdefghijkl") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/array_fill.wast/3.print b/tests/snapshots/testsuite/proposals/memory64/array_fill.wast/3.print index e6c8602d9c..99aeeb7dbc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/array_fill.wast/3.print +++ b/tests/snapshots/testsuite/proposals/memory64/array_fill.wast/3.print @@ -4,6 +4,11 @@ (type (;2;) (func (param i32) (result i32))) (type (;3;) (func)) (type (;4;) (func (param i32 i32 i32))) + (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) + (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) + (export "array_get_nth" (func 0)) + (export "array_fill-null" (func 1)) + (export "array_fill" (func 2)) (func (;0;) (type 2) (param $1 i32) (result i32) global.get $g_arr8_mut local.get $1 @@ -23,9 +28,4 @@ local.get $3 array.fill $arr8_mut ) - (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) - (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) - (export "array_get_nth" (func 0)) - (export "array_fill-null" (func 1)) - (export "array_fill" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/array_init_data.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/array_init_data.wast/2.print index a9e9f95451..3cb4860adf 100644 --- a/tests/snapshots/testsuite/proposals/memory64/array_init_data.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/array_init_data.wast/2.print @@ -5,6 +5,15 @@ (type (;3;) (func (param i32) (result i32))) (type (;4;) (func)) (type (;5;) (func (param i32 i32 i32))) + (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) + (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) + (global $g_arr16_mut (;2;) (ref $arr16_mut) i32.const 6 array.new_default $arr16_mut) + (export "array_get_nth" (func 0)) + (export "array_get_nth_i16" (func 1)) + (export "array_init_data-null" (func 2)) + (export "array_init_data" (func 3)) + (export "array_init_data_i16" (func 4)) + (export "drop_segs" (func 5)) (func (;0;) (type 3) (param $1 i32) (result i32) global.get $g_arr8_mut local.get $1 @@ -39,14 +48,5 @@ (func (;5;) (type 4) data.drop $d1 ) - (global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) - (global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) - (global $g_arr16_mut (;2;) (ref $arr16_mut) i32.const 6 array.new_default $arr16_mut) - (export "array_get_nth" (func 0)) - (export "array_get_nth_i16" (func 1)) - (export "array_init_data-null" (func 2)) - (export "array_init_data" (func 3)) - (export "array_init_data_i16" (func 4)) - (export "drop_segs" (func 5)) (data $d1 (;0;) "abcdefghijkl") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/array_init_elem.wast/3.print b/tests/snapshots/testsuite/proposals/memory64/array_init_elem.wast/3.print index 392c3fbeb5..38bf0f2e68 100644 --- a/tests/snapshots/testsuite/proposals/memory64/array_init_elem.wast/3.print +++ b/tests/snapshots/testsuite/proposals/memory64/array_init_elem.wast/3.print @@ -4,6 +4,14 @@ (type $arrref_mut (;2;) (array (mut funcref))) (type (;3;) (func (param i32))) (type (;4;) (func (param i32 i32 i32))) + (table $t (;0;) 1 funcref) + (global $g_arrref (;0;) (ref $arrref) ref.func $dummy i32.const 12 array.new $arrref) + (global $g_arrref_mut (;1;) (ref $arrref_mut) i32.const 12 array.new_default $arrref_mut) + (export "array_call_nth" (func 1)) + (export "array_init_elem-null" (func 2)) + (export "array_init_elem" (func 3)) + (export "drop_segs" (func 4)) + (elem $e1 (;0;) func $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy) (func $dummy (;0;) (type $t_f)) (func (;1;) (type 3) (param $1 i32) i32.const 0 @@ -31,12 +39,4 @@ (func (;4;) (type $t_f) elem.drop $e1 ) - (table $t (;0;) 1 funcref) - (global $g_arrref (;0;) (ref $arrref) ref.func $dummy i32.const 12 array.new $arrref) - (global $g_arrref_mut (;1;) (ref $arrref_mut) i32.const 12 array.new_default $arrref_mut) - (export "array_call_nth" (func 1)) - (export "array_init_elem-null" (func 2)) - (export "array_init_elem" (func 3)) - (export "drop_segs" (func 4)) - (elem $e1 (;0;) func $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/14.print b/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/14.print index 4a5cbd8fc7..04cf6cb58e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/14.print +++ b/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/14.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "f1" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/15.print b/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/15.print index 4a5cbd8fc7..04cf6cb58e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/15.print +++ b/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/15.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "f1" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/73.print b/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/73.print index 5850cd2332..3df3dca717 100644 --- a/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/73.print +++ b/tests/snapshots/testsuite/proposals/memory64/binary-leb128.wast/73.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) i64 0) (func (;0;) (type 0) i64.const 0 i32.load offset=18446744073709551615 drop ) - (memory (;0;) i64 0) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/binary.wast/100.print b/tests/snapshots/testsuite/proposals/memory64/binary.wast/100.print index c6566d0ced..d90addbeb7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/binary.wast/100.print +++ b/tests/snapshots/testsuite/proposals/memory64/binary.wast/100.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (start 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/binary.wast/58.print b/tests/snapshots/testsuite/proposals/memory64/binary.wast/58.print index 40e23c382f..f60ef5c6a4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/binary.wast/58.print +++ b/tests/snapshots/testsuite/proposals/memory64/binary.wast/58.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/binary.wast/59.print b/tests/snapshots/testsuite/proposals/memory64/binary.wast/59.print index 149738a620..b959a17a4a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/binary.wast/59.print +++ b/tests/snapshots/testsuite/proposals/memory64/binary.wast/59.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/binary.wast/89.print b/tests/snapshots/testsuite/proposals/memory64/binary.wast/89.print index a6b9947353..e3c7ff0b0d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/binary.wast/89.print +++ b/tests/snapshots/testsuite/proposals/memory64/binary.wast/89.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/br_if.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/br_if.wast/0.print index a5c16483dd..7f0cd64211 100644 --- a/tests/snapshots/testsuite/proposals/memory64/br_if.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/br_if.wast/0.print @@ -8,6 +8,70 @@ (type (;6;) (func (param i32) (result i32))) (type (;7;) (func (param i32))) (type (;8;) (func (param i32 i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "type-i32" (func 1)) + (export "type-i64" (func 2)) + (export "type-f32" (func 3)) + (export "type-f64" (func 4)) + (export "type-i32-value" (func 5)) + (export "type-i64-value" (func 6)) + (export "type-f32-value" (func 7)) + (export "type-f64-value" (func 8)) + (export "as-block-first" (func 9)) + (export "as-block-mid" (func 10)) + (export "as-block-last" (func 11)) + (export "as-block-first-value" (func 12)) + (export "as-block-mid-value" (func 13)) + (export "as-block-last-value" (func 14)) + (export "as-loop-first" (func 15)) + (export "as-loop-mid" (func 16)) + (export "as-loop-last" (func 17)) + (export "as-br-value" (func 18)) + (export "as-br_if-cond" (func 19)) + (export "as-br_if-value" (func 20)) + (export "as-br_if-value-cond" (func 21)) + (export "as-br_table-index" (func 22)) + (export "as-br_table-value" (func 23)) + (export "as-br_table-value-index" (func 24)) + (export "as-return-value" (func 25)) + (export "as-if-cond" (func 26)) + (export "as-if-then" (func 27)) + (export "as-if-else" (func 28)) + (export "as-select-first" (func 29)) + (export "as-select-second" (func 30)) + (export "as-select-cond" (func 31)) + (export "as-call-first" (func 33)) + (export "as-call-mid" (func 34)) + (export "as-call-last" (func 35)) + (export "as-call_indirect-func" (func 37)) + (export "as-call_indirect-first" (func 38)) + (export "as-call_indirect-mid" (func 39)) + (export "as-call_indirect-last" (func 40)) + (export "as-local.set-value" (func 41)) + (export "as-local.tee-value" (func 42)) + (export "as-global.set-value" (func 43)) + (export "as-load-address" (func 44)) + (export "as-loadN-address" (func 45)) + (export "as-store-address" (func 46)) + (export "as-store-value" (func 47)) + (export "as-storeN-address" (func 48)) + (export "as-storeN-value" (func 49)) + (export "as-unary-operand" (func 50)) + (export "as-binary-left" (func 51)) + (export "as-binary-right" (func 52)) + (export "as-test-operand" (func 53)) + (export "as-compare-left" (func 54)) + (export "as-compare-right" (func 55)) + (export "as-memory.grow-size" (func 56)) + (export "nested-block-value" (func 57)) + (export "nested-br-value" (func 58)) + (export "nested-br_if-value" (func 59)) + (export "nested-br_if-value-cond" (func 60)) + (export "nested-br_table-value" (func 61)) + (export "nested-br_table-value-index" (func 62)) + (elem (;0;) (i32.const 0) func $func) (func $dummy (;0;) (type 1)) (func (;1;) (type 1) block ;; label = @1 @@ -636,68 +700,4 @@ end i32.add ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "type-i32" (func 1)) - (export "type-i64" (func 2)) - (export "type-f32" (func 3)) - (export "type-f64" (func 4)) - (export "type-i32-value" (func 5)) - (export "type-i64-value" (func 6)) - (export "type-f32-value" (func 7)) - (export "type-f64-value" (func 8)) - (export "as-block-first" (func 9)) - (export "as-block-mid" (func 10)) - (export "as-block-last" (func 11)) - (export "as-block-first-value" (func 12)) - (export "as-block-mid-value" (func 13)) - (export "as-block-last-value" (func 14)) - (export "as-loop-first" (func 15)) - (export "as-loop-mid" (func 16)) - (export "as-loop-last" (func 17)) - (export "as-br-value" (func 18)) - (export "as-br_if-cond" (func 19)) - (export "as-br_if-value" (func 20)) - (export "as-br_if-value-cond" (func 21)) - (export "as-br_table-index" (func 22)) - (export "as-br_table-value" (func 23)) - (export "as-br_table-value-index" (func 24)) - (export "as-return-value" (func 25)) - (export "as-if-cond" (func 26)) - (export "as-if-then" (func 27)) - (export "as-if-else" (func 28)) - (export "as-select-first" (func 29)) - (export "as-select-second" (func 30)) - (export "as-select-cond" (func 31)) - (export "as-call-first" (func 33)) - (export "as-call-mid" (func 34)) - (export "as-call-last" (func 35)) - (export "as-call_indirect-func" (func 37)) - (export "as-call_indirect-first" (func 38)) - (export "as-call_indirect-mid" (func 39)) - (export "as-call_indirect-last" (func 40)) - (export "as-local.set-value" (func 41)) - (export "as-local.tee-value" (func 42)) - (export "as-global.set-value" (func 43)) - (export "as-load-address" (func 44)) - (export "as-loadN-address" (func 45)) - (export "as-store-address" (func 46)) - (export "as-store-value" (func 47)) - (export "as-storeN-address" (func 48)) - (export "as-storeN-value" (func 49)) - (export "as-unary-operand" (func 50)) - (export "as-binary-left" (func 51)) - (export "as-binary-right" (func 52)) - (export "as-test-operand" (func 53)) - (export "as-compare-left" (func 54)) - (export "as-compare-right" (func 55)) - (export "as-memory.grow-size" (func 56)) - (export "nested-block-value" (func 57)) - (export "nested-br-value" (func 58)) - (export "nested-br_if-value" (func 59)) - (export "nested-br_if-value-cond" (func 60)) - (export "nested-br_table-value" (func 61)) - (export "nested-br_table-value-index" (func 62)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/br_on_cast.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/br_on_cast.wast/0.print index b04f4513ea..3b0ae0ec4b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/br_on_cast.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/br_on_cast.wast/0.print @@ -6,6 +6,14 @@ (type (;4;) (func (param i32) (result i32))) (type (;5;) (func (param structref) (result (ref $st)))) (type (;6;) (func (param structref) (result (ref $at)))) + (table (;0;) 10 anyref) + (export "init" (func 1)) + (export "br_on_null" (func 2)) + (export "br_on_i31" (func 3)) + (export "br_on_struct" (func 4)) + (export "br_on_array" (func 5)) + (export "null-diff" (func 6)) + (elem (;0;) declare func $f) (func $f (;0;) (type $ft) (result i32) i32.const 9 ) @@ -95,12 +103,4 @@ i32.const 1 return ) - (table (;0;) 10 anyref) - (export "init" (func 1)) - (export "br_on_null" (func 2)) - (export "br_on_i31" (func 3)) - (export "br_on_struct" (func 4)) - (export "br_on_array" (func 5)) - (export "null-diff" (func 6)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/br_on_cast.wast/27.print b/tests/snapshots/testsuite/proposals/memory64/br_on_cast.wast/27.print index 94106f3988..5b7b1e9078 100644 --- a/tests/snapshots/testsuite/proposals/memory64/br_on_cast.wast/27.print +++ b/tests/snapshots/testsuite/proposals/memory64/br_on_cast.wast/27.print @@ -8,6 +8,9 @@ (type $t0' (;6;) (sub $t0 (struct))) (type $t4 (;7;) (sub $t0' (struct (field i32) (field i32)))) (type (;8;) (func)) + (table (;0;) 20 structref) + (export "test-sub" (func 1)) + (export "test-canon" (func 2)) (func $init (;0;) (type 8) i32.const 0 struct.new_default $t0 @@ -262,7 +265,4 @@ end unreachable ) - (table (;0;) 20 structref) - (export "test-sub" (func 1)) - (export "test-canon" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/br_on_cast_fail.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/br_on_cast_fail.wast/0.print index 6074cb4bf0..36bca64cb8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/br_on_cast_fail.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/br_on_cast_fail.wast/0.print @@ -6,6 +6,14 @@ (type (;4;) (func (param i32) (result i32))) (type (;5;) (func (param structref) (result (ref $st)))) (type (;6;) (func (param structref) (result (ref $at)))) + (table (;0;) 10 anyref) + (export "init" (func 1)) + (export "br_on_non_null" (func 2)) + (export "br_on_non_i31" (func 3)) + (export "br_on_non_struct" (func 4)) + (export "br_on_non_array" (func 5)) + (export "null-diff" (func 6)) + (elem (;0;) declare func $f) (func $f (;0;) (type $ft) (result i32) i32.const 9 ) @@ -99,12 +107,4 @@ i32.const 0 return ) - (table (;0;) 10 anyref) - (export "init" (func 1)) - (export "br_on_non_null" (func 2)) - (export "br_on_non_i31" (func 3)) - (export "br_on_non_struct" (func 4)) - (export "br_on_non_array" (func 5)) - (export "null-diff" (func 6)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/br_on_cast_fail.wast/27.print b/tests/snapshots/testsuite/proposals/memory64/br_on_cast_fail.wast/27.print index 48f56789a3..246f1f5049 100644 --- a/tests/snapshots/testsuite/proposals/memory64/br_on_cast_fail.wast/27.print +++ b/tests/snapshots/testsuite/proposals/memory64/br_on_cast_fail.wast/27.print @@ -8,6 +8,9 @@ (type $t0' (;6;) (sub $t0 (struct))) (type $t4 (;7;) (sub $t0' (struct (field i32) (field i32)))) (type (;8;) (func)) + (table (;0;) 20 structref) + (export "test-sub" (func 1)) + (export "test-canon" (func 2)) (func $init (;0;) (type 8) i32.const 0 struct.new_default $t0 @@ -275,7 +278,4 @@ end unreachable ) - (table (;0;) 20 structref) - (export "test-sub" (func 1)) - (export "test-canon" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/br_on_non_null.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/br_on_non_null.wast/0.print index c31166a513..51d7148ce1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/br_on_non_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/br_on_non_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) block $l (result (ref $t)) local.get $r @@ -44,9 +49,4 @@ end call_ref $t ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/br_on_non_null.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/br_on_non_null.wast/6.print index fd25db678c..80cea5ec37 100644 --- a/tests/snapshots/testsuite/proposals/memory64/br_on_non_null.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/br_on_non_null.wast/6.print @@ -2,6 +2,9 @@ (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 (ref null $t)) (result i32))) (type (;2;) (func (result i32 (ref $t)))) + (export "args-null" (func 2)) + (export "args-f" (func 3)) + (elem (;0;) func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 local.get 0 @@ -26,7 +29,4 @@ ref.func $f call $a ) - (export "args-null" (func 2)) - (export "args-f" (func 3)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/br_on_null.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/br_on_null.wast/0.print index be60e9af88..8d9be86a0a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/br_on_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/br_on_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) block $l local.get $r @@ -44,9 +49,4 @@ end i32.const -1 ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/br_on_null.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/br_on_null.wast/6.print index ffab737fcf..b7124d4dac 100644 --- a/tests/snapshots/testsuite/proposals/memory64/br_on_null.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/br_on_null.wast/6.print @@ -1,6 +1,9 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 (ref null $t)) (result i32))) + (export "args-null" (func 2)) + (export "args-f" (func 3)) + (elem (;0;) func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 local.get 0 @@ -25,7 +28,4 @@ ref.func $f call $a ) - (export "args-null" (func 2)) - (export "args-f" (func 3)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/br_table.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/br_table.wast/0.print index 69ccd9ac2f..7f30574d1a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/br_table.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/br_table.wast/0.print @@ -9,6 +9,87 @@ (type (;7;) (func (param i32 i32) (result i32))) (type (;8;) (func (param i32 externref) (result externref))) (type (;9;) (func (param i32) (result funcref))) + (table (;0;) 1 1 funcref) + (table $t (;1;) 1 1 (ref null $t)) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "type-i32" (func 1)) + (export "type-i64" (func 2)) + (export "type-f32" (func 3)) + (export "type-f64" (func 4)) + (export "type-i32-value" (func 5)) + (export "type-i64-value" (func 6)) + (export "type-f32-value" (func 7)) + (export "type-f64-value" (func 8)) + (export "empty" (func 9)) + (export "empty-value" (func 10)) + (export "singleton" (func 11)) + (export "singleton-value" (func 12)) + (export "multiple" (func 13)) + (export "multiple-value" (func 14)) + (export "large" (func 15)) + (export "as-block-first" (func 16)) + (export "as-block-mid" (func 17)) + (export "as-block-last" (func 18)) + (export "as-block-value" (func 19)) + (export "as-loop-first" (func 20)) + (export "as-loop-mid" (func 21)) + (export "as-loop-last" (func 22)) + (export "as-br-value" (func 23)) + (export "as-br_if-cond" (func 24)) + (export "as-br_if-value" (func 25)) + (export "as-br_if-value-cond" (func 26)) + (export "as-br_table-index" (func 27)) + (export "as-br_table-value" (func 28)) + (export "as-br_table-value-index" (func 29)) + (export "as-return-value" (func 30)) + (export "as-if-cond" (func 31)) + (export "as-if-then" (func 32)) + (export "as-if-else" (func 33)) + (export "as-select-first" (func 34)) + (export "as-select-second" (func 35)) + (export "as-select-cond" (func 36)) + (export "as-call-first" (func 38)) + (export "as-call-mid" (func 39)) + (export "as-call-last" (func 40)) + (export "as-call_indirect-first" (func 41)) + (export "as-call_indirect-mid" (func 42)) + (export "as-call_indirect-last" (func 43)) + (export "as-call_indirect-func" (func 44)) + (export "as-local.set-value" (func 45)) + (export "as-local.tee-value" (func 46)) + (export "as-global.set-value" (func 47)) + (export "as-load-address" (func 48)) + (export "as-loadN-address" (func 49)) + (export "as-store-address" (func 50)) + (export "as-store-value" (func 51)) + (export "as-storeN-address" (func 52)) + (export "as-storeN-value" (func 53)) + (export "as-unary-operand" (func 54)) + (export "as-binary-left" (func 55)) + (export "as-binary-right" (func 56)) + (export "as-test-operand" (func 57)) + (export "as-compare-left" (func 58)) + (export "as-compare-right" (func 59)) + (export "as-convert-operand" (func 60)) + (export "as-memory.grow-size" (func 61)) + (export "nested-block-value" (func 62)) + (export "nested-br-value" (func 63)) + (export "nested-br_if-value" (func 64)) + (export "nested-br_if-value-cond" (func 65)) + (export "nested-br_table-value" (func 66)) + (export "nested-br_table-value-index" (func 67)) + (export "nested-br_table-loop-block" (func 68)) + (export "meet-externref" (func 69)) + (export "meet-bottom" (func 70)) + (export "meet-funcref-1" (func 72)) + (export "meet-funcref-2" (func 73)) + (export "meet-funcref-3" (func 74)) + (export "meet-funcref-4" (func 75)) + (export "meet-nullref" (func 76)) + (export "meet-multi-ref" (func 77)) + (elem (;0;) (i32.const 0) func $f) + (elem (;1;) (table $t) (i32.const 0) (ref null $t) (ref.func $tf)) (func $dummy (;0;) (type $t)) (func (;1;) (type $t) block ;; label = @1 @@ -844,85 +925,4 @@ end end ) - (table (;0;) 1 1 funcref) - (table $t (;1;) 1 1 (ref null $t)) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "type-i32" (func 1)) - (export "type-i64" (func 2)) - (export "type-f32" (func 3)) - (export "type-f64" (func 4)) - (export "type-i32-value" (func 5)) - (export "type-i64-value" (func 6)) - (export "type-f32-value" (func 7)) - (export "type-f64-value" (func 8)) - (export "empty" (func 9)) - (export "empty-value" (func 10)) - (export "singleton" (func 11)) - (export "singleton-value" (func 12)) - (export "multiple" (func 13)) - (export "multiple-value" (func 14)) - (export "large" (func 15)) - (export "as-block-first" (func 16)) - (export "as-block-mid" (func 17)) - (export "as-block-last" (func 18)) - (export "as-block-value" (func 19)) - (export "as-loop-first" (func 20)) - (export "as-loop-mid" (func 21)) - (export "as-loop-last" (func 22)) - (export "as-br-value" (func 23)) - (export "as-br_if-cond" (func 24)) - (export "as-br_if-value" (func 25)) - (export "as-br_if-value-cond" (func 26)) - (export "as-br_table-index" (func 27)) - (export "as-br_table-value" (func 28)) - (export "as-br_table-value-index" (func 29)) - (export "as-return-value" (func 30)) - (export "as-if-cond" (func 31)) - (export "as-if-then" (func 32)) - (export "as-if-else" (func 33)) - (export "as-select-first" (func 34)) - (export "as-select-second" (func 35)) - (export "as-select-cond" (func 36)) - (export "as-call-first" (func 38)) - (export "as-call-mid" (func 39)) - (export "as-call-last" (func 40)) - (export "as-call_indirect-first" (func 41)) - (export "as-call_indirect-mid" (func 42)) - (export "as-call_indirect-last" (func 43)) - (export "as-call_indirect-func" (func 44)) - (export "as-local.set-value" (func 45)) - (export "as-local.tee-value" (func 46)) - (export "as-global.set-value" (func 47)) - (export "as-load-address" (func 48)) - (export "as-loadN-address" (func 49)) - (export "as-store-address" (func 50)) - (export "as-store-value" (func 51)) - (export "as-storeN-address" (func 52)) - (export "as-storeN-value" (func 53)) - (export "as-unary-operand" (func 54)) - (export "as-binary-left" (func 55)) - (export "as-binary-right" (func 56)) - (export "as-test-operand" (func 57)) - (export "as-compare-left" (func 58)) - (export "as-compare-right" (func 59)) - (export "as-convert-operand" (func 60)) - (export "as-memory.grow-size" (func 61)) - (export "nested-block-value" (func 62)) - (export "nested-br-value" (func 63)) - (export "nested-br_if-value" (func 64)) - (export "nested-br_if-value-cond" (func 65)) - (export "nested-br_table-value" (func 66)) - (export "nested-br_table-value-index" (func 67)) - (export "nested-br_table-loop-block" (func 68)) - (export "meet-externref" (func 69)) - (export "meet-bottom" (func 70)) - (export "meet-funcref-1" (func 72)) - (export "meet-funcref-2" (func 73)) - (export "meet-funcref-3" (func 74)) - (export "meet-funcref-4" (func 75)) - (export "meet-nullref" (func 76)) - (export "meet-multi-ref" (func 77)) - (elem (;0;) (i32.const 0) func $f) - (elem (;1;) (table $t) (i32.const 0) (ref null $t) (ref.func $tf)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/0.print index f2f2b48875..2fb1aaeb3d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/0.print @@ -28,6 +28,72 @@ (type (;26;) (func (param i32) (result i64))) (type (;27;) (func (param i32) (result f32))) (type (;28;) (func (param i32) (result f64))) + (table (;0;) 32 32 funcref) + (table $t64 (;1;) i64 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut f64) f64.const 0x1.4p+3 (;=10;)) + (export "type-i32" (func 20)) + (export "type-i32-t64" (func 21)) + (export "type-i64" (func 22)) + (export "type-f32" (func 23)) + (export "type-f64" (func 24)) + (export "type-f64-i32" (func 25)) + (export "type-index" (func 26)) + (export "type-first-i32" (func 27)) + (export "type-first-i64" (func 28)) + (export "type-first-f32" (func 29)) + (export "type-first-f64" (func 30)) + (export "type-second-i32" (func 31)) + (export "type-second-i64" (func 32)) + (export "type-second-f32" (func 33)) + (export "type-second-f64" (func 34)) + (export "type-all-f64-i32" (func 35)) + (export "type-all-i32-f64" (func 36)) + (export "type-all-i32-i64" (func 37)) + (export "dispatch" (func 38)) + (export "dispatch-structural-i64" (func 39)) + (export "dispatch-structural-i32" (func 40)) + (export "dispatch-structural-f32" (func 41)) + (export "dispatch-structural-f64" (func 42)) + (export "fac-i64" (func $fac-i64)) + (export "fib-i64" (func $fib-i64)) + (export "fac-i32" (func $fac-i32)) + (export "fac-f32" (func $fac-f32)) + (export "fac-f64" (func $fac-f64)) + (export "fib-i32" (func $fib-i32)) + (export "fib-f32" (func $fib-f32)) + (export "fib-f64" (func $fib-f64)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (export "runaway" (func $runaway)) + (export "mutual-runaway" (func $mutual-runaway1)) + (export "as-select-first" (func 56)) + (export "as-select-mid" (func 57)) + (export "as-select-last" (func 58)) + (export "as-if-condition" (func 59)) + (export "as-br_if-first" (func 60)) + (export "as-br_if-last" (func 61)) + (export "as-br_table-first" (func 62)) + (export "as-br_table-last" (func 63)) + (export "as-store-first" (func 64)) + (export "as-store-last" (func 65)) + (export "as-memory.grow-value" (func 66)) + (export "as-return-value" (func 67)) + (export "as-drop-operand" (func 68)) + (export "as-br-value" (func 69)) + (export "as-local.set-value" (func 70)) + (export "as-local.tee-value" (func 71)) + (export "as-global.set-value" (func 72)) + (export "as-load-operand" (func 73)) + (export "as-unary-operand" (func 74)) + (export "as-binary-left" (func 75)) + (export "as-binary-right" (func 76)) + (export "as-test-operand" (func 77)) + (export "as-compare-left" (func 78)) + (export "as-compare-right" (func 79)) + (export "as-convert-operand" (func 80)) + (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac-i64 $fib-i64 $even $odd $runaway $mutual-runaway1 $mutual-runaway2 $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate $fac-i32 $fac-f32 $fac-f64 $fib-i32 $fib-f32 $fib-f64 $const-f64-i32 $id-i32-f64 $swap-i32-i64) + (elem (;1;) (table $t64) (i64.const 0) func $const-i32) (func $const-i32 (;0;) (type $out-i32) (result i32) i32.const 306 ) @@ -611,70 +677,4 @@ i64.extend_i32_s end ) - (table (;0;) 32 32 funcref) - (table $t64 (;1;) i64 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut f64) f64.const 0x1.4p+3 (;=10;)) - (export "type-i32" (func 20)) - (export "type-i32-t64" (func 21)) - (export "type-i64" (func 22)) - (export "type-f32" (func 23)) - (export "type-f64" (func 24)) - (export "type-f64-i32" (func 25)) - (export "type-index" (func 26)) - (export "type-first-i32" (func 27)) - (export "type-first-i64" (func 28)) - (export "type-first-f32" (func 29)) - (export "type-first-f64" (func 30)) - (export "type-second-i32" (func 31)) - (export "type-second-i64" (func 32)) - (export "type-second-f32" (func 33)) - (export "type-second-f64" (func 34)) - (export "type-all-f64-i32" (func 35)) - (export "type-all-i32-f64" (func 36)) - (export "type-all-i32-i64" (func 37)) - (export "dispatch" (func 38)) - (export "dispatch-structural-i64" (func 39)) - (export "dispatch-structural-i32" (func 40)) - (export "dispatch-structural-f32" (func 41)) - (export "dispatch-structural-f64" (func 42)) - (export "fac-i64" (func $fac-i64)) - (export "fib-i64" (func $fib-i64)) - (export "fac-i32" (func $fac-i32)) - (export "fac-f32" (func $fac-f32)) - (export "fac-f64" (func $fac-f64)) - (export "fib-i32" (func $fib-i32)) - (export "fib-f32" (func $fib-f32)) - (export "fib-f64" (func $fib-f64)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (export "runaway" (func $runaway)) - (export "mutual-runaway" (func $mutual-runaway1)) - (export "as-select-first" (func 56)) - (export "as-select-mid" (func 57)) - (export "as-select-last" (func 58)) - (export "as-if-condition" (func 59)) - (export "as-br_if-first" (func 60)) - (export "as-br_if-last" (func 61)) - (export "as-br_table-first" (func 62)) - (export "as-br_table-last" (func 63)) - (export "as-store-first" (func 64)) - (export "as-store-last" (func 65)) - (export "as-memory.grow-value" (func 66)) - (export "as-return-value" (func 67)) - (export "as-drop-operand" (func 68)) - (export "as-br-value" (func 69)) - (export "as-local.set-value" (func 70)) - (export "as-local.tee-value" (func 71)) - (export "as-global.set-value" (func 72)) - (export "as-load-operand" (func 73)) - (export "as-unary-operand" (func 74)) - (export "as-binary-left" (func 75)) - (export "as-binary-right" (func 76)) - (export "as-test-operand" (func 77)) - (export "as-compare-left" (func 78)) - (export "as-compare-right" (func 79)) - (export "as-convert-operand" (func 80)) - (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac-i64 $fib-i64 $even $odd $runaway $mutual-runaway1 $mutual-runaway2 $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate $fac-i32 $fac-f32 $fac-f64 $fib-i32 $fib-f32 $fib-f64 $const-f64-i32 $id-i32-f64 $swap-i32-i64) - (elem (;1;) (table $t64) (i64.const 0) func $const-i32) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/124.print b/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/124.print index 1b34fdce27..bfcc0d1bdb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/124.print +++ b/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/124.print @@ -2,6 +2,16 @@ (type $ii-i (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32 i32 i32) (result i32))) + (table $t1 (;0;) 2 2 funcref) + (table $t2 (;1;) 3 3 funcref) + (table $t3 (;2;) 4 funcref) + (export "call-1" (func 6)) + (export "call-2" (func 7)) + (export "call-3" (func 8)) + (elem (;0;) (i32.const 0) func $f $g) + (elem (;1;) (table $t2) (i32.const 0) func $h $i $j) + (elem (;2;) (table $t3) (i32.const 0) func $g $h) + (elem (;3;) (table $t3) (i32.const 3) func $z) (func $f (;0;) (type $ii-i) (param i32 i32) (result i32) local.get 0 local.get 1 @@ -46,14 +56,4 @@ local.get 2 call_indirect $t3 (type $ii-i) ) - (table $t1 (;0;) 2 2 funcref) - (table $t2 (;1;) 3 3 funcref) - (table $t3 (;2;) 4 funcref) - (export "call-1" (func 6)) - (export "call-2" (func 7)) - (export "call-3" (func 8)) - (elem (;0;) (i32.const 0) func $f $g) - (elem (;1;) (table $t2) (i32.const 0) func $h $i $j) - (elem (;2;) (table $t3) (i32.const 0) func $g $h) - (elem (;3;) (table $t3) (i32.const 3) func $z) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/170.print b/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/170.print index 81e07d0ec8..297fe38c34 100644 --- a/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/170.print +++ b/tests/snapshots/testsuite/proposals/memory64/call_indirect.wast/170.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (type (;1;) (func (result i32))) + (table (;0;) 1 funcref) (func (;0;) (type 0) unreachable call_indirect (type 0) @@ -55,5 +56,4 @@ select call_indirect (type 0) ) - (table (;0;) 1 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/0.print index b983464ae1..1c26a475dc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/0.print @@ -4,6 +4,23 @@ (type $lll (;2;) (func (param i64 i64) (result i64))) (type (;3;) (func (param (ref $ii) i32) (result i32))) (type (;4;) (func (result i32))) + (global $fac (;0;) (ref $ll) ref.func $fac) + (global $fac-acc (;1;) (ref $lll) ref.func $fac-acc) + (global $fib (;2;) (ref $ll) ref.func $fib) + (global $even (;3;) (ref $ll) ref.func $even) + (global $odd (;4;) (ref $ll) ref.func $odd) + (export "run" (func 3)) + (export "null" (func 4)) + (export "fac" (func $fac)) + (export "fac-acc" (func $fac-acc)) + (export "fib" (func $fib)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) declare func $f $g) + (elem (;1;) declare func $fac) + (elem (;2;) declare func $fac-acc) + (elem (;3;) declare func $fib) + (elem (;4;) declare func $even $odd) (func $apply (;0;) (type 3) (param $f (ref $ii)) (param $x i32) (result i32) local.get $x local.get $f @@ -113,21 +130,4 @@ call_ref $ll end ) - (global $fac (;0;) (ref $ll) ref.func $fac) - (global $fac-acc (;1;) (ref $lll) ref.func $fac-acc) - (global $fib (;2;) (ref $ll) ref.func $fib) - (global $even (;3;) (ref $ll) ref.func $even) - (global $odd (;4;) (ref $ll) ref.func $odd) - (export "run" (func 3)) - (export "null" (func 4)) - (export "fac" (func $fac)) - (export "fac-acc" (func $fac-acc)) - (export "fib" (func $fib)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) declare func $f $g) - (elem (;1;) declare func $fac) - (elem (;2;) declare func $fac-acc) - (elem (;3;) declare func $fib) - (elem (;4;) declare func $even $odd) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/25.print b/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/25.print index 5908d8dfc5..e48a6f1dc3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/25.print +++ b/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/25.print @@ -1,9 +1,9 @@ (module (type $t (;0;) (func)) (type (;1;) (func (result i32))) + (export "unreachable" (func 0)) (func (;0;) (type 1) (result i32) unreachable call_ref $t ) - (export "unreachable" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/27.print b/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/27.print index cc20d75bd2..fc7b7707a2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/27.print +++ b/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/27.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -9,6 +11,4 @@ ref.func $f call_ref $t ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/29.print b/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/29.print index e159e08980..ab1a399a40 100644 --- a/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/29.print +++ b/tests/snapshots/testsuite/proposals/memory64/call_ref.wast/29.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -12,6 +14,4 @@ drop i32.const 0 ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/data_drop0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/data_drop0.wast/0.print index 400cb5d3f1..b413f59b1e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/data_drop0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/data_drop0.wast/0.print @@ -1,6 +1,13 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 1) + (memory $mem2 (;2;) 0) + (export "drop_passive" (func 0)) + (export "init_passive" (func 1)) + (export "drop_active" (func 2)) + (export "init_active" (func 3)) (func (;0;) (type 0) data.drop $p ) @@ -19,13 +26,6 @@ local.get $len memory.init $mem1 $a ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 1) - (memory $mem2 (;2;) 0) - (export "drop_passive" (func 0)) - (export "init_passive" (func 1)) - (export "drop_active" (func 2)) - (export "init_active" (func 3)) (data $p (;0;) "x") (data $a (;1;) (memory $mem1) (i32.const 0) "x") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/0.print index cfd9e1e289..3e45036cd8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/0.print @@ -1,7 +1,5 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 10 funcref) (elem (;0;) funcref) (elem (;1;) funcref (ref.func $f) (ref.func $f) (ref.null func) (ref.func $g)) @@ -64,4 +62,6 @@ (elem $d2 (;58;) declare funcref (ref.func $f) (ref.func $f) (ref.null func) (ref.func $g)) (elem $d3 (;59;) declare func) (elem $d4 (;60;) declare func $f $f $g $g) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/1.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/1.print index 80603750ee..21462afadc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/1.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/1.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 3 3 funcref) (elem (;0;) (i32.const 0) funcref (ref.func $f) (ref.null func) (ref.func $g)) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/103.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/103.print index 731f09400d..7de0f1cd97 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/103.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/103.print @@ -1,5 +1,9 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "call-overwritten" (func 2)) + (elem (;0;) (i32.const 9) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -10,8 +14,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call-overwritten" (func 2)) - (elem (;0;) (i32.const 9) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/105.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/105.print index 0f8475a309..4f81cc2d61 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/105.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/105.print @@ -1,6 +1,9 @@ (module (type $out-i32 (;0;) (func (result i32))) (import "spectest" "table" (table (;0;) 10 funcref)) + (export "call-overwritten-element" (func 2)) + (elem (;0;) (i32.const 9) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -11,7 +14,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (export "call-overwritten-element" (func 2)) - (elem (;0;) (i32.const 9) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/107.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/107.print index a15bdac62f..c507078bb1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/107.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/107.print @@ -1,5 +1,12 @@ (module $module1 (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "shared-table" (table 0)) + (export "call-7" (func 2)) + (export "call-8" (func 3)) + (export "call-9" (func 4)) + (elem (;0;) (i32.const 8) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -18,11 +25,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "shared-table" (table 0)) - (export "call-7" (func 2)) - (export "call-8" (func 3)) - (export "call-9" (func 4)) - (elem (;0;) (i32.const 8) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/112.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/112.print index 1a2c3eac24..a42e074452 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/112.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/112.print @@ -1,12 +1,12 @@ (module $module2 (type $out-i32 (;0;) (func (result i32))) (import "module1" "shared-table" (table (;0;) 10 funcref)) + (elem (;0;) (i32.const 7) func $const-i32-c) + (elem (;1;) (i32.const 8) func $const-i32-d) (func $const-i32-c (;0;) (type $out-i32) (result i32) i32.const 67 ) (func $const-i32-d (;1;) (type $out-i32) (result i32) i32.const 68 ) - (elem (;0;) (i32.const 7) func $const-i32-c) - (elem (;1;) (i32.const 8) func $const-i32-d) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/116.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/116.print index 050fba0094..6789cf7c21 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/116.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/116.print @@ -1,12 +1,12 @@ (module $module3 (type $out-i32 (;0;) (func (result i32))) (import "module1" "shared-table" (table (;0;) 10 funcref)) + (elem (;0;) (i32.const 8) func $const-i32-e) + (elem (;1;) (i32.const 9) func $const-i32-f) (func $const-i32-e (;0;) (type $out-i32) (result i32) i32.const 69 ) (func $const-i32-f (;1;) (type $out-i32) (result i32) i32.const 70 ) - (elem (;0;) (i32.const 8) func $const-i32-e) - (elem (;1;) (i32.const 9) func $const-i32-f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/12.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/12.print index af187450f7..c2f37af59b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/12.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/12.print @@ -1,5 +1,10 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 11 funcref) + (export "call-7" (func 2)) + (export "call-9" (func 3)) + (elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a)) + (elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func)) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -14,9 +19,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 11 funcref) - (export "call-7" (func 2)) - (export "call-9" (func 3)) - (elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a)) - (elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/124.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/124.print index 5345072664..92a31401e3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/124.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/124.print @@ -1,6 +1,10 @@ (module $m (type (;0;) (func (param i32) (result externref))) (type (;1;) (func (param i32 externref))) + (table $t (;0;) 2 externref) + (export "table" (table $t)) + (export "get" (func 0)) + (export "set" (func 1)) (func (;0;) (type 0) (param $i i32) (result externref) local.get $i table.get $t @@ -10,8 +14,4 @@ local.get $x table.set $t ) - (table $t (;0;) 2 externref) - (export "table" (table $t)) - (export "get" (func 0)) - (export "set" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/135.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/135.print index ae97b235a4..f6c3e3683d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/135.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/135.print @@ -1,8 +1,8 @@ (module $module4 (type (;0;) (func (result i32))) + (global (;0;) funcref ref.func 0) + (export "f" (global 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) - (global (;0;) funcref ref.func 0) - (export "f" (global 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/137.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/137.print index f0fecff658..e491ba806f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/137.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/137.print @@ -1,11 +1,11 @@ (module (type $out-i32 (;0;) (func (result i32))) (import "module4" "f" (global (;0;) funcref)) + (table (;0;) 10 funcref) + (export "call_imported_elem" (func 0)) + (elem (;0;) (i32.const 0) funcref (global.get 0)) (func (;0;) (type $out-i32) (result i32) i32.const 0 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call_imported_elem" (func 0)) - (elem (;0;) (i32.const 0) funcref (global.get 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/139.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/139.print index a67fa66c54..20ebe6fdfe 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/139.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/139.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "call_in_table" (func 1)) + (elem (;0;) (offset i32.const 1 i32.const 2 i32.add) funcref (ref.func 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) @@ -8,7 +11,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "call_in_table" (func 1)) - (elem (;0;) (offset i32.const 1 i32.const 2 i32.add) funcref (ref.func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/142.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/142.print index 6109a774b1..d98aefd8d1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/142.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/142.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "call_in_table" (func 1)) + (elem (;0;) (offset i32.const 2 i32.const 1 i32.sub) funcref (ref.func 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) @@ -8,7 +11,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "call_in_table" (func 1)) - (elem (;0;) (offset i32.const 2 i32.const 1 i32.sub) funcref (ref.func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/145.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/145.print index 1701b8c4de..5e0e75bb50 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/145.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/145.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "call_in_table" (func 1)) + (elem (;0;) (offset i32.const 2 i32.const 2 i32.mul) funcref (ref.func 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) @@ -8,7 +11,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "call_in_table" (func 1)) - (elem (;0;) (offset i32.const 2 i32.const 2 i32.mul) funcref (ref.func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/148.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/148.print index af7077e86d..f7607d0855 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/148.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/148.print @@ -2,6 +2,9 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "global_i32" (global (;0;) i32)) + (table (;0;) 10 funcref) + (export "call_in_table" (func 1)) + (elem (;0;) (offset i32.const 2 global.get 0 i32.const 665 i32.sub i32.const 2 i32.add i32.mul) funcref (ref.func 0)) (func (;0;) (type 0) (result i32) i32.const 42 ) @@ -9,7 +12,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "call_in_table" (func 1)) - (elem (;0;) (offset i32.const 2 global.get 0 i32.const 665 i32.sub i32.const 2 i32.add i32.mul) funcref (ref.func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/15.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/15.print index e5caa87c45..58c05938f2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/15.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/15.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 1 funcref) (global (;0;) i32 i32.const 0) (elem (;0;) (global.get 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/16.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/16.print index 0bd5f164f8..0eff5942b6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/16.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/16.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 1 funcref) (global $g (;0;) i32 i32.const 0) (elem (;0;) (global.get $g) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/17.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/17.print index 1036785ea1..0ff426ccf4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/17.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/17.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/18.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/18.print index 0598af2315..cede495716 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/18.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/18.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/2.print index 26f29f7dec..4f86280a3f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/2.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) - (func $g (;1;) (type 0)) (table $t (;0;) 10 (ref func) ref.func $f) (elem (;0;) (i32.const 3) func $g) + (func $f (;0;) (type 0)) + (func $g (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/23.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/23.print index 689d51c8e5..c3a0516a05 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/23.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/23.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/24.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/24.print index 91f122086a..ac71e6c1fa 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/24.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/24.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 100 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/25.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/25.print index 016199a256..f7a2bf5894 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/25.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/25.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 1) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/26.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/26.print index 6fd3ef6a92..31a035fc64 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/26.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/26.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 0 30 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 1) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/27.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/27.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/27.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/27.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/28.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/28.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/28.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/28.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/29.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/29.print index 291c1feae1..adb2b4e692 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/29.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/29.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/3.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/3.print index 8742f0998f..e4d89860d7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/3.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/3.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/30.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/30.print index 291c1feae1..adb2b4e692 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/30.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/30.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/31.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/31.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/31.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/31.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/32.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/32.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/32.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/32.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/33.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/33.print index 110c202713..3f6c004be4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/33.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/33.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/34.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/34.print index 110c202713..3f6c004be4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/34.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/34.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/35.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/35.print index dd7905c968..4913137806 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/35.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/35.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/36.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/36.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/36.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/36.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/37.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/37.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/37.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/37.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/38.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/38.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/38.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/38.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/39.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/39.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/39.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/39.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/4.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/4.print index e932b67331..0b5ef9c184 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/4.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/4.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/40.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/40.print index f50e33eabb..06aabee6b6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/40.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/40.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/41.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/41.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/41.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/41.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/42.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/42.print index 15000f0b21..187bbfcc10 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/42.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/42.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/43.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/43.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/43.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/43.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/44.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/44.print index 08cc9126ff..269c4e483b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/44.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/44.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/45.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/45.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/45.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/45.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/46.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/46.print index 98ca119b21..8f71460bb1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/46.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/46.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/47.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/47.print index 5c49397d5d..13ea981519 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/47.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/47.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/48.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/48.print index 5c49397d5d..13ea981519 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/48.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/48.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/49.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/49.print index a27d903b90..cacad77028 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/49.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/49.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/5.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/5.print index 7ec65dcffb..f3742f6da7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/5.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/5.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 10 funcref) (elem (;0;) (i32.const 0) func $f) (elem (;1;) (i32.const 3) func $f) (elem (;2;) (i32.const 7) func $f) (elem (;3;) (i32.const 5) func $f) (elem (;4;) (i32.const 3) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/50.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/50.print index a27d903b90..cacad77028 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/50.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/50.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) declare funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/51.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/51.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/51.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/51.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/52.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/52.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/52.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/52.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/53.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/53.print index 80ae3bd47f..a17517ada0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/53.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/53.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/54.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/54.print index 80ae3bd47f..a17517ada0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/54.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/54.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/55.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/55.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/55.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/55.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/56.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/56.print index 070ec3ad41..91e5bceadc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/56.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/56.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/57.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/57.print index 608ee1aff3..38eb42e996 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/57.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/57.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/58.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/58.print index 608ee1aff3..38eb42e996 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/58.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/58.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/6.print index 107f8e49e9..8dddf1ec50 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/6.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) (import "spectest" "table" (table (;0;) 10 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) (elem (;1;) (i32.const 3) func $f) (elem (;2;) (i32.const 7) func $f) (elem (;3;) (i32.const 3) func $f) (elem (;4;) (i32.const 5) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/61.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/61.print index 4d04cddbcd..63071007d3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/61.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/61.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/62.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/62.print index 4d04cddbcd..63071007d3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/62.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/62.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/63.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/63.print index 693f397a20..c304de3a38 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/63.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/63.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/64.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/64.print index 693f397a20..c304de3a38 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/64.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/64.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) (i32.const 0) (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/65.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/65.print index f8f71b170b..05e25013bc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/65.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/65.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/66.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/66.print index f8f71b170b..05e25013bc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/66.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/66.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 (ref func) ref.func 0) (elem (;0;) declare (ref func) (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/7.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/7.print index c1e1f7bb60..a0fc1f553a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/7.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/7.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) (import "spectest" "global_i32" (global (;0;) i32)) - (func $f (;0;) (type 0)) (table (;0;) 1000 funcref) (elem (;0;) (global.get 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/79.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/79.print index 4176dfb406..019e8e94d5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/79.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/79.print @@ -1,5 +1,8 @@ (module (type (;0;) (func)) + (table (;0;) 10 funcref) + (export "init" (func 1)) + (elem $e (;0;) (i32.const 0) func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -7,7 +10,4 @@ i32.const 1 table.init $e ) - (table (;0;) 10 funcref) - (export "init" (func 1)) - (elem $e (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/8.print index d9740764aa..bacc6c8181 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/8.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) (import "spectest" "global_i32" (global $g (;0;) i32)) - (func $f (;0;) (type 0)) (table (;0;) 1000 funcref) (elem (;0;) (global.get $g) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/81.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/81.print index ea36739cb4..7c136d3305 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/81.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/81.print @@ -1,5 +1,8 @@ (module (type (;0;) (func)) + (table (;0;) 10 funcref) + (export "init" (func 1)) + (elem $e (;0;) declare func $f) (func $f (;0;) (type 0)) (func (;1;) (type 0) i32.const 0 @@ -7,7 +10,4 @@ i32.const 1 table.init $e ) - (table (;0;) 10 funcref) - (export "init" (func 1)) - (elem $e (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/elem.wast/9.print b/tests/snapshots/testsuite/proposals/memory64/elem.wast/9.print index 5e224c4ddf..0fc85614cb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/elem.wast/9.print +++ b/tests/snapshots/testsuite/proposals/memory64/elem.wast/9.print @@ -1,5 +1,10 @@ (module (type $out-i32 (;0;) (func (result i32))) + (table (;0;) 10 funcref) + (export "call-7" (func 2)) + (export "call-9" (func 3)) + (elem (;0;) (i32.const 7) func $const-i32-a) + (elem (;1;) (i32.const 9) func $const-i32-b) (func $const-i32-a (;0;) (type $out-i32) (result i32) i32.const 65 ) @@ -14,9 +19,4 @@ i32.const 9 call_indirect (type $out-i32) ) - (table (;0;) 10 funcref) - (export "call-7" (func 2)) - (export "call-9" (func 3)) - (elem (;0;) (i32.const 7) func $const-i32-a) - (elem (;1;) (i32.const 9) func $const-i32-b) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/endianness64.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/endianness64.wast/0.print index 81ea86f660..9e7709c8de 100644 --- a/tests/snapshots/testsuite/proposals/memory64/endianness64.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/endianness64.wast/0.print @@ -6,6 +6,24 @@ (type (;4;) (func (param i32) (result i32))) (type (;5;) (func (param f32) (result f32))) (type (;6;) (func (param f64) (result f64))) + (memory (;0;) i64 1) + (export "i32_load16_s" (func 6)) + (export "i32_load16_u" (func 7)) + (export "i32_load" (func 8)) + (export "i64_load16_s" (func 9)) + (export "i64_load16_u" (func 10)) + (export "i64_load32_s" (func 11)) + (export "i64_load32_u" (func 12)) + (export "i64_load" (func 13)) + (export "f32_load" (func 14)) + (export "f64_load" (func 15)) + (export "i32_store16" (func 16)) + (export "i32_store" (func 17)) + (export "i64_store16" (func 18)) + (export "i64_store32" (func 19)) + (export "i64_store" (func 20)) + (export "f32_store" (func 21)) + (export "f64_store" (func 22)) (func $i16_store_little (;0;) (type 0) (param $address i64) (param $value i32) local.get $address local.get $value @@ -208,22 +226,4 @@ call $i64_load_little f64.reinterpret_i64 ) - (memory (;0;) i64 1) - (export "i32_load16_s" (func 6)) - (export "i32_load16_u" (func 7)) - (export "i32_load" (func 8)) - (export "i64_load16_s" (func 9)) - (export "i64_load16_u" (func 10)) - (export "i64_load32_s" (func 11)) - (export "i64_load32_u" (func 12)) - (export "i64_load" (func 13)) - (export "f32_load" (func 14)) - (export "f64_load" (func 15)) - (export "i32_store16" (func 16)) - (export "i32_store" (func 17)) - (export "i64_store16" (func 18)) - (export "i64_store32" (func 19)) - (export "i64_store" (func 20)) - (export "f32_store" (func 21)) - (export "f64_store" (func 22)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/0.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/0.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/1.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/1.print index 0e6650207b..edafa1a61f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/1.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/1.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) (export "b" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/10.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/10.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/10.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/10.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/11.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/11.print index 25c740d656..b564b1964d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/11.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/11.print @@ -1,10 +1,10 @@ (module $Func (type (;0;) (func (param i32) (result i32))) + (export "e" (func $f)) (func $f (;0;) (type 0) (param $n i32) (result i32) local.get $n i32.const 1 i32.add return ) - (export "e" (func $f)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/17.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/17.print index adb60fae84..e2b67174f5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/17.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/17.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) - (func (;0;) (type 0) (result i32) - i32.const 42 - ) (export "a" (func 0)) (export "b" (func 0)) (export "c" (func 0)) + (func (;0;) (type 0) (result i32) + i32.const 42 + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/2.print index 69eac22051..b139f8873b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/2.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) - (func (;1;) (type 0)) (export "a" (func 0)) (export "b" (func 1)) + (func (;0;) (type 0)) + (func (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/3.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/3.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/3.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/3.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/4.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/4.print index cbaf870965..6852c7b4ce 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/4.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/4.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) (export "b" (func 0)) (export "c" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/5.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/5.print index a74c1debd3..eadffaacbc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/5.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/5.print @@ -1,6 +1,6 @@ (module (type (;0;) (func (param i32))) - (func (;0;) (type 0) (param i32)) (export "a" (func 0)) (export "b" (func 0)) + (func (;0;) (type 0) (param i32)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/6.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/6.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/7.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/7.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/7.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/7.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/8.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/8.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/exports.wast/9.print b/tests/snapshots/testsuite/proposals/memory64/exports.wast/9.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/exports.wast/9.print +++ b/tests/snapshots/testsuite/proposals/memory64/exports.wast/9.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/extern.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/extern.wast/0.print index fe70b4f112..5a855566e6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/extern.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/extern.wast/0.print @@ -7,6 +7,13 @@ (type (;5;) (func (param anyref) (result externref))) (type (;6;) (func (param i32) (result externref))) (type (;7;) (func (param i32) (result anyref))) + (table (;0;) 10 anyref) + (export "init" (func 1)) + (export "internalize" (func 2)) + (export "externalize" (func 3)) + (export "externalize-i" (func 4)) + (export "externalize-ii" (func 5)) + (elem (;0;) declare func $f) (func $f (;0;) (type $ft)) (func (;1;) (type 3) (param $x externref) i32.const 0 @@ -47,11 +54,4 @@ extern.convert_any any.convert_extern ) - (table (;0;) 10 anyref) - (export "init" (func 1)) - (export "internalize" (func 2)) - (export "externalize" (func 3)) - (export "externalize-i" (func 4)) - (export "externalize-ii" (func 5)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/float_exprs0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/float_exprs0.wast/0.print index 56d85a299e..77fe0ad182 100644 --- a/tests/snapshots/testsuite/proposals/memory64/float_exprs0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/float_exprs0.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32 f64))) (type (;1;) (func (param i32) (result f64))) + (memory (;0;) 0 0) + (memory $m (;1;) 1 1) + (memory (;2;) 0 0) + (export "init" (func 0)) + (export "run" (func 1)) + (export "check" (func 2)) (func (;0;) (type 0) (param $i i32) (param $x f64) local.get $i local.get $x @@ -31,10 +37,4 @@ local.get $i f64.load $m ) - (memory (;0;) 0 0) - (memory $m (;1;) 1 1) - (memory (;2;) 0 0) - (export "init" (func 0)) - (export "run" (func 1)) - (export "check" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/float_exprs1.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/float_exprs1.wast/0.print index 95b79ec0f3..ec61edf317 100644 --- a/tests/snapshots/testsuite/proposals/memory64/float_exprs1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/float_exprs1.wast/0.print @@ -1,5 +1,16 @@ (module (type (;0;) (func (param i32 i32) (result f32))) + (memory (;0;) 0 0) + (memory (;1;) 0 0) + (memory (;2;) 0 0) + (memory (;3;) 0 0) + (memory (;4;) 0 0) + (memory $m (;5;) 1 1) + (memory (;6;) 0 0) + (memory (;7;) 0 0) + (memory (;8;) 0 0) + (export "f32.kahan_sum" (func 0)) + (export "f32.plain_sum" (func 1)) (func (;0;) (type 0) (param $p i32) (param $n i32) (result f32) (local $sum f32) (local $c f32) (local $t f32) block $exit @@ -55,16 +66,5 @@ end local.get $sum ) - (memory (;0;) 0 0) - (memory (;1;) 0 0) - (memory (;2;) 0 0) - (memory (;3;) 0 0) - (memory (;4;) 0 0) - (memory $m (;5;) 1 1) - (memory (;6;) 0 0) - (memory (;7;) 0 0) - (memory (;8;) 0 0) - (export "f32.kahan_sum" (func 0)) - (export "f32.plain_sum" (func 1)) (data (;0;) (memory $m) (i32.const 0) "\c4\c5W$\a5\84\c8\0bm\b8K.\f2v\17\1c\caJV\1e\1bnq\22]\17\1en\bf\cd\14\5c\c7!UQ9\9c\1f\b2Q\f0\a3\93\d7\c1,\ae~\a8(:\01!\f4\0aX\93\f8Bw\9f\839j_\ba\f7\0a\d8Qj4\ca\ad\c64\0e\d8&\dcL3\1c\ed)\90\a8x\0f\d1\cev1#\83\b85\e8\f2D\b0\d3\a1\fc\bb2\e1\b0\baiD\09\d6\d9}\ff.\c0Z6\143\14>\a9\fa\87m\8b\bc\ce\9d\a7\fd\c4\e9\85?\dd\d7\e1\18\a6P&rn?s\0f\f8\12\93#4av\12H\c0\9b\05\93\eb\ac\86\de\94>U\e8\8c\e8\dd\e4\fc\95G\beV\03! L\e6\bf{\f6\7f\d5\bas\1c\c1\14\8f\c4'\96\b3\bd3\ffxA_\c0Z\ce\f6gns\9a\17fp\03\f8\ce'\a3R\b2\9f;\bf\fb\ae\ed\d3Z\f87W\f0\f5n\ef\b1Mp=T\a7\01\9a\85\08H\91\f5\9d\0c`\87[\d9T\1eQm\88\8e\08\8c\a5q:V\08gF\8f\8f\13*,\ec,\1f\b4b+oA\0a\c4eB\a21k,}>\bbu\ac\86\970\d9H\cd\9a\1fV\c4\c6\e4\12\c0\9d\fb\ee\02\8c\ce\1c\f2\1e\a1x#\db\c4\1eI\03\d3q\cc\08P\c5\d8\5c\ed\d5\b5e\ac\b5\c9!\d2\c9)v\de\f00\1a[<\f2;\db:9\82:\16\08o\a8\f1\beii\99q\a6\05\d3\14\93*\16\f2/\11\c7~ \bb\91D\ee\f8\e4\01S\c0\b9\7f\f0\bf\f0\03\9cm\b1\df\a2D\01mkq+\5c\b3!\19F^\8f\db\91\d3|xk\b7\12\00\8f\eb\bd\8a\f5\d4.\c4\c1\1e\dfscYGI\03\0a\b7\cf$\cf\9c\0eDz\9e\14\fbB\bf\9d90\9e\a0\ab/\d1\ae\9ej\83C\e3U}\85\bfc\8a\f8\96\10\1f\fem\e7\22\1b\e1iF\8aD\c8\c8\f9\0c+\19\07\a5\02>\f20\10\9a\85\8a_\ef\81E\a0w\b1\03\10sK\ae\98\9dG\bf\9a-:\d5\0f\03f\e3=S\d9@\ce\1fo2/!+#!lb\d4\a7>\a8\ce(1-\00=g^\af\a0\cf.\d2\b9k\84\ebi\08\ad\bc\0b\c0A\c4P\b6\e3P1\e8\ce\e2\96eU\9c\16F\e6\b0-:\e8\81\05\b0\bf4\f7\bc\10\1c\fb\cc<\f1\85\97B\9f\eb\14\8d<\bf\d7\17\88I\9d\8b+\b2:\83\d1O\04\9e\a1\0f\ad\08\9dT\af\d1\82\c3\ec2/\02\8f\05!-\a2\b7\e4\f4o.\81+\0b\9c\fc\cb\fet\02\f9\db\f4\f3\ea\00\a8\ec\d1\99t&\dd\d64\d5%\b1F\dd\9c\aaq\f5`\b0\88\c8\e0\0bYZ%O)f\f9\e3.\fe\e9\da\e5\18O'b\f4\ce\a4!\95t\c7Wd'\9aL\fdT}a\ce\c3\ac\87F\9c\fa\ff\09\cay\97g$t\ca\d4!\83&%\19\127d\19\e5e\e0tu\8e\dd\c8\eft\c7\d8!+y\04QFe`\03]\fa\d8\f4e\a4\9e]#\da\d7\8a\92\80\a4\dex<\f1WBm\cd\c9/\d5\a4\9e\ab@\f4\cb\1b\d7\a3\ca\fc\eb\a7\01\b2\9aiNF\9b\18N\ddy\a7\aa\a6R9\1e\ef0\cc\9b\bd[\eeL!m0\00r\b0F_\08\cf\c5\b9\e0>\c2\b3\0c\dc\8ed\de\19By\cfC\eaC]\8e\88\f7\ab\15\dc?\c8g \db\b8d\b1G\1f\de\f2\cb?Y\9f\d8F\90\dc\ae/\22\f9\e21\89\d9\9c\1cL\d3\a9JW\84\9c\9f\ea,<\ae<\c3\1e\8b\e5N\17\01%\db4F_\15\ea\05\0c|\d9E\8c\19\d0s\8a\96\16\ddD\f9\05\b7[q\b0\e6!6_u\89\91su\ab}\ae\d3s\ec7\c6\eaUu\ef\ea\ab\8b{\11\dcm\1a\b2j\c4%\cf\aa\e3\9fII\89\cb7\9b\0a\a7\01`p\dc\b7\c8\83\e1B\f5\be\adb\94\ad\8d\a1") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/float_memory0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/float_memory0.wast/0.print index 8f49c4d38c..a3f274402d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/float_memory0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/float_memory0.wast/0.print @@ -2,6 +2,17 @@ (type (;0;) (func (result f32))) (type (;1;) (func (result i32))) (type (;2;) (func)) + (memory (;0;) 0 0) + (memory (;1;) 0 0) + (memory (;2;) 0 0) + (memory $m (;3;) 1 1) + (memory (;4;) 0 0) + (memory (;5;) 0 0) + (export "f32.load" (func 0)) + (export "i32.load" (func 1)) + (export "f32.store" (func 2)) + (export "i32.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f32) i32.const 0 f32.load $m @@ -25,16 +36,5 @@ i32.const 0 i32.store $m ) - (memory (;0;) 0 0) - (memory (;1;) 0 0) - (memory (;2;) 0 0) - (memory $m (;3;) 1 1) - (memory (;4;) 0 0) - (memory (;5;) 0 0) - (export "f32.load" (func 0)) - (export "i32.load" (func 1)) - (export "f32.store" (func 2)) - (export "i32.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (memory $m) (i32.const 0) "\00\00\a0\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/float_memory0.wast/15.print b/tests/snapshots/testsuite/proposals/memory64/float_memory0.wast/15.print index c77089b8cb..a714df4dd7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/float_memory0.wast/15.print +++ b/tests/snapshots/testsuite/proposals/memory64/float_memory0.wast/15.print @@ -2,6 +2,13 @@ (type (;0;) (func (result f64))) (type (;1;) (func (result i64))) (type (;2;) (func)) + (memory (;0;) 0 0) + (memory $m (;1;) 1 1) + (export "f64.load" (func 0)) + (export "i64.load" (func 1)) + (export "f64.store" (func 2)) + (export "i64.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f64) i32.const 0 f64.load $m @@ -25,12 +32,5 @@ i64.const 0 i64.store $m ) - (memory (;0;) 0 0) - (memory $m (;1;) 1 1) - (export "f64.load" (func 0)) - (export "i64.load" (func 1)) - (export "f64.store" (func 2)) - (export "i64.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (memory $m) (i32.const 0) "\00\00\00\00\00\00\f4\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/0.print index a66e456b51..e77d9e6443 100644 --- a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/0.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f32))) (type (;1;) (func (result i32))) (type (;2;) (func)) + (memory (;0;) i64 1 1) + (export "f32.load" (func 0)) + (export "i32.load" (func 1)) + (export "f32.store" (func 2)) + (export "i32.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f32) i64.const 0 f32.load @@ -25,11 +31,5 @@ i32.const 0 i32.store ) - (memory (;0;) i64 1 1) - (export "f32.load" (func 0)) - (export "i32.load" (func 1)) - (export "f32.store" (func 2)) - (export "i32.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i64.const 0) "\00\00\a0\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/15.print b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/15.print index 604aa3c975..14e8e4baf0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/15.print +++ b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/15.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f64))) (type (;1;) (func (result i64))) (type (;2;) (func)) + (memory (;0;) i64 1 1) + (export "f64.load" (func 0)) + (export "i64.load" (func 1)) + (export "f64.store" (func 2)) + (export "i64.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f64) i64.const 0 f64.load @@ -25,11 +31,5 @@ i64.const 0 i64.store ) - (memory (;0;) i64 1 1) - (export "f64.load" (func 0)) - (export "i64.load" (func 1)) - (export "f64.store" (func 2)) - (export "i64.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i64.const 0) "\00\00\00\00\00\00\f4\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/30.print b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/30.print index 9f37fefae2..3dabe0d0ab 100644 --- a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/30.print +++ b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/30.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f32))) (type (;1;) (func (result i32))) (type (;2;) (func)) + (memory (;0;) i64 1 1) + (export "f32.load" (func 0)) + (export "i32.load" (func 1)) + (export "f32.store" (func 2)) + (export "i32.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f32) i64.const 1 f32.load @@ -25,11 +31,5 @@ i32.const 0 i32.store ) - (memory (;0;) i64 1 1) - (export "f32.load" (func 0)) - (export "i32.load" (func 1)) - (export "f32.store" (func 2)) - (export "i32.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i64.const 0) "\00\00\00\a0\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/45.print b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/45.print index a48215bde5..ff9439f424 100644 --- a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/45.print +++ b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/45.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f64))) (type (;1;) (func (result i64))) (type (;2;) (func)) + (memory (;0;) i64 1 1) + (export "f64.load" (func 0)) + (export "i64.load" (func 1)) + (export "f64.store" (func 2)) + (export "i64.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f64) i64.const 1 f64.load @@ -25,11 +31,5 @@ i64.const 0 i64.store ) - (memory (;0;) i64 1 1) - (export "f64.load" (func 0)) - (export "i64.load" (func 1)) - (export "f64.store" (func 2)) - (export "i64.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i64.const 0) "\00\00\00\00\00\00\00\f4\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/60.print b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/60.print index bb5492b22e..b22bd90c51 100644 --- a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/60.print +++ b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/60.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f32))) (type (;1;) (func (result i32))) (type (;2;) (func)) + (memory (;0;) i64 1 1) + (export "f32.load" (func 0)) + (export "i32.load" (func 1)) + (export "f32.store" (func 2)) + (export "i32.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f32) i64.const 0 f32.load @@ -25,11 +31,5 @@ i32.const 0 i32.store ) - (memory (;0;) i64 1 1) - (export "f32.load" (func 0)) - (export "i32.load" (func 1)) - (export "f32.store" (func 2)) - (export "i32.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i64.const 0) "\01\00\d0\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/75.print b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/75.print index 1ec6bb43ae..31a686a25d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/75.print +++ b/tests/snapshots/testsuite/proposals/memory64/float_memory64.wast/75.print @@ -2,6 +2,12 @@ (type (;0;) (func (result f64))) (type (;1;) (func (result i64))) (type (;2;) (func)) + (memory (;0;) i64 1 1) + (export "f64.load" (func 0)) + (export "i64.load" (func 1)) + (export "f64.store" (func 2)) + (export "i64.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f64) i64.const 0 f64.load @@ -25,11 +31,5 @@ i64.const 0 i64.store ) - (memory (;0;) i64 1 1) - (export "f64.load" (func 0)) - (export "i64.load" (func 1)) - (export "f64.store" (func 2)) - (export "i64.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (i64.const 0) "\01\00\00\00\00\00\fc\7f") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/func.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/func.wast/0.print index 87259d3a49..2abed53f69 100644 --- a/tests/snapshots/testsuite/proposals/memory64/func.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/func.wast/0.print @@ -28,6 +28,76 @@ (type (;26;) (func (param i32) (result i32 i32))) (type (;27;) (func (result i32 i32))) (type (;28;) (func (param i32 i64 f32 f32 i32 f64 f32 i32 i32 i32 f32 f64 f64 f64 i32 i32 f32) (result f64 f32 i32 i32 i32 i64 f32 i32 i32 f32 f64 f64 i32 f32 i32 f64))) + (export "f" (func 2)) + (export "g" (func $h)) + (export "type-use-1" (func 25)) + (export "type-use-2" (func 26)) + (export "type-use-3" (func 27)) + (export "type-use-4" (func 28)) + (export "type-use-5" (func 29)) + (export "type-use-6" (func 30)) + (export "type-use-7" (func 31)) + (export "local-first-i32" (func 36)) + (export "local-first-i64" (func 37)) + (export "local-first-f32" (func 38)) + (export "local-first-f64" (func 39)) + (export "local-second-i32" (func 40)) + (export "local-second-i64" (func 41)) + (export "local-second-f32" (func 42)) + (export "local-second-f64" (func 43)) + (export "local-mixed" (func 44)) + (export "param-first-i32" (func 45)) + (export "param-first-i64" (func 46)) + (export "param-first-f32" (func 47)) + (export "param-first-f64" (func 48)) + (export "param-second-i32" (func 49)) + (export "param-second-i64" (func 50)) + (export "param-second-f32" (func 51)) + (export "param-second-f64" (func 52)) + (export "param-mixed" (func 53)) + (export "empty" (func 54)) + (export "value-void" (func 55)) + (export "value-i32" (func 56)) + (export "value-i64" (func 57)) + (export "value-f32" (func 58)) + (export "value-f64" (func 59)) + (export "value-i32-f64" (func 60)) + (export "value-i32-i32-i32" (func 61)) + (export "value-block-void" (func 62)) + (export "value-block-i32" (func 63)) + (export "value-block-i32-i64" (func 64)) + (export "return-empty" (func 65)) + (export "return-i32" (func 66)) + (export "return-i64" (func 67)) + (export "return-f32" (func 68)) + (export "return-f64" (func 69)) + (export "return-i32-f64" (func 70)) + (export "return-i32-i32-i32" (func 71)) + (export "return-block-i32" (func 72)) + (export "return-block-i32-i64" (func 73)) + (export "break-empty" (func 74)) + (export "break-i32" (func 75)) + (export "break-i64" (func 76)) + (export "break-f32" (func 77)) + (export "break-f64" (func 78)) + (export "break-i32-f64" (func 79)) + (export "break-i32-i32-i32" (func 80)) + (export "break-block-i32" (func 81)) + (export "break-block-i32-i64" (func 82)) + (export "break-br_if-empty" (func 83)) + (export "break-br_if-num" (func 84)) + (export "break-br_if-num-num" (func 85)) + (export "break-br_table-empty" (func 86)) + (export "break-br_table-num" (func 87)) + (export "break-br_table-num-num" (func 88)) + (export "break-br_table-nested-empty" (func 89)) + (export "break-br_table-nested-num" (func 90)) + (export "break-br_table-nested-num-num" (func 91)) + (export "large-sig" (func 92)) + (export "init-local-i32" (func 93)) + (export "init-local-i64" (func 94)) + (export "init-local-f32" (func 95)) + (export "init-local-f64" (func 96)) (func $dummy (;0;) (type $sig)) (func (;1;) (type $sig)) (func (;2;) (type $sig)) @@ -432,74 +502,4 @@ (local f64) local.get 0 ) - (export "f" (func 2)) - (export "g" (func $h)) - (export "type-use-1" (func 25)) - (export "type-use-2" (func 26)) - (export "type-use-3" (func 27)) - (export "type-use-4" (func 28)) - (export "type-use-5" (func 29)) - (export "type-use-6" (func 30)) - (export "type-use-7" (func 31)) - (export "local-first-i32" (func 36)) - (export "local-first-i64" (func 37)) - (export "local-first-f32" (func 38)) - (export "local-first-f64" (func 39)) - (export "local-second-i32" (func 40)) - (export "local-second-i64" (func 41)) - (export "local-second-f32" (func 42)) - (export "local-second-f64" (func 43)) - (export "local-mixed" (func 44)) - (export "param-first-i32" (func 45)) - (export "param-first-i64" (func 46)) - (export "param-first-f32" (func 47)) - (export "param-first-f64" (func 48)) - (export "param-second-i32" (func 49)) - (export "param-second-i64" (func 50)) - (export "param-second-f32" (func 51)) - (export "param-second-f64" (func 52)) - (export "param-mixed" (func 53)) - (export "empty" (func 54)) - (export "value-void" (func 55)) - (export "value-i32" (func 56)) - (export "value-i64" (func 57)) - (export "value-f32" (func 58)) - (export "value-f64" (func 59)) - (export "value-i32-f64" (func 60)) - (export "value-i32-i32-i32" (func 61)) - (export "value-block-void" (func 62)) - (export "value-block-i32" (func 63)) - (export "value-block-i32-i64" (func 64)) - (export "return-empty" (func 65)) - (export "return-i32" (func 66)) - (export "return-i64" (func 67)) - (export "return-f32" (func 68)) - (export "return-f64" (func 69)) - (export "return-i32-f64" (func 70)) - (export "return-i32-i32-i32" (func 71)) - (export "return-block-i32" (func 72)) - (export "return-block-i32-i64" (func 73)) - (export "break-empty" (func 74)) - (export "break-i32" (func 75)) - (export "break-i64" (func 76)) - (export "break-f32" (func 77)) - (export "break-f64" (func 78)) - (export "break-i32-f64" (func 79)) - (export "break-i32-i32-i32" (func 80)) - (export "break-block-i32" (func 81)) - (export "break-block-i32-i64" (func 82)) - (export "break-br_if-empty" (func 83)) - (export "break-br_if-num" (func 84)) - (export "break-br_if-num-num" (func 85)) - (export "break-br_table-empty" (func 86)) - (export "break-br_table-num" (func 87)) - (export "break-br_table-num-num" (func 88)) - (export "break-br_table-nested-empty" (func 89)) - (export "break-br_table-nested-num" (func 90)) - (export "break-br_table-nested-num-num" (func 91)) - (export "large-sig" (func 92)) - (export "init-local-i32" (func 93)) - (export "init-local-i64" (func 94)) - (export "init-local-f32" (func 95)) - (export "init-local-f64" (func 96)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/func.wast/93.print b/tests/snapshots/testsuite/proposals/memory64/func.wast/93.print index 8dfe06bc6c..3a1d573d47 100644 --- a/tests/snapshots/testsuite/proposals/memory64/func.wast/93.print +++ b/tests/snapshots/testsuite/proposals/memory64/func.wast/93.print @@ -1,6 +1,9 @@ (module (type $proc (;0;) (func (result i32))) (type $sig (;1;) (func (param i32) (result i32))) + (export "f" (func 0)) + (export "g" (func 2)) + (export "p" (func 3)) (func (;0;) (type $sig) (param $var i32) (result i32) (local i32) local.get 1 @@ -19,7 +22,4 @@ local.set $var local.get $var ) - (export "f" (func 0)) - (export "g" (func 2)) - (export "p" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/func.wast/97.print b/tests/snapshots/testsuite/proposals/memory64/func.wast/97.print index 2d86f1a6cf..65433cdaf1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/func.wast/97.print +++ b/tests/snapshots/testsuite/proposals/memory64/func.wast/97.print @@ -3,6 +3,12 @@ (type $empty-sig-duplicate (;1;) (func)) (type $complex-sig-duplicate (;2;) (func (param i64 i64 f64 i64 f64 i64 f32 i32))) (type (;3;) (func (param f64 i64 f64 i64 f64 i64 f32 i32))) + (table (;0;) 7 7 funcref) + (export "signature-explicit-reused" (func 7)) + (export "signature-implicit-reused" (func 8)) + (export "signature-explicit-duplicate" (func 9)) + (export "signature-implicit-duplicate" (func 10)) + (elem (;0;) (i32.const 0) func $complex-sig-3 $empty-sig-2 $complex-sig-1 $complex-sig-3 $empty-sig-1 $complex-sig-4 $complex-sig-5) (func $empty-sig-1 (;0;) (type $sig)) (func $complex-sig-1 (;1;) (type 3) (param f64 i64 f64 i64 f64 i64 f32 i32)) (func $empty-sig-2 (;2;) (type $sig)) @@ -74,10 +80,4 @@ i32.const 6 call_indirect (type $complex-sig-duplicate) ) - (table (;0;) 7 7 funcref) - (export "signature-explicit-reused" (func 7)) - (export "signature-implicit-reused" (func 8)) - (export "signature-explicit-duplicate" (func 9)) - (export "signature-implicit-duplicate" (func 10)) - (elem (;0;) (i32.const 0) func $complex-sig-3 $empty-sig-2 $complex-sig-1 $complex-sig-3 $empty-sig-1 $complex-sig-4 $complex-sig-5) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/global.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/global.wast/0.print index b6e70ee426..eea13ad468 100644 --- a/tests/snapshots/testsuite/proposals/memory64/global.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/global.wast/0.print @@ -14,6 +14,77 @@ (type (;12;) (func (param i32) (result i32))) (import "spectest" "global_i32" (global (;0;) i32)) (import "spectest" "global_i64" (global (;1;) i64)) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;2;) i32 i32.const -2) + (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;)) + (global (;4;) f64 f64.const -0x1p+2 (;=-4;)) + (global $b (;5;) i64 i64.const -5) + (global $x (;6;) (mut i32) i32.const -12) + (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;)) + (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;)) + (global $y (;9;) (mut i64) i64.const -15) + (global $z1 (;10;) i32 global.get 0) + (global $z2 (;11;) i64 global.get 1) + (global $z3 (;12;) i32 i32.const 20 i32.const 2 i32.mul i32.const 2 i32.sub i32.const 4 i32.add) + (global $z4 (;13;) i64 i64.const 20 i64.const 2 i64.mul i64.const 2 i64.sub i64.const 5 i64.add) + (global $z5 (;14;) i32 global.get 0 i32.const 42 i32.add) + (global $z6 (;15;) i64 global.get 1 i64.const 42 i64.add) + (global $r (;16;) externref ref.null extern) + (global $mr (;17;) (mut externref) ref.null extern) + (global (;18;) funcref ref.null func) + (export "get-a" (func 0)) + (export "get-b" (func 1)) + (export "get-r" (func 2)) + (export "get-mr" (func 3)) + (export "get-x" (func 4)) + (export "get-y" (func 5)) + (export "get-z1" (func 6)) + (export "get-z2" (func 7)) + (export "get-z3" (func 8)) + (export "get-z4" (func 9)) + (export "get-z5" (func 10)) + (export "get-z6" (func 11)) + (export "set-x" (func 12)) + (export "set-y" (func 13)) + (export "set-mr" (func 14)) + (export "get-3" (func 15)) + (export "get-4" (func 16)) + (export "get-7" (func 17)) + (export "get-8" (func 18)) + (export "set-7" (func 19)) + (export "set-8" (func 20)) + (export "as-select-first" (func 22)) + (export "as-select-mid" (func 23)) + (export "as-select-last" (func 24)) + (export "as-loop-first" (func 25)) + (export "as-loop-mid" (func 26)) + (export "as-loop-last" (func 27)) + (export "as-if-condition" (func 28)) + (export "as-if-then" (func 29)) + (export "as-if-else" (func 30)) + (export "as-br_if-first" (func 31)) + (export "as-br_if-last" (func 32)) + (export "as-br_table-first" (func 33)) + (export "as-br_table-last" (func 34)) + (export "as-call_indirect-first" (func 36)) + (export "as-call_indirect-mid" (func 37)) + (export "as-call_indirect-last" (func 38)) + (export "as-store-first" (func 39)) + (export "as-store-last" (func 40)) + (export "as-load-operand" (func 41)) + (export "as-memory.grow-value" (func 42)) + (export "as-call-value" (func 44)) + (export "as-return-value" (func 45)) + (export "as-drop-operand" (func 46)) + (export "as-br-value" (func 47)) + (export "as-local.set-value" (func 48)) + (export "as-local.tee-value" (func 49)) + (export "as-global.set-value" (func 50)) + (export "as-unary-operand" (func 51)) + (export "as-binary-operand" (func 52)) + (export "as-compare-operand" (func 53)) + (elem (;0;) (i32.const 0) func $func) (func (;0;) (type 1) (result i32) global.get $a ) @@ -274,75 +345,4 @@ i32.const 1 i32.gt_u ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;2;) i32 i32.const -2) - (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;)) - (global (;4;) f64 f64.const -0x1p+2 (;=-4;)) - (global $b (;5;) i64 i64.const -5) - (global $x (;6;) (mut i32) i32.const -12) - (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;)) - (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;)) - (global $y (;9;) (mut i64) i64.const -15) - (global $z1 (;10;) i32 global.get 0) - (global $z2 (;11;) i64 global.get 1) - (global $z3 (;12;) i32 i32.const 20 i32.const 2 i32.mul i32.const 2 i32.sub i32.const 4 i32.add) - (global $z4 (;13;) i64 i64.const 20 i64.const 2 i64.mul i64.const 2 i64.sub i64.const 5 i64.add) - (global $z5 (;14;) i32 global.get 0 i32.const 42 i32.add) - (global $z6 (;15;) i64 global.get 1 i64.const 42 i64.add) - (global $r (;16;) externref ref.null extern) - (global $mr (;17;) (mut externref) ref.null extern) - (global (;18;) funcref ref.null func) - (export "get-a" (func 0)) - (export "get-b" (func 1)) - (export "get-r" (func 2)) - (export "get-mr" (func 3)) - (export "get-x" (func 4)) - (export "get-y" (func 5)) - (export "get-z1" (func 6)) - (export "get-z2" (func 7)) - (export "get-z3" (func 8)) - (export "get-z4" (func 9)) - (export "get-z5" (func 10)) - (export "get-z6" (func 11)) - (export "set-x" (func 12)) - (export "set-y" (func 13)) - (export "set-mr" (func 14)) - (export "get-3" (func 15)) - (export "get-4" (func 16)) - (export "get-7" (func 17)) - (export "get-8" (func 18)) - (export "set-7" (func 19)) - (export "set-8" (func 20)) - (export "as-select-first" (func 22)) - (export "as-select-mid" (func 23)) - (export "as-select-last" (func 24)) - (export "as-loop-first" (func 25)) - (export "as-loop-mid" (func 26)) - (export "as-loop-last" (func 27)) - (export "as-if-condition" (func 28)) - (export "as-if-then" (func 29)) - (export "as-if-else" (func 30)) - (export "as-br_if-first" (func 31)) - (export "as-br_if-last" (func 32)) - (export "as-br_table-first" (func 33)) - (export "as-br_table-last" (func 34)) - (export "as-call_indirect-first" (func 36)) - (export "as-call_indirect-mid" (func 37)) - (export "as-call_indirect-last" (func 38)) - (export "as-store-first" (func 39)) - (export "as-store-last" (func 40)) - (export "as-load-operand" (func 41)) - (export "as-memory.grow-value" (func 42)) - (export "as-call-value" (func 44)) - (export "as-return-value" (func 45)) - (export "as-drop-operand" (func 46)) - (export "as-br-value" (func 47)) - (export "as-local.set-value" (func 48)) - (export "as-local.tee-value" (func 49)) - (export "as-global.set-value" (func 50)) - (export "as-unary-operand" (func 51)) - (export "as-binary-operand" (func 52)) - (export "as-compare-operand" (func 53)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/global.wast/113.print b/tests/snapshots/testsuite/proposals/memory64/global.wast/113.print index 7b328ddb8e..823cc2fd34 100644 --- a/tests/snapshots/testsuite/proposals/memory64/global.wast/113.print +++ b/tests/snapshots/testsuite/proposals/memory64/global.wast/113.print @@ -3,15 +3,6 @@ (type (;1;) (func (param i32) (result funcref))) (type (;2;) (func (param i32) (result i32))) (import "G" "g" (global $g0 (;0;) i32)) - (func $f (;0;) (type 0)) - (func (;1;) (type 1) (param $i i32) (result funcref) - local.get $i - table.get $t - ) - (func (;2;) (type 2) (param $i i32) (result i32) - local.get $i - i32.load - ) (table $t (;0;) 10 funcref ref.null func) (memory $m (;0;) 1) (global $g1 (;1;) i32 i32.const 8) @@ -22,6 +13,15 @@ (export "get-data" (func 2)) (elem (;0;) (global.get $g2) funcref (ref.func $f)) (elem (;1;) (global.get $g3) funcref (global.get $gf)) + (func $f (;0;) (type 0)) + (func (;1;) (type 1) (param $i i32) (result funcref) + local.get $i + table.get $t + ) + (func (;2;) (type 2) (param $i i32) (result i32) + local.get $i + i32.load + ) (data (;0;) (global.get $g2) "DDDD") (data (;1;) (global.get $g3) "\88\88\88\88") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/i31.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/i31.wast/0.print index b8e421f5a6..4f05ff42c7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/i31.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/i31.wast/0.print @@ -4,6 +4,15 @@ (type (;2;) (func (result i32))) (type (;3;) (func (result i32 i32))) (type (;4;) (func (param i32))) + (global $i (;0;) (ref i31) i32.const 2 ref.i31) + (global $m (;1;) (mut (ref i31)) i32.const 3 ref.i31) + (export "new" (func 0)) + (export "get_u" (func 1)) + (export "get_s" (func 2)) + (export "get_u-null" (func 3)) + (export "get_s-null" (func 4)) + (export "get_globals" (func 5)) + (export "set_global" (func 6)) (func (;0;) (type 0) (param $i i32) (result (ref i31)) local.get $i ref.i31 @@ -37,13 +46,4 @@ ref.i31 global.set $m ) - (global $i (;0;) (ref i31) i32.const 2 ref.i31) - (global $m (;1;) (mut (ref i31)) i32.const 3 ref.i31) - (export "new" (func 0)) - (export "get_u" (func 1)) - (export "get_s" (func 2)) - (export "get_u-null" (func 3)) - (export "get_s-null" (func 4)) - (export "get_globals" (func 5)) - (export "set_global" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/i31.wast/23.print b/tests/snapshots/testsuite/proposals/memory64/i31.wast/23.print index 5870a4a9f6..70b4717eb2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/i31.wast/23.print +++ b/tests/snapshots/testsuite/proposals/memory64/i31.wast/23.print @@ -3,6 +3,15 @@ (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) + (table $table (;0;) 3 10 i31ref) + (export "size" (func 0)) + (export "get" (func 1)) + (export "grow" (func 2)) + (export "fill" (func 3)) + (export "copy" (func 4)) + (export "init" (func 5)) + (elem (;0;) (i32.const 0) i31ref (item i32.const 999 ref.i31) (item i32.const 888 ref.i31) (item i32.const 777 ref.i31)) + (elem $elem (;1;) i31ref (item i32.const 123 ref.i31) (item i32.const 456 ref.i31) (item i32.const 789 ref.i31)) (func (;0;) (type 0) (result i32) table.size $table ) @@ -36,13 +45,4 @@ local.get 2 table.init $elem ) - (table $table (;0;) 3 10 i31ref) - (export "size" (func 0)) - (export "get" (func 1)) - (export "grow" (func 2)) - (export "fill" (func 3)) - (export "copy" (func 4)) - (export "init" (func 5)) - (elem (;0;) (i32.const 0) i31ref (item i32.const 999 ref.i31) (item i32.const 888 ref.i31) (item i32.const 777 ref.i31)) - (elem $elem (;1;) i31ref (item i32.const 123 ref.i31) (item i32.const 456 ref.i31) (item i32.const 789 ref.i31)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/i31.wast/44.print b/tests/snapshots/testsuite/proposals/memory64/i31.wast/44.print index 35188e1d32..f45fc3051b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/i31.wast/44.print +++ b/tests/snapshots/testsuite/proposals/memory64/i31.wast/44.print @@ -1,11 +1,11 @@ (module $i31ref_of_global_table_initializer (type (;0;) (func (param i32) (result i32))) (import "env" "g" (global $g (;0;) i32)) + (table $t (;0;) 3 3 (ref i31) global.get $g ref.i31) + (export "get" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 table.get $t i31.get_u ) - (table $t (;0;) 3 3 (ref i31) global.get $g ref.i31) - (export "get" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/i31.wast/48.print b/tests/snapshots/testsuite/proposals/memory64/i31.wast/48.print index 7559027361..14ec1282df 100644 --- a/tests/snapshots/testsuite/proposals/memory64/i31.wast/48.print +++ b/tests/snapshots/testsuite/proposals/memory64/i31.wast/48.print @@ -1,10 +1,10 @@ (module $i31ref_of_global_global_initializer (type (;0;) (func (result i32))) (import "env" "g" (global $g0 (;0;) i32)) + (global $g1 (;1;) i31ref global.get $g0 ref.i31) + (export "get" (func 0)) (func (;0;) (type 0) (result i32) global.get $g1 i31.get_u ) - (global $g1 (;1;) i31ref global.get $g0 ref.i31) - (export "get" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/i31.wast/50.print b/tests/snapshots/testsuite/proposals/memory64/i31.wast/50.print index d246bb351b..990f397321 100644 --- a/tests/snapshots/testsuite/proposals/memory64/i31.wast/50.print +++ b/tests/snapshots/testsuite/proposals/memory64/i31.wast/50.print @@ -1,6 +1,10 @@ (module $anyref_global_of_i31ref (type (;0;) (func (result i32 i32))) (type (;1;) (func (param i32))) + (global $c (;0;) anyref i32.const 1234 ref.i31) + (global $m (;1;) (mut anyref) i32.const 5678 ref.i31) + (export "get_globals" (func 0)) + (export "set_global" (func 1)) (func (;0;) (type 0) (result i32 i32) global.get $c ref.cast i31ref @@ -14,8 +18,4 @@ ref.i31 global.set $m ) - (global $c (;0;) anyref i32.const 1234 ref.i31) - (global $m (;1;) (mut anyref) i32.const 5678 ref.i31) - (export "get_globals" (func 0)) - (export "set_global" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/i31.wast/54.print b/tests/snapshots/testsuite/proposals/memory64/i31.wast/54.print index cc3ea9e481..b8065640f2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/i31.wast/54.print +++ b/tests/snapshots/testsuite/proposals/memory64/i31.wast/54.print @@ -3,6 +3,15 @@ (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) + (table $table (;0;) 3 10 anyref) + (export "size" (func 0)) + (export "get" (func 1)) + (export "grow" (func 2)) + (export "fill" (func 3)) + (export "copy" (func 4)) + (export "init" (func 5)) + (elem (;0;) (i32.const 0) i31ref (item i32.const 999 ref.i31) (item i32.const 888 ref.i31) (item i32.const 777 ref.i31)) + (elem $elem (;1;) i31ref (item i32.const 123 ref.i31) (item i32.const 456 ref.i31) (item i32.const 789 ref.i31)) (func (;0;) (type 0) (result i32) table.size $table ) @@ -37,13 +46,4 @@ local.get 2 table.init $elem ) - (table $table (;0;) 3 10 anyref) - (export "size" (func 0)) - (export "get" (func 1)) - (export "grow" (func 2)) - (export "fill" (func 3)) - (export "copy" (func 4)) - (export "init" (func 5)) - (elem (;0;) (i32.const 0) i31ref (item i32.const 999 ref.i31) (item i32.const 888 ref.i31) (item i32.const 777 ref.i31)) - (elem $elem (;1;) i31ref (item i32.const 123 ref.i31) (item i32.const 456 ref.i31) (item i32.const 789 ref.i31)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/if.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/if.wast/0.print index a9941caedc..57caff7d3a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/if.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/if.wast/0.print @@ -15,6 +15,60 @@ (type (;13;) (func (param i64 i64 i32) (result i64 i32))) (type (;14;) (func (param i64 i64) (result i64))) (type (;15;) (func (param i64) (result i64))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "empty" (func 1)) + (export "singular" (func 2)) + (export "multi" (func 3)) + (export "nested" (func 4)) + (export "as-select-first" (func 5)) + (export "as-select-mid" (func 6)) + (export "as-select-last" (func 7)) + (export "as-loop-first" (func 8)) + (export "as-loop-mid" (func 9)) + (export "as-loop-last" (func 10)) + (export "as-if-condition" (func 11)) + (export "as-br_if-first" (func 12)) + (export "as-br_if-last" (func 13)) + (export "as-br_table-first" (func 14)) + (export "as-br_table-last" (func 15)) + (export "as-call_indirect-first" (func 17)) + (export "as-call_indirect-mid" (func 18)) + (export "as-call_indirect-last" (func 19)) + (export "as-store-first" (func 20)) + (export "as-store-last" (func 21)) + (export "as-memory.grow-value" (func 22)) + (export "as-call-value" (func 24)) + (export "as-return-value" (func 25)) + (export "as-drop-operand" (func 26)) + (export "as-br-value" (func 27)) + (export "as-local.set-value" (func 28)) + (export "as-local.tee-value" (func 29)) + (export "as-global.set-value" (func 30)) + (export "as-load-operand" (func 31)) + (export "as-unary-operand" (func 32)) + (export "as-binary-operand" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-operand" (func 35)) + (export "as-binary-operands" (func 36)) + (export "as-compare-operands" (func 37)) + (export "as-mixed-operands" (func 38)) + (export "break-bare" (func 39)) + (export "break-value" (func 40)) + (export "break-multi-value" (func 41)) + (export "param" (func 42)) + (export "params" (func 43)) + (export "params-id" (func 44)) + (export "param-break" (func 45)) + (export "params-break" (func 46)) + (export "params-id-break" (func 47)) + (export "effects" (func 48)) + (export "add64_u_with_carry" (func $add64_u_with_carry)) + (export "add64_u_saturated" (func $add64_u_saturated)) + (export "type-use" (func 51)) + (export "atypical-condition" (func 52)) + (elem (;0;) (i32.const 0) func $func) (func $dummy (;0;) (type $block-sig-1)) (func (;1;) (type $block-sig-3) (param i32) local.get 0 @@ -873,58 +927,4 @@ else end ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "empty" (func 1)) - (export "singular" (func 2)) - (export "multi" (func 3)) - (export "nested" (func 4)) - (export "as-select-first" (func 5)) - (export "as-select-mid" (func 6)) - (export "as-select-last" (func 7)) - (export "as-loop-first" (func 8)) - (export "as-loop-mid" (func 9)) - (export "as-loop-last" (func 10)) - (export "as-if-condition" (func 11)) - (export "as-br_if-first" (func 12)) - (export "as-br_if-last" (func 13)) - (export "as-br_table-first" (func 14)) - (export "as-br_table-last" (func 15)) - (export "as-call_indirect-first" (func 17)) - (export "as-call_indirect-mid" (func 18)) - (export "as-call_indirect-last" (func 19)) - (export "as-store-first" (func 20)) - (export "as-store-last" (func 21)) - (export "as-memory.grow-value" (func 22)) - (export "as-call-value" (func 24)) - (export "as-return-value" (func 25)) - (export "as-drop-operand" (func 26)) - (export "as-br-value" (func 27)) - (export "as-local.set-value" (func 28)) - (export "as-local.tee-value" (func 29)) - (export "as-global.set-value" (func 30)) - (export "as-load-operand" (func 31)) - (export "as-unary-operand" (func 32)) - (export "as-binary-operand" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-operand" (func 35)) - (export "as-binary-operands" (func 36)) - (export "as-compare-operands" (func 37)) - (export "as-mixed-operands" (func 38)) - (export "break-bare" (func 39)) - (export "break-value" (func 40)) - (export "break-multi-value" (func 41)) - (export "param" (func 42)) - (export "params" (func 43)) - (export "params-id" (func 44)) - (export "param-break" (func 45)) - (export "params-break" (func 46)) - (export "params-id-break" (func 47)) - (export "effects" (func 48)) - (export "add64_u_with_carry" (func $add64_u_with_carry)) - (export "add64_u_saturated" (func $add64_u_saturated)) - (export "type-use" (func 51)) - (export "atypical-condition" (func 52)) - (elem (;0;) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/0.print index b544445b7d..d2c3a1ed97 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/0.print @@ -6,21 +6,6 @@ (type (;4;) (func (result f32))) (type (;5;) (func (param i32) (result i32))) (type (;6;) (func (param i64) (result i64))) - (func (;0;) (type 0)) - (func (;1;) (type 1) (param i32)) - (func (;2;) (type 2) (param f32)) - (func (;3;) (type 3) (result i32) - i32.const 22 - ) - (func (;4;) (type 4) (result f32) - f32.const 0x1.6p+3 (;=11;) - ) - (func (;5;) (type 5) (param i32) (result i32) - local.get 0 - ) - (func (;6;) (type 6) (param i64) (result i64) - local.get 0 - ) (table (;0;) 10 funcref) (table (;1;) 10 20 funcref) (memory (;0;) 2) @@ -46,4 +31,19 @@ (export "tag" (tag 0)) (export "tag-i32" (tag 1)) (export "tag-f32" (tag 2)) + (func (;0;) (type 0)) + (func (;1;) (type 1) (param i32)) + (func (;2;) (type 2) (param f32)) + (func (;3;) (type 3) (result i32) + i32.const 22 + ) + (func (;4;) (type 4) (result f32) + f32.const 0x1.6p+3 (;=11;) + ) + (func (;5;) (type 5) (param i32) (result i32) + local.get 0 + ) + (func (;6;) (type 6) (param i64) (result i64) + local.get 0 + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/123.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/123.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/123.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/123.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/128.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/128.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/128.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/128.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/156.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/156.print index c72d519576..c22b9dbe1b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/156.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/156.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 0 3)) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/162.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/162.print index a275054d33..26228bbc15 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/162.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/162.print @@ -1,10 +1,10 @@ (module $Mgm (type (;0;) (func (result i32))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "grow" (func 0)) (func (;0;) (type 0) (result i32) i32.const 1 memory.grow ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/165.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/165.print index 9f1f4cd732..62be6533dc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/165.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/165.print @@ -1,10 +1,10 @@ (module $Mgim1 (type (;0;) (func (result i32))) (import "grown-memory" "memory" (memory (;0;) 2)) + (export "memory" (memory 0)) + (export "grow" (func 0)) (func (;0;) (type 0) (result i32) i32.const 1 memory.grow ) - (export "memory" (memory 0)) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/168.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/168.print index 79892bea12..76ad1bbaef 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/168.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/168.print @@ -1,8 +1,8 @@ (module $Mgim2 (type (;0;) (func (result i32))) (import "grown-imported-memory" "memory" (memory (;0;) 3)) + (export "size" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (export "size" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/2.print index 33d53e48e4..e60965f3b9 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/2.print @@ -27,6 +27,16 @@ (import "spectest" "print_i32" (func (;15;) (type $func_i32))) (import "spectest" "print_i32" (func (;16;) (type $forward))) (import "spectest" "print_i32" (func (;17;) (type $forward))) + (table (;0;) 2 2 funcref) + (export "p1" (func 11)) + (export "p2" (func $p)) + (export "p3" (func 13)) + (export "p4" (func 13)) + (export "p5" (func 14)) + (export "p6" (func 15)) + (export "print32" (func 18)) + (export "print64" (func 19)) + (elem (;0;) (i32.const 0) func $print_i32 $print_f64) (func (;18;) (type $func_i32) (param $i i32) (local $x f32) local.get $i @@ -72,14 +82,4 @@ i32.const 1 call_indirect (type $func_f64) ) - (table (;0;) 2 2 funcref) - (export "p1" (func 11)) - (export "p2" (func $p)) - (export "p3" (func 13)) - (export "p4" (func 13)) - (export "p5" (func 14)) - (export "p6" (func 15)) - (export "print32" (func 18)) - (export "print64" (func 19)) - (elem (;0;) (i32.const 0) func $print_i32 $print_f64) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/47.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/47.print index cdb6d30a03..45653670d6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/47.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/47.print @@ -10,6 +10,13 @@ (import "spectest" "global_i64" (global (;4;) i64)) (import "spectest" "global_f32" (global (;5;) f32)) (import "spectest" "global_f64" (global (;6;) f64)) + (export "get-0" (func 0)) + (export "get-1" (func 1)) + (export "get-x" (func 2)) + (export "get-y" (func 3)) + (export "get-4" (func 4)) + (export "get-5" (func 5)) + (export "get-6" (func 6)) (func (;0;) (type 0) (result i32) global.get 0 ) @@ -31,11 +38,4 @@ (func (;6;) (type 3) (result f64) global.get 6 ) - (export "get-0" (func 0)) - (export "get-1" (func 1)) - (export "get-x" (func 2)) - (export "get-y" (func 3)) - (export "get-4" (func 4)) - (export "get-5" (func 5)) - (export "get-6" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/6.print index 7111042da6..9c3b885386 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32))) (import "spectest" "print_i32" (func $imported_print (;0;) (type 0))) + (export "print_i32" (func 1)) (func (;1;) (type 0) (param $i i32) local.get $i call $imported_print ) - (export "print_i32" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/78.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/78.print index 6444756a75..9001a9b066 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/78.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/78.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "table" (table $tab (;0;) 10 20 funcref)) + (export "call" (func 0)) + (elem (;0;) (i32.const 1) func $f $g) (func (;0;) (type 1) (param i32) (result i32) local.get 0 call_indirect (type 0) @@ -12,6 +14,4 @@ (func $g (;2;) (type 0) (result i32) i32.const 22 ) - (export "call" (func 0)) - (elem (;0;) (i32.const 1) func $f $g) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/8.print index 0a22ecf481..783e0547c3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/8.print @@ -2,10 +2,10 @@ (type (;0;) (func (param i32))) (type (;1;) (func (param i32 i32) (result i32))) (import "spectest" "print_i32" (func $imported_print (;0;) (type 0))) + (export "print_i32" (func 1)) (func (;1;) (type 1) (param $i i32) (param $j i32) (result i32) local.get $i local.get $j i32.add ) - (export "print_i32" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports.wast/84.print b/tests/snapshots/testsuite/proposals/memory64/imports.wast/84.print index 6444756a75..9001a9b066 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports.wast/84.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports.wast/84.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "table" (table $tab (;0;) 10 20 funcref)) + (export "call" (func 0)) + (elem (;0;) (i32.const 1) func $f $g) (func (;0;) (type 1) (param i32) (result i32) local.get 0 call_indirect (type 0) @@ -12,6 +14,4 @@ (func $g (;2;) (type 0) (result i32) i32.const 22 ) - (export "call" (func 0)) - (elem (;0;) (i32.const 1) func $f $g) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/imports0.wast/0.print index a6f0e61909..6f67d606e8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports0.wast/0.print @@ -6,21 +6,6 @@ (type (;4;) (func (result f32))) (type (;5;) (func (param i32) (result i32))) (type (;6;) (func (param i64) (result i64))) - (func (;0;) (type 0)) - (func (;1;) (type 1) (param i32)) - (func (;2;) (type 2) (param f32)) - (func (;3;) (type 3) (result i32) - i32.const 22 - ) - (func (;4;) (type 4) (result f32) - f32.const 0x1.6p+3 (;=11;) - ) - (func (;5;) (type 5) (param i32) (result i32) - local.get 0 - ) - (func (;6;) (type 6) (param i64) (result i64) - local.get 0 - ) (table (;0;) 10 funcref) (table (;1;) 10 20 funcref) (memory (;0;) 2) @@ -42,4 +27,19 @@ (export "table-10-20" (table 1)) (export "memory-2-inf" (memory 0)) (export "memory-2-4" (memory 1)) + (func (;0;) (type 0)) + (func (;1;) (type 1) (param i32)) + (func (;2;) (type 2) (param f32)) + (func (;3;) (type 3) (result i32) + i32.const 22 + ) + (func (;4;) (type 4) (result f32) + f32.const 0x1.6p+3 (;=11;) + ) + (func (;5;) (type 5) (param i32) (result i32) + local.get 0 + ) + (func (;6;) (type 6) (param i64) (result i64) + local.get 0 + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports1.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/imports1.wast/0.print index ebc39ae08b..5d967ef7ca 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports1.wast/0.print @@ -4,10 +4,10 @@ (import "spectest" "memory" (memory (;1;) 1 2)) (import "spectest" "memory" (memory $m (;2;) 1 2)) (import "spectest" "memory" (memory (;3;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load $m ) - (export "load" (func 0)) (data (;0;) (memory $m) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports2.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/imports2.wast/2.print index 62cd004054..346cbe3193 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports2.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports2.wast/2.print @@ -2,10 +2,10 @@ (type (;0;) (func (param i32) (result i32))) (import "test" "z" (memory (;0;) 0)) (import "spectest" "memory" (memory $m (;1;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load $m ) - (export "load" (func 0)) (data (;0;) (memory $m) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports2.wast/7.print b/tests/snapshots/testsuite/proposals/memory64/imports2.wast/7.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports2.wast/7.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports2.wast/7.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports3.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/imports3.wast/0.print index a6f0e61909..6f67d606e8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports3.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports3.wast/0.print @@ -6,21 +6,6 @@ (type (;4;) (func (result f32))) (type (;5;) (func (param i32) (result i32))) (type (;6;) (func (param i64) (result i64))) - (func (;0;) (type 0)) - (func (;1;) (type 1) (param i32)) - (func (;2;) (type 2) (param f32)) - (func (;3;) (type 3) (result i32) - i32.const 22 - ) - (func (;4;) (type 4) (result f32) - f32.const 0x1.6p+3 (;=11;) - ) - (func (;5;) (type 5) (param i32) (result i32) - local.get 0 - ) - (func (;6;) (type 6) (param i64) (result i64) - local.get 0 - ) (table (;0;) 10 funcref) (table (;1;) 10 20 funcref) (memory (;0;) 2) @@ -42,4 +27,19 @@ (export "table-10-20" (table 1)) (export "memory-2-inf" (memory 0)) (export "memory-2-4" (memory 1)) + (func (;0;) (type 0)) + (func (;1;) (type 1) (param i32)) + (func (;2;) (type 2) (param f32)) + (func (;3;) (type 3) (result i32) + i32.const 22 + ) + (func (;4;) (type 4) (result f32) + f32.const 0x1.6p+3 (;=11;) + ) + (func (;5;) (type 5) (param i32) (result i32) + local.get 0 + ) + (func (;6;) (type 6) (param i64) (result i64) + local.get 0 + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports4.wast/11.print b/tests/snapshots/testsuite/proposals/memory64/imports4.wast/11.print index 3d40fd5eb0..35ae9f06e8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports4.wast/11.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports4.wast/11.print @@ -2,12 +2,12 @@ (type (;0;) (func (result i32))) (import "test" "memory-2-4" (memory (;0;) 1)) (import "grown-memory" "memory" (memory $m (;1;) 2)) - (func (;0;) (type 0) (result i32) - i32.const 1 - memory.grow $m - ) (memory (;2;) 0) (memory (;3;) 0) (export "memory" (memory $m)) (export "grow" (func 0)) + (func (;0;) (type 0) (result i32) + i32.const 1 + memory.grow $m + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports4.wast/14.print b/tests/snapshots/testsuite/proposals/memory64/imports4.wast/14.print index 1cb1baba66..22a8f393d2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports4.wast/14.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports4.wast/14.print @@ -2,10 +2,10 @@ (type (;0;) (func (result i32))) (import "test" "memory-2-4" (memory (;0;) 1)) (import "grown-imported-memory" "memory" (memory $m (;1;) 3)) - (func (;0;) (type 0) (result i32) - memory.size $m - ) (memory (;2;) 0) (memory (;3;) 0) (export "size" (func 0)) + (func (;0;) (type 0) (result i32) + memory.size $m + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports4.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/imports4.wast/2.print index ad51243e00..ce7bf269a4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports4.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports4.wast/2.print @@ -2,9 +2,9 @@ (type (;0;) (func (param i32) (result i32))) (import "test" "memory-2-4" (memory (;0;) 1)) (import "spectest" "memory" (memory $m (;1;) 0 3)) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow $m ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/imports4.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/imports4.wast/8.print index b59bc6b5ac..17b113a047 100644 --- a/tests/snapshots/testsuite/proposals/memory64/imports4.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/imports4.wast/8.print @@ -1,12 +1,12 @@ (module $Mgm (type (;0;) (func (result i32))) - (func (;0;) (type 0) (result i32) - i32.const 1 - memory.grow $m - ) (memory (;0;) 0) (memory (;1;) 0) (memory $m (;2;) 1) (export "memory" (memory $m)) (export "grow" (func 0)) + (func (;0;) (type 0) (result i32) + i32.const 1 + memory.grow $m + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/0.print index 3e6a6cd0ef..154a8afa07 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/0.print @@ -1,10 +1,10 @@ (module $Mf (type (;0;) (func (result i32))) + (export "call" (func 0)) (func (;0;) (type 0) (result i32) call $g ) (func $g (;1;) (type 0) (result i32) i32.const 2 ) - (export "call" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/107.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/107.print index 2858bb5556..c422f16ee8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/107.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/107.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) (import "Mt" "tab" (table (;0;) 0 funcref)) - (func $f (;0;) (type 0)) (elem (;0;) (i32.const 9) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/11.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/11.print index 84ed2c075e..5d12ab8bcd 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/11.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/11.print @@ -1,6 +1,13 @@ (module $Mg (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (global $glob (;0;) i32 i32.const 42) + (global $mut_glob (;1;) (mut i32) i32.const 142) + (export "glob" (global $glob)) + (export "get" (func 0)) + (export "mut_glob" (global $mut_glob)) + (export "get_mut" (func 1)) + (export "set_mut" (func 2)) (func (;0;) (type 0) (result i32) global.get $glob ) @@ -11,11 +18,4 @@ local.get 0 global.set $mut_glob ) - (global $glob (;0;) i32 i32.const 42) - (global $mut_glob (;1;) (mut i32) i32.const 142) - (export "glob" (global $glob)) - (export "get" (func 0)) - (export "mut_glob" (global $mut_glob)) - (export "get_mut" (func 1)) - (export "set_mut" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/129.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/129.print index f21eaa4f0a..3a67a6d945 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/129.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/129.print @@ -1,11 +1,11 @@ (module $Mm (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 1 5) + (export "mem" (memory 0)) + (export "load" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (memory (;0;) 1 5) - (export "mem" (memory 0)) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\00\01\02\03\04\05\06\07\08\09") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/13.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/13.print index 221a4d2a23..c4e8d1282f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/13.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/13.print @@ -6,9 +6,6 @@ (import "Mg" "get" (func $f (;0;) (type 0))) (import "Mg" "get_mut" (func $get_mut (;1;) (type 0))) (import "Mg" "set_mut" (func $set_mut (;2;) (type 1))) - (func (;3;) (type 0) (result i32) - global.get $glob - ) (global $glob (;2;) i32 i32.const 43) (export "Mg.glob" (global $x)) (export "Mg.get" (func $f)) @@ -17,4 +14,7 @@ (export "Mg.mut_glob" (global $mut_glob)) (export "Mg.get_mut" (func $get_mut)) (export "Mg.set_mut" (func $set_mut)) + (func (;3;) (type 0) (result i32) + global.get $glob + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/131.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/131.print index dbbedca99e..3c11a7ecbc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/131.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/131.print @@ -1,12 +1,12 @@ (module $Nm (type (;0;) (func (param i32) (result i32))) (import "Mm" "load" (func $loadM (;0;) (type 0))) + (memory (;0;) 1) + (export "Mm.load" (func $loadM)) + (export "load" (func 1)) (func (;1;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (memory (;0;) 1) - (export "Mm.load" (func $loadM)) - (export "load" (func 1)) (data (;0;) (i32.const 10) "\f0\f1\f2\f3\f4\f5") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/135.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/135.print index b370afdd26..8954f387ab 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/135.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/135.print @@ -1,10 +1,10 @@ (module $Om (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem" (memory (;0;) 1)) + (export "load" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (export "load" (func 0)) (data (;0;) (i32.const 5) "\a0\a1\a2\a3\a4\a5\a6\a7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/142.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/142.print index 6917dc02ac..d44420614c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/142.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/142.print @@ -1,9 +1,9 @@ (module $Pm (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem" (memory (;0;) 1 8)) + (export "grow" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/158.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/158.print index fb3eabaa79..310c6e31f7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/158.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/158.print @@ -1,5 +1,11 @@ (module $Ms (type $t (;0;) (func (result i32))) + (table (;0;) 1 funcref) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "table" (table 0)) + (export "get memory[0]" (func 0)) + (export "get table[0]" (func 1)) (func (;0;) (type $t) (result i32) i32.const 0 i32.load8_u @@ -8,10 +14,4 @@ i32.const 0 call_indirect (type $t) ) - (table (;0;) 1 funcref) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "table" (table 0)) - (export "get memory[0]" (func 0)) - (export "get table[0]" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/2.print index c7bcf16e6c..9b37d161a3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/2.print @@ -1,6 +1,9 @@ (module $Nf (type (;0;) (func (result i32))) (import "Mf" "call" (func $f (;0;) (type 0))) + (export "Mf.call" (func $f)) + (export "call Mf.call" (func 1)) + (export "call" (func 2)) (func (;1;) (type 0) (result i32) call $f ) @@ -10,7 +13,4 @@ (func $g (;3;) (type 0) (result i32) i32.const 3 ) - (export "Mf.call" (func $f)) - (export "call Mf.call" (func 1)) - (export "call" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/31.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/31.print index 7c9865ad76..32c67def17 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/31.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/31.print @@ -1,6 +1,5 @@ (module $Mref_ex (type $t (;0;) (func)) - (func $f (;0;) (type $t)) (global (;0;) funcref ref.null func) (global (;1;) (ref func) ref.func $f) (global (;2;) (ref null $t) ref.null $t) @@ -22,4 +21,5 @@ (export "g-var-ref" (global 8)) (export "g-var-extern" (global 9)) (elem (;0;) declare func $f) + (func $f (;0;) (type $t)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/65.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/65.print index 1527e89cb1..b9ee3f5214 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/65.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/65.print @@ -2,6 +2,11 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "tab" (table 0)) + (export "h" (func 1)) + (export "call" (func 2)) + (elem (;0;) (i32.const 2) func $g $g $g $g) (func $g (;0;) (type 0) (result i32) i32.const 4 ) @@ -12,9 +17,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "tab" (table 0)) - (export "h" (func 1)) - (export "call" (func 2)) - (elem (;0;) (i32.const 2) func $g $g $g $g) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/67.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/67.print index 624fdd1ef4..282b723860 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/67.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/67.print @@ -4,6 +4,11 @@ (type (;2;) (func (param i32) (result i32))) (import "Mt" "call" (func $f (;0;) (type 2))) (import "Mt" "h" (func $h (;1;) (type 1))) + (table (;0;) 5 5 funcref) + (export "Mt.call" (func $f)) + (export "call Mt.call" (func 3)) + (export "call" (func 4)) + (elem (;0;) (i32.const 0) func $g $g $g $h $f) (func $g (;2;) (type 1) (result i32) i32.const 5 ) @@ -15,9 +20,4 @@ local.get 0 call_indirect (type 1) ) - (table (;0;) 5 5 funcref) - (export "Mt.call" (func $f)) - (export "call Mt.call" (func 3)) - (export "call" (func 4)) - (elem (;0;) (i32.const 0) func $g $g $g $h $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking.wast/86.print b/tests/snapshots/testsuite/proposals/memory64/linking.wast/86.print index e2f5bf2ae5..5651c85a30 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking.wast/86.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking.wast/86.print @@ -3,6 +3,8 @@ (type (;1;) (func (param i32) (result i32))) (import "Mt" "h" (func $h (;0;) (type 0))) (import "Mt" "tab" (table (;0;) 5 funcref)) + (export "call" (func 2)) + (elem (;0;) (i32.const 1) func $i $h) (func $i (;1;) (type 0) (result i32) i32.const 6 ) @@ -10,6 +12,4 @@ local.get 0 call_indirect (type 0) ) - (export "call" (func 2)) - (elem (;0;) (i32.const 1) func $i $h) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/linking0.wast/0.print index 1527e89cb1..b9ee3f5214 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking0.wast/0.print @@ -2,6 +2,11 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "tab" (table 0)) + (export "h" (func 1)) + (export "call" (func 2)) + (elem (;0;) (i32.const 2) func $g $g $g $g) (func $g (;0;) (type 0) (result i32) i32.const 4 ) @@ -12,9 +17,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "tab" (table 0)) - (export "h" (func 1)) - (export "call" (func 2)) - (elem (;0;) (i32.const 2) func $g $g $g $g) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking1.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/linking1.wast/0.print index 583d04d296..1658c6d765 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking1.wast/0.print @@ -1,9 +1,5 @@ (module $Mm (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param $a i32) (result i32) - local.get $a - i32.load8_u $mem1 - ) (memory $mem0 (;0;) 0 0) (memory $mem1 (;1;) 1 5) (memory $mem2 (;2;) 0 0) @@ -11,5 +7,9 @@ (export "mem1" (memory $mem1)) (export "mem2" (memory $mem2)) (export "load" (func 0)) + (func (;0;) (type 0) (param $a i32) (result i32) + local.get $a + i32.load8_u $mem1 + ) (data (;0;) (memory $mem1) (i32.const 10) "\00\01\02\03\04\05\06\07\08\09") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking1.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/linking1.wast/2.print index 1fa4998834..e07205bd5f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking1.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking1.wast/2.print @@ -2,12 +2,12 @@ (type (;0;) (func (param i32) (result i32))) (import "Mm" "load" (func $loadM (;0;) (type 0))) (import "Mm" "mem0" (memory (;0;) 0)) + (memory $m (;1;) 1) + (export "Mm.load" (func $loadM)) + (export "load" (func 1)) (func (;1;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u $m ) - (memory $m (;1;) 1) - (export "Mm.load" (func $loadM)) - (export "load" (func 1)) (data (;0;) (memory $m) (i32.const 10) "\f0\f1\f2\f3\f4\f5") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking1.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/linking1.wast/6.print index f9151fca4e..6cfe1126fc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking1.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking1.wast/6.print @@ -1,10 +1,10 @@ (module $Om (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem1" (memory (;0;) 1)) + (export "load" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (export "load" (func 0)) (data (;0;) (i32.const 5) "\a0\a1\a2\a3\a4\a5\a6\a7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking2.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/linking2.wast/0.print index 583d04d296..1658c6d765 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking2.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking2.wast/0.print @@ -1,9 +1,5 @@ (module $Mm (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param $a i32) (result i32) - local.get $a - i32.load8_u $mem1 - ) (memory $mem0 (;0;) 0 0) (memory $mem1 (;1;) 1 5) (memory $mem2 (;2;) 0 0) @@ -11,5 +7,9 @@ (export "mem1" (memory $mem1)) (export "mem2" (memory $mem2)) (export "load" (func 0)) + (func (;0;) (type 0) (param $a i32) (result i32) + local.get $a + i32.load8_u $mem1 + ) (data (;0;) (memory $mem1) (i32.const 10) "\00\01\02\03\04\05\06\07\08\09") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking2.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/linking2.wast/2.print index 422a680330..af6d6a16d1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking2.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking2.wast/2.print @@ -1,9 +1,9 @@ (module $Pm (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem1" (memory (;0;) 1 8)) + (export "grow" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking3.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/linking3.wast/0.print index 48e2af36f7..b68ca4cd43 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking3.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking3.wast/0.print @@ -1,9 +1,5 @@ (module $Mm (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param $a i32) (result i32) - local.get $a - i32.load8_u $mem1 - ) (memory $mem0 (;0;) 0 0) (memory $mem1 (;1;) 5 5) (memory $mem2 (;2;) 0 0) @@ -11,5 +7,9 @@ (export "mem1" (memory $mem1)) (export "mem2" (memory $mem2)) (export "load" (func 0)) + (func (;0;) (type 0) (param $a i32) (result i32) + local.get $a + i32.load8_u $mem1 + ) (data (;0;) (memory $mem1) (i32.const 10) "\00\01\02\03\04\05\06\07\08\09") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/linking3.wast/9.print b/tests/snapshots/testsuite/proposals/memory64/linking3.wast/9.print index fb3eabaa79..310c6e31f7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/linking3.wast/9.print +++ b/tests/snapshots/testsuite/proposals/memory64/linking3.wast/9.print @@ -1,5 +1,11 @@ (module $Ms (type $t (;0;) (func (result i32))) + (table (;0;) 1 funcref) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "table" (table 0)) + (export "get memory[0]" (func 0)) + (export "get table[0]" (func 1)) (func (;0;) (type $t) (result i32) i32.const 0 i32.load8_u @@ -8,10 +14,4 @@ i32.const 0 call_indirect (type $t) ) - (table (;0;) 1 funcref) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "table" (table 0)) - (export "get memory[0]" (func 0)) - (export "get table[0]" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/load.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/load.wast/0.print index d5c72ea75d..26098a7490 100644 --- a/tests/snapshots/testsuite/proposals/memory64/load.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/load.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param i32) (result i64))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "load1" (func 0)) + (export "load2" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -8,10 +12,6 @@ local.get 0 i64.load $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "load1" (func 0)) - (export "load2" (func 1)) (data (;0;) (i32.const 0) "\01") (data (;1;) (memory $mem2) (i32.const 0) "\02") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/load.wast/21.print b/tests/snapshots/testsuite/proposals/memory64/load.wast/21.print index 7ec5c2099d..68c0af17ee 100644 --- a/tests/snapshots/testsuite/proposals/memory64/load.wast/21.print +++ b/tests/snapshots/testsuite/proposals/memory64/load.wast/21.print @@ -3,6 +3,47 @@ (type (;1;) (func (result i32))) (type (;2;) (func)) (type (;3;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "as-br-value" (func 0)) + (export "as-br_if-cond" (func 1)) + (export "as-br_if-value" (func 2)) + (export "as-br_if-value-cond" (func 3)) + (export "as-br_table-index" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-br_table-value-index" (func 6)) + (export "as-return-value" (func 7)) + (export "as-if-cond" (func 8)) + (export "as-if-then" (func 9)) + (export "as-if-else" (func 10)) + (export "as-select-first" (func 11)) + (export "as-select-second" (func 12)) + (export "as-select-cond" (func 13)) + (export "as-call-first" (func 15)) + (export "as-call-mid" (func 16)) + (export "as-call-last" (func 17)) + (export "as-call_indirect-first" (func 18)) + (export "as-call_indirect-mid" (func 19)) + (export "as-call_indirect-last" (func 20)) + (export "as-call_indirect-index" (func 21)) + (export "as-local.set-value" (func 22)) + (export "as-local.tee-value" (func 23)) + (export "as-global.set-value" (func 24)) + (export "as-load-address" (func 25)) + (export "as-loadN-address" (func 26)) + (export "as-store-address" (func 27)) + (export "as-store-value" (func 28)) + (export "as-storeN-address" (func 29)) + (export "as-storeN-value" (func 30)) + (export "as-unary-operand" (func 31)) + (export "as-binary-left" (func 32)) + (export "as-binary-right" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-left" (func 35)) + (export "as-compare-right" (func 36)) + (export "as-memory.grow-size" (func 37)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) block (result i32) ;; label = @1 i32.const 0 @@ -262,45 +303,4 @@ i32.load memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "as-br-value" (func 0)) - (export "as-br_if-cond" (func 1)) - (export "as-br_if-value" (func 2)) - (export "as-br_if-value-cond" (func 3)) - (export "as-br_table-index" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-br_table-value-index" (func 6)) - (export "as-return-value" (func 7)) - (export "as-if-cond" (func 8)) - (export "as-if-then" (func 9)) - (export "as-if-else" (func 10)) - (export "as-select-first" (func 11)) - (export "as-select-second" (func 12)) - (export "as-select-cond" (func 13)) - (export "as-call-first" (func 15)) - (export "as-call-mid" (func 16)) - (export "as-call-last" (func 17)) - (export "as-call_indirect-first" (func 18)) - (export "as-call_indirect-mid" (func 19)) - (export "as-call_indirect-last" (func 20)) - (export "as-call_indirect-index" (func 21)) - (export "as-local.set-value" (func 22)) - (export "as-local.tee-value" (func 23)) - (export "as-global.set-value" (func 24)) - (export "as-load-address" (func 25)) - (export "as-loadN-address" (func 26)) - (export "as-store-address" (func 27)) - (export "as-store-value" (func 28)) - (export "as-storeN-address" (func 29)) - (export "as-storeN-value" (func 30)) - (export "as-unary-operand" (func 31)) - (export "as-binary-left" (func 32)) - (export "as-binary-right" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-left" (func 35)) - (export "as-compare-right" (func 36)) - (export "as-memory.grow-size" (func 37)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/load.wast/3.print b/tests/snapshots/testsuite/proposals/memory64/load.wast/3.print index d810291a40..ea7a739a89 100644 --- a/tests/snapshots/testsuite/proposals/memory64/load.wast/3.print +++ b/tests/snapshots/testsuite/proposals/memory64/load.wast/3.print @@ -1,10 +1,10 @@ (module $M (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 2) + (export "mem" (memory 0)) + (export "read" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load8_u ) - (memory (;0;) 2) - (export "mem" (memory 0)) - (export "read" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/load.wast/5.print b/tests/snapshots/testsuite/proposals/memory64/load.wast/5.print index b189674735..bcf764e02b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/load.wast/5.print +++ b/tests/snapshots/testsuite/proposals/memory64/load.wast/5.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (import "M" "mem" (memory $mem1 (;0;) 2)) + (memory $mem2 (;1;) 3) + (export "read1" (func 0)) + (export "read2" (func 1)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load8_u @@ -9,9 +12,6 @@ local.get 0 i32.load8_u $mem2 ) - (memory $mem2 (;1;) 3) - (export "read1" (func 0)) - (export "read2" (func 1)) (data (;0;) (i32.const 20) "\01\02\03\04\05") (data (;1;) (memory $mem2) (i32.const 50) "\0a\0b\0c\0d\0e") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/load0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/load0.wast/0.print index d5c72ea75d..26098a7490 100644 --- a/tests/snapshots/testsuite/proposals/memory64/load0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/load0.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param i32) (result i64))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "load1" (func 0)) + (export "load2" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -8,10 +12,6 @@ local.get 0 i64.load $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "load1" (func 0)) - (export "load2" (func 1)) (data (;0;) (i32.const 0) "\01") (data (;1;) (memory $mem2) (i32.const 0) "\02") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/load1.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/load1.wast/0.print index d810291a40..ea7a739a89 100644 --- a/tests/snapshots/testsuite/proposals/memory64/load1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/load1.wast/0.print @@ -1,10 +1,10 @@ (module $M (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 2) + (export "mem" (memory 0)) + (export "read" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load8_u ) - (memory (;0;) 2) - (export "mem" (memory 0)) - (export "read" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/load1.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/load1.wast/2.print index b189674735..bcf764e02b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/load1.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/load1.wast/2.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (import "M" "mem" (memory $mem1 (;0;) 2)) + (memory $mem2 (;1;) 3) + (export "read1" (func 0)) + (export "read2" (func 1)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load8_u @@ -9,9 +12,6 @@ local.get 0 i32.load8_u $mem2 ) - (memory $mem2 (;1;) 3) - (export "read1" (func 0)) - (export "read2" (func 1)) (data (;0;) (i32.const 20) "\01\02\03\04\05") (data (;1;) (memory $mem2) (i32.const 50) "\0a\0b\0c\0d\0e") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/load2.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/load2.wast/0.print index d1e246de6a..111401ba5e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/load2.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/load2.wast/0.print @@ -3,6 +3,50 @@ (type (;1;) (func (result i32))) (type (;2;) (func)) (type (;3;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 0) + (memory (;1;) 0) + (memory (;2;) 0) + (memory $m (;3;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "as-br-value" (func 0)) + (export "as-br_if-cond" (func 1)) + (export "as-br_if-value" (func 2)) + (export "as-br_if-value-cond" (func 3)) + (export "as-br_table-index" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-br_table-value-index" (func 6)) + (export "as-return-value" (func 7)) + (export "as-if-cond" (func 8)) + (export "as-if-then" (func 9)) + (export "as-if-else" (func 10)) + (export "as-select-first" (func 11)) + (export "as-select-second" (func 12)) + (export "as-select-cond" (func 13)) + (export "as-call-first" (func 15)) + (export "as-call-mid" (func 16)) + (export "as-call-last" (func 17)) + (export "as-call_indirect-first" (func 18)) + (export "as-call_indirect-mid" (func 19)) + (export "as-call_indirect-last" (func 20)) + (export "as-call_indirect-index" (func 21)) + (export "as-local.set-value" (func 22)) + (export "as-local.tee-value" (func 23)) + (export "as-global.set-value" (func 24)) + (export "as-load-address" (func 25)) + (export "as-loadN-address" (func 26)) + (export "as-store-address" (func 27)) + (export "as-store-value" (func 28)) + (export "as-storeN-address" (func 29)) + (export "as-storeN-value" (func 30)) + (export "as-unary-operand" (func 31)) + (export "as-binary-left" (func 32)) + (export "as-binary-right" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-left" (func 35)) + (export "as-compare-right" (func 36)) + (export "as-memory.grow-size" (func 37)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) block (result i32) ;; label = @1 i32.const 0 @@ -262,48 +306,4 @@ i32.load $m memory.grow $m ) - (table (;0;) 1 1 funcref) - (memory (;0;) 0) - (memory (;1;) 0) - (memory (;2;) 0) - (memory $m (;3;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "as-br-value" (func 0)) - (export "as-br_if-cond" (func 1)) - (export "as-br_if-value" (func 2)) - (export "as-br_if-value-cond" (func 3)) - (export "as-br_table-index" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-br_table-value-index" (func 6)) - (export "as-return-value" (func 7)) - (export "as-if-cond" (func 8)) - (export "as-if-then" (func 9)) - (export "as-if-else" (func 10)) - (export "as-select-first" (func 11)) - (export "as-select-second" (func 12)) - (export "as-select-cond" (func 13)) - (export "as-call-first" (func 15)) - (export "as-call-mid" (func 16)) - (export "as-call-last" (func 17)) - (export "as-call_indirect-first" (func 18)) - (export "as-call_indirect-mid" (func 19)) - (export "as-call_indirect-last" (func 20)) - (export "as-call_indirect-index" (func 21)) - (export "as-local.set-value" (func 22)) - (export "as-local.tee-value" (func 23)) - (export "as-global.set-value" (func 24)) - (export "as-load-address" (func 25)) - (export "as-loadN-address" (func 26)) - (export "as-store-address" (func 27)) - (export "as-store-value" (func 28)) - (export "as-storeN-address" (func 29)) - (export "as-storeN-value" (func 30)) - (export "as-unary-operand" (func 31)) - (export "as-binary-left" (func 32)) - (export "as-binary-right" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-left" (func 35)) - (export "as-compare-right" (func 36)) - (export "as-memory.grow-size" (func 37)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/load64.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/load64.wast/0.print index 835a7a8749..ced67babef 100644 --- a/tests/snapshots/testsuite/proposals/memory64/load64.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/load64.wast/0.print @@ -4,6 +4,47 @@ (type (;2;) (func)) (type (;3;) (func (param i32 i32) (result i32))) (type (;4;) (func (result i64))) + (table (;0;) 1 1 funcref) + (memory (;0;) i64 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "as-br-value" (func 0)) + (export "as-br_if-cond" (func 1)) + (export "as-br_if-value" (func 2)) + (export "as-br_if-value-cond" (func 3)) + (export "as-br_table-index" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-br_table-value-index" (func 6)) + (export "as-return-value" (func 7)) + (export "as-if-cond" (func 8)) + (export "as-if-then" (func 9)) + (export "as-if-else" (func 10)) + (export "as-select-first" (func 11)) + (export "as-select-second" (func 12)) + (export "as-select-cond" (func 13)) + (export "as-call-first" (func 15)) + (export "as-call-mid" (func 16)) + (export "as-call-last" (func 17)) + (export "as-call_indirect-first" (func 18)) + (export "as-call_indirect-mid" (func 19)) + (export "as-call_indirect-last" (func 20)) + (export "as-call_indirect-index" (func 21)) + (export "as-local.set-value" (func 22)) + (export "as-local.tee-value" (func 23)) + (export "as-global.set-value" (func 24)) + (export "as-load-address" (func 25)) + (export "as-loadN-address" (func 26)) + (export "as-store-address" (func 27)) + (export "as-store-value" (func 28)) + (export "as-storeN-address" (func 29)) + (export "as-storeN-value" (func 30)) + (export "as-unary-operand" (func 31)) + (export "as-binary-left" (func 32)) + (export "as-binary-right" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-left" (func 35)) + (export "as-compare-right" (func 36)) + (export "as-memory.grow-size" (func 37)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) block (result i32) ;; label = @1 i64.const 0 @@ -263,45 +304,4 @@ i64.load memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) i64 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "as-br-value" (func 0)) - (export "as-br_if-cond" (func 1)) - (export "as-br_if-value" (func 2)) - (export "as-br_if-value-cond" (func 3)) - (export "as-br_table-index" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-br_table-value-index" (func 6)) - (export "as-return-value" (func 7)) - (export "as-if-cond" (func 8)) - (export "as-if-then" (func 9)) - (export "as-if-else" (func 10)) - (export "as-select-first" (func 11)) - (export "as-select-second" (func 12)) - (export "as-select-cond" (func 13)) - (export "as-call-first" (func 15)) - (export "as-call-mid" (func 16)) - (export "as-call-last" (func 17)) - (export "as-call_indirect-first" (func 18)) - (export "as-call_indirect-mid" (func 19)) - (export "as-call_indirect-last" (func 20)) - (export "as-call_indirect-index" (func 21)) - (export "as-local.set-value" (func 22)) - (export "as-local.tee-value" (func 23)) - (export "as-global.set-value" (func 24)) - (export "as-load-address" (func 25)) - (export "as-loadN-address" (func 26)) - (export "as-store-address" (func 27)) - (export "as-store-value" (func 28)) - (export "as-storeN-address" (func 29)) - (export "as-storeN-value" (func 30)) - (export "as-unary-operand" (func 31)) - (export "as-binary-left" (func 32)) - (export "as-binary-right" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-left" (func 35)) - (export "as-compare-right" (func 36)) - (export "as-memory.grow-size" (func 37)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/local_get.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/local_get.wast/0.print index 7ac605c8a9..2a199e5b8b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/local_get.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/local_get.wast/0.print @@ -9,6 +9,25 @@ (type (;7;) (func (param f64) (result f64))) (type (;8;) (func (param i64 f32 f64 i32 i32))) (type (;9;) (func (param i64 f32 f64 i32 i32) (result f64))) + (export "type-local-i32" (func 0)) + (export "type-local-i64" (func 1)) + (export "type-local-f32" (func 2)) + (export "type-local-f64" (func 3)) + (export "type-param-i32" (func 4)) + (export "type-param-i64" (func 5)) + (export "type-param-f32" (func 6)) + (export "type-param-f64" (func 7)) + (export "type-mixed" (func 8)) + (export "read" (func 9)) + (export "as-block-value" (func 10)) + (export "as-loop-value" (func 11)) + (export "as-br-value" (func 12)) + (export "as-br_if-value" (func 13)) + (export "as-br_if-value-cond" (func 14)) + (export "as-br_table-value" (func 15)) + (export "as-return-value" (func 16)) + (export "as-if-then" (func 17)) + (export "as-if-else" (func 18)) (func (;0;) (type 0) (result i32) (local i32) local.get 0 @@ -167,23 +186,4 @@ local.get 0 end ) - (export "type-local-i32" (func 0)) - (export "type-local-i64" (func 1)) - (export "type-local-f32" (func 2)) - (export "type-local-f64" (func 3)) - (export "type-param-i32" (func 4)) - (export "type-param-i64" (func 5)) - (export "type-param-f32" (func 6)) - (export "type-param-f64" (func 7)) - (export "type-mixed" (func 8)) - (export "read" (func 9)) - (export "as-block-value" (func 10)) - (export "as-loop-value" (func 11)) - (export "as-br-value" (func 12)) - (export "as-br_if-value" (func 13)) - (export "as-br_if-value-cond" (func 14)) - (export "as-br_table-value" (func 15)) - (export "as-return-value" (func 16)) - (export "as-if-then" (func 17)) - (export "as-if-else" (func 18)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/local_init.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/local_init.wast/0.print index 75e231dcda..a7cb4af591 100644 --- a/tests/snapshots/testsuite/proposals/memory64/local_init.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/local_init.wast/0.print @@ -1,5 +1,8 @@ (module (type (;0;) (func (param (ref extern)) (result (ref extern)))) + (export "get-after-set" (func 0)) + (export "get-after-tee" (func 1)) + (export "get-in-block-after-set" (func 2)) (func (;0;) (type 0) (param $p (ref extern)) (result (ref extern)) (local $x (ref extern)) local.get $p @@ -21,7 +24,4 @@ local.get $x end ) - (export "get-after-set" (func 0)) - (export "get-after-tee" (func 1)) - (export "get-in-block-after-set" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/local_init.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/local_init.wast/8.print index b6af69a1e2..954a43489e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/local_init.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/local_init.wast/8.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (param (ref extern)) (result (ref extern)))) + (export "tee-init" (func 0)) (func (;0;) (type 0) (param $p (ref extern)) (result (ref extern)) (local $x (ref extern)) local.get $p @@ -7,5 +8,4 @@ drop local.get $x ) - (export "tee-init" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/local_tee.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/local_tee.wast/0.print index 3756f6e72f..b4455f3cb7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/local_tee.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/local_tee.wast/0.print @@ -15,6 +15,65 @@ (type (;13;) (func (param i32))) (type (;14;) (func (param i32 i32) (result i32))) (type (;15;) (func (param i64) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "type-local-i32" (func 0)) + (export "type-local-i64" (func 1)) + (export "type-local-f32" (func 2)) + (export "type-local-f64" (func 3)) + (export "type-param-i32" (func 4)) + (export "type-param-i64" (func 5)) + (export "type-param-f32" (func 6)) + (export "type-param-f64" (func 7)) + (export "type-mixed" (func 8)) + (export "write" (func 9)) + (export "result" (func 10)) + (export "as-block-first" (func 12)) + (export "as-block-mid" (func 13)) + (export "as-block-last" (func 14)) + (export "as-loop-first" (func 15)) + (export "as-loop-mid" (func 16)) + (export "as-loop-last" (func 17)) + (export "as-br-value" (func 18)) + (export "as-br_if-cond" (func 19)) + (export "as-br_if-value" (func 20)) + (export "as-br_if-value-cond" (func 21)) + (export "as-br_table-index" (func 22)) + (export "as-br_table-value" (func 23)) + (export "as-br_table-value-index" (func 24)) + (export "as-return-value" (func 25)) + (export "as-if-cond" (func 26)) + (export "as-if-then" (func 27)) + (export "as-if-else" (func 28)) + (export "as-select-first" (func 29)) + (export "as-select-second" (func 30)) + (export "as-select-cond" (func 31)) + (export "as-call-first" (func 33)) + (export "as-call-mid" (func 34)) + (export "as-call-last" (func 35)) + (export "as-call_indirect-first" (func 36)) + (export "as-call_indirect-mid" (func 37)) + (export "as-call_indirect-last" (func 38)) + (export "as-call_indirect-index" (func 39)) + (export "as-local.set-value" (func 40)) + (export "as-local.tee-value" (func 41)) + (export "as-global.set-value" (func 42)) + (export "as-load-address" (func 43)) + (export "as-loadN-address" (func 44)) + (export "as-store-address" (func 45)) + (export "as-store-value" (func 46)) + (export "as-storeN-address" (func 47)) + (export "as-storeN-value" (func 48)) + (export "as-unary-operand" (func 49)) + (export "as-binary-left" (func 50)) + (export "as-binary-right" (func 51)) + (export "as-test-operand" (func 52)) + (export "as-compare-left" (func 53)) + (export "as-compare-right" (func 54)) + (export "as-convert-operand" (func 55)) + (export "as-memory.grow-size" (func 56)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) (local i32) i32.const 0 @@ -482,63 +541,4 @@ local.tee 0 memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "type-local-i32" (func 0)) - (export "type-local-i64" (func 1)) - (export "type-local-f32" (func 2)) - (export "type-local-f64" (func 3)) - (export "type-param-i32" (func 4)) - (export "type-param-i64" (func 5)) - (export "type-param-f32" (func 6)) - (export "type-param-f64" (func 7)) - (export "type-mixed" (func 8)) - (export "write" (func 9)) - (export "result" (func 10)) - (export "as-block-first" (func 12)) - (export "as-block-mid" (func 13)) - (export "as-block-last" (func 14)) - (export "as-loop-first" (func 15)) - (export "as-loop-mid" (func 16)) - (export "as-loop-last" (func 17)) - (export "as-br-value" (func 18)) - (export "as-br_if-cond" (func 19)) - (export "as-br_if-value" (func 20)) - (export "as-br_if-value-cond" (func 21)) - (export "as-br_table-index" (func 22)) - (export "as-br_table-value" (func 23)) - (export "as-br_table-value-index" (func 24)) - (export "as-return-value" (func 25)) - (export "as-if-cond" (func 26)) - (export "as-if-then" (func 27)) - (export "as-if-else" (func 28)) - (export "as-select-first" (func 29)) - (export "as-select-second" (func 30)) - (export "as-select-cond" (func 31)) - (export "as-call-first" (func 33)) - (export "as-call-mid" (func 34)) - (export "as-call-last" (func 35)) - (export "as-call_indirect-first" (func 36)) - (export "as-call_indirect-mid" (func 37)) - (export "as-call_indirect-last" (func 38)) - (export "as-call_indirect-index" (func 39)) - (export "as-local.set-value" (func 40)) - (export "as-local.tee-value" (func 41)) - (export "as-global.set-value" (func 42)) - (export "as-load-address" (func 43)) - (export "as-loadN-address" (func 44)) - (export "as-store-address" (func 45)) - (export "as-store-value" (func 46)) - (export "as-storeN-address" (func 47)) - (export "as-storeN-value" (func 48)) - (export "as-unary-operand" (func 49)) - (export "as-binary-left" (func 50)) - (export "as-binary-right" (func 51)) - (export "as-test-operand" (func 52)) - (export "as-compare-left" (func 53)) - (export "as-compare-right" (func 54)) - (export "as-convert-operand" (func 55)) - (export "as-memory.grow-size" (func 56)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory-multi.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory-multi.wast/0.print index a1fb57e064..933582cb07 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory-multi.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory-multi.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "init1" (func 0)) + (export "init2" (func 1)) (func (;0;) (type 0) (result i32) i32.const 1 i32.const 0 @@ -16,9 +20,5 @@ i32.const 1 i32.load $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "init1" (func 0)) - (export "init2" (func 1)) (data $d (;0;) "\01\00\00\00\02\00\00\00") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory-multi.wast/3.print b/tests/snapshots/testsuite/proposals/memory64/memory-multi.wast/3.print index 40db751363..42980f7a6d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory-multi.wast/3.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory-multi.wast/3.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "fill1" (func 0)) + (export "fill2" (func 1)) (func (;0;) (type 0) (result i32) i32.const 1 i32.const 1 @@ -16,8 +20,4 @@ i32.const 1 i32.load $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "fill1" (func 0)) - (export "fill2" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory.wast/10.print b/tests/snapshots/testsuite/proposals/memory64/memory.wast/10.print index 84bc4686fc..4eb767d55f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory.wast/10.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory.wast/10.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 1 1) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 1 1) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "x") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory.wast/31.print b/tests/snapshots/testsuite/proposals/memory64/memory.wast/31.print index 1413e79ade..8d87e11de2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory.wast/31.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory.wast/31.print @@ -3,6 +3,19 @@ (type (;1;) (func (result f64))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func (param i64) (result i64))) + (memory (;0;) 1) + (export "data" (func 0)) + (export "cast" (func 1)) + (export "i32_load8_s" (func 2)) + (export "i32_load8_u" (func 3)) + (export "i32_load16_s" (func 4)) + (export "i32_load16_u" (func 5)) + (export "i64_load8_s" (func 6)) + (export "i64_load8_u" (func 7)) + (export "i64_load16_s" (func 8)) + (export "i64_load16_u" (func 9)) + (export "i64_load32_s" (func 10)) + (export "i64_load32_u" (func 11)) (func (;0;) (type 0) (result i32) i32.const 0 i32.load8_u @@ -136,19 +149,6 @@ i32.const 8 i64.load32_u ) - (memory (;0;) 1) - (export "data" (func 0)) - (export "cast" (func 1)) - (export "i32_load8_s" (func 2)) - (export "i32_load8_u" (func 3)) - (export "i32_load16_s" (func 4)) - (export "i32_load16_u" (func 5)) - (export "i64_load8_s" (func 6)) - (export "i64_load8_u" (func 7)) - (export "i64_load16_s" (func 8)) - (export "i64_load16_u" (func 9)) - (export "i64_load32_s" (func 10)) - (export "i64_load32_u" (func 11)) (data (;0;) (i32.const 0) "ABC\a7D") (data (;1;) (i32.const 20) "WASM") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/memory.wast/6.print index 00b8e1a309..6604488ce4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 0 0) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 0 0) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory.wast/77.print b/tests/snapshots/testsuite/proposals/memory64/memory.wast/77.print index 20f91d9cb6..5402b2b5a2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory.wast/77.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory.wast/77.print @@ -1,9 +1,5 @@ (module (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param i32) (result i32) - local.get 0 - i32.load8_u - ) (memory (;0;) 1 1) (global (;0;) i32 i32.const 10000) (global (;1;) i32 i32.const 10000) @@ -13,4 +9,8 @@ (export "__stack_top" (global 1)) (export "__heap_base" (global 2)) (export "load" (func 0)) + (func (;0;) (type 0) (param i32) (result i32) + local.get 0 + i32.load8_u + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/memory.wast/8.print index 00b8e1a309..6604488ce4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory.wast/8.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 0 0) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 0 0) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory64.wast/20.print b/tests/snapshots/testsuite/proposals/memory64/memory64.wast/20.print index 48b6205955..c283a961f3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory64.wast/20.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory64.wast/20.print @@ -3,6 +3,19 @@ (type (;1;) (func (result f64))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func (param i64) (result i64))) + (memory (;0;) i64 1) + (export "data" (func 0)) + (export "cast" (func 1)) + (export "i32_load8_s" (func 2)) + (export "i32_load8_u" (func 3)) + (export "i32_load16_s" (func 4)) + (export "i32_load16_u" (func 5)) + (export "i64_load8_s" (func 6)) + (export "i64_load8_u" (func 7)) + (export "i64_load16_s" (func 8)) + (export "i64_load16_u" (func 9)) + (export "i64_load32_s" (func 10)) + (export "i64_load32_u" (func 11)) (func (;0;) (type 0) (result i32) i64.const 0 i32.load8_u @@ -136,19 +149,6 @@ i64.const 8 i64.load32_u ) - (memory (;0;) i64 1) - (export "data" (func 0)) - (export "cast" (func 1)) - (export "i32_load8_s" (func 2)) - (export "i32_load8_u" (func 3)) - (export "i32_load16_s" (func 4)) - (export "i32_load16_u" (func 5)) - (export "i64_load8_s" (func 6)) - (export "i64_load8_u" (func 7)) - (export "i64_load16_s" (func 8)) - (export "i64_load16_u" (func 9)) - (export "i64_load32_s" (func 10)) - (export "i64_load32_u" (func 11)) (data (;0;) (i64.const 0) "ABC\a7D") (data (;1;) (i64.const 20) "WASM") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory64.wast/4.print b/tests/snapshots/testsuite/proposals/memory64/memory64.wast/4.print index 4412829f4b..5701a95426 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory64.wast/4.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory64.wast/4.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i64))) + (memory (;0;) i64 0 0) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i64) memory.size ) - (memory (;0;) i64 0 0) - (export "memsize" (func 0)) (data (;0;) (i64.const 0) "") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory64.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/memory64.wast/6.print index 4412829f4b..5701a95426 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory64.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory64.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i64))) + (memory (;0;) i64 0 0) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i64) memory.size ) - (memory (;0;) i64 0 0) - (export "memsize" (func 0)) (data (;0;) (i64.const 0) "") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory64.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/memory64.wast/8.print index eb2ebfaac8..0a9fa8045f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory64.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory64.wast/8.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i64))) + (memory (;0;) i64 1 1) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i64) memory.size ) - (memory (;0;) i64 1 1) - (export "memsize" (func 0)) (data (;0;) (i64.const 0) "x") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/0.print index 9201375bd1..7b642156a7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) nop ) @@ -8,10 +12,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/128.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/128.print index f4cd80f807..6439cc2751 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/128.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/128.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 20 i32.const 22 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/1310.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/1310.print index 783888104c..c318a677c5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/1310.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/1310.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65515) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13\14") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/160.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/160.print index ab52e50096..f27204ee35 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/160.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/160.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 25 i32.const 1 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/1662.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/1662.print index 8ce9b65ba8..1b3a58b268 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/1662.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/1662.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65486) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/192.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/192.print index 74c0e71909..ca6d049833 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/192.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/192.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 10 i32.const 12 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2013.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2013.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2013.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2013.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/224.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/224.print index 8b58a63f57..40e3ae98d2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/224.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/224.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 12 i32.const 10 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2364.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2364.print index 53ee133842..e4ac06bad1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2364.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2364.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65506) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/256.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/256.print index c6b9491833..9741a6b68e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/256.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/256.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2715.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2715.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2715.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/2715.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3066.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3066.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3066.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3066.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/32.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/32.print index 7b3f4d758d..e6144f02c3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/32.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/32.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 13 i32.const 2 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3417.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3417.print index fecddc9fcd..cdb9782959 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3417.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3417.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3768.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3768.print index 45f811ee52..d3101b18ca 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3768.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/3768.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 61440) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4183.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4183.print index d169b8587d..80e7eb5256 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4183.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4183.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32 i32 i32) (result i32))) + (memory (;0;) 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i32.const 10 i32.const 85 @@ -35,7 +38,4 @@ local.get $from return ) - (memory (;0;) 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4188.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4188.print index b89b9cba04..62a7897139 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4188.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4188.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32 i32 i32) (result i32))) + (memory (;0;) 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i32.const 10 i32.const 85 @@ -35,7 +38,4 @@ local.get $from return ) - (memory (;0;) 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4193.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4193.print index 6be034da65..38bcce6366 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4193.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4193.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65280 i32.const 32768 i32.const 257 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4195.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4195.print index b3e0e3f46c..1e8648ae08 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4195.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4195.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const -256 i32.const 16384 i32.const 257 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4197.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4197.print index 6b704ed535..7b0bc28598 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4197.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4197.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 32768 i32.const 65280 i32.const 257 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4199.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4199.print index acbc16afb8..7348c08469 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4199.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4199.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 16384 i32.const -256 i32.const 257 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4201.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4201.print index cdccdc17a5..f9a7e5cd95 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4201.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4201.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32 i32 i32) (result i32))) + (memory (;0;) 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i32.const 0 i32.const 85 @@ -39,7 +42,4 @@ local.get $from return ) - (memory (;0;) 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4205.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4205.print index d12349278b..2185feee85 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4205.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4205.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65536 i32.const 28672 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4207.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4207.print index d79c0d3b61..a9c73ebea3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4207.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4207.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 131072 i32.const 28672 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4209.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4209.print index 0d1ddec5f5..203f630e0e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4209.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4209.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 36864 i32.const 65536 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4211.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4211.print index ba85e7419c..b0c5a5fe1b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4211.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4211.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 36864 i32.const 131072 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4213.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4213.print index f0774c0771..77c324a38e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4213.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4213.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65536 i32.const 65536 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4215.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4215.print index b1d6ee9b79..5cf3f3a4d9 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4215.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4215.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 131072 i32.const 131072 i32.const 0 memory.copy ) - (memory (;0;) 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4217.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4217.print index 0aad788d6d..4d4928f068 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4217.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4217.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32 i32 i32) (result i32))) + (memory (;0;) 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i32.const 17767 i32.const 1 @@ -827,7 +830,4 @@ local.get $from return ) - (memory (;0;) 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4450.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4450.print index 6cda97670d..0dfcae7c07 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4450.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4450.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) nop ) @@ -8,10 +12,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) (i64.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4482.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4482.print index cd9f230945..8c7685d97d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4482.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4482.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i64.const 13 i64.const 2 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) (i64.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4514.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4514.print index 8bab2981f2..7dc1731733 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4514.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4514.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i64.const 25 i64.const 15 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) (i64.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4546.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4546.print index bafc1ef604..6521f3b92b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4546.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4546.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i64.const 13 i64.const 25 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) (i64.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4578.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4578.print index ff2eb283dc..cae930bc32 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4578.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4578.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i64.const 20 i64.const 22 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) (i64.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4610.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4610.print index 6db4608888..4a1f772e00 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4610.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4610.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i64.const 25 i64.const 1 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) (i64.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4642.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4642.print index e7806a61bb..6784990930 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4642.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4642.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i64.const 10 i64.const 12 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) (i64.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4674.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4674.print index b198cd72e1..8ec9032c91 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4674.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4674.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i64.const 12 i64.const 10 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) (i64.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4706.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4706.print index c6b9491833..9741a6b68e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4706.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/4706.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5057.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5057.print index f596350fbe..4bfe59654a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5057.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5057.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13\14") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5409.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5409.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5409.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5409.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5760.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5760.print index 783888104c..c318a677c5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5760.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/5760.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65515) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13\14") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/607.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/607.print index f596350fbe..4bfe59654a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/607.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/607.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13\14") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6112.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6112.print index 8ce9b65ba8..1b3a58b268 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6112.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6112.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65486) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/64.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/64.print index f280f19277..428e01e4d1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/64.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/64.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 25 i32.const 15 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6463.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6463.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6463.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6463.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6814.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6814.print index 53ee133842..e4ac06bad1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6814.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/6814.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65506) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7165.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7165.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7165.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7165.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7516.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7516.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7516.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7516.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7867.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7867.print index fecddc9fcd..cdb9782959 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7867.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/7867.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8218.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8218.print index 45f811ee52..d3101b18ca 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8218.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8218.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 61440) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8633.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8633.print index b58a6b9525..737341d645 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8633.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8633.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64 i64 i32) (result i64))) + (memory (;0;) i64 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i64.const 10 i32.const 85 @@ -35,7 +38,4 @@ local.get $from return ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8638.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8638.print index 736e790810..2f3440d316 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8638.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8638.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64 i64 i32) (result i64))) + (memory (;0;) i64 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i64.const 10 i32.const 85 @@ -35,7 +38,4 @@ local.get $from return ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8643.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8643.print index cff17abcb5..d1fa4f3019 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8643.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8643.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 65280 i64.const 32768 i64.const 257 memory.copy ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8645.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8645.print index b991085b48..735cbdc9ef 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8645.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8645.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 4294967040 i64.const 16384 i64.const 257 memory.copy ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8647.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8647.print index 965c1ef4b8..a44b924337 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8647.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8647.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 32768 i64.const 65280 i64.const 257 memory.copy ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8649.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8649.print index 27f8ad7640..68def974ab 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8649.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8649.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 16384 i64.const 4294967040 i64.const 257 memory.copy ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8651.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8651.print index 1ea7541460..dcd1fb8fa4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8651.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8651.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64 i64 i32) (result i64))) + (memory (;0;) i64 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i64.const 0 i32.const 85 @@ -39,7 +42,4 @@ local.get $from return ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8655.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8655.print index 0c10346319..62fcbea5a3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8655.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8655.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 65536 i64.const 28672 i64.const 0 memory.copy ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8657.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8657.print index dea2522810..bfb01a33c5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8657.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8657.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 131072 i64.const 28672 i64.const 0 memory.copy ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8659.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8659.print index ca33365a37..b585df9469 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8659.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8659.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 36864 i64.const 65536 i64.const 0 memory.copy ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8661.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8661.print index 66d2662aec..cd744558e4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8661.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8661.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 36864 i64.const 131072 i64.const 0 memory.copy ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8663.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8663.print index b0138054e4..04e1f12ca5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8663.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8663.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 65536 i64.const 65536 i64.const 0 memory.copy ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8665.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8665.print index f418c92367..1b6092fbe8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8665.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8665.print @@ -1,11 +1,11 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 131072 i64.const 131072 i64.const 0 memory.copy ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8667.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8667.print index 7bba32570d..7458507ce5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8667.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/8667.print @@ -1,6 +1,9 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64 i64 i32) (result i64))) + (memory (;0;) i64 1 1) + (export "test" (func 0)) + (export "checkRange" (func 1)) (func (;0;) (type 0) i64.const 17767 i32.const 1 @@ -827,7 +830,4 @@ local.get $from return ) - (memory (;0;) i64 1 1) - (export "test" (func 0)) - (export "checkRange" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/959.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/959.print index bc80b8149f..0a3cef29bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/959.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/959.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "mem" (memory 0)) + (export "run" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param $targetOffs i32) (param $srcOffs i32) (param $len i32) local.get $targetOffs local.get $srcOffs @@ -11,9 +15,5 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "mem" (memory 0)) - (export "run" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 65516) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\10\11\12\13") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/96.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/96.print index 7f0eccbb2b..2a1ed6ad87 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/96.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy.wast/96.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 13 i32.const 25 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) (i32.const 12) "\07\05\02\03\06") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy0.wast/0.print index fa4c860d55..20c3d2c7b0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy0.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory $mem0 (;0;) 1 1) + (memory $mem1 (;1;) 1 1) + (memory $mem2 (;2;) 1 1) + (memory $mem3 (;3;) 1 1) + (export "copy" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,12 +17,6 @@ local.get 0 i32.load8_u $mem3 ) - (memory $mem0 (;0;) 1 1) - (memory $mem1 (;1;) 1 1) - (memory $mem2 (;2;) 1 1) - (memory $mem3 (;3;) 1 1) - (export "copy" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\ff\11D\ee") (data (;1;) (memory $mem1) (i32.const 0) "\ee\22U\ff") (data (;2;) (memory $mem2) (i32.const 0) "\dd3f\00") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_copy1.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_copy1.wast/0.print index ba1732407c..4d32043f45 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_copy1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_copy1.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory $mem0 (;0;) 1 1) + (memory $mem1 (;1;) 1 1) + (memory $mem2 (;2;) 1 1) + (memory $mem3 (;3;) 1 1) + (export "copy" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,12 +17,6 @@ local.get 0 i32.load8_u ) - (memory $mem0 (;0;) 1 1) - (memory $mem1 (;1;) 1 1) - (memory $mem2 (;2;) 1 1) - (memory $mem3 (;3;) 1 1) - (export "copy" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\ff\11D\ee") (data (;1;) (memory $mem1) (i32.const 0) "\ee\22U\ff") (data (;2;) (memory $mem2) (i32.const 0) "\dd3f\00") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/0.print index 15f0a97b9f..a93e135148 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/0.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 256 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/100.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/100.print index 468b43245b..9b46c1bd54 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/100.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/100.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func)) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,7 +34,4 @@ i64.const 256 memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/104.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/104.print index 80be941ec4..3f4e5f4511 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/104.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/104.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func)) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,7 +34,4 @@ i64.const 257 memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/106.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/106.print index 2949a64a4a..72e95b999c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/106.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/106.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func)) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,7 +34,4 @@ i64.const 257 memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/108.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/108.print index 1e2992f059..1d2c12d503 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/108.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/108.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func)) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,7 +34,4 @@ i64.const 0 memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/11.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/11.print index 07d96e30f8..31babd99da 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/11.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/11.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 0 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/111.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/111.print index b18caa715b..86e4117684 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/111.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/111.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func)) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,7 +34,4 @@ i64.const 0 memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/113.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/113.print index e6f5f4dcdf..46890f8ce2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/113.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/113.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func)) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,7 +34,4 @@ i64.const 0 memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/115.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/115.print index dcb0a795ba..f6373debd8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/115.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/115.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func)) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,7 +34,4 @@ i64.const 65534 memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/120.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/120.print index f27e068133..3a7290003e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/120.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/120.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func)) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -35,7 +38,4 @@ i64.const 4 memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/13.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/13.print index 9f323b898c..611a26cb5c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/13.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/13.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 0 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/15.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/15.print index 22bbd04e8f..e5344f7c2d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/15.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/15.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 65534 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/191.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/191.print index 61ef1ffe54..81ff413381 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/191.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/191.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func (param i64 i32 i64))) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,7 +34,4 @@ local.get $len memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/194.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/194.print index 61ef1ffe54..81ff413381 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/194.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/194.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func (param i64 i32 i64))) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,7 +34,4 @@ local.get $len memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/197.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/197.print index 61ef1ffe54..81ff413381 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/197.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/197.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func (param i64 i32 i64))) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,7 +34,4 @@ local.get $len memory.fill ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/20.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/20.print index 6fd18c5b62..f0882323e3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/20.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/20.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -35,7 +38,4 @@ i32.const 4 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/4.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/4.print index 84f4b0b7ea..c33cbb009c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/4.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/4.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 257 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/6.print index 862cfea0e9..a18d8a0c2b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/6.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 257 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/8.print index 39ea80786f..838c323c16 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/8.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ i32.const 0 memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "test" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/91.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/91.print index 24e901cc21..889d6bae4f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/91.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/91.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ local.get $len memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/94.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/94.print index 24e901cc21..889d6bae4f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/94.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/94.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ local.get $len memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/97.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/97.print index 24e901cc21..889d6bae4f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/97.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill.wast/97.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,7 +34,4 @@ local.get $len memory.fill ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_fill0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_fill0.wast/0.print index be024596fd..f3bf59d02d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_fill0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_fill0.wast/0.print @@ -1,6 +1,11 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 0) + (memory $mem2 (;2;) 1) + (export "fill" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,9 +16,4 @@ local.get 0 i32.load8_u $mem2 ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 0) - (memory $mem2 (;2;) 1) - (export "fill" (func 0)) - (export "load8_u" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/0.print index e6b320586d..50555caaed 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 0) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (memory (;0;) 0) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/132.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/132.print index 4d283b5d5e..b993d246d3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/132.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/132.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 2) + (export "grow1" (func 0)) + (export "grow2" (func 1)) + (export "size1" (func 2)) + (export "size2" (func 3)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow @@ -15,10 +21,4 @@ (func (;3;) (type 1) (result i32) memory.size $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 2) - (export "grow1" (func 0)) - (export "grow2" (func 1)) - (export "size1" (func 2)) - (export "size2" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/18.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/18.print index b7c5e0e7c3..e5a32ddd56 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/18.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/18.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32) (result i32))) + (memory (;0;) 1) + (export "grow" (func 0)) + (export "check-memory-zero" (func 1)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow @@ -34,7 +37,4 @@ end local.get 2 ) - (memory (;0;) 1) - (export "grow" (func 0)) - (export "check-memory-zero" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/30.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/30.print index fb780425b3..e8410ecf3a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/30.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/30.print @@ -2,6 +2,13 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i32))) + (memory (;0;) 0) + (export "load_at_zero" (func 0)) + (export "store_at_zero" (func 1)) + (export "load_at_page_size" (func 2)) + (export "store_at_page_size" (func 3)) + (export "grow" (func 4)) + (export "size" (func 5)) (func (;0;) (type 0) (result i32) i32.const 0 i32.load @@ -27,11 +34,4 @@ (func (;5;) (type 0) (result i32) memory.size ) - (memory (;0;) 0) - (export "load_at_zero" (func 0)) - (export "store_at_zero" (func 1)) - (export "load_at_page_size" (func 2)) - (export "store_at_page_size" (func 3)) - (export "grow" (func 4)) - (export "size" (func 5)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/53.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/53.print index 317ca41e5b..d1110940d0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/53.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/53.print @@ -3,6 +3,16 @@ (type (;1;) (func (param i32) (result i32))) (import "M" "mem1" (memory $mem1 (;0;) 1 6)) (import "M" "mem2" (memory $mem2 (;1;) 0)) + (memory $mem3 (;2;) 3) + (memory $mem4 (;3;) 4 5) + (export "size1" (func 0)) + (export "size2" (func 1)) + (export "size3" (func 2)) + (export "size4" (func 3)) + (export "grow1" (func 4)) + (export "grow2" (func 5)) + (export "grow3" (func 6)) + (export "grow4" (func 7)) (func (;0;) (type 0) (result i32) memory.size ) @@ -31,14 +41,4 @@ local.get 0 memory.grow $mem4 ) - (memory $mem3 (;2;) 3) - (memory $mem4 (;3;) 4 5) - (export "size1" (func 0)) - (export "size2" (func 1)) - (export "size3" (func 2)) - (export "size4" (func 3)) - (export "grow1" (func 4)) - (export "grow2" (func 5)) - (export "grow3" (func 6)) - (export "grow4" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/9.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/9.print index a35d99218a..292fc4d161 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/9.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/9.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 0 10) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (memory (;0;) 0 10) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/94.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/94.print index a2125d870b..e6fac4087c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/94.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow.wast/94.print @@ -3,6 +3,47 @@ (type (;1;) (func (result i32))) (type (;2;) (func)) (type (;3;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "as-br-value" (func 0)) + (export "as-br_if-cond" (func 1)) + (export "as-br_if-value" (func 2)) + (export "as-br_if-value-cond" (func 3)) + (export "as-br_table-index" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-br_table-value-index" (func 6)) + (export "as-return-value" (func 7)) + (export "as-if-cond" (func 8)) + (export "as-if-then" (func 9)) + (export "as-if-else" (func 10)) + (export "as-select-first" (func 11)) + (export "as-select-second" (func 12)) + (export "as-select-cond" (func 13)) + (export "as-call-first" (func 15)) + (export "as-call-mid" (func 16)) + (export "as-call-last" (func 17)) + (export "as-call_indirect-first" (func 18)) + (export "as-call_indirect-mid" (func 19)) + (export "as-call_indirect-last" (func 20)) + (export "as-call_indirect-index" (func 21)) + (export "as-local.set-value" (func 22)) + (export "as-local.tee-value" (func 23)) + (export "as-global.set-value" (func 24)) + (export "as-load-address" (func 25)) + (export "as-loadN-address" (func 26)) + (export "as-store-address" (func 27)) + (export "as-store-value" (func 28)) + (export "as-storeN-address" (func 29)) + (export "as-storeN-value" (func 30)) + (export "as-unary-operand" (func 31)) + (export "as-binary-left" (func 32)) + (export "as-binary-right" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-left" (func 35)) + (export "as-compare-right" (func 36)) + (export "as-memory.grow-size" (func 37)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) block (result i32) ;; label = @1 i32.const 0 @@ -262,45 +303,4 @@ memory.grow memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "as-br-value" (func 0)) - (export "as-br_if-cond" (func 1)) - (export "as-br_if-value" (func 2)) - (export "as-br_if-value-cond" (func 3)) - (export "as-br_table-index" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-br_table-value-index" (func 6)) - (export "as-return-value" (func 7)) - (export "as-if-cond" (func 8)) - (export "as-if-then" (func 9)) - (export "as-if-else" (func 10)) - (export "as-select-first" (func 11)) - (export "as-select-second" (func 12)) - (export "as-select-cond" (func 13)) - (export "as-call-first" (func 15)) - (export "as-call-mid" (func 16)) - (export "as-call-last" (func 17)) - (export "as-call_indirect-first" (func 18)) - (export "as-call_indirect-mid" (func 19)) - (export "as-call_indirect-last" (func 20)) - (export "as-call_indirect-index" (func 21)) - (export "as-local.set-value" (func 22)) - (export "as-local.tee-value" (func 23)) - (export "as-global.set-value" (func 24)) - (export "as-load-address" (func 25)) - (export "as-loadN-address" (func 26)) - (export "as-store-address" (func 27)) - (export "as-store-value" (func 28)) - (export "as-storeN-address" (func 29)) - (export "as-storeN-value" (func 30)) - (export "as-unary-operand" (func 31)) - (export "as-binary-left" (func 32)) - (export "as-binary-right" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-left" (func 35)) - (export "as-compare-right" (func 36)) - (export "as-memory.grow-size" (func 37)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/0.print index 35a9a0838b..e592e1e4f2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/0.print @@ -3,6 +3,13 @@ (type (;1;) (func)) (type (;2;) (func (param i64) (result i64))) (type (;3;) (func (result i64))) + (memory (;0;) i64 0) + (export "load_at_zero" (func 0)) + (export "store_at_zero" (func 1)) + (export "load_at_page_size" (func 2)) + (export "store_at_page_size" (func 3)) + (export "grow" (func 4)) + (export "size" (func 5)) (func (;0;) (type 0) (result i32) i64.const 0 i32.load @@ -28,11 +35,4 @@ (func (;5;) (type 3) (result i64) memory.size ) - (memory (;0;) i64 0) - (export "load_at_zero" (func 0)) - (export "store_at_zero" (func 1)) - (export "load_at_page_size" (func 2)) - (export "store_at_page_size" (func 3)) - (export "grow" (func 4)) - (export "size" (func 5)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/21.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/21.print index d193f20e8e..329be1f75e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/21.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/21.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i64) (result i64))) + (memory (;0;) i64 0) + (export "grow" (func 0)) (func (;0;) (type 0) (param i64) (result i64) local.get 0 memory.grow ) - (memory (;0;) i64 0) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/28.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/28.print index 4caff58934..0fd6dec54b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/28.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/28.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i64) (result i64))) + (memory (;0;) i64 0 10) + (export "grow" (func 0)) (func (;0;) (type 0) (param i64) (result i64) local.get 0 memory.grow ) - (memory (;0;) i64 0 10) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/37.print b/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/37.print index ccc944f19a..33a4f7147d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/37.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_grow64.wast/37.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64) (result i64))) (type (;1;) (func (param i64 i64) (result i32))) + (memory (;0;) i64 1) + (export "grow" (func 0)) + (export "check-memory-zero" (func 1)) (func (;0;) (type 0) (param i64) (result i64) local.get 0 memory.grow @@ -34,7 +37,4 @@ end local.get 2 ) - (memory (;0;) i64 1) - (export "grow" (func 0)) - (export "check-memory-zero" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/0.print index ea1a83a57b..07219bce53 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) nop ) @@ -8,10 +12,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i32.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/130.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/130.print index f432a7848c..f35718fe29 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/130.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/130.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) data.drop 0 data.drop 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/132.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/132.print index a96262920f..47c8f3ef73 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/132.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/132.print @@ -1,5 +1,7 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) data.drop 0 i32.const 1234 @@ -7,7 +9,5 @@ i32.const 1 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/134.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/134.print index ec80df9098..39802accbe 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/134.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/134.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1234 i32.const 1 i32.const 1 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) (i32.const 0) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/138.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/138.print index f777620c35..f0822ca248 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/138.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/138.print @@ -1,5 +1,7 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1 i32.const 0 @@ -10,7 +12,5 @@ i32.const 1 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/140.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/140.print index fde98ff46b..496db2f112 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/140.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/140.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1234 i32.const 0 i32.const 5 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/142.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/142.print index 001a2505c8..fd916a402b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/142.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/142.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1234 i32.const 2 i32.const 3 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/144.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/144.print index b0cba04472..0bbf158341 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/144.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/144.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65534 i32.const 1 i32.const 3 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/146.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/146.print index 01febc20cd..abd5a2f938 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/146.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/146.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1234 i32.const 4 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/148.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/148.print index edb9ceb7d8..68c667715f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/148.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/148.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 1234 i32.const 1 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/150.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/150.print index c9c74d66f6..3287be4308 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/150.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/150.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65537 i32.const 0 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/152.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/152.print index 38f3b18612..c95e1c1490 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/152.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/152.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65536 i32.const 0 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/154.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/154.print index 81612ee981..14660b42a1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/154.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/154.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65536 i32.const 1 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/156.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/156.print index 12847073a3..0566dd2857 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/156.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/156.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "test" (func 0)) (func (;0;) (type 0) i32.const 65537 i32.const 4 i32.const 0 memory.init 0 ) - (memory (;0;) 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/221.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/221.print index eb6c203805..661bd3db4d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/221.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/221.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/224.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/224.print index eb6c203805..661bd3db4d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/224.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/224.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/227.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/227.print index eb6c203805..661bd3db4d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/227.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/227.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/230.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/230.print index eb6c203805..661bd3db4d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/230.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/230.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/233.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/233.print index 575212fe1f..96c9217a69 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/233.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/233.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/236.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/236.print index 575212fe1f..96c9217a69 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/236.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/236.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) + (memory (;0;) 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/239.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/239.print index efc8c46564..f3cf7f27d7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/239.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/239.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 i32.const 0 i32.const 0 memory.init 64 ) - (memory (;0;) 1) (data (;0;) "") (data (;1;) "") (data (;2;) "") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/240.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/240.print index b86dd3a737..7795516cfe 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/240.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/240.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) nop ) @@ -8,10 +12,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i64.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/272.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/272.print index b91ba1f077..6eb7926278 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/272.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/272.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i64.const 7 i32.const 0 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i64.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/304.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/304.print index 6d15d795e0..6dcfe67bf5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/304.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/304.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i64.const 15 i32.const 1 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i64.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/32.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/32.print index d5baf91207..e828fec8b2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/32.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/32.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 7 i32.const 0 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i32.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/336.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/336.print index 46456f8182..bafa63b8aa 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/336.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/336.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i64) (result i32))) + (memory (;0;) i64 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i64.const 7 i32.const 0 @@ -37,10 +41,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) i64 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i64.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i64.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/370.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/370.print index a2aaec1138..f53dcc89a4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/370.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/370.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) data.drop 0 data.drop 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/372.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/372.print index 9cde7b4bc5..26a83ed8ff 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/372.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/372.print @@ -1,5 +1,7 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) data.drop 0 i64.const 1234 @@ -7,7 +9,5 @@ i32.const 1 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/374.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/374.print index afa39255e2..febeb0a32c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/374.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/374.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 1234 i32.const 1 i32.const 1 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) (i64.const 0) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/378.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/378.print index 10b1057867..41e0749695 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/378.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/378.print @@ -1,5 +1,7 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 1 i32.const 0 @@ -10,7 +12,5 @@ i32.const 1 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/380.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/380.print index 7ee86dc120..e4bb8e0f5d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/380.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/380.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 1234 i32.const 0 i32.const 5 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/382.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/382.print index cb53419efa..6b9c41f935 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/382.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/382.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 1234 i32.const 2 i32.const 3 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/384.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/384.print index 391835f575..a073a930ef 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/384.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/384.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 65534 i32.const 1 i32.const 3 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/386.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/386.print index 1724df3c45..79b50a4e11 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/386.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/386.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 1234 i32.const 4 i32.const 0 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/388.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/388.print index bad6b7fd8c..528e1a8c91 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/388.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/388.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 1234 i32.const 1 i32.const 0 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/390.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/390.print index d3b5c5aa9e..71effdad6c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/390.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/390.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 65537 i32.const 0 i32.const 0 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/392.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/392.print index a962ec4283..fe8f22eba5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/392.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/392.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 65536 i32.const 0 i32.const 0 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/394.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/394.print index 48a81b1933..bf7c171881 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/394.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/394.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 65536 i32.const 1 i32.const 0 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/396.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/396.print index 713e5f35da..a313ea53bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/396.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/396.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) + (export "test" (func 0)) (func (;0;) (type 0) i64.const 65537 i32.const 4 i32.const 0 memory.init 0 ) - (memory (;0;) i64 1) - (export "test" (func 0)) (data (;0;) "7") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/461.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/461.print index b1bdb4e3a1..b614e8f997 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/461.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/461.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func (param i64 i32))) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/464.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/464.print index b1bdb4e3a1..b614e8f997 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/464.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/464.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func (param i64 i32))) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/467.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/467.print index b1bdb4e3a1..b614e8f997 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/467.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/467.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func (param i64 i32))) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/470.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/470.print index b1bdb4e3a1..b614e8f997 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/470.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/470.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func (param i64 i32))) + (memory (;0;) i64 1 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) i64 1 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/473.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/473.print index 63f90d9d03..b04346e7c1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/473.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/473.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func (param i64 i32))) + (memory (;0;) i64 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) i64 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/476.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/476.print index 63f90d9d03..b04346e7c1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/476.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/476.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i64 i64 i32) (result i64))) (type (;1;) (func (param i64 i32))) + (memory (;0;) i64 1) + (export "checkRange" (func 0)) + (export "run" (func 1)) (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64) loop $cont local.get $from @@ -31,8 +34,5 @@ local.get $len memory.init 0 ) - (memory (;0;) i64 1) - (export "checkRange" (func 0)) - (export "run" (func 1)) (data (;0;) "BBBBBBBBBBBBBBBB") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/479.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/479.print index 669e92a55d..62018c1a7c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/479.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/479.print @@ -1,12 +1,12 @@ (module (type (;0;) (func)) + (memory (;0;) i64 1) (func (;0;) (type 0) i64.const 0 i32.const 0 i32.const 0 memory.init 64 ) - (memory (;0;) i64 1) (data (;0;) "") (data (;1;) "") (data (;2;) "") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/64.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/64.print index f8a8717aad..f686596171 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/64.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/64.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 15 i32.const 1 @@ -11,10 +15,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i32.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/96.print b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/96.print index 0c232877de..7286575463 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/96.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init.wast/96.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) + (memory (;0;) 1 1) + (export "memory0" (memory 0)) + (export "test" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) i32.const 7 i32.const 0 @@ -37,10 +41,6 @@ local.get 0 i32.load8_u ) - (memory (;0;) 1 1) - (export "memory0" (memory 0)) - (export "test" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 2) "\03\01\04\01") (data (;1;) "\02\07\01\08") (data (;2;) (i32.const 12) "\07\05\02\03\06") diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_init0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_init0.wast/0.print index 71f8afd8fb..a75b2858cb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_init0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_init0.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 0) + (memory $mem2 (;2;) 1) + (memory $mem3 (;3;) 0) + (export "init" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,11 +17,5 @@ local.get 0 i32.load8_u $mem2 ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 0) - (memory $mem2 (;2;) 1) - (memory $mem3 (;3;) 0) - (export "init" (func 0)) - (export "load8_u" (func 1)) (data $mem2 (;0;) "\aa\bb\cc\dd") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_redundancy64.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_redundancy64.wast/0.print index d816666bf6..45aeb24681 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_redundancy64.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_redundancy64.wast/0.print @@ -3,6 +3,13 @@ (type (;1;) (func (result i32))) (type (;2;) (func (result f32))) (type (;3;) (func (param i64) (result i64))) + (memory (;0;) i64 1 1) + (export "zero_everything" (func 0)) + (export "test_store_to_load" (func 1)) + (export "test_redundant_load" (func 2)) + (export "test_dead_store" (func 3)) + (export "malloc" (func $malloc)) + (export "malloc_aliasing" (func 5)) (func (;0;) (type 0) i64.const 0 i32.const 0 @@ -75,11 +82,4 @@ local.get $x i32.load ) - (memory (;0;) i64 1 1) - (export "zero_everything" (func 0)) - (export "test_store_to_load" (func 1)) - (export "test_redundant_load" (func 2)) - (export "test_dead_store" (func 3)) - (export "malloc" (func $malloc)) - (export "malloc_aliasing" (func 5)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/0.print index 53c0fbc85d..f247a4b0ca 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/0.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 0) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/16.print b/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/16.print index 8261248fa5..2b2651f453 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/16.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/16.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0 2) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 0 2) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/28.print b/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/28.print index c6b7f9d53f..65456a8c41 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/28.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/28.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 3 8) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 3 8) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/42.print b/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/42.print index 81a668faae..c70be2bdf1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/42.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/42.print @@ -2,6 +2,12 @@ (type (;0;) (func (result i32))) (import "M" "mem1" (memory $mem1 (;0;) 1 5)) (import "M" "mem2" (memory $mem2 (;1;) 0)) + (memory $mem3 (;2;) 3) + (memory $mem4 (;3;) 4 5) + (export "size1" (func 0)) + (export "size2" (func 1)) + (export "size3" (func 2)) + (export "size4" (func 3)) (func (;0;) (type 0) (result i32) memory.size ) @@ -14,10 +20,4 @@ (func (;3;) (type 0) (result i32) memory.size $mem4 ) - (memory $mem3 (;2;) 3) - (memory $mem4 (;3;) 4 5) - (export "size1" (func 0)) - (export "size2" (func 1)) - (export "size3" (func 2)) - (export "size4" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/8.print index 641f76ffe6..7e2597b136 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_size.wast/8.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 1) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_size0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_size0.wast/0.print index 302442aa23..b361567db3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_size0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_size0.wast/0.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0) + (memory (;1;) 0) + (memory (;2;) 0) + (memory (;3;) 0) + (memory $m (;4;) 0) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size $m ) @@ -9,11 +16,4 @@ memory.grow $m drop ) - (memory (;0;) 0) - (memory (;1;) 0) - (memory (;2;) 0) - (memory (;3;) 0) - (memory $m (;4;) 0) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_size1.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_size1.wast/0.print index 43bbfb7b79..180e91f2aa 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_size1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_size1.wast/0.print @@ -1,6 +1,15 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0) + (memory (;1;) 0) + (memory $n (;2;) 0) + (memory (;3;) 0) + (memory $m (;4;) 0) + (export "size" (func 0)) + (export "grow" (func 1)) + (export "sizen" (func 2)) + (export "grown" (func 3)) (func (;0;) (type 0) (result i32) memory.size $m ) @@ -17,13 +26,4 @@ memory.grow $n drop ) - (memory (;0;) 0) - (memory (;1;) 0) - (memory $n (;2;) 0) - (memory (;3;) 0) - (memory $m (;4;) 0) - (export "size" (func 0)) - (export "grow" (func 1)) - (export "sizen" (func 2)) - (export "grown" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_size2.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_size2.wast/0.print index 9feb87bea6..76bd4df408 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_size2.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_size2.wast/0.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0 0) + (memory (;1;) 0 0) + (memory $n (;2;) 0 0) + (memory $m (;3;) 0 2) + (export "size" (func 0)) + (export "grow" (func 1)) + (export "sizen" (func 2)) + (export "grown" (func 3)) (func (;0;) (type 0) (result i32) memory.size $m ) @@ -17,12 +25,4 @@ memory.grow $n drop ) - (memory (;0;) 0 0) - (memory (;1;) 0 0) - (memory $n (;2;) 0 0) - (memory $m (;3;) 0 2) - (export "size" (func 0)) - (export "grow" (func 1)) - (export "sizen" (func 2)) - (export "grown" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_trap0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_trap0.wast/0.print index 7602643233..5ae1ff5e7d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_trap0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_trap0.wast/0.print @@ -2,6 +2,12 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32) (result i32))) + (memory (;0;) 0) + (memory (;1;) 0) + (memory $m (;2;) 1) + (export "store" (func 1)) + (export "load" (func 2)) + (export "memory.grow" (func 3)) (func $addr_limit (;0;) (type 0) (result i32) memory.size $m i32.const 65536 @@ -24,10 +30,4 @@ local.get 0 memory.grow $m ) - (memory (;0;) 0) - (memory (;1;) 0) - (memory $m (;2;) 1) - (export "store" (func 1)) - (export "load" (func 2)) - (export "memory.grow" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_trap1.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_trap1.wast/0.print index 99548781c9..ad4c6db684 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_trap1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_trap1.wast/0.print @@ -7,6 +7,32 @@ (type (;5;) (func (param i32 i64))) (type (;6;) (func (param i32 f32))) (type (;7;) (func (param i32 f64))) + (memory (;0;) 0) + (memory (;1;) 0) + (memory $m (;2;) 1) + (export "i32.load" (func 0)) + (export "i64.load" (func 1)) + (export "f32.load" (func 2)) + (export "f64.load" (func 3)) + (export "i32.load8_s" (func 4)) + (export "i32.load8_u" (func 5)) + (export "i32.load16_s" (func 6)) + (export "i32.load16_u" (func 7)) + (export "i64.load8_s" (func 8)) + (export "i64.load8_u" (func 9)) + (export "i64.load16_s" (func 10)) + (export "i64.load16_u" (func 11)) + (export "i64.load32_s" (func 12)) + (export "i64.load32_u" (func 13)) + (export "i32.store" (func 14)) + (export "i64.store" (func 15)) + (export "f32.store" (func 16)) + (export "f64.store" (func 17)) + (export "i32.store8" (func 18)) + (export "i32.store16" (func 19)) + (export "i64.store8" (func 20)) + (export "i64.store16" (func 21)) + (export "i64.store32" (func 22)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load $m @@ -108,32 +134,6 @@ local.get $v i64.store32 $m ) - (memory (;0;) 0) - (memory (;1;) 0) - (memory $m (;2;) 1) - (export "i32.load" (func 0)) - (export "i64.load" (func 1)) - (export "f32.load" (func 2)) - (export "f64.load" (func 3)) - (export "i32.load8_s" (func 4)) - (export "i32.load8_u" (func 5)) - (export "i32.load16_s" (func 6)) - (export "i32.load16_u" (func 7)) - (export "i64.load8_s" (func 8)) - (export "i64.load8_u" (func 9)) - (export "i64.load16_s" (func 10)) - (export "i64.load16_u" (func 11)) - (export "i64.load32_s" (func 12)) - (export "i64.load32_u" (func 13)) - (export "i32.store" (func 14)) - (export "i64.store" (func 15)) - (export "f32.store" (func 16)) - (export "f64.store" (func 17)) - (export "i32.store8" (func 18)) - (export "i32.store16" (func 19)) - (export "i64.store8" (func 20)) - (export "i64.store16" (func 21)) - (export "i64.store32" (func 22)) (data (;0;) (memory $m) (i32.const 0) "abcdefgh") (data (;1;) (memory $m) (i32.const 65528) "abcdefgh") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_trap64.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/memory_trap64.wast/0.print index 1d98e6fd4b..b23403a388 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_trap64.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_trap64.wast/0.print @@ -3,6 +3,10 @@ (type (;1;) (func (param i64 i32))) (type (;2;) (func (param i64) (result i32))) (type (;3;) (func (param i64) (result i64))) + (memory (;0;) i64 1) + (export "store" (func 1)) + (export "load" (func 2)) + (export "memory.grow" (func 3)) (func $addr_limit (;0;) (type 0) (result i64) memory.size i64.const 65536 @@ -25,8 +29,4 @@ local.get 0 memory.grow ) - (memory (;0;) i64 1) - (export "store" (func 1)) - (export "load" (func 2)) - (export "memory.grow" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/memory_trap64.wast/13.print b/tests/snapshots/testsuite/proposals/memory64/memory_trap64.wast/13.print index 2102ea070d..053fe13535 100644 --- a/tests/snapshots/testsuite/proposals/memory64/memory_trap64.wast/13.print +++ b/tests/snapshots/testsuite/proposals/memory64/memory_trap64.wast/13.print @@ -7,6 +7,30 @@ (type (;5;) (func (param i64 i64))) (type (;6;) (func (param i64 f32))) (type (;7;) (func (param i64 f64))) + (memory (;0;) i64 1) + (export "i32.load" (func 0)) + (export "i64.load" (func 1)) + (export "f32.load" (func 2)) + (export "f64.load" (func 3)) + (export "i32.load8_s" (func 4)) + (export "i32.load8_u" (func 5)) + (export "i32.load16_s" (func 6)) + (export "i32.load16_u" (func 7)) + (export "i64.load8_s" (func 8)) + (export "i64.load8_u" (func 9)) + (export "i64.load16_s" (func 10)) + (export "i64.load16_u" (func 11)) + (export "i64.load32_s" (func 12)) + (export "i64.load32_u" (func 13)) + (export "i32.store" (func 14)) + (export "i64.store" (func 15)) + (export "f32.store" (func 16)) + (export "f64.store" (func 17)) + (export "i32.store8" (func 18)) + (export "i32.store16" (func 19)) + (export "i64.store8" (func 20)) + (export "i64.store16" (func 21)) + (export "i64.store32" (func 22)) (func (;0;) (type 0) (param $a i64) (result i32) local.get $a i32.load @@ -108,30 +132,6 @@ local.get $v i64.store32 ) - (memory (;0;) i64 1) - (export "i32.load" (func 0)) - (export "i64.load" (func 1)) - (export "f32.load" (func 2)) - (export "f64.load" (func 3)) - (export "i32.load8_s" (func 4)) - (export "i32.load8_u" (func 5)) - (export "i32.load16_s" (func 6)) - (export "i32.load16_u" (func 7)) - (export "i64.load8_s" (func 8)) - (export "i64.load8_u" (func 9)) - (export "i64.load16_s" (func 10)) - (export "i64.load16_u" (func 11)) - (export "i64.load32_s" (func 12)) - (export "i64.load32_u" (func 13)) - (export "i32.store" (func 14)) - (export "i64.store" (func 15)) - (export "f32.store" (func 16)) - (export "f64.store" (func 17)) - (export "i32.store8" (func 18)) - (export "i32.store16" (func 19)) - (export "i64.store8" (func 20)) - (export "i64.store16" (func 21)) - (export "i64.store32" (func 22)) (data (;0;) (i64.const 0) "abcdefgh") (data (;1;) (i64.const 65528) "abcdefgh") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/ref_as_non_null.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/ref_as_non_null.wast/0.print index d4861f7951..8f70c457c5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/ref_as_non_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/ref_as_non_null.wast/0.print @@ -2,6 +2,11 @@ (type $t (;0;) (func (result i32))) (type (;1;) (func (param (ref $t)) (result i32))) (type (;2;) (func (param (ref null $t)) (result i32))) + (export "nullable-null" (func 3)) + (export "nonnullable-f" (func 4)) + (export "nullable-f" (func 5)) + (export "unreachable" (func 6)) + (elem (;0;) func $f) (func $nn (;0;) (type 1) (param $r (ref $t)) (result i32) local.get $r ref.as_non_null @@ -32,9 +37,4 @@ ref.as_non_null call $nn ) - (export "nullable-null" (func 3)) - (export "nonnullable-f" (func 4)) - (export "nullable-f" (func 5)) - (export "unreachable" (func 6)) - (elem (;0;) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/ref_cast.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/ref_cast.wast/0.print index d91240e95b..20ee4db464 100644 --- a/tests/snapshots/testsuite/proposals/memory64/ref_cast.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/ref_cast.wast/0.print @@ -4,6 +4,14 @@ (type $at (;2;) (array i8)) (type (;3;) (func (param externref))) (type (;4;) (func (param i32))) + (table (;0;) 10 anyref) + (export "init" (func 1)) + (export "ref_cast_non_null" (func 2)) + (export "ref_cast_null" (func 3)) + (export "ref_cast_i31" (func 4)) + (export "ref_cast_struct" (func 5)) + (export "ref_cast_array" (func 6)) + (elem (;0;) declare func $f) (func $f (;0;) (type $ft)) (func (;1;) (type 3) (param $x externref) i32.const 0 @@ -96,12 +104,4 @@ ref.cast arrayref drop ) - (table (;0;) 10 anyref) - (export "init" (func 1)) - (export "ref_cast_non_null" (func 2)) - (export "ref_cast_null" (func 3)) - (export "ref_cast_i31" (func 4)) - (export "ref_cast_struct" (func 5)) - (export "ref_cast_array" (func 6)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/ref_cast.wast/42.print b/tests/snapshots/testsuite/proposals/memory64/ref_cast.wast/42.print index 29b16b582b..acd6e3cd55 100644 --- a/tests/snapshots/testsuite/proposals/memory64/ref_cast.wast/42.print +++ b/tests/snapshots/testsuite/proposals/memory64/ref_cast.wast/42.print @@ -8,6 +8,9 @@ (type $t0' (;6;) (sub $t0 (struct))) (type $t4 (;7;) (sub $t0' (struct (field i32) (field i32)))) (type (;8;) (func)) + (table (;0;) 20 structref) + (export "test-sub" (func 1)) + (export "test-canon" (func 2)) (func $init (;0;) (type 8) i32.const 0 struct.new_default $t0 @@ -188,7 +191,4 @@ ref.cast (ref $t2) drop ) - (table (;0;) 20 structref) - (export "test-sub" (func 1)) - (export "test-canon" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/ref_eq.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/ref_eq.wast/0.print index 194caf3285..4fd522349b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/ref_eq.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/ref_eq.wast/0.print @@ -8,6 +8,9 @@ (type $st'-sub2 (;6;) (sub $st' (struct (field i32)))) (type (;7;) (func)) (type (;8;) (func (param i32 i32) (result i32))) + (table (;0;) 20 eqref) + (export "init" (func 0)) + (export "eq" (func 1)) (func (;0;) (type 7) i32.const 0 ref.null eq @@ -49,7 +52,4 @@ table.get 0 ref.eq ) - (table (;0;) 20 eqref) - (export "init" (func 0)) - (export "eq" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/ref_is_null.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/ref_is_null.wast/0.print index f354ae718f..1097f20712 100644 --- a/tests/snapshots/testsuite/proposals/memory64/ref_is_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/ref_is_null.wast/0.print @@ -6,6 +6,19 @@ (type (;4;) (func (result i32))) (type (;5;) (func (param externref))) (type (;6;) (func (param i32) (result i32))) + (table $t1 (;0;) 2 funcref) + (table $t2 (;1;) 2 externref) + (table $t3 (;2;) 2 (ref null $t)) + (export "funcref" (func $f1)) + (export "externref" (func $f2)) + (export "ref-null" (func $f3')) + (export "init" (func 5)) + (export "deinit" (func 6)) + (export "funcref-elem" (func 7)) + (export "externref-elem" (func 8)) + (export "ref-elem" (func 9)) + (elem (;0;) (i32.const 1) func $dummy) + (elem (;1;) (table $t3) (i32.const 1) (ref $t) (ref.func $dummy)) (func $dummy (;0;) (type $t)) (func $f1 (;1;) (type 1) (param $x funcref) (result i32) local.get $x @@ -54,17 +67,4 @@ table.get $t3 call $f3 ) - (table $t1 (;0;) 2 funcref) - (table $t2 (;1;) 2 externref) - (table $t3 (;2;) 2 (ref null $t)) - (export "funcref" (func $f1)) - (export "externref" (func $f2)) - (export "ref-null" (func $f3')) - (export "init" (func 5)) - (export "deinit" (func 6)) - (export "funcref-elem" (func 7)) - (export "externref-elem" (func 8)) - (export "ref-elem" (func 9)) - (elem (;0;) (i32.const 1) func $dummy) - (elem (;1;) (table $t3) (i32.const 1) (ref $t) (ref.func $dummy)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/ref_null.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/ref_null.wast/0.print index c9be878b19..b3ff9c0c1d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/ref_null.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/ref_null.wast/0.print @@ -5,6 +5,16 @@ (type (;3;) (func (result exnref))) (type (;4;) (func (result externref))) (type (;5;) (func (result (ref null $t)))) + (global (;0;) anyref ref.null any) + (global (;1;) funcref ref.null func) + (global (;2;) exnref ref.null exn) + (global (;3;) externref ref.null extern) + (global (;4;) (ref null $t) ref.null $t) + (export "anyref" (func 0)) + (export "funcref" (func 1)) + (export "exnref" (func 2)) + (export "externref" (func 3)) + (export "ref" (func 4)) (func (;0;) (type 1) (result anyref) ref.null any ) @@ -20,14 +30,4 @@ (func (;4;) (type 5) (result (ref null $t)) ref.null $t ) - (global (;0;) anyref ref.null any) - (global (;1;) funcref ref.null func) - (global (;2;) exnref ref.null exn) - (global (;3;) externref ref.null extern) - (global (;4;) (ref null $t) ref.null $t) - (export "anyref" (func 0)) - (export "funcref" (func 1)) - (export "exnref" (func 2)) - (export "externref" (func 3)) - (export "ref" (func 4)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/ref_null.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/ref_null.wast/6.print index dc66f0d5b9..17efa85912 100644 --- a/tests/snapshots/testsuite/proposals/memory64/ref_null.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/ref_null.wast/6.print @@ -9,33 +9,6 @@ (type (;7;) (func (result externref))) (type (;8;) (func (result nullexternref))) (type (;9;) (func (result (ref null $t)))) - (func (;0;) (type 1) (result anyref) - global.get $null - ) - (func (;1;) (type 2) (result nullref) - global.get $null - ) - (func (;2;) (type 3) (result funcref) - global.get $nullfunc - ) - (func (;3;) (type 4) (result nullfuncref) - global.get $nullfunc - ) - (func (;4;) (type 5) (result exnref) - global.get $nullexn - ) - (func (;5;) (type 6) (result nullexnref) - global.get $nullexn - ) - (func (;6;) (type 7) (result externref) - global.get $nullextern - ) - (func (;7;) (type 8) (result nullexternref) - global.get $nullextern - ) - (func (;8;) (type 9) (result (ref null $t)) - global.get $nullfunc - ) (global $null (;0;) nullref ref.null none) (global $nullfunc (;1;) nullfuncref ref.null nofunc) (global $nullexn (;2;) nullexnref ref.null noexn) @@ -63,4 +36,31 @@ (export "externref" (func 6)) (export "nullexternref" (func 7)) (export "ref" (func 8)) + (func (;0;) (type 1) (result anyref) + global.get $null + ) + (func (;1;) (type 2) (result nullref) + global.get $null + ) + (func (;2;) (type 3) (result funcref) + global.get $nullfunc + ) + (func (;3;) (type 4) (result nullfuncref) + global.get $nullfunc + ) + (func (;4;) (type 5) (result exnref) + global.get $nullexn + ) + (func (;5;) (type 6) (result nullexnref) + global.get $nullexn + ) + (func (;6;) (type 7) (result externref) + global.get $nullextern + ) + (func (;7;) (type 8) (result nullexternref) + global.get $nullextern + ) + (func (;8;) (type 9) (result (ref null $t)) + global.get $nullfunc + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/ref_test.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/ref_test.wast/0.print index ae06d1f526..a690050df1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/ref_test.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/ref_test.wast/0.print @@ -4,6 +4,21 @@ (type $at (;2;) (array i8)) (type (;3;) (func (param externref))) (type (;4;) (func (param i32) (result i32))) + (table $ta (;0;) 10 anyref) + (table $tf (;1;) 10 funcref) + (table $te (;2;) 10 externref) + (export "init" (func 1)) + (export "ref_test_null_data" (func 2)) + (export "ref_test_any" (func 3)) + (export "ref_test_eq" (func 4)) + (export "ref_test_i31" (func 5)) + (export "ref_test_struct" (func 6)) + (export "ref_test_array" (func 7)) + (export "ref_test_null_func" (func 8)) + (export "ref_test_func" (func 9)) + (export "ref_test_null_extern" (func 10)) + (export "ref_test_extern" (func 11)) + (elem (;0;) declare func $f) (func $f (;0;) (type $ft)) (func (;1;) (type 3) (param $x externref) i32.const 0 @@ -156,19 +171,4 @@ ref.test externref i32.add ) - (table $ta (;0;) 10 anyref) - (table $tf (;1;) 10 funcref) - (table $te (;2;) 10 externref) - (export "init" (func 1)) - (export "ref_test_null_data" (func 2)) - (export "ref_test_any" (func 3)) - (export "ref_test_eq" (func 4)) - (export "ref_test_i31" (func 5)) - (export "ref_test_struct" (func 6)) - (export "ref_test_array" (func 7)) - (export "ref_test_null_func" (func 8)) - (export "ref_test_func" (func 9)) - (export "ref_test_null_extern" (func 10)) - (export "ref_test_extern" (func 11)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/ref_test.wast/68.print b/tests/snapshots/testsuite/proposals/memory64/ref_test.wast/68.print index d291d00426..136b30f07a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/ref_test.wast/68.print +++ b/tests/snapshots/testsuite/proposals/memory64/ref_test.wast/68.print @@ -8,6 +8,9 @@ (type $t0' (;6;) (sub $t0 (struct))) (type $t4 (;7;) (sub $t0' (struct (field i32) (field i32)))) (type (;8;) (func)) + (table (;0;) 20 structref) + (export "test-sub" (func 1)) + (export "test-canon" (func 2)) (func $init (;0;) (type 8) i32.const 0 struct.new_default $t0 @@ -413,7 +416,4 @@ end unreachable ) - (table (;0;) 20 structref) - (export "test-sub" (func 1)) - (export "test-canon" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/return_call.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/return_call.wast/0.print index d1e65c0f4d..5d4c4c7bed 100644 --- a/tests/snapshots/testsuite/proposals/memory64/return_call.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/return_call.wast/0.print @@ -13,6 +13,22 @@ (type (;11;) (func (param i64 f64) (result f64))) (type (;12;) (func (param i64 i64) (result i64))) (type (;13;) (func (param i64) (result i32))) + (export "type-i32" (func 12)) + (export "type-i64" (func 13)) + (export "type-f32" (func 14)) + (export "type-f64" (func 15)) + (export "type-first-i32" (func 16)) + (export "type-first-i64" (func 17)) + (export "type-first-f32" (func 18)) + (export "type-first-f64" (func 19)) + (export "type-second-i32" (func 20)) + (export "type-second-i64" (func 21)) + (export "type-second-f32" (func 22)) + (export "type-second-f64" (func 23)) + (export "fac-acc" (func $fac-acc)) + (export "count" (func $count)) + (export "even" (func $even)) + (export "odd" (func $odd)) (func $const-i32 (;0;) (type 0) (result i32) i32.const 306 ) @@ -148,20 +164,4 @@ return_call $even end ) - (export "type-i32" (func 12)) - (export "type-i64" (func 13)) - (export "type-f32" (func 14)) - (export "type-f64" (func 15)) - (export "type-first-i32" (func 16)) - (export "type-first-i64" (func 17)) - (export "type-first-f32" (func 18)) - (export "type-first-f64" (func 19)) - (export "type-second-i32" (func 20)) - (export "type-second-i64" (func 21)) - (export "type-second-f32" (func 22)) - (export "type-second-f64" (func 23)) - (export "fac-acc" (func $fac-acc)) - (export "count" (func $count)) - (export "even" (func $even)) - (export "odd" (func $odd)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/0.print index ba76cb3e1d..be0799bf90 100644 --- a/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/0.print @@ -22,6 +22,31 @@ (type (;20;) (func (param i64 f64 i32 i64) (result i32))) (type (;21;) (func (param i32) (result i64))) (type (;22;) (func (param i64 i64) (result i64))) + (table (;0;) 20 20 funcref) + (table $tab2 (;1;) 1 1 funcref) + (table $tab3 (;2;) 1 1 funcref) + (export "type-i32" (func 19)) + (export "type-i64" (func 20)) + (export "type-f32" (func 21)) + (export "type-f64" (func 22)) + (export "type-index" (func 23)) + (export "type-first-i32" (func 24)) + (export "type-first-i64" (func 25)) + (export "type-first-f32" (func 26)) + (export "type-first-f64" (func 27)) + (export "type-second-i32" (func 28)) + (export "type-second-i64" (func 29)) + (export "type-second-f32" (func 30)) + (export "type-second-f64" (func 31)) + (export "dispatch" (func 32)) + (export "dispatch-structural" (func 33)) + (export "call-tab" (func 36)) + (export "fac" (func $fac)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac $fac-acc $even $odd $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate) + (elem (;1;) (table $tab2) (i32.const 0) func $tab-f1) + (elem (;2;) (table $tab3) (i32.const 0) func $tab-f2) (func $const-i32 (;0;) (type $out-i32) (result i32) i32.const 306 ) @@ -258,29 +283,4 @@ return_call_indirect (type $over-i32) end ) - (table (;0;) 20 20 funcref) - (table $tab2 (;1;) 1 1 funcref) - (table $tab3 (;2;) 1 1 funcref) - (export "type-i32" (func 19)) - (export "type-i64" (func 20)) - (export "type-f32" (func 21)) - (export "type-f64" (func 22)) - (export "type-index" (func 23)) - (export "type-first-i32" (func 24)) - (export "type-first-i64" (func 25)) - (export "type-first-f32" (func 26)) - (export "type-first-f64" (func 27)) - (export "type-second-i32" (func 28)) - (export "type-second-i64" (func 29)) - (export "type-second-f32" (func 30)) - (export "type-second-f64" (func 31)) - (export "dispatch" (func 32)) - (export "dispatch-structural" (func 33)) - (export "call-tab" (func 36)) - (export "fac" (func $fac)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac $fac-acc $even $odd $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate) - (elem (;1;) (table $tab2) (i32.const 0) func $tab-f1) - (elem (;2;) (table $tab3) (i32.const 0) func $tab-f2) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/64.print b/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/64.print index b26615ee35..60d6b9f329 100644 --- a/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/64.print +++ b/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/64.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (table (;0;) 0 funcref) (func $arity-1-vs-0 (;0;) (type 0) i32.const 1 i32.const 0 return_call_indirect (type 0) ) - (table (;0;) 0 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/65.print b/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/65.print index 0e28863cfd..5a4ef5a82d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/65.print +++ b/tests/snapshots/testsuite/proposals/memory64/return_call_indirect.wast/65.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (table (;0;) 0 funcref) (func $arity-2-vs-0 (;0;) (type 0) f64.const 0x1p+1 (;=2;) i32.const 1 i32.const 0 return_call_indirect (type 0) ) - (table (;0;) 0 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/0.print index 451693d9de..9aa4084243 100644 --- a/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/0.print @@ -13,6 +13,44 @@ (type $f64-f32 (;11;) (func (param f64 f32) (result f32))) (type $i64-f64 (;12;) (func (param i64 f64) (result f64))) (type $i64i64-i64 (;13;) (func (param i64 i64) (result i64))) + (global $const-i32 (;0;) (ref $-i32) ref.func $const-i32) + (global $const-i64 (;1;) (ref $-i64) ref.func $const-i64) + (global $const-f32 (;2;) (ref $-f32) ref.func $const-f32) + (global $const-f64 (;3;) (ref $-f64) ref.func $const-f64) + (global $id-i32 (;4;) (ref $i32-i32) ref.func $id-i32) + (global $id-i64 (;5;) (ref $i64-i64) ref.func $id-i64) + (global $id-f32 (;6;) (ref $f32-f32) ref.func $id-f32) + (global $id-f64 (;7;) (ref $f64-f64) ref.func $id-f64) + (global $f32-i32 (;8;) (ref $f32-i32) ref.func $f32-i32) + (global $i32-i64 (;9;) (ref $i32-i64) ref.func $i32-i64) + (global $f64-f32 (;10;) (ref $f64-f32) ref.func $f64-f32) + (global $i64-f64 (;11;) (ref $i64-f64) ref.func $i64-f64) + (global $fac-acc (;12;) (ref $i64i64-i64) ref.func $fac-acc) + (global $count (;13;) (ref $i64-i64) ref.func $count) + (global $even (;14;) (ref $i64-i64) ref.func $even) + (global $odd (;15;) (ref $i64-i64) ref.func $odd) + (export "type-i32" (func 12)) + (export "type-i64" (func 13)) + (export "type-f32" (func 14)) + (export "type-f64" (func 15)) + (export "type-first-i32" (func 16)) + (export "type-first-i64" (func 17)) + (export "type-first-f32" (func 18)) + (export "type-first-f64" (func 19)) + (export "type-second-i32" (func 20)) + (export "type-second-i64" (func 21)) + (export "type-second-f32" (func 22)) + (export "type-second-f64" (func 23)) + (export "null" (func 24)) + (export "fac-acc" (func $fac-acc)) + (export "count" (func $count)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) declare func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64) + (elem (;1;) declare func $fac-acc) + (elem (;2;) declare func $count) + (elem (;3;) declare func $even) + (elem (;4;) declare func $odd) (func $const-i32 (;0;) (type $-i32) (result i32) i32.const 306 ) @@ -168,42 +206,4 @@ return_call_ref $i64-i64 end ) - (global $const-i32 (;0;) (ref $-i32) ref.func $const-i32) - (global $const-i64 (;1;) (ref $-i64) ref.func $const-i64) - (global $const-f32 (;2;) (ref $-f32) ref.func $const-f32) - (global $const-f64 (;3;) (ref $-f64) ref.func $const-f64) - (global $id-i32 (;4;) (ref $i32-i32) ref.func $id-i32) - (global $id-i64 (;5;) (ref $i64-i64) ref.func $id-i64) - (global $id-f32 (;6;) (ref $f32-f32) ref.func $id-f32) - (global $id-f64 (;7;) (ref $f64-f64) ref.func $id-f64) - (global $f32-i32 (;8;) (ref $f32-i32) ref.func $f32-i32) - (global $i32-i64 (;9;) (ref $i32-i64) ref.func $i32-i64) - (global $f64-f32 (;10;) (ref $f64-f32) ref.func $f64-f32) - (global $i64-f64 (;11;) (ref $i64-f64) ref.func $i64-f64) - (global $fac-acc (;12;) (ref $i64i64-i64) ref.func $fac-acc) - (global $count (;13;) (ref $i64-i64) ref.func $count) - (global $even (;14;) (ref $i64-i64) ref.func $even) - (global $odd (;15;) (ref $i64-i64) ref.func $odd) - (export "type-i32" (func 12)) - (export "type-i64" (func 13)) - (export "type-f32" (func 14)) - (export "type-f64" (func 15)) - (export "type-first-i32" (func 16)) - (export "type-first-i64" (func 17)) - (export "type-first-f32" (func 18)) - (export "type-first-f64" (func 19)) - (export "type-second-i32" (func 20)) - (export "type-second-i64" (func 21)) - (export "type-second-f32" (func 22)) - (export "type-second-f64" (func 23)) - (export "null" (func 24)) - (export "fac-acc" (func $fac-acc)) - (export "count" (func $count)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) declare func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64) - (elem (;1;) declare func $fac-acc) - (elem (;2;) declare func $count) - (elem (;3;) declare func $even) - (elem (;4;) declare func $odd) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/33.print b/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/33.print index 11dc25a989..737330a1d8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/33.print +++ b/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/33.print @@ -4,6 +4,7 @@ (type $t2 (;2;) (func (result (ref null $t)))) (type $t3 (;3;) (func (result (ref func)))) (type $t4 (;4;) (func (result funcref))) + (elem (;0;) declare func $f11 $f22 $f33 $f44) (func $f11 (;0;) (type $t1) (result (ref $t)) ref.func $f11 return_call_ref $t1 @@ -40,5 +41,4 @@ ref.func $f44 return_call_ref $t4 ) - (elem (;0;) declare func $f11 $f22 $f33 $f44) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/40.print b/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/40.print index 182b29b127..fe1559354e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/40.print +++ b/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/40.print @@ -1,8 +1,8 @@ (module (type $t (;0;) (func (result i32))) + (export "unreachable" (func 0)) (func (;0;) (type $t) (result i32) unreachable return_call_ref $t ) - (export "unreachable" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/42.print b/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/42.print index d7a4a98905..5dd9aceb2e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/42.print +++ b/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/42.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -9,6 +11,4 @@ ref.func $f return_call_ref $t ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/44.print b/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/44.print index 49bfa9ac42..43026ed34a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/44.print +++ b/tests/snapshots/testsuite/proposals/memory64/return_call_ref.wast/44.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (export "unreachable" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $t) (param i32) (result i32) local.get 0 ) @@ -11,6 +13,4 @@ return_call_ref $t i32.const 0 ) - (export "unreachable" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/select.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/select.wast/0.print index 1c4c3b0541..70dfa7ea6c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/select.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/select.wast/0.print @@ -12,6 +12,62 @@ (type (;10;) (func (result i32))) (type (;11;) (func (result i64))) (type (;12;) (func (param i32))) + (table $tab (;0;) 1 1 funcref) + (table $t (;1;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "select-i32" (func 1)) + (export "select-i64" (func 2)) + (export "select-f32" (func 3)) + (export "select-f64" (func 4)) + (export "select-i32-t" (func 5)) + (export "select-i64-t" (func 6)) + (export "select-f32-t" (func 7)) + (export "select-f64-t" (func 8)) + (export "select-funcref" (func 9)) + (export "select-externref" (func 10)) + (export "join-funcnull" (func 12)) + (export "select-trap-left" (func 13)) + (export "select-trap-right" (func 14)) + (export "select-unreached" (func 15)) + (export "select_unreached_result_1" (func 16)) + (export "select_unreached_result_2" (func 17)) + (export "as-select-first" (func 18)) + (export "as-select-mid" (func 19)) + (export "as-select-last" (func 20)) + (export "as-loop-first" (func 21)) + (export "as-loop-mid" (func 22)) + (export "as-loop-last" (func 23)) + (export "as-if-condition" (func 24)) + (export "as-if-then" (func 25)) + (export "as-if-else" (func 26)) + (export "as-br_if-first" (func 27)) + (export "as-br_if-last" (func 28)) + (export "as-br_table-first" (func 29)) + (export "as-br_table-last" (func 30)) + (export "as-call_indirect-first" (func 32)) + (export "as-call_indirect-mid" (func 33)) + (export "as-call_indirect-last" (func 34)) + (export "as-store-first" (func 35)) + (export "as-store-last" (func 36)) + (export "as-memory.grow-value" (func 37)) + (export "as-call-value" (func 39)) + (export "as-return-value" (func 40)) + (export "as-drop-operand" (func 41)) + (export "as-br-value" (func 42)) + (export "as-local.set-value" (func 43)) + (export "as-local.tee-value" (func 44)) + (export "as-global.set-value" (func 45)) + (export "as-load-operand" (func 46)) + (export "as-unary-operand" (func 47)) + (export "as-binary-operand" (func 48)) + (export "as-test-operand" (func 49)) + (export "as-compare-left" (func 50)) + (export "as-compare-right" (func 51)) + (export "as-convert-operand" (func 52)) + (elem (;0;) (i32.const 0) func $dummy) + (elem (;1;) declare func $tf) + (elem (;2;) (table $t) (i32.const 0) func $func) (func $dummy (;0;) (type $t)) (func (;1;) (type 2) (param i32 i32 i32) (result i32) local.get 0 @@ -432,60 +488,4 @@ i32.wrap_i64 end ) - (table $tab (;0;) 1 1 funcref) - (table $t (;1;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "select-i32" (func 1)) - (export "select-i64" (func 2)) - (export "select-f32" (func 3)) - (export "select-f64" (func 4)) - (export "select-i32-t" (func 5)) - (export "select-i64-t" (func 6)) - (export "select-f32-t" (func 7)) - (export "select-f64-t" (func 8)) - (export "select-funcref" (func 9)) - (export "select-externref" (func 10)) - (export "join-funcnull" (func 12)) - (export "select-trap-left" (func 13)) - (export "select-trap-right" (func 14)) - (export "select-unreached" (func 15)) - (export "select_unreached_result_1" (func 16)) - (export "select_unreached_result_2" (func 17)) - (export "as-select-first" (func 18)) - (export "as-select-mid" (func 19)) - (export "as-select-last" (func 20)) - (export "as-loop-first" (func 21)) - (export "as-loop-mid" (func 22)) - (export "as-loop-last" (func 23)) - (export "as-if-condition" (func 24)) - (export "as-if-then" (func 25)) - (export "as-if-else" (func 26)) - (export "as-br_if-first" (func 27)) - (export "as-br_if-last" (func 28)) - (export "as-br_table-first" (func 29)) - (export "as-br_table-last" (func 30)) - (export "as-call_indirect-first" (func 32)) - (export "as-call_indirect-mid" (func 33)) - (export "as-call_indirect-last" (func 34)) - (export "as-store-first" (func 35)) - (export "as-store-last" (func 36)) - (export "as-memory.grow-value" (func 37)) - (export "as-call-value" (func 39)) - (export "as-return-value" (func 40)) - (export "as-drop-operand" (func 41)) - (export "as-br-value" (func 42)) - (export "as-local.set-value" (func 43)) - (export "as-local.tee-value" (func 44)) - (export "as-global.set-value" (func 45)) - (export "as-load-operand" (func 46)) - (export "as-unary-operand" (func 47)) - (export "as-binary-operand" (func 48)) - (export "as-test-operand" (func 49)) - (export "as-compare-left" (func 50)) - (export "as-compare-right" (func 51)) - (export "as-convert-operand" (func 52)) - (elem (;0;) (i32.const 0) func $dummy) - (elem (;1;) declare func $tf) - (elem (;2;) (table $t) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/select.wast/156.print b/tests/snapshots/testsuite/proposals/memory64/select.wast/156.print index 7206792a79..ec6fa70029 100644 --- a/tests/snapshots/testsuite/proposals/memory64/select.wast/156.print +++ b/tests/snapshots/testsuite/proposals/memory64/select.wast/156.print @@ -1,6 +1,7 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table (;0;) 1 funcref) (func (;0;) (type 0) (result i32) unreachable select @@ -55,5 +56,4 @@ call_indirect (type 1) select ) - (table (;0;) 1 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/0.print index d4864347e9..ebd986b5e6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/0.print @@ -2,6 +2,19 @@ (type (;0;) (func (param i32) (result v128))) (type (;1;) (func (result v128))) (type (;2;) (func (param i32))) + (memory (;0;) 1) + (export "load_data_1" (func 0)) + (export "load_data_2" (func 1)) + (export "load_data_3" (func 2)) + (export "load_data_4" (func 3)) + (export "load_data_5" (func 4)) + (export "store_data_0" (func 5)) + (export "store_data_1" (func 6)) + (export "store_data_2" (func 7)) + (export "store_data_3" (func 8)) + (export "store_data_4" (func 9)) + (export "store_data_5" (func 10)) + (export "store_data_6" (func 11)) (func (;0;) (type 0) (param $i i32) (result v128) local.get $i v128.load @@ -69,19 +82,6 @@ v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 v128.store offset=1 align=1 ) - (memory (;0;) 1) - (export "load_data_1" (func 0)) - (export "load_data_2" (func 1)) - (export "load_data_3" (func 2)) - (export "load_data_4" (func 3)) - (export "load_data_5" (func 4)) - (export "store_data_0" (func 5)) - (export "store_data_1" (func 6)) - (export "store_data_2" (func 7)) - (export "store_data_3" (func 8)) - (export "store_data_4" (func 9)) - (export "store_data_5" (func 10)) - (export "store_data_6" (func 11)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\10\11\12\13\14\15") (data (;1;) (i32.const 65505) "\16\17\18\19 !\22#$%&'()01") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/41.print b/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/41.print index f49ab4b353..e955271e9e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/41.print +++ b/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/41.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "v128.load_offset_65521" (func 0)) (func (;0;) (type 0) i32.const 0 v128.load offset=65521 drop ) - (memory (;0;) 1) - (export "v128.load_offset_65521" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/44.print b/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/44.print index 63e3098d91..9dcf741c0f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/44.print +++ b/tests/snapshots/testsuite/proposals/memory64/simd_address.wast/44.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "v128.store_offset_65521" (func 0)) (func (;0;) (type 0) i32.const 0 v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000 v128.store offset=65521 ) - (memory (;0;) 1) - (export "v128.store_offset_65521" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/0.print index b2f0c3763e..52581ca945 100644 --- a/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/0.print @@ -8,6 +8,42 @@ (type (;6;) (func (param v128 i64) (result v128))) (type (;7;) (func (param v128 f64) (result v128))) (type (;8;) (func (param v128 v128) (result v128))) + (export "i8x16_extract_lane_s-first" (func 0)) + (export "i8x16_extract_lane_s-last" (func 1)) + (export "i8x16_extract_lane_u-first" (func 2)) + (export "i8x16_extract_lane_u-last" (func 3)) + (export "i16x8_extract_lane_s-first" (func 4)) + (export "i16x8_extract_lane_s-last" (func 5)) + (export "i16x8_extract_lane_u-first" (func 6)) + (export "i16x8_extract_lane_u-last" (func 7)) + (export "i32x4_extract_lane-first" (func 8)) + (export "i32x4_extract_lane-last" (func 9)) + (export "f32x4_extract_lane-first" (func 10)) + (export "f32x4_extract_lane-last" (func 11)) + (export "i8x16_replace_lane-first" (func 12)) + (export "i8x16_replace_lane-last" (func 13)) + (export "i16x8_replace_lane-first" (func 14)) + (export "i16x8_replace_lane-last" (func 15)) + (export "i32x4_replace_lane-first" (func 16)) + (export "i32x4_replace_lane-last" (func 17)) + (export "f32x4_replace_lane-first" (func 18)) + (export "f32x4_replace_lane-last" (func 19)) + (export "i64x2_extract_lane-first" (func 20)) + (export "i64x2_extract_lane-last" (func 21)) + (export "f64x2_extract_lane-first" (func 22)) + (export "f64x2_extract_lane-last" (func 23)) + (export "i64x2_replace_lane-first" (func 24)) + (export "i64x2_replace_lane-last" (func 25)) + (export "f64x2_replace_lane-first" (func 26)) + (export "f64x2_replace_lane-last" (func 27)) + (export "v8x16_swizzle" (func 28)) + (export "v8x16_shuffle-1" (func 29)) + (export "v8x16_shuffle-2" (func 30)) + (export "v8x16_shuffle-3" (func 31)) + (export "v8x16_shuffle-4" (func 32)) + (export "v8x16_shuffle-5" (func 33)) + (export "v8x16_shuffle-6" (func 34)) + (export "v8x16_shuffle-7" (func 35)) (func (;0;) (type 0) (param v128) (result i32) local.get 0 i8x16.extract_lane_s 0 @@ -172,40 +208,4 @@ local.get 1 i8x16.shuffle 0 0 0 0 0 0 0 0 16 16 16 16 16 16 16 16 ) - (export "i8x16_extract_lane_s-first" (func 0)) - (export "i8x16_extract_lane_s-last" (func 1)) - (export "i8x16_extract_lane_u-first" (func 2)) - (export "i8x16_extract_lane_u-last" (func 3)) - (export "i16x8_extract_lane_s-first" (func 4)) - (export "i16x8_extract_lane_s-last" (func 5)) - (export "i16x8_extract_lane_u-first" (func 6)) - (export "i16x8_extract_lane_u-last" (func 7)) - (export "i32x4_extract_lane-first" (func 8)) - (export "i32x4_extract_lane-last" (func 9)) - (export "f32x4_extract_lane-first" (func 10)) - (export "f32x4_extract_lane-last" (func 11)) - (export "i8x16_replace_lane-first" (func 12)) - (export "i8x16_replace_lane-last" (func 13)) - (export "i16x8_replace_lane-first" (func 14)) - (export "i16x8_replace_lane-last" (func 15)) - (export "i32x4_replace_lane-first" (func 16)) - (export "i32x4_replace_lane-last" (func 17)) - (export "f32x4_replace_lane-first" (func 18)) - (export "f32x4_replace_lane-last" (func 19)) - (export "i64x2_extract_lane-first" (func 20)) - (export "i64x2_extract_lane-last" (func 21)) - (export "f64x2_extract_lane-first" (func 22)) - (export "f64x2_extract_lane-last" (func 23)) - (export "i64x2_replace_lane-first" (func 24)) - (export "i64x2_replace_lane-last" (func 25)) - (export "f64x2_replace_lane-first" (func 26)) - (export "f64x2_replace_lane-last" (func 27)) - (export "v8x16_swizzle" (func 28)) - (export "v8x16_shuffle-1" (func 29)) - (export "v8x16_shuffle-2" (func 30)) - (export "v8x16_shuffle-3" (func 31)) - (export "v8x16_shuffle-4" (func 32)) - (export "v8x16_shuffle-5" (func 33)) - (export "v8x16_shuffle-6" (func 34)) - (export "v8x16_shuffle-7" (func 35)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/360.print b/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/360.print index 4950536dec..ee382606ad 100644 --- a/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/360.print +++ b/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/360.print @@ -6,6 +6,24 @@ (type (;4;) (func (param v128 f64) (result f64))) (type (;5;) (func (param v128 i32 v128) (result v128))) (type (;6;) (func (param v128 i32 v128 i32) (result v128))) + (export "i8x16_extract_lane_s" (func 0)) + (export "i8x16_extract_lane_u" (func 1)) + (export "i16x8_extract_lane_s" (func 2)) + (export "i16x8_extract_lane_u" (func 3)) + (export "i32x4_extract_lane" (func 4)) + (export "f32x4_extract_lane" (func 5)) + (export "i64x2_extract_lane" (func 6)) + (export "f64x2_extract_lane" (func 7)) + (export "i8x16_replace_lane-s" (func 8)) + (export "i8x16_replace_lane-u" (func 9)) + (export "i16x8_replace_lane-s" (func 10)) + (export "i16x8_replace_lane-u" (func 11)) + (export "i32x4_replace_lane" (func 12)) + (export "f32x4_replace_lane" (func 13)) + (export "i64x2_replace_lane" (func 14)) + (export "f64x2_replace_lane" (func 15)) + (export "as-v8x16_swizzle-operand" (func 16)) + (export "as-v8x16_shuffle-operands" (func 17)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -118,22 +136,4 @@ i8x16.replace_lane 15 i8x16.shuffle 16 1 18 3 20 5 22 7 24 9 26 11 28 13 30 15 ) - (export "i8x16_extract_lane_s" (func 0)) - (export "i8x16_extract_lane_u" (func 1)) - (export "i16x8_extract_lane_s" (func 2)) - (export "i16x8_extract_lane_u" (func 3)) - (export "i32x4_extract_lane" (func 4)) - (export "f32x4_extract_lane" (func 5)) - (export "i64x2_extract_lane" (func 6)) - (export "f64x2_extract_lane" (func 7)) - (export "i8x16_replace_lane-s" (func 8)) - (export "i8x16_replace_lane-u" (func 9)) - (export "i16x8_replace_lane-s" (func 10)) - (export "i16x8_replace_lane-u" (func 11)) - (export "i32x4_replace_lane" (func 12)) - (export "f32x4_replace_lane" (func 13)) - (export "i64x2_replace_lane" (func 14)) - (export "f64x2_replace_lane" (func 15)) - (export "as-v8x16_swizzle-operand" (func 16)) - (export "as-v8x16_shuffle-operands" (func 17)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/379.print b/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/379.print index 9ad2453bba..964c1d4a11 100644 --- a/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/379.print +++ b/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/379.print @@ -6,6 +6,24 @@ (type (;4;) (func (param v128 i32) (result i32))) (type (;5;) (func (param v128 i64) (result i32))) (type (;6;) (func (param v128 v128) (result i32))) + (export "as-i8x16_splat-operand" (func 0)) + (export "as-i16x8_splat-operand" (func 1)) + (export "as-i32x4_splat-operand" (func 2)) + (export "as-f32x4_splat-operand" (func 3)) + (export "as-i64x2_splat-operand" (func 4)) + (export "as-f64x2_splat-operand" (func 5)) + (export "as-i8x16_add-operands" (func 6)) + (export "as-i16x8_add-operands" (func 7)) + (export "as-i32x4_add-operands" (func 8)) + (export "as-i64x2_add-operands" (func 9)) + (export "swizzle-as-i8x16_add-operands" (func 10)) + (export "shuffle-as-i8x16_sub-operands" (func 11)) + (export "as-i8x16_any_true-operand" (func 12)) + (export "as-i16x8_any_true-operand" (func 13)) + (export "as-i32x4_any_true-operand1" (func 14)) + (export "as-i32x4_any_true-operand2" (func 15)) + (export "swizzle-as-i8x16_all_true-operands" (func 16)) + (export "shuffle-as-i8x16_any_true-operands" (func 17)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i8x16.extract_lane_s 0 @@ -126,22 +144,4 @@ i8x16.shuffle 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 v128.any_true ) - (export "as-i8x16_splat-operand" (func 0)) - (export "as-i16x8_splat-operand" (func 1)) - (export "as-i32x4_splat-operand" (func 2)) - (export "as-f32x4_splat-operand" (func 3)) - (export "as-i64x2_splat-operand" (func 4)) - (export "as-f64x2_splat-operand" (func 5)) - (export "as-i8x16_add-operands" (func 6)) - (export "as-i16x8_add-operands" (func 7)) - (export "as-i32x4_add-operands" (func 8)) - (export "as-i64x2_add-operands" (func 9)) - (export "swizzle-as-i8x16_add-operands" (func 10)) - (export "shuffle-as-i8x16_sub-operands" (func 11)) - (export "as-i8x16_any_true-operand" (func 12)) - (export "as-i16x8_any_true-operand" (func 13)) - (export "as-i32x4_any_true-operand1" (func 14)) - (export "as-i32x4_any_true-operand2" (func 15)) - (export "swizzle-as-i8x16_all_true-operands" (func 16)) - (export "shuffle-as-i8x16_any_true-operands" (func 17)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/399.print b/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/399.print index 93fdf8651f..13d06074fb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/399.print +++ b/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/399.print @@ -3,6 +3,13 @@ (type (;1;) (func (param v128 f32) (result v128))) (type (;2;) (func (param v128 i64) (result v128))) (type (;3;) (func (param v128 f64) (result v128))) + (memory (;0;) 1) + (export "as-v128_store-operand-1" (func 0)) + (export "as-v128_store-operand-2" (func 1)) + (export "as-v128_store-operand-3" (func 2)) + (export "as-v128_store-operand-4" (func 3)) + (export "as-v128_store-operand-5" (func 4)) + (export "as-v128_store-operand-6" (func 5)) (func (;0;) (type 0) (param v128 i32) (result v128) i32.const 0 local.get 0 @@ -57,11 +64,4 @@ i32.const 0 v128.load ) - (memory (;0;) 1) - (export "as-v128_store-operand-1" (func 0)) - (export "as-v128_store-operand-2" (func 1)) - (export "as-v128_store-operand-3" (func 2)) - (export "as-v128_store-operand-4" (func 3)) - (export "as-v128_store-operand-5" (func 4)) - (export "as-v128_store-operand-6" (func 5)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/406.print b/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/406.print index 1678bb6414..e8cd025ff2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/406.print +++ b/tests/snapshots/testsuite/proposals/memory64/simd_lane.wast/406.print @@ -5,6 +5,16 @@ (type (;3;) (func (param v128 v128) (result v128))) (type (;4;) (func (param v128) (result i64))) (type (;5;) (func (param v128 f64) (result v128))) + (global $g (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (global $h (;1;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (export "as-if-condition-value" (func 0)) + (export "as-return-value-1" (func 1)) + (export "as-local_set-value" (func 2)) + (export "as-global_set-value-1" (func 3)) + (export "as-return-value-2" (func 4)) + (export "as-global_set-value-2" (func 5)) + (export "as-local_set-value-1" (func 6)) + (export "as-global_set-value-3" (func 7)) (func (;0;) (type 0) (param v128) (result i32) local.get 0 i8x16.extract_lane_s 0 @@ -66,14 +76,4 @@ global.get $g return ) - (global $g (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (global $h (;1;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (export "as-if-condition-value" (func 0)) - (export "as-return-value-1" (func 1)) - (export "as-local_set-value" (func 2)) - (export "as-global_set-value-1" (func 3)) - (export "as-return-value-2" (func 4)) - (export "as-global_set-value-2" (func 5)) - (export "as-local_set-value-1" (func 6)) - (export "as-global_set-value-3" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/simd_memory-multi.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/simd_memory-multi.wast/0.print index e4c816f3e8..a98bb4cc3a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/simd_memory-multi.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/simd_memory-multi.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (memory $m (;1;) 1) (func (;0;) (type 0) (local $v v128) i32.const 0 @@ -87,6 +89,4 @@ local.get $v v128.store8_lane $m 1 ) - (memory (;0;) 1) - (memory $m (;1;) 1) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/start0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/start0.wast/0.print index a9a7a8236a..b311c53b09 100644 --- a/tests/snapshots/testsuite/proposals/memory64/start0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/start0.wast/0.print @@ -1,6 +1,13 @@ (module (type (;0;) (func)) (type (;1;) (func (result i32))) + (memory (;0;) 0) + (memory $m (;1;) 1 1) + (memory $n (;2;) 1) + (export "inc" (func $inc)) + (export "get" (func $get)) + (export "getn" (func $getn)) + (start $main) (func $inc (;0;) (type 0) i32.const 0 i32.const 0 @@ -24,12 +31,5 @@ call $inc call $inc ) - (memory (;0;) 0) - (memory $m (;1;) 1 1) - (memory $n (;2;) 1) - (export "inc" (func $inc)) - (export "get" (func $get)) - (export "getn" (func $getn)) - (start $main) (data (;0;) (memory $m) (i32.const 0) "A") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/store.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/store.wast/0.print index 1ba30be7f7..27d14975fd 100644 --- a/tests/snapshots/testsuite/proposals/memory64/store.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/store.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "load1" (func 0)) + (export "load2" (func 1)) + (export "store1" (func 2)) + (export "store2" (func 3)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -19,10 +25,4 @@ local.get 1 i64.store $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "load1" (func 0)) - (export "load2" (func 1)) - (export "store1" (func 2)) - (export "store2" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/store.wast/13.print b/tests/snapshots/testsuite/proposals/memory64/store.wast/13.print index ba12e11e4a..ec821a5146 100644 --- a/tests/snapshots/testsuite/proposals/memory64/store.wast/13.print +++ b/tests/snapshots/testsuite/proposals/memory64/store.wast/13.print @@ -3,6 +3,10 @@ (type (;1;) (func (param i32 i64))) (import "M1" "mem" (memory $mem1 (;0;) 1)) (import "M2" "mem" (memory $mem2 (;1;) 1)) + (export "load1" (func 0)) + (export "load2" (func 1)) + (export "store1" (func 2)) + (export "store2" (func 3)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -21,8 +25,4 @@ local.get 1 i64.store $mem2 ) - (export "load1" (func 0)) - (export "load2" (func 1)) - (export "store1" (func 2)) - (export "store2" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/store.wast/20.print b/tests/snapshots/testsuite/proposals/memory64/store.wast/20.print index bbd283207b..b1c4237750 100644 --- a/tests/snapshots/testsuite/proposals/memory64/store.wast/20.print +++ b/tests/snapshots/testsuite/proposals/memory64/store.wast/20.print @@ -2,6 +2,11 @@ (type (;0;) (func (param i32) (result i32))) (type (;1;) (func)) (import "M" "mem" (memory $mem1 (;0;) 2)) + (memory $mem2 (;1;) 3) + (export "read1" (func 0)) + (export "read2" (func 1)) + (export "copy-1-to-2" (func 2)) + (export "copy-2-to-1" (func 3)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load8_u @@ -50,11 +55,6 @@ br $cont end ) - (memory $mem2 (;1;) 3) - (export "read1" (func 0)) - (export "read2" (func 1)) - (export "copy-1-to-2" (func 2)) - (export "copy-2-to-1" (func 3)) (data (;0;) (i32.const 20) "\01\02\03\04\05") (data (;1;) (memory $mem2) (i32.const 50) "\0a\0b\0c\0d\0e") ) diff --git a/tests/snapshots/testsuite/proposals/memory64/store.wast/43.print b/tests/snapshots/testsuite/proposals/memory64/store.wast/43.print index 8bbd7d4a32..c2f3130424 100644 --- a/tests/snapshots/testsuite/proposals/memory64/store.wast/43.print +++ b/tests/snapshots/testsuite/proposals/memory64/store.wast/43.print @@ -1,5 +1,15 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "as-block-value" (func 0)) + (export "as-loop-value" (func 1)) + (export "as-br-value" (func 2)) + (export "as-br_if-value" (func 3)) + (export "as-br_if-value-cond" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-return-value" (func 6)) + (export "as-if-then" (func 7)) + (export "as-if-else" (func 8)) (func (;0;) (type 0) block ;; label = @1 i32.const 0 @@ -72,14 +82,4 @@ i32.store end ) - (memory (;0;) 1) - (export "as-block-value" (func 0)) - (export "as-loop-value" (func 1)) - (export "as-br-value" (func 2)) - (export "as-br_if-value" (func 3)) - (export "as-br_if-value-cond" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-return-value" (func 6)) - (export "as-if-then" (func 7)) - (export "as-if-else" (func 8)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/store.wast/5.print b/tests/snapshots/testsuite/proposals/memory64/store.wast/5.print index 1bbe6f2a69..d7420ccc26 100644 --- a/tests/snapshots/testsuite/proposals/memory64/store.wast/5.print +++ b/tests/snapshots/testsuite/proposals/memory64/store.wast/5.print @@ -1,6 +1,10 @@ (module $M1 (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "load" (func 0)) + (export "store" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -10,8 +14,4 @@ local.get 1 i64.store ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "load" (func 0)) - (export "store" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/store.wast/7.print b/tests/snapshots/testsuite/proposals/memory64/store.wast/7.print index 544f803d9a..d937f5f25a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/store.wast/7.print +++ b/tests/snapshots/testsuite/proposals/memory64/store.wast/7.print @@ -1,6 +1,10 @@ (module $M2 (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "load" (func 0)) + (export "store" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -10,8 +14,4 @@ local.get 1 i64.store ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "load" (func 0)) - (export "store" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/store0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/store0.wast/0.print index 1ba30be7f7..27d14975fd 100644 --- a/tests/snapshots/testsuite/proposals/memory64/store0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/store0.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "load1" (func 0)) + (export "load2" (func 1)) + (export "store1" (func 2)) + (export "store2" (func 3)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -19,10 +25,4 @@ local.get 1 i64.store $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "load1" (func 0)) - (export "load2" (func 1)) - (export "store1" (func 2)) - (export "store2" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/store1.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/store1.wast/0.print index 1bbe6f2a69..d7420ccc26 100644 --- a/tests/snapshots/testsuite/proposals/memory64/store1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/store1.wast/0.print @@ -1,6 +1,10 @@ (module $M1 (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "load" (func 0)) + (export "store" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -10,8 +14,4 @@ local.get 1 i64.store ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "load" (func 0)) - (export "store" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/store1.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/store1.wast/2.print index 544f803d9a..d937f5f25a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/store1.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/store1.wast/2.print @@ -1,6 +1,10 @@ (module $M2 (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "load" (func 0)) + (export "store" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -10,8 +14,4 @@ local.get 1 i64.store ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "load" (func 0)) - (export "store" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/store1.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/store1.wast/8.print index ba12e11e4a..ec821a5146 100644 --- a/tests/snapshots/testsuite/proposals/memory64/store1.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/store1.wast/8.print @@ -3,6 +3,10 @@ (type (;1;) (func (param i32 i64))) (import "M1" "mem" (memory $mem1 (;0;) 1)) (import "M2" "mem" (memory $mem2 (;1;) 1)) + (export "load1" (func 0)) + (export "load2" (func 1)) + (export "store1" (func 2)) + (export "store2" (func 3)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -21,8 +25,4 @@ local.get 1 i64.store $mem2 ) - (export "load1" (func 0)) - (export "load2" (func 1)) - (export "store1" (func 2)) - (export "store2" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/struct.wast/16.print b/tests/snapshots/testsuite/proposals/memory64/struct.wast/16.print index 83697b5886..4f57641849 100644 --- a/tests/snapshots/testsuite/proposals/memory64/struct.wast/16.print +++ b/tests/snapshots/testsuite/proposals/memory64/struct.wast/16.print @@ -1,6 +1,8 @@ (module (type $t (;0;) (struct (field i32) (field (mut i32)))) (type (;1;) (func)) + (export "struct.get-null" (func 0)) + (export "struct.set-null" (func 1)) (func (;0;) (type 1) (local (ref null $t)) local.get 0 @@ -13,6 +15,4 @@ i32.const 0 struct.set $t 1 ) - (export "struct.get-null" (func 0)) - (export "struct.set-null" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/struct.wast/19.print b/tests/snapshots/testsuite/proposals/memory64/struct.wast/19.print index 590c2cbc62..967dc450b3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/struct.wast/19.print +++ b/tests/snapshots/testsuite/proposals/memory64/struct.wast/19.print @@ -2,6 +2,20 @@ (type $s (;0;) (struct (field i8) (field (mut i8)) (field i16) (field (mut i16)))) (type (;1;) (func (result i32 i32))) (type (;2;) (func (param i32) (result i32 i32))) + (global (;0;) (ref $s) i32.const 0 i32.const 1 i32.const 2 i32.const 3 struct.new $s) + (global (;1;) (ref $s) i32.const 254 i32.const 255 i32.const 65534 i32.const 65535 struct.new $s) + (export "g0" (global 0)) + (export "g1" (global 1)) + (export "get_packed_g0_0" (func 0)) + (export "get_packed_g1_0" (func 1)) + (export "get_packed_g0_1" (func 2)) + (export "get_packed_g1_1" (func 3)) + (export "get_packed_g0_2" (func 4)) + (export "get_packed_g1_2" (func 5)) + (export "get_packed_g0_3" (func 6)) + (export "get_packed_g1_3" (func 7)) + (export "set_get_packed_g0_1" (func 8)) + (export "set_get_packed_g0_3" (func 9)) (func (;0;) (type 1) (result i32 i32) global.get 0 struct.get_s $s 0 @@ -68,18 +82,4 @@ global.get 0 struct.get_u $s 3 ) - (global (;0;) (ref $s) i32.const 0 i32.const 1 i32.const 2 i32.const 3 struct.new $s) - (global (;1;) (ref $s) i32.const 254 i32.const 255 i32.const 65534 i32.const 65535 struct.new $s) - (export "g0" (global 0)) - (export "g1" (global 1)) - (export "get_packed_g0_0" (func 0)) - (export "get_packed_g1_0" (func 1)) - (export "get_packed_g0_1" (func 2)) - (export "get_packed_g1_1" (func 3)) - (export "get_packed_g0_2" (func 4)) - (export "get_packed_g1_2" (func 5)) - (export "get_packed_g0_3" (func 6)) - (export "get_packed_g1_3" (func 7)) - (export "set_get_packed_g0_1" (func 8)) - (export "set_get_packed_g0_3" (func 9)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/struct.wast/7.print b/tests/snapshots/testsuite/proposals/memory64/struct.wast/7.print index 64caae268f..0e20bcc3c3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/struct.wast/7.print +++ b/tests/snapshots/testsuite/proposals/memory64/struct.wast/7.print @@ -5,6 +5,15 @@ (type (;3;) (func (result f32))) (type (;4;) (func (param (ref $vec) f32) (result f32))) (type (;5;) (func (param f32) (result f32))) + (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) f32.const 0x1.8p+1 (;=3;) struct.new $vec) + (global (;1;) (ref $vec) struct.new_default $vec) + (export "new" (func 0)) + (export "get_0_0" (func 2)) + (export "get_vec_0" (func 4)) + (export "get_0_y" (func 6)) + (export "get_vec_y" (func 8)) + (export "set_get_y" (func 10)) + (export "set_get_1" (func 12)) (func (;0;) (type 1) (result anyref) struct.new_default $vec ) @@ -64,13 +73,4 @@ local.get $y call $set_get_1 ) - (global (;0;) (ref $vec) f32.const 0x1p+0 (;=1;) f32.const 0x1p+1 (;=2;) f32.const 0x1.8p+1 (;=3;) struct.new $vec) - (global (;1;) (ref $vec) struct.new_default $vec) - (export "new" (func 0)) - (export "get_0_0" (func 2)) - (export "get_vec_0" (func 4)) - (export "get_0_y" (func 6)) - (export "get_vec_y" (func 8)) - (export "set_get_y" (func 10)) - (export "set_get_1" (func 12)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table-sub.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/table-sub.wast/0.print index cc4f3a21c3..41ace13823 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table-sub.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/table-sub.wast/0.print @@ -1,5 +1,8 @@ (module (type $t (;0;) (func)) + (table $t1 (;0;) 10 funcref) + (table $t2 (;1;) 10 (ref null $t)) + (elem $el (;0;) funcref) (func $f (;0;) (type $t) i32.const 0 i32.const 1 @@ -10,7 +13,4 @@ i32.const 2 table.copy $t1 $t2 ) - (table $t1 (;0;) 10 funcref) - (table $t2 (;1;) 10 (ref null $t)) - (elem $el (;0;) funcref) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table.wast/42.print b/tests/snapshots/testsuite/proposals/memory64/table.wast/42.print index 3122c840d6..0b18be026e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table.wast/42.print +++ b/tests/snapshots/testsuite/proposals/memory64/table.wast/42.print @@ -1,6 +1,6 @@ (module (type $f (;0;) (func)) - (func $f (;0;) (type $f)) (global (;0;) (ref $f) ref.func $f) (export "g" (global 0)) + (func $f (;0;) (type $f)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table.wast/44.print b/tests/snapshots/testsuite/proposals/memory64/table.wast/44.print index 1639a3daa1..14c7c9db29 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table.wast/44.print +++ b/tests/snapshots/testsuite/proposals/memory64/table.wast/44.print @@ -2,6 +2,16 @@ (type $dummy (;0;) (func)) (type (;1;) (func (result funcref))) (import "M" "g" (global $g (;0;) (ref $dummy))) + (table $t1 (;0;) 10 funcref) + (table $t2 (;1;) 10 funcref ref.func $dummy) + (table $t3 (;2;) 10 (ref $dummy) ref.func $dummy) + (table $t4 (;3;) 10 funcref global.get $g) + (table $t5 (;4;) 10 (ref $dummy) global.get $g) + (export "get1" (func 1)) + (export "get2" (func 2)) + (export "get3" (func 3)) + (export "get4" (func 4)) + (export "get5" (func 5)) (func $dummy (;0;) (type $dummy)) (func (;1;) (type 1) (result funcref) i32.const 1 @@ -23,14 +33,4 @@ i32.const 9 table.get $t5 ) - (table $t1 (;0;) 10 funcref) - (table $t2 (;1;) 10 funcref ref.func $dummy) - (table $t3 (;2;) 10 (ref $dummy) ref.func $dummy) - (table $t4 (;3;) 10 funcref global.get $g) - (table $t5 (;4;) 10 (ref $dummy) global.get $g) - (export "get1" (func 1)) - (export "get2" (func 2)) - (export "get3" (func 3)) - (export "get4" (func 4)) - (export "get5" (func 5)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/0.print index 0677b5f604..0c0796e0d6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/0.print @@ -1,5 +1,10 @@ (module (type (;0;) (func (result i32))) + (export "ef0" (func 0)) + (export "ef1" (func 1)) + (export "ef2" (func 2)) + (export "ef3" (func 3)) + (export "ef4" (func 4)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -15,9 +20,4 @@ (func (;4;) (type 0) (result i32) i32.const 4 ) - (export "ef0" (func 0)) - (export "ef1" (func 1)) - (export "ef2" (func 2)) - (export "ef3" (func 3)) - (export "ef4" (func 4)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1056.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1056.print index 6bc55b4649..0f5db861c7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1056.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1056.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1118.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1118.print index 52bdb9a394..87eee7c116 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1118.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1118.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 3 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1120.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1120.print index 3cfcbe71d0..c10e333c4a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1120.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1120.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 2 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1122.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1122.print index 02616c6ed6..676bd13829 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1122.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1122.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 6 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1124.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1124.print index c232e40ae1..2ad0c123f4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1124.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1124.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 2 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1126.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1126.print index 95fe77fd07..f2532bb171 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1126.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1126.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1128.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1128.print index d47958c90d..858c0c8330 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1128.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1128.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1130.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1130.print index 63417804f1..76f5f879d6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1130.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1130.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1132.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1132.print index d7f495ea16..50ee553820 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1132.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1132.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1134.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1134.print index f7dda7f7c7..b28b518d32 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1134.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1134.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1136.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1136.print index e934dda778..799950a487 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1136.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1136.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1138.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1138.print index 0cde0cc46e..b3126b36b5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1138.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1138.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1140.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1140.print index a7439b6b59..4653f529de 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1140.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1140.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 3 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1142.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1142.print index 4d3d5ae72f..910de4ec2b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1142.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1142.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 2 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1144.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1144.print index 94ddcfa771..77e0d8b687 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1144.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1144.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 6 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1146.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1146.print index f830daf9f1..32e06b6904 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1146.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1146.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 2 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1148.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1148.print index c0602b7fd1..35e7dc485b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1148.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1148.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1150.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1150.print index bd1ee4120a..fe67a4fbf0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1150.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1150.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1152.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1152.print index b40ded2704..914158292d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1152.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1152.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1154.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1154.print index 8377e6e9fd..67bb0b2ad6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1154.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1154.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1156.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1156.print index 38db45cb7f..77495d98fc 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1156.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1156.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1158.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1158.print index 628a0623c8..f09f48d980 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1158.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1158.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1160.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1160.print index 8cff72e3c5..5716542ed0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1160.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1160.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1162.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1162.print index b1c1692338..41465b6967 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1162.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1162.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 3 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1164.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1164.print index 12b79afdd4..44d6941a18 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1164.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1164.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 2 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1166.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1166.print index e68c2b8b21..11ebae44c7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1166.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1166.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 6 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1168.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1168.print index 140f24747a..338b3b4cf3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1168.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1168.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 2 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1170.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1170.print index 247e03b018..f0f84adc8c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1170.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1170.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1172.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1172.print index 01dd651224..f4062a8b53 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1172.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1172.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1174.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1174.print index e56e2c7c8d..fd282ddab8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1174.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1174.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1176.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1176.print index 629bb4cadf..de0ad22123 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1176.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1176.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1178.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1178.print index 0f0e4bda14..8b54c92efe 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1178.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1178.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1180.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1180.print index cecdc30019..70b779ee00 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1180.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1180.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1182.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1182.print index f68f505b5b..0743db09e3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1182.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1182.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1184.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1184.print index 20c3fedc70..44d69a2e39 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1184.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1184.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 3 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1186.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1186.print index 4b0b7a8e3c..d4ca85ad98 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1186.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1186.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 2 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1188.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1188.print index 4311552f8f..11fe0204c3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1188.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1188.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 6 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1190.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1190.print index 510ae19e4a..16f71eef73 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1190.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1190.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 2 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1192.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1192.print index 2e678a3b93..d003fc8567 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1192.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1192.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1194.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1194.print index ac5ee5513a..11a0a9bbc0 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1194.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1194.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1196.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1196.print index c502675352..1409a26b22 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1196.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1196.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1198.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1198.print index 77a1373737..ba2a3d09ba 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1198.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1198.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1200.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1200.print index 92792ab529..b10e53060e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1200.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1200.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1202.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1202.print index 6aebc52a08..5b5d72f67e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1202.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1202.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1204.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1204.print index c2426bf0e0..7d8762f15a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1204.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1204.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) i64 30 30 funcref) + (table $t1 (;1;) i64 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i64.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) i64 30 30 funcref) - (table $t1 (;1;) i64 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1206.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1206.print index 90e0f29d57..458d62d153 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1206.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1206.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1240.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1240.print index 4d44749279..f3acd2415f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1240.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1240.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/126.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/126.print index a046f92e82..3468438033 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/126.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/126.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1274.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1274.print index 94eaba103c..079c638556 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1274.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1274.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1308.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1308.print index 32ae10e115..c2ca589462 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1308.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1308.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 23) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 23) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1342.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1342.print index 33ceb42825..4a893c7360 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1342.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1342.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 11) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 11) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1376.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1376.print index 94eaba103c..079c638556 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1376.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1376.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1410.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1410.print index 5077bb006c..6f5cdc4f55 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1410.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1410.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 21) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 21) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1444.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1444.print index 94eaba103c..079c638556 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1444.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1444.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1478.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1478.print index a36cc1e4bb..c6d32faa9b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1478.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1478.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 21) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 21) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1512.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1512.print index c590adafc8..c4ca18bb9c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1512.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1512.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 128 128 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 112) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 128 128 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 112) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1642.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1642.print index 8c02def315..fe26eea5ba 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1642.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/1642.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 128 128 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 128 128 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/188.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/188.print index 16aedb58bf..20a6e92772 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/188.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/188.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/2.print index 32a9c385a4..ff26fa30df 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/2.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -33,15 +44,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/250.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/250.print index 350bc90311..5f30ba0407 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/250.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/250.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/312.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/312.print index 5295b23e4d..df4bf241b5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/312.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/312.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/374.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/374.print index f76d19b7bb..65e074706e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/374.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/374.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/436.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/436.print index b2a4e5b0ad..74b7eea2ea 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/436.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/436.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/498.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/498.print index c1bfbaff8a..c75e10c494 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/498.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/498.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/560.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/560.print index 06e65c6427..760a2dbe78 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/560.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/560.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -33,15 +44,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/622.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/622.print index 1917df62bc..c13ffceb7b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/622.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/622.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/64.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/64.print index f23b6240c0..dfe7294611 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/64.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/64.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/684.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/684.print index 9e7c4d755c..5cb59bc827 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/684.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/684.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/746.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/746.print index 566608c914..da840f245b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/746.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/746.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/808.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/808.print index 3726c8ad8c..43b1e4d804 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/808.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/808.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/870.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/870.print index db599df887..01f701a496 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/870.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/870.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/932.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/932.print index 02ee0d0c11..cb3c7d566e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/932.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/932.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/994.print b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/994.print index e7fb6770b7..88b397fd58 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/994.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy.wast/994.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_copy_mixed.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/table_copy_mixed.wast/0.print index 51534b1fdd..91dc83a9d7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_copy_mixed.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_copy_mixed.wast/0.print @@ -1,5 +1,11 @@ (module (type (;0;) (func)) + (table $t32 (;0;) 30 30 funcref) + (table $t64 (;1;) i64 30 30 funcref) + (export "test32" (func 0)) + (export "test64" (func 1)) + (export "test_64to32" (func 2)) + (export "test_32to64" (func 3)) (func (;0;) (type 0) i32.const 13 i32.const 2 @@ -24,10 +30,4 @@ i32.const 3 table.copy $t64 $t32 ) - (table $t32 (;0;) 30 30 funcref) - (table $t64 (;1;) i64 30 30 funcref) - (export "test32" (func 0)) - (export "test64" (func 1)) - (export "test_64to32" (func 2)) - (export "test_32to64" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_fill.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/table_fill.wast/0.print index 3937314295..7d32ad6600 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_fill.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_fill.wast/0.print @@ -3,6 +3,13 @@ (type (;1;) (func (param i32) (result externref))) (type (;2;) (func (param i64 externref i64))) (type (;3;) (func (param i64) (result externref))) + (table $t (;0;) 10 externref) + (table $t64 (;1;) i64 10 externref) + (export "fill" (func 0)) + (export "fill-abbrev" (func 1)) + (export "get" (func 2)) + (export "fill-t64" (func 3)) + (export "get-t64" (func 4)) (func (;0;) (type 0) (param $i i32) (param $r externref) (param $n i32) local.get $i local.get $r @@ -29,11 +36,4 @@ local.get $i table.get $t64 ) - (table $t (;0;) 10 externref) - (table $t64 (;1;) i64 10 externref) - (export "fill" (func 0)) - (export "fill-abbrev" (func 1)) - (export "get" (func 2)) - (export "fill-t64" (func 3)) - (export "get-t64" (func 4)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_get.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/table_get.wast/0.print index b88204ae08..fdb431041f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_get.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_get.wast/0.print @@ -5,6 +5,15 @@ (type (;3;) (func (param i32) (result funcref))) (type (;4;) (func (param i64) (result funcref))) (type (;5;) (func (param i32) (result i32))) + (table $t2 (;0;) 2 externref) + (table $t3 (;1;) 3 funcref) + (table $t64 (;2;) i64 3 funcref) + (export "init" (func 1)) + (export "get-externref" (func 2)) + (export "get-funcref" (func $f3)) + (export "get-funcref-t64" (func $f4)) + (export "is_null-funcref" (func 5)) + (elem (;0;) (table $t3) (i32.const 1) func $dummy) (func $dummy (;0;) (type 0)) (func (;1;) (type 1) (param $r externref) i32.const 1 @@ -32,13 +41,4 @@ call $f3 ref.is_null ) - (table $t2 (;0;) 2 externref) - (table $t3 (;1;) 3 funcref) - (table $t64 (;2;) i64 3 funcref) - (export "init" (func 1)) - (export "get-externref" (func 2)) - (export "get-funcref" (func $f3)) - (export "get-funcref-t64" (func $f4)) - (export "is_null-funcref" (func 5)) - (elem (;0;) (table $t3) (i32.const 1) func $dummy) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/0.print index 46f0286980..8d2f7caee4 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/0.print @@ -7,6 +7,17 @@ (type (;5;) (func (param i64 externref))) (type (;6;) (func (param i64 externref) (result i64))) (type (;7;) (func (result i64))) + (table $t (;0;) 0 externref) + (table $t64 (;1;) i64 0 externref) + (export "get" (func 0)) + (export "set" (func 1)) + (export "grow" (func 2)) + (export "grow-abbrev" (func 3)) + (export "size" (func 4)) + (export "get-t64" (func 5)) + (export "set-t64" (func 6)) + (export "grow-t64" (func 7)) + (export "size-t64" (func 8)) (func (;0;) (type 0) (param $i i32) (result externref) local.get $i table.get $t @@ -46,15 +57,4 @@ (func (;8;) (type 7) (result i64) table.size $t64 ) - (table $t (;0;) 0 externref) - (table $t64 (;1;) i64 0 externref) - (export "get" (func 0)) - (export "set" (func 1)) - (export "grow" (func 2)) - (export "grow-abbrev" (func 3)) - (export "size" (func 4)) - (export "get-t64" (func 5)) - (export "set-t64" (func 6)) - (export "grow-t64" (func 7)) - (export "size-t64" (func 8)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/43.print b/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/43.print index 238c3fed52..9a5a62af35 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/43.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/43.print @@ -1,11 +1,11 @@ (module (type (;0;) (func (result i32))) + (table $t (;0;) 16 funcref) + (export "grow" (func $f)) + (elem (;0;) declare func $f) (func $f (;0;) (type 0) (result i32) ref.func $f i32.const -16 table.grow $t ) - (table $t (;0;) 16 funcref) - (export "grow" (func $f)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/45.print b/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/45.print index 9df1f74937..e50abc145a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/45.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/45.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) + (table $t (;0;) 0 externref) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) ref.null extern local.get 0 table.grow $t ) - (table $t (;0;) 0 externref) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/51.print b/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/51.print index 4efc20011a..8355bd267d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/51.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/51.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) + (table $t (;0;) 0 10 externref) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) ref.null extern local.get 0 table.grow $t ) - (table $t (;0;) 0 10 externref) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/60.print b/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/60.print index cb3a0ea60d..9219dfff88 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/60.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_grow.wast/60.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32) (result funcref))) + (table $t (;0;) 10 funcref) + (export "grow" (func 0)) + (export "check-table-null" (func 1)) + (elem (;0;) declare func 1) (func (;0;) (type 0) (param i32) (result i32) ref.null func local.get 0 @@ -35,8 +39,4 @@ end local.get 2 ) - (table $t (;0;) 10 funcref) - (export "grow" (func 0)) - (export "check-table-null" (func 1)) - (elem (;0;) declare func 1) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/0.print index 0677b5f604..0c0796e0d6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/0.print @@ -1,5 +1,10 @@ (module (type (;0;) (func (result i32))) + (export "ef0" (func 0)) + (export "ef1" (func 1)) + (export "ef2" (func 2)) + (export "ef3" (func 3)) + (export "ef4" (func 4)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -15,9 +20,4 @@ (func (;4;) (type 0) (result i32) i32.const 4 ) - (export "ef0" (func 0)) - (export "ef1" (func 1)) - (export "ef2" (func 2)) - (export "ef3" (func 3)) - (export "ef4" (func 4)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/130.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/130.print index 2b79e7f307..93e33eab14 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/130.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/130.print @@ -7,6 +7,15 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (table $t2 (;2;) i64 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -32,13 +41,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (table $t2 (;2;) i64 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/162.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/162.print index 0b9c4add09..ea5e093239 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/162.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/162.print @@ -7,6 +7,15 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (table $t2 (;2;) i64 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -58,13 +67,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (table $t2 (;2;) i64 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/194.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/194.print index 87229d9b30..25c5dd9144 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/194.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/194.print @@ -7,6 +7,15 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (table $t2 (;2;) i64 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (table $t2) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t2) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -32,13 +41,4 @@ local.get 0 call_indirect $t2 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (table $t2 (;2;) i64 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (table $t2) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t2) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/2.print index cd5d549b0a..f55fd66ea9 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/2.print @@ -7,6 +7,15 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (table $t2 (;2;) i64 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -32,13 +41,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (table $t2 (;2;) i64 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/226.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/226.print index b8d9ca3118..db83b2f196 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/226.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/226.print @@ -7,6 +7,15 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (table $t2 (;2;) i64 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (table $t2) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t2) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -32,13 +41,4 @@ local.get 0 call_indirect $t2 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (table $t2 (;2;) i64 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (table $t2) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t2) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/258.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/258.print index 51291bd7ea..a2405f24a8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/258.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/258.print @@ -7,6 +7,15 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (table $t2 (;2;) i64 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (table $t2) (i64.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t2) (i64.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -58,13 +67,4 @@ local.get 0 call_indirect $t2 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (table $t2 (;2;) i64 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (table $t2) (i64.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t2) (i64.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/294.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/294.print index dbf74496ee..8fb2fa1264 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/294.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/294.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -34,11 +41,4 @@ (func (;10;) (type 1) elem.drop 2 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/296.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/296.print index ee6aa132ac..b9794c2e75 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/296.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/296.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 1 table.init 2 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/298.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/298.print index aaac671bb5..e06cc26c40 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/298.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/298.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -41,11 +48,4 @@ i32.const 1 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/300.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/300.print index 42fcce87cf..e4ebfa43a3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/300.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/300.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -35,11 +42,4 @@ elem.drop 1 elem.drop 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/302.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/302.print index c42a86c5d3..087e93f01e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/302.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/302.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -38,11 +45,4 @@ i32.const 1 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/304.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/304.print index df88f40d38..ba5189ed91 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/304.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/304.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 5 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/306.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/306.print index 660a90a750..a2d8a752da 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/306.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/306.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 3 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/308.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/308.print index 3256396657..b85be8a13e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/308.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/308.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 3 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/310.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/310.print index 0fc7fc7c23..e27ce74459 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/310.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/310.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/312.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/312.print index 2929fd0e33..d785928890 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/312.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/312.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/314.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/314.print index 47a2f5de34..a77c58270b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/314.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/314.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/316.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/316.print index 6022440fec..98fe33ff53 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/316.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/316.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/318.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/318.print index db358f6e56..a5c59d549f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/318.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/318.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/320.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/320.print index 68ebd406d1..de8a52e37b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/320.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/320.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/322.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/322.print index 49fee375ab..6d496e0616 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/322.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/322.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 3 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/324.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/324.print index 7d82ec8132..2af3452eec 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/324.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/324.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/326.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/326.print index 14197115b9..5bf04e3396 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/326.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/326.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/328.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/328.print index a43cc55645..cf361944bd 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/328.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/328.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/330.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/330.print index 6243646666..bfb67c011c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/330.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/330.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/332.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/332.print index cbbaff6544..1eb41a2496 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/332.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/332.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/334.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/334.print index aedc543a21..6c64ad612f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/334.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/334.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/34.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/34.print index d0383ed782..d717327c3b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/34.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/34.print @@ -7,6 +7,15 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (table $t2 (;2;) i64 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -32,13 +41,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (table $t2 (;2;) i64 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/399.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/399.print index f8bd504a91..83a883908e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/399.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/399.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/433.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/433.print index f8bd504a91..83a883908e 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/433.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/433.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/467.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/467.print index acdc27b3a6..fbff0341bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/467.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/467.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 160 320 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 160 320 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/629.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/629.print index acdc27b3a6..fbff0341bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/629.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/629.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 160 320 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 160 320 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/66.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/66.print index db812657c1..d7d86fa02b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/66.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/66.print @@ -7,6 +7,15 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (table $t2 (;2;) i64 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -58,13 +67,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (table $t2 (;2;) i64 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/791.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/791.print index 22bfa2dbe6..7d24cd3ae2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/791.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/791.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 64 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 64 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/857.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/857.print index 0512b74c5b..fe958d9332 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/857.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/857.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 16 16 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 16 16 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/875.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/875.print index c2161c90ce..9d2dd203b6 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/875.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/875.print @@ -1,11 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0) - i32.const 0 - i32.const 0 - i32.const 0 - table.init 64 - ) (table (;0;) 1 funcref) (elem (;0;) funcref) (elem (;1;) funcref) @@ -72,4 +66,10 @@ (elem (;62;) funcref) (elem (;63;) funcref) (elem (;64;) funcref) + (func (;0;) (type 0) + i32.const 0 + i32.const 0 + i32.const 0 + table.init 64 + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/98.print b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/98.print index 6b65d1f03f..6e98b07e14 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_init.wast/98.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_init.wast/98.print @@ -7,6 +7,15 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (table $t2 (;2;) i64 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -32,13 +41,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (table $t2 (;2;) i64 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_set.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/table_set.wast/0.print index 8f82fa5472..8053f47fd5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_set.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_set.wast/0.print @@ -8,6 +8,18 @@ (type (;6;) (func (param i32 i32))) (type (;7;) (func (param i64 funcref))) (type (;8;) (func (param i32) (result i32))) + (table $t2 (;0;) 1 externref) + (table $t3 (;1;) 2 funcref) + (table $t64 (;2;) i64 2 funcref) + (export "get-externref" (func 1)) + (export "get-funcref" (func $f3)) + (export "get-funcref-t64" (func $f4)) + (export "set-externref" (func 4)) + (export "set-funcref" (func 5)) + (export "set-funcref-from" (func 6)) + (export "set-funcref-t64" (func 7)) + (export "is_null-funcref" (func 8)) + (elem (;0;) (table $t3) (i32.const 1) func $dummy) (func $dummy (;0;) (type 0)) (func (;1;) (type 1) (param $i i32) (result externref) local.get $i @@ -47,16 +59,4 @@ call $f3 ref.is_null ) - (table $t2 (;0;) 1 externref) - (table $t3 (;1;) 2 funcref) - (table $t64 (;2;) i64 2 funcref) - (export "get-externref" (func 1)) - (export "get-funcref" (func $f3)) - (export "get-funcref-t64" (func $f4)) - (export "set-externref" (func 4)) - (export "set-funcref" (func 5)) - (export "set-funcref-from" (func 6)) - (export "set-funcref-t64" (func 7)) - (export "is_null-funcref" (func 8)) - (elem (;0;) (table $t3) (i32.const 1) func $dummy) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/table_size.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/table_size.wast/0.print index 62a561b05e..442e60e141 100644 --- a/tests/snapshots/testsuite/proposals/memory64/table_size.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/table_size.wast/0.print @@ -2,6 +2,20 @@ (type (;0;) (func (result i32))) (type (;1;) (func (result i64))) (type (;2;) (func (param i32))) + (table $t0 (;0;) 0 externref) + (table $t1 (;1;) 1 externref) + (table $t2 (;2;) 0 2 externref) + (table $t3 (;3;) 3 8 externref) + (table $t64 (;4;) i64 42 42 externref) + (export "size-t0" (func 0)) + (export "size-t1" (func 1)) + (export "size-t2" (func 2)) + (export "size-t3" (func 3)) + (export "size-t64" (func 4)) + (export "grow-t0" (func 5)) + (export "grow-t1" (func 6)) + (export "grow-t2" (func 7)) + (export "grow-t3" (func 8)) (func (;0;) (type 0) (result i32) table.size $t0 ) @@ -41,18 +55,4 @@ table.grow $t3 drop ) - (table $t0 (;0;) 0 externref) - (table $t1 (;1;) 1 externref) - (table $t2 (;2;) 0 2 externref) - (table $t3 (;3;) 3 8 externref) - (table $t64 (;4;) i64 42 42 externref) - (export "size-t0" (func 0)) - (export "size-t1" (func 1)) - (export "size-t2" (func 2)) - (export "size-t3" (func 3)) - (export "size-t64" (func 4)) - (export "grow-t0" (func 5)) - (export "grow-t1" (func 6)) - (export "grow-t2" (func 7)) - (export "grow-t3" (func 8)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/throw.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/throw.wast/0.print index 1d027daff3..867f4faeb8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/throw.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/throw.wast/0.print @@ -7,6 +7,19 @@ (type (;5;) (func (param i32 i32))) (type (;6;) (func (param i32) (result i32))) (type (;7;) (func (result i32 i32))) + (tag $e0 (;0;) (type 0)) + (tag $e-i32 (;1;) (type 1) (param i32)) + (tag $e-f32 (;2;) (type 2) (param f32)) + (tag $e-i64 (;3;) (type 3) (param i64)) + (tag $e-f64 (;4;) (type 4) (param f64)) + (tag $e-i32-i32 (;5;) (type 5) (param i32 i32)) + (export "throw-if" (func $throw-if)) + (export "throw-param-f32" (func 1)) + (export "throw-param-i64" (func 2)) + (export "throw-param-f64" (func 3)) + (export "throw-polymorphic" (func 4)) + (export "throw-polymorphic-block" (func 5)) + (export "test-throw-1-2" (func 7)) (func $throw-if (;0;) (type 6) (param i32) (result i32) local.get 0 i32.const 0 @@ -61,17 +74,4 @@ unreachable end ) - (tag $e0 (;0;) (type 0)) - (tag $e-i32 (;1;) (type 1) (param i32)) - (tag $e-f32 (;2;) (type 2) (param f32)) - (tag $e-i64 (;3;) (type 3) (param i64)) - (tag $e-f64 (;4;) (type 4) (param f64)) - (tag $e-i32-i32 (;5;) (type 5) (param i32 i32)) - (export "throw-if" (func $throw-if)) - (export "throw-param-f32" (func 1)) - (export "throw-param-i64" (func 2)) - (export "throw-param-f64" (func 3)) - (export "throw-polymorphic" (func 4)) - (export "throw-polymorphic-block" (func 5)) - (export "test-throw-1-2" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/throw_ref.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/throw_ref.wast/0.print index c6a4b01f35..61aead2d65 100644 --- a/tests/snapshots/testsuite/proposals/memory64/throw_ref.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/throw_ref.wast/0.print @@ -2,6 +2,15 @@ (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param exnref))) + (tag $e0 (;0;) (type 0)) + (tag $e1 (;1;) (type 0)) + (export "catch-throw_ref-0" (func 0)) + (export "catch-throw_ref-1" (func 1)) + (export "catchall-throw_ref-0" (func 2)) + (export "catchall-throw_ref-1" (func 3)) + (export "throw_ref-nested" (func 4)) + (export "throw_ref-recatch" (func 5)) + (export "throw_ref-stack-polymorphism" (func 6)) (func (;0;) (type 0) block $h (result exnref) try_table (catch_ref $e0 $h) ;; label = @2 @@ -120,13 +129,4 @@ local.get $e throw_ref ) - (tag $e0 (;0;) (type 0)) - (tag $e1 (;1;) (type 0)) - (export "catch-throw_ref-0" (func 0)) - (export "catch-throw_ref-1" (func 1)) - (export "catchall-throw_ref-0" (func 2)) - (export "catchall-throw_ref-1" (func 3)) - (export "throw_ref-nested" (func 4)) - (export "throw_ref-recatch" (func 5)) - (export "throw_ref-stack-polymorphism" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/token.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/token.wast/8.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/proposals/memory64/token.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/token.wast/8.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/token.wast/9.print b/tests/snapshots/testsuite/proposals/memory64/token.wast/9.print index 40b3ac599a..0b9eafb05a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/token.wast/9.print +++ b/tests/snapshots/testsuite/proposals/memory64/token.wast/9.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/traps0.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/traps0.wast/0.print index 4282fd7c9d..6001d4ff38 100644 --- a/tests/snapshots/testsuite/proposals/memory64/traps0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/traps0.wast/0.print @@ -1,5 +1,22 @@ (module (type (;0;) (func (param i32))) + (memory $mem0 (;0;) 1) + (memory $mem1 (;1;) 1) + (memory $mem2 (;2;) 1) + (export "no_dce.i32.load" (func 0)) + (export "no_dce.i32.load16_s" (func 1)) + (export "no_dce.i32.load16_u" (func 2)) + (export "no_dce.i32.load8_s" (func 3)) + (export "no_dce.i32.load8_u" (func 4)) + (export "no_dce.i64.load" (func 5)) + (export "no_dce.i64.load32_s" (func 6)) + (export "no_dce.i64.load32_u" (func 7)) + (export "no_dce.i64.load16_s" (func 8)) + (export "no_dce.i64.load16_u" (func 9)) + (export "no_dce.i64.load8_s" (func 10)) + (export "no_dce.i64.load8_u" (func 11)) + (export "no_dce.f32.load" (func 12)) + (export "no_dce.f64.load" (func 13)) (func (;0;) (type 0) (param $i i32) local.get $i i32.load $mem1 @@ -70,21 +87,4 @@ f64.load $mem2 drop ) - (memory $mem0 (;0;) 1) - (memory $mem1 (;1;) 1) - (memory $mem2 (;2;) 1) - (export "no_dce.i32.load" (func 0)) - (export "no_dce.i32.load16_s" (func 1)) - (export "no_dce.i32.load16_u" (func 2)) - (export "no_dce.i32.load8_s" (func 3)) - (export "no_dce.i32.load8_u" (func 4)) - (export "no_dce.i64.load" (func 5)) - (export "no_dce.i64.load32_s" (func 6)) - (export "no_dce.i64.load32_u" (func 7)) - (export "no_dce.i64.load16_s" (func 8)) - (export "no_dce.i64.load16_u" (func 9)) - (export "no_dce.i64.load8_s" (func 10)) - (export "no_dce.i64.load8_u" (func 11)) - (export "no_dce.f32.load" (func 12)) - (export "no_dce.f64.load" (func 13)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/try_table.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/try_table.wast/0.print index 121840d85f..0fa6ea6f37 100644 --- a/tests/snapshots/testsuite/proposals/memory64/try_table.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/try_table.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) - (func (;0;) (type 0) - throw $e0 - ) (tag $e0 (;0;) (type 0)) (export "e0" (tag 0)) (export "throw" (func 0)) + (func (;0;) (type 0) + throw $e0 + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/try_table.wast/2.print b/tests/snapshots/testsuite/proposals/memory64/try_table.wast/2.print index 491684ac45..298bc9120b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/try_table.wast/2.print +++ b/tests/snapshots/testsuite/proposals/memory64/try_table.wast/2.print @@ -16,6 +16,34 @@ (type (;14;) (func (result i32))) (import "test" "e0" (tag $imported-e0 (;0;) (type 0))) (import "test" "throw" (func $imported-throw (;0;) (type 0))) + (table (;0;) 1 1 funcref) + (tag $e0 (;1;) (type 0)) + (tag $e1 (;2;) (type 0)) + (tag $e2 (;3;) (type 0)) + (tag $e-i32 (;4;) (type 1) (param i32)) + (tag $e-f32 (;5;) (type 2) (param f32)) + (tag $e-i64 (;6;) (type 3) (param i64)) + (tag $e-f64 (;7;) (type 4) (param f64)) + (export "simple-throw-catch" (func 2)) + (export "unreachable-not-caught" (func 3)) + (export "trap-in-callee" (func 5)) + (export "catch-complex-1" (func 6)) + (export "catch-complex-2" (func 7)) + (export "throw-catch-param-i32" (func 8)) + (export "throw-catch-param-f32" (func 9)) + (export "throw-catch-param-i64" (func 10)) + (export "throw-catch-param-f64" (func 11)) + (export "throw-catch_ref-param-i32" (func 12)) + (export "throw-catch_ref-param-f32" (func 13)) + (export "throw-catch_ref-param-i64" (func 14)) + (export "throw-catch_ref-param-f64" (func 15)) + (export "catch-param-i32" (func 17)) + (export "catch-imported" (func 18)) + (export "catchless-try" (func 19)) + (export "return-call-in-try-catch" (func 21)) + (export "return-call-indirect-in-try-catch" (func 22)) + (export "try-with-param" (func 23)) + (elem (;0;) (i32.const 0) func $throw-void) (func $throw-if (;1;) (type 5) (param i32) (result i32) local.get 0 i32.const 0 @@ -272,32 +300,4 @@ drop end ) - (table (;0;) 1 1 funcref) - (tag $e0 (;1;) (type 0)) - (tag $e1 (;2;) (type 0)) - (tag $e2 (;3;) (type 0)) - (tag $e-i32 (;4;) (type 1) (param i32)) - (tag $e-f32 (;5;) (type 2) (param f32)) - (tag $e-i64 (;6;) (type 3) (param i64)) - (tag $e-f64 (;7;) (type 4) (param f64)) - (export "simple-throw-catch" (func 2)) - (export "unreachable-not-caught" (func 3)) - (export "trap-in-callee" (func 5)) - (export "catch-complex-1" (func 6)) - (export "catch-complex-2" (func 7)) - (export "throw-catch-param-i32" (func 8)) - (export "throw-catch-param-f32" (func 9)) - (export "throw-catch-param-i64" (func 10)) - (export "throw-catch-param-f64" (func 11)) - (export "throw-catch_ref-param-i32" (func 12)) - (export "throw-catch_ref-param-f32" (func 13)) - (export "throw-catch_ref-param-i64" (func 14)) - (export "throw-catch_ref-param-f64" (func 15)) - (export "catch-param-i32" (func 17)) - (export "catch-imported" (func 18)) - (export "catchless-try" (func 19)) - (export "return-call-in-try-catch" (func 21)) - (export "return-call-indirect-in-try-catch" (func 22)) - (export "try-with-param" (func 23)) - (elem (;0;) (i32.const 0) func $throw-void) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/try_table.wast/41.print b/tests/snapshots/testsuite/proposals/memory64/try_table.wast/41.print index 35d9490ca6..77b15e95c2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/try_table.wast/41.print +++ b/tests/snapshots/testsuite/proposals/memory64/try_table.wast/41.print @@ -2,6 +2,8 @@ (type (;0;) (func)) (type (;1;) (func (result i32))) (import "test" "throw" (func $imported-throw (;0;) (type 0))) + (tag $e0 (;0;) (type 0)) + (export "imported-mismatch" (func 1)) (func (;1;) (type 1) (result i32) block $h try_table (result i32) (catch_all $h) ;; label = @2 @@ -18,6 +20,4 @@ end i32.const 3 ) - (tag $e0 (;0;) (type 0)) - (export "imported-mismatch" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/try_table.wast/45.print b/tests/snapshots/testsuite/proposals/memory64/try_table.wast/45.print index d60ed2c82d..3b5b9306d7 100644 --- a/tests/snapshots/testsuite/proposals/memory64/try_table.wast/45.print +++ b/tests/snapshots/testsuite/proposals/memory64/try_table.wast/45.print @@ -1,6 +1,7 @@ (module (type (;0;) (func)) (type (;1;) (func (result exnref))) + (tag $e (;0;) (type 0)) (func (;0;) (type 0) try_table (catch $e 0) (catch $e 0) ;; label = @1 end @@ -28,5 +29,4 @@ end unreachable ) - (tag $e (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/try_table.wast/53.print b/tests/snapshots/testsuite/proposals/memory64/try_table.wast/53.print index b414fd9f4e..3e80178414 100644 --- a/tests/snapshots/testsuite/proposals/memory64/try_table.wast/53.print +++ b/tests/snapshots/testsuite/proposals/memory64/try_table.wast/53.print @@ -4,6 +4,13 @@ (type (;2;) (func (result (ref null $t)))) (type (;3;) (func (result (ref null $t) (ref exn)))) (type (;4;) (func (result (ref null $t) exnref))) + (tag $e (;0;) (type 1) (param (ref $t))) + (export "catch" (func 2)) + (export "catch_ref1" (func 3)) + (export "catch_ref2" (func 4)) + (export "catch_all_ref1" (func 5)) + (export "catch_all_ref2" (func 6)) + (elem (;0;) declare func $dummy) (func $dummy (;0;) (type $t)) (func $throw (;1;) (type $t) ref.func $dummy @@ -53,11 +60,4 @@ end drop ) - (tag $e (;0;) (type 1) (param (ref $t))) - (export "catch" (func 2)) - (export "catch_ref1" (func 3)) - (export "catch_ref2" (func 4)) - (export "catch_all_ref1" (func 5)) - (export "catch_all_ref2" (func 6)) - (elem (;0;) declare func $dummy) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/10.print b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/10.print index 1c5b77136a..66ce7e5f75 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/10.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/10.print @@ -6,6 +6,9 @@ (type $t2 (;1;) (func (result (ref null $t2)))) ) (type (;2;) (func)) + (table (;0;) 2 2 funcref) + (export "run" (func 2)) + (elem (;0;) (i32.const 0) func $f1 $f2) (func $f1 (;0;) (type $t1) (result (ref null $t1)) ref.null $t1 ) @@ -47,7 +50,4 @@ end br 0 ) - (table (;0;) 2 2 funcref) - (export "run" (func 2)) - (elem (;0;) (i32.const 0) func $f1 $f2) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/12.print b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/12.print index 2b6d605e8e..7bd1275c19 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/12.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/12.print @@ -10,6 +10,9 @@ (type $u3 (;5;) (func (param i32 (ref $u2)))) ) (type (;6;) (func)) + (table (;0;) 3 3 funcref) + (export "run" (func 3)) + (elem (;0;) (i32.const 0) func $f1 $f2 $f3) (func $f1 (;0;) (type $t1) (param i32 (ref $t1))) (func $f2 (;1;) (type $t2) (param i32 (ref $t3))) (func $f3 (;2;) (type $t3) (param i32 (ref $t2))) @@ -39,7 +42,4 @@ i32.const 2 call_indirect (type $u3) ) - (table (;0;) 3 3 funcref) - (export "run" (func 3)) - (elem (;0;) (i32.const 0) func $f1 $f2 $f3) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/14.print b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/14.print index f9f69387ba..98744111b1 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/14.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/14.print @@ -1,6 +1,6 @@ (module (type $t1 (;0;) (func (param f32 f32) (result f32))) (type (;1;) (func (param (ref $t1)))) - (func (;0;) (type 1) (param (ref $t1))) (export "f" (func 0)) + (func (;0;) (type 1) (param (ref $t1))) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/17.print b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/17.print index 66a9157ef6..603776e583 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/17.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/17.print @@ -5,8 +5,8 @@ (type $t1 (;3;) (func (param (ref $s1)) (result (ref $s2)))) (type $t2 (;4;) (func (param (ref $s2)) (result (ref $s1)))) (type (;5;) (func (param (ref $t1)))) - (func (;0;) (type 5) (param (ref $t1))) - (func (;1;) (type 5) (param (ref $t1))) (export "f1" (func 0)) (export "f2" (func 1)) + (func (;0;) (type 5) (param (ref $t1))) + (func (;1;) (type 5) (param (ref $t1))) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/20.print b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/20.print index 80f1754ceb..4d22d55cbb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/20.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/20.print @@ -3,6 +3,6 @@ (type $t1 (;0;) (func (param i32 (ref $t1)))) ) (type (;1;) (func (param (ref $t1)))) - (func (;0;) (type 1) (param (ref $t1))) (export "f" (func 0)) + (func (;0;) (type 1) (param (ref $t1))) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/23.print b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/23.print index f1956d65f2..2f19c29808 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/23.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/23.print @@ -7,10 +7,10 @@ (type (;3;) (func (param (ref $t1)))) (type (;4;) (func (param (ref $t2)))) (type (;5;) (func (param (ref $t3)))) - (func (;0;) (type 3) (param (ref $t1))) - (func (;1;) (type 4) (param (ref $t2))) - (func (;2;) (type 5) (param (ref $t3))) (export "f1" (func 0)) (export "f2" (func 1)) (export "f3" (func 2)) + (func (;0;) (type 3) (param (ref $t1))) + (func (;1;) (type 4) (param (ref $t2))) + (func (;2;) (type 5) (param (ref $t3))) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/26.print b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/26.print index 8ea47fabc6..60d7e31d88 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/26.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/26.print @@ -7,10 +7,10 @@ (type (;3;) (func (param (ref $t1)))) (type (;4;) (func (param (ref $t2)))) (type (;5;) (func (param (ref $t3)))) - (func (;0;) (type 3) (param (ref $t1))) - (func (;1;) (type 4) (param (ref $t2))) - (func (;2;) (type 5) (param (ref $t3))) (export "f1" (func 0)) (export "f2" (func 1)) (export "f3" (func 2)) + (func (;0;) (type 3) (param (ref $t1))) + (func (;1;) (type 4) (param (ref $t2))) + (func (;2;) (type 5) (param (ref $t3))) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/29.print b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/29.print index 64e1999cc9..d6b0196998 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/29.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/29.print @@ -12,10 +12,10 @@ (type (;6;) (func (param (ref $t1)))) (type (;7;) (func (param (ref $t2)))) (type (;8;) (func (param (ref $t3)))) - (func (;0;) (type 6) (param (ref $t1))) - (func (;1;) (type 7) (param (ref $t2))) - (func (;2;) (type 8) (param (ref $t3))) (export "f1" (func 0)) (export "f2" (func 1)) (export "f3" (func 2)) + (func (;0;) (type 6) (param (ref $t1))) + (func (;1;) (type 7) (param (ref $t2))) + (func (;2;) (type 8) (param (ref $t3))) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/6.print index c60b8bd8ea..ecb7350560 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/6.print @@ -2,6 +2,9 @@ (type $t1 (;0;) (func (param f32 f32))) (type $t2 (;1;) (func (param f32 f32))) (type (;2;) (func)) + (table (;0;) 2 2 funcref) + (export "run" (func 2)) + (elem (;0;) (i32.const 0) func $f1 $f2) (func $f1 (;0;) (type $t1) (param f32 f32)) (func $f2 (;1;) (type $t2) (param f32 f32)) (func (;2;) (type 2) @@ -14,7 +17,4 @@ i32.const 0 call_indirect (type $t2) ) - (table (;0;) 2 2 funcref) - (export "run" (func 2)) - (elem (;0;) (i32.const 0) func $f1 $f2) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/8.print index 7a8741b793..a9fed0f084 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-equivalence.wast/8.print @@ -5,6 +5,9 @@ (type $t1 (;3;) (func (param (ref $s1)))) (type $t2 (;4;) (func (param (ref $s2)))) (type (;5;) (func)) + (table (;0;) 4 4 funcref) + (export "run" (func 4)) + (elem (;0;) (i32.const 0) func $f1 $f2 $s1 $s2) (func $s1 (;0;) (type $s1) (param i32 (ref $s0))) (func $s2 (;1;) (type $s2) (param i32 (ref $s0))) (func $f1 (;2;) (type $t1) (param (ref $s1))) @@ -35,7 +38,4 @@ i32.const 1 call_indirect (type $t2) ) - (table (;0;) 4 4 funcref) - (export "run" (func 4)) - (elem (;0;) (i32.const 0) func $f1 $f2 $s1 $s2) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/0.print index b30ff3c506..9ff07da2c5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/0.print @@ -7,6 +7,6 @@ (type $f2 (;2;) (func)) (type (;3;) (struct (field (ref $f2)))) ) - (func $f (;0;) (type $f2)) (global (;0;) (ref $f1) ref.func $f) + (func $f (;0;) (type $f2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/1.print b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/1.print index 85d75cb372..e0c26ed162 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/1.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/1.print @@ -15,6 +15,6 @@ (type $g2 (;6;) (func)) (type (;7;) (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2)))) ) - (func $g (;0;) (type $g2)) (global (;0;) (ref $g1) ref.func $g) + (func $g (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/11.print b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/11.print index 9305718dff..fa24131869 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/11.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/11.print @@ -8,12 +8,12 @@ (type (;3;) (struct)) ) (type (;4;) (func)) + (table (;0;) 1 1 funcref) + (export "run" (func 1)) + (elem (;0;) (i32.const 0) func $f1) (func $f1 (;0;) (type $f1)) (func (;1;) (type 4) i32.const 0 call_indirect (type $f2) ) - (table (;0;) 1 1 funcref) - (export "run" (func 1)) - (elem (;0;) (i32.const 0) func $f1) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/13.print b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/13.print index 1303d3a668..23a9cac4bb 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/13.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/13.print @@ -8,12 +8,12 @@ (type $f2 (;3;) (func)) ) (type (;4;) (func)) + (table (;0;) 1 1 funcref) + (export "run" (func 1)) + (elem (;0;) (i32.const 0) func $f1) (func $f1 (;0;) (type $f1)) (func (;1;) (type 4) i32.const 0 call_indirect (type $f2) ) - (table (;0;) 1 1 funcref) - (export "run" (func 1)) - (elem (;0;) (i32.const 0) func $f1) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/15.print b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/15.print index d31e6979d8..4db56d4062 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/15.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/15.print @@ -7,12 +7,12 @@ (type $f2 (;2;) (func)) ) (type (;3;) (func)) + (table (;0;) 1 1 funcref) + (export "run" (func 1)) + (elem (;0;) (i32.const 0) func $f1) (func $f1 (;0;) (type $f1)) (func (;1;) (type 3) i32.const 0 call_indirect (type $f2) ) - (table (;0;) 1 1 funcref) - (export "run" (func 1)) - (elem (;0;) (i32.const 0) func $f1) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/17.print b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/17.print index 1c8a861bef..1025956e5c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/17.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/17.print @@ -6,6 +6,6 @@ (type $t (;1;) (func (param (ref $s)))) ) (type (;2;) (func (param (ref $s)))) - (func $f (;0;) (type 2) (param (ref $s))) (global (;0;) (ref $t) ref.func $f) + (func $f (;0;) (type 2) (param (ref $s))) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/6.print b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/6.print index 803d29bfdc..36a21ff615 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/6.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-rec.wast/6.print @@ -3,6 +3,6 @@ (type $f1 (;0;) (func)) (type (;1;) (struct)) ) - (func (;0;) (type $f1)) (export "f" (func 0)) + (func (;0;) (type $f1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/11.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/11.print index 818a6c3a4f..defb31edb5 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/11.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/11.print @@ -11,6 +11,6 @@ (type $g (;4;) (sub $f1 (func))) (type (;5;) (struct)) ) - (func $g (;0;) (type $g)) (global (;0;) (ref $f1) ref.func $g) + (func $g (;0;) (type $g)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/12.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/12.print index e349860da2..8600cdfc4a 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/12.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/12.print @@ -19,7 +19,7 @@ (type $h (;8;) (sub $g2 (func))) (type (;9;) (struct)) ) - (func $h (;0;) (type $h)) (global (;0;) (ref $f1) ref.func $h) (global (;1;) (ref $g1) ref.func $h) + (func $h (;0;) (type $h)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/13.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/13.print index f98f044e99..aa4f19f7ed 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/13.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/13.print @@ -7,14 +7,14 @@ (type $f21 (;2;) (sub (func (result (ref func))))) (type $f22 (;3;) (sub $f21 (func (result (ref $f21))))) ) + (global (;0;) (ref $f11) ref.func $f11) + (global (;1;) (ref $f21) ref.func $f11) + (global (;2;) (ref $f12) ref.func $f12) + (global (;3;) (ref $f22) ref.func $f12) (func $f11 (;0;) (type $f11) (result (ref func)) unreachable ) (func $f12 (;1;) (type $f12) (result (ref $f11)) unreachable ) - (global (;0;) (ref $f11) ref.func $f11) - (global (;1;) (ref $f21) ref.func $f11) - (global (;2;) (ref $f12) ref.func $f12) - (global (;3;) (ref $f22) ref.func $f12) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/14.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/14.print index 8961773ebc..77aaa04e76 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/14.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/14.print @@ -15,12 +15,6 @@ (type $g21 (;6;) (sub $f21 (func (result (ref func))))) (type $g22 (;7;) (sub $g21 (func (result (ref $g21))))) ) - (func $g11 (;0;) (type $g11) (result (ref func)) - unreachable - ) - (func $g12 (;1;) (type $g12) (result (ref $g11)) - unreachable - ) (global (;0;) (ref $f11) ref.func $g11) (global (;1;) (ref $f21) ref.func $g11) (global (;2;) (ref $f11) ref.func $g12) @@ -29,4 +23,10 @@ (global (;5;) (ref $g21) ref.func $g11) (global (;6;) (ref $g12) ref.func $g12) (global (;7;) (ref $g22) ref.func $g12) + (func $g11 (;0;) (type $g11) (result (ref func)) + unreachable + ) + (func $g12 (;1;) (type $g12) (result (ref $g11)) + unreachable + ) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/17.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/17.print index 98ebf663e9..068b22b0cf 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/17.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/17.print @@ -7,6 +7,15 @@ (type $t2 (;2;) (sub $t1 (func (result (ref null $t2))))) ) (type (;3;) (func)) + (table (;0;) 3 3 funcref) + (export "run" (func 3)) + (export "fail1" (func 4)) + (export "fail2" (func 5)) + (export "fail3" (func 6)) + (export "fail4" (func 7)) + (export "fail5" (func 8)) + (export "fail6" (func 9)) + (elem (;0;) (i32.const 0) func $f0 $f1 $f2) (func $f0 (;0;) (type $t0) (result funcref) ref.null func ) @@ -112,13 +121,4 @@ ref.cast (ref $t2) br 0 ) - (table (;0;) 3 3 funcref) - (export "run" (func 3)) - (export "fail1" (func 4)) - (export "fail2" (func 5)) - (export "fail3" (func 6)) - (export "fail4" (func 7)) - (export "fail5" (func 8)) - (export "fail6" (func 9)) - (elem (;0;) (i32.const 0) func $f0 $f1 $f2) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/25.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/25.print index 7a3c81e1ed..5ba9c153d9 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/25.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/25.print @@ -1,6 +1,12 @@ (module (type $t1 (;0;) (sub (func))) (type $t2 (;1;) (func)) + (table (;0;) 2 2 funcref) + (export "fail1" (func 2)) + (export "fail2" (func 3)) + (export "fail3" (func 4)) + (export "fail4" (func 5)) + (elem (;0;) (i32.const 0) func $f1 $f2) (func $f1 (;0;) (type $t1)) (func $f2 (;1;) (type $t2)) (func (;2;) (type $t1) @@ -27,10 +33,4 @@ ref.cast (ref $t2) drop ) - (table (;0;) 2 2 funcref) - (export "fail1" (func 2)) - (export "fail2" (func 3)) - (export "fail3" (func 4)) - (export "fail4" (func 5)) - (elem (;0;) (i32.const 0) func $f1 $f2) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/30.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/30.print index 189b0c5776..1090685677 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/30.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/30.print @@ -3,6 +3,11 @@ (type $t2 (;1;) (sub $t1 (func))) (type $t3 (;2;) (sub $t2 (func))) (type $t4 (;3;) (func)) + (table (;0;) 2 2 (ref null $t2)) + (export "run" (func 2)) + (export "fail1" (func 3)) + (export "fail2" (func 4)) + (elem (;0;) (i32.const 0) (ref null $t2) (ref.func $f2) (ref.func $f3)) (func $f2 (;0;) (type $t2)) (func $f3 (;1;) (type $t3)) (func (;2;) (type $t1) @@ -25,9 +30,4 @@ i32.const 0 call_indirect (type $t4) ) - (table (;0;) 2 2 (ref null $t2)) - (export "run" (func 2)) - (export "fail1" (func 3)) - (export "fail2" (func 4)) - (elem (;0;) (i32.const 0) (ref null $t2) (ref.func $f2) (ref.func $f3)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/34.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/34.print index 52fbaef1df..2a35106a41 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/34.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/34.print @@ -16,11 +16,11 @@ (type (;7;) (struct)) ) (type (;8;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $g) (func $g (;0;) (type $g2)) (func (;1;) (type 8) (result i32) ref.func $g ref.test (ref $g1) ) - (export "run" (func 1)) - (elem (;0;) declare func $g) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/36.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/36.print index 73d9873650..8176feb999 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/36.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/36.print @@ -16,11 +16,11 @@ (type (;7;) (sub $s2 (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2))))) ) (type (;8;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $g) (func $g (;0;) (type $g2)) (func (;1;) (type 8) (result i32) ref.func $g ref.test (ref $g1) ) - (export "run" (func 1)) - (elem (;0;) declare func $g) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/38.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/38.print index e7269e968a..6ffba1e781 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/38.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/38.print @@ -16,11 +16,11 @@ (type (;7;) (struct)) ) (type (;8;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $g) (func $g (;0;) (type $g2)) (func (;1;) (type 8) (result i32) ref.func $g ref.test (ref $g1) ) - (export "run" (func 1)) - (elem (;0;) declare func $g) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/40.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/40.print index 943f1ccd5e..a2402f87ab 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/40.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/40.print @@ -12,11 +12,11 @@ (type (;5;) (struct)) ) (type (;6;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $g) (func $g (;0;) (type $g)) (func (;1;) (type 6) (result i32) ref.func $g ref.test (ref $f1) ) - (export "run" (func 1)) - (elem (;0;) declare func $g) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/42.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/42.print index 4c6a454975..e216c696ba 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/42.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/42.print @@ -20,6 +20,8 @@ (type (;9;) (struct)) ) (type (;10;) (func (result i32 i32))) + (export "run" (func 1)) + (elem (;0;) declare func $h) (func $h (;0;) (type $h)) (func (;1;) (type 10) (result i32 i32) ref.func $h @@ -27,6 +29,4 @@ ref.func $h ref.test (ref $g1) ) - (export "run" (func 1)) - (elem (;0;) declare func $h) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/44.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/44.print index 26645c88d5..c9fae9e43d 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/44.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/44.print @@ -8,6 +8,9 @@ (type $f22 (;3;) (sub $f21 (func (result (ref $f21))))) ) (type (;4;) (func (result i32 i32 i32 i32))) + (export "run" (func 2)) + (elem (;0;) declare func $f11) + (elem (;1;) declare func $f12) (func $f11 (;0;) (type $f11) (result (ref func)) unreachable ) @@ -24,7 +27,4 @@ ref.func $f12 ref.test (ref $f22) ) - (export "run" (func 2)) - (elem (;0;) declare func $f11) - (elem (;1;) declare func $f12) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/46.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/46.print index 8b073a6d51..da182e8031 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/46.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/46.print @@ -16,6 +16,9 @@ (type $g22 (;7;) (sub $g21 (func (result (ref $g21))))) ) (type (;8;) (func (result i32 i32 i32 i32 i32 i32 i32 i32))) + (export "run" (func 2)) + (elem (;0;) declare func $g11) + (elem (;1;) declare func $g12) (func $g11 (;0;) (type $g11) (result (ref func)) unreachable ) @@ -40,7 +43,4 @@ ref.func $g12 ref.test (ref $g22) ) - (export "run" (func 2)) - (elem (;0;) declare func $g11) - (elem (;1;) declare func $g12) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/48.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/48.print index 79dea0e0a5..f1868bd768 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/48.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/48.print @@ -8,11 +8,11 @@ (type $f22 (;3;) (sub $f11 (func))) ) (type (;4;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $f21)) (func (;1;) (type 4) (result i32) ref.func $f ref.test (ref $f11) ) - (export "run" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/50.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/50.print index 57d5a2dbb8..e86353cb45 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/50.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/50.print @@ -12,11 +12,11 @@ (type $f22 (;5;) (sub $f11 (func))) ) (type (;6;) (func (result i32))) + (export "run" (func 1)) + (elem (;0;) declare func $f) (func $f (;0;) (type $f21)) (func (;1;) (type 6) (result i32) ref.func $f ref.test (ref $f11) ) - (export "run" (func 1)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/52.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/52.print index 5b1fc39f0e..7b1919bed3 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/52.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/52.print @@ -6,6 +6,9 @@ (rec (type $t2 (;2;) (sub $t1 (func (result (ref null $t2))))) ) + (export "f0" (func 0)) + (export "f1" (func 1)) + (export "f2" (func 2)) (func (;0;) (type $t0) (result funcref) ref.null func ) @@ -15,7 +18,4 @@ (func (;2;) (type $t2) (result (ref null $t2)) ref.null $t2 ) - (export "f0" (func 0)) - (export "f1" (func 1)) - (export "f2" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/58.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/58.print index 17442b2ced..4fd6647b51 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/58.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/58.print @@ -1,8 +1,8 @@ (module (type $t1 (;0;) (sub (func))) (type $t2 (;1;) (func)) - (func (;0;) (type $t1)) - (func (;1;) (type $t2)) (export "f1" (func 0)) (export "f2" (func 1)) + (func (;0;) (type $t1)) + (func (;1;) (type $t2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/62.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/62.print index 166d73dbbd..01474d2e24 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/62.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/62.print @@ -7,6 +7,6 @@ (type $g2 (;2;) (sub $f2 (func))) (type (;3;) (struct)) ) - (func (;0;) (type $g2)) (export "g" (func 0)) + (func (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/65.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/65.print index 311eba83f7..b58299ea5c 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/65.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/65.print @@ -11,6 +11,6 @@ (type $g2 (;4;) (sub $f2 (func))) (type (;5;) (sub $s2 (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2))))) ) - (func (;0;) (type $g2)) (export "g" (func 0)) + (func (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/68.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/68.print index 4933f3415d..26d9bf3393 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/68.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/68.print @@ -11,6 +11,6 @@ (type $g2 (;4;) (sub $f2 (func))) (type (;5;) (struct)) ) - (func (;0;) (type $g2)) (export "g" (func 0)) + (func (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/71.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/71.print index 650668d0a2..0dda8366d8 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/71.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/71.print @@ -11,6 +11,6 @@ (type $g (;4;) (sub $f1 (func))) (type (;5;) (struct)) ) - (func (;0;) (type $g)) (export "g" (func 0)) + (func (;0;) (type $g)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/74.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/74.print index 678221f7d9..3552c862df 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/74.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/74.print @@ -15,6 +15,6 @@ (type $h (;6;) (sub $g2 (func))) (type (;7;) (struct)) ) - (func (;0;) (type $h)) (export "h" (func 0)) + (func (;0;) (type $h)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/77.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/77.print index 9940d23b0e..4e5e40a636 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/77.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/77.print @@ -7,12 +7,12 @@ (type $f21 (;2;) (sub (func (result (ref func))))) (type $f22 (;3;) (sub $f21 (func (result (ref $f21))))) ) + (export "f11" (func 0)) + (export "f12" (func 1)) (func (;0;) (type $f11) (result (ref func)) unreachable ) (func (;1;) (type $f12) (result (ref $f11)) unreachable ) - (export "f11" (func 0)) - (export "f12" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/8.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/8.print index 20d055b5b4..9a3a31faf2 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/8.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/8.print @@ -15,6 +15,6 @@ (type $g2 (;6;) (sub $f2 (func))) (type (;7;) (struct)) ) - (func $g (;0;) (type $g2)) (global (;0;) (ref $g1) ref.func $g) + (func $g (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/80.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/80.print index e46030e6f6..05b9e26836 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/80.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/80.print @@ -15,12 +15,12 @@ (type $g21 (;6;) (sub $f21 (func (result (ref func))))) (type $g22 (;7;) (sub $g21 (func (result (ref $g21))))) ) + (export "g11" (func 0)) + (export "g12" (func 1)) (func (;0;) (type $g11) (result (ref func)) unreachable ) (func (;1;) (type $g12) (result (ref $g11)) unreachable ) - (export "g11" (func 0)) - (export "g12" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/83.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/83.print index 7036cc5420..752d548a65 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/83.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/83.print @@ -7,6 +7,6 @@ (type $f21 (;2;) (sub (func))) (type $f22 (;3;) (sub $f11 (func))) ) - (func (;0;) (type $f21)) (export "f" (func 0)) + (func (;0;) (type $f21)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/86.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/86.print index 2b83232510..1333a6d633 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/86.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/86.print @@ -11,6 +11,6 @@ (type $f21 (;4;) (sub (func))) (type $f22 (;5;) (sub $f11 (func))) ) - (func (;0;) (type $f21)) (export "f" (func 0)) + (func (;0;) (type $f21)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/9.print b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/9.print index f8b1d74433..cf8030ee26 100644 --- a/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/9.print +++ b/tests/snapshots/testsuite/proposals/memory64/type-subtyping.wast/9.print @@ -15,6 +15,6 @@ (type $g2 (;6;) (sub $f2 (func))) (type (;7;) (sub $s2 (struct (field (ref $f1)) (field (ref $f2)) (field (ref $f1)) (field (ref $f2)) (field (ref $g2))))) ) - (func $g (;0;) (type $g2)) (global (;0;) (ref $g1) ref.func $g) + (func $g (;0;) (type $g2)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/unreached-valid.wast/0.print b/tests/snapshots/testsuite/proposals/memory64/unreached-valid.wast/0.print index 78096b126f..878560637f 100644 --- a/tests/snapshots/testsuite/proposals/memory64/unreached-valid.wast/0.print +++ b/tests/snapshots/testsuite/proposals/memory64/unreached-valid.wast/0.print @@ -3,6 +3,14 @@ (type (;1;) (func)) (type (;2;) (func (result i32))) (type (;3;) (func (result i64))) + (export "select-trap-left" (func 0)) + (export "select-trap-right" (func 1)) + (export "select-unreached" (func 2)) + (export "select-unreached-result1" (func 3)) + (export "select-unreached-result2" (func 4)) + (export "select-unreached-num" (func 5)) + (export "select-unreached-ref" (func 6)) + (export "call_ref-unreached" (func 7)) (func (;0;) (type $t) (param $cond i32) (result i32) unreachable i32.const 0 @@ -64,12 +72,4 @@ unreachable call_ref $t ) - (export "select-trap-left" (func 0)) - (export "select-trap-right" (func 1)) - (export "select-unreached" (func 2)) - (export "select-unreached-result1" (func 3)) - (export "select-unreached-result2" (func 4)) - (export "select-unreached-num" (func 5)) - (export "select-unreached-ref" (func 6)) - (export "call_ref-unreached" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/memory64/unreached-valid.wast/10.print b/tests/snapshots/testsuite/proposals/memory64/unreached-valid.wast/10.print index 3baf0b6d5d..6595b36d4b 100644 --- a/tests/snapshots/testsuite/proposals/memory64/unreached-valid.wast/10.print +++ b/tests/snapshots/testsuite/proposals/memory64/unreached-valid.wast/10.print @@ -1,5 +1,6 @@ (module (type (;0;) (func)) + (export "meet-bottom" (func 0)) (func (;0;) (type 0) block (result f64) ;; label = @1 block (result f32) ;; label = @2 @@ -12,5 +13,4 @@ end drop ) - (export "meet-bottom" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/address0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/address0.wast/0.print index a3e9101715..7165da378e 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/address0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/address0.wast/0.print @@ -1,6 +1,38 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 1) + (export "8u_good1" (func 0)) + (export "8u_good2" (func 1)) + (export "8u_good3" (func 2)) + (export "8u_good4" (func 3)) + (export "8u_good5" (func 4)) + (export "8s_good1" (func 5)) + (export "8s_good2" (func 6)) + (export "8s_good3" (func 7)) + (export "8s_good4" (func 8)) + (export "8s_good5" (func 9)) + (export "16u_good1" (func 10)) + (export "16u_good2" (func 11)) + (export "16u_good3" (func 12)) + (export "16u_good4" (func 13)) + (export "16u_good5" (func 14)) + (export "16s_good1" (func 15)) + (export "16s_good2" (func 16)) + (export "16s_good3" (func 17)) + (export "16s_good4" (func 18)) + (export "16s_good5" (func 19)) + (export "32_good1" (func 20)) + (export "32_good2" (func 21)) + (export "32_good3" (func 22)) + (export "32_good4" (func 23)) + (export "32_good5" (func 24)) + (export "8u_bad" (func 25)) + (export "8s_bad" (func 26)) + (export "16u_bad" (func 27)) + (export "16s_bad" (func 28)) + (export "32_bad" (func 29)) (func (;0;) (type 0) (param $i i32) (result i32) local.get $i i32.load8_u $mem1 @@ -126,37 +158,5 @@ i32.load $mem1 offset=4294967295 drop ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 1) - (export "8u_good1" (func 0)) - (export "8u_good2" (func 1)) - (export "8u_good3" (func 2)) - (export "8u_good4" (func 3)) - (export "8u_good5" (func 4)) - (export "8s_good1" (func 5)) - (export "8s_good2" (func 6)) - (export "8s_good3" (func 7)) - (export "8s_good4" (func 8)) - (export "8s_good5" (func 9)) - (export "16u_good1" (func 10)) - (export "16u_good2" (func 11)) - (export "16u_good3" (func 12)) - (export "16u_good4" (func 13)) - (export "16u_good5" (func 14)) - (export "16s_good1" (func 15)) - (export "16s_good2" (func 16)) - (export "16s_good3" (func 17)) - (export "16s_good4" (func 18)) - (export "16s_good5" (func 19)) - (export "32_good1" (func 20)) - (export "32_good2" (func 21)) - (export "32_good3" (func 22)) - (export "32_good4" (func 23)) - (export "32_good5" (func 24)) - (export "8u_bad" (func 25)) - (export "8s_bad" (func 26)) - (export "16u_bad" (func 27)) - (export "16s_bad" (func 28)) - (export "32_bad" (func 29)) (data (;0;) (memory $mem1) (i32.const 0) "abcdefghijklmnopqrstuvwxyz") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/address1.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/address1.wast/0.print index a35d14db30..a8e02d8e21 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/address1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/address1.wast/0.print @@ -1,6 +1,53 @@ (module (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 0) + (memory $mem2 (;2;) 0) + (memory $mem3 (;3;) 0) + (memory $mem4 (;4;) 1) + (export "8u_good1" (func 0)) + (export "8u_good2" (func 1)) + (export "8u_good3" (func 2)) + (export "8u_good4" (func 3)) + (export "8u_good5" (func 4)) + (export "8s_good1" (func 5)) + (export "8s_good2" (func 6)) + (export "8s_good3" (func 7)) + (export "8s_good4" (func 8)) + (export "8s_good5" (func 9)) + (export "16u_good1" (func 10)) + (export "16u_good2" (func 11)) + (export "16u_good3" (func 12)) + (export "16u_good4" (func 13)) + (export "16u_good5" (func 14)) + (export "16s_good1" (func 15)) + (export "16s_good2" (func 16)) + (export "16s_good3" (func 17)) + (export "16s_good4" (func 18)) + (export "16s_good5" (func 19)) + (export "32u_good1" (func 20)) + (export "32u_good2" (func 21)) + (export "32u_good3" (func 22)) + (export "32u_good4" (func 23)) + (export "32u_good5" (func 24)) + (export "32s_good1" (func 25)) + (export "32s_good2" (func 26)) + (export "32s_good3" (func 27)) + (export "32s_good4" (func 28)) + (export "32s_good5" (func 29)) + (export "64_good1" (func 30)) + (export "64_good2" (func 31)) + (export "64_good3" (func 32)) + (export "64_good4" (func 33)) + (export "64_good5" (func 34)) + (export "8u_bad" (func 35)) + (export "8s_bad" (func 36)) + (export "16u_bad" (func 37)) + (export "16s_bad" (func 38)) + (export "32u_bad" (func 39)) + (export "32s_bad" (func 40)) + (export "64_bad" (func 41)) (func (;0;) (type 0) (param $i i32) (result i64) local.get $i i64.load8_u $mem4 @@ -176,52 +223,5 @@ i64.load $mem4 offset=4294967295 drop ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 0) - (memory $mem2 (;2;) 0) - (memory $mem3 (;3;) 0) - (memory $mem4 (;4;) 1) - (export "8u_good1" (func 0)) - (export "8u_good2" (func 1)) - (export "8u_good3" (func 2)) - (export "8u_good4" (func 3)) - (export "8u_good5" (func 4)) - (export "8s_good1" (func 5)) - (export "8s_good2" (func 6)) - (export "8s_good3" (func 7)) - (export "8s_good4" (func 8)) - (export "8s_good5" (func 9)) - (export "16u_good1" (func 10)) - (export "16u_good2" (func 11)) - (export "16u_good3" (func 12)) - (export "16u_good4" (func 13)) - (export "16u_good5" (func 14)) - (export "16s_good1" (func 15)) - (export "16s_good2" (func 16)) - (export "16s_good3" (func 17)) - (export "16s_good4" (func 18)) - (export "16s_good5" (func 19)) - (export "32u_good1" (func 20)) - (export "32u_good2" (func 21)) - (export "32u_good3" (func 22)) - (export "32u_good4" (func 23)) - (export "32u_good5" (func 24)) - (export "32s_good1" (func 25)) - (export "32s_good2" (func 26)) - (export "32s_good3" (func 27)) - (export "32s_good4" (func 28)) - (export "32s_good5" (func 29)) - (export "64_good1" (func 30)) - (export "64_good2" (func 31)) - (export "64_good3" (func 32)) - (export "64_good4" (func 33)) - (export "64_good5" (func 34)) - (export "8u_bad" (func 35)) - (export "8s_bad" (func 36)) - (export "16u_bad" (func 37)) - (export "16s_bad" (func 38)) - (export "32u_bad" (func 39)) - (export "32s_bad" (func 40)) - (export "64_bad" (func 41)) (data (;0;) (memory $mem4) (i32.const 0) "abcdefghijklmnopqrstuvwxyz") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/align0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/align0.wast/0.print index 07393d5638..dabc40312f 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/align0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/align0.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param i32) (result f32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 1) + (memory $mem2 (;2;) 0) + (export "f32_align_switch" (func 0)) (func (;0;) (type 0) (param i32) (result f32) (local f32 f32) f32.const 0x1.4p+3 (;=10;) @@ -45,8 +49,4 @@ end local.get 2 ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 1) - (memory $mem2 (;2;) 0) - (export "f32_align_switch" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/100.print b/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/100.print index c6566d0ced..d90addbeb7 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/100.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/100.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (start 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/58.print b/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/58.print index 40e23c382f..f60ef5c6a4 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/58.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/58.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/59.print b/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/59.print index 149738a620..b959a17a4a 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/59.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/59.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 0 funcref) (memory (;0;) 0) (elem (;0;) funcref (ref.null func)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/89.print b/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/89.print index a6b9947353..e3c7ff0b0d 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/89.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/binary.wast/89.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/data_drop0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/data_drop0.wast/0.print index 400cb5d3f1..b413f59b1e 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/data_drop0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/data_drop0.wast/0.print @@ -1,6 +1,13 @@ (module (type (;0;) (func)) (type (;1;) (func (param i32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 1) + (memory $mem2 (;2;) 0) + (export "drop_passive" (func 0)) + (export "init_passive" (func 1)) + (export "drop_active" (func 2)) + (export "init_active" (func 3)) (func (;0;) (type 0) data.drop $p ) @@ -19,13 +26,6 @@ local.get $len memory.init $mem1 $a ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 1) - (memory $mem2 (;2;) 0) - (export "drop_passive" (func 0)) - (export "init_passive" (func 1)) - (export "drop_active" (func 2)) - (export "init_active" (func 3)) (data $p (;0;) "x") (data $a (;1;) (memory $mem1) (i32.const 0) "x") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/float_exprs0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/float_exprs0.wast/0.print index 56d85a299e..77fe0ad182 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/float_exprs0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/float_exprs0.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32 f64))) (type (;1;) (func (param i32) (result f64))) + (memory (;0;) 0 0) + (memory $m (;1;) 1 1) + (memory (;2;) 0 0) + (export "init" (func 0)) + (export "run" (func 1)) + (export "check" (func 2)) (func (;0;) (type 0) (param $i i32) (param $x f64) local.get $i local.get $x @@ -31,10 +37,4 @@ local.get $i f64.load $m ) - (memory (;0;) 0 0) - (memory $m (;1;) 1 1) - (memory (;2;) 0 0) - (export "init" (func 0)) - (export "run" (func 1)) - (export "check" (func 2)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/float_exprs1.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/float_exprs1.wast/0.print index 95b79ec0f3..ec61edf317 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/float_exprs1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/float_exprs1.wast/0.print @@ -1,5 +1,16 @@ (module (type (;0;) (func (param i32 i32) (result f32))) + (memory (;0;) 0 0) + (memory (;1;) 0 0) + (memory (;2;) 0 0) + (memory (;3;) 0 0) + (memory (;4;) 0 0) + (memory $m (;5;) 1 1) + (memory (;6;) 0 0) + (memory (;7;) 0 0) + (memory (;8;) 0 0) + (export "f32.kahan_sum" (func 0)) + (export "f32.plain_sum" (func 1)) (func (;0;) (type 0) (param $p i32) (param $n i32) (result f32) (local $sum f32) (local $c f32) (local $t f32) block $exit @@ -55,16 +66,5 @@ end local.get $sum ) - (memory (;0;) 0 0) - (memory (;1;) 0 0) - (memory (;2;) 0 0) - (memory (;3;) 0 0) - (memory (;4;) 0 0) - (memory $m (;5;) 1 1) - (memory (;6;) 0 0) - (memory (;7;) 0 0) - (memory (;8;) 0 0) - (export "f32.kahan_sum" (func 0)) - (export "f32.plain_sum" (func 1)) (data (;0;) (memory $m) (i32.const 0) "\c4\c5W$\a5\84\c8\0bm\b8K.\f2v\17\1c\caJV\1e\1bnq\22]\17\1en\bf\cd\14\5c\c7!UQ9\9c\1f\b2Q\f0\a3\93\d7\c1,\ae~\a8(:\01!\f4\0aX\93\f8Bw\9f\839j_\ba\f7\0a\d8Qj4\ca\ad\c64\0e\d8&\dcL3\1c\ed)\90\a8x\0f\d1\cev1#\83\b85\e8\f2D\b0\d3\a1\fc\bb2\e1\b0\baiD\09\d6\d9}\ff.\c0Z6\143\14>\a9\fa\87m\8b\bc\ce\9d\a7\fd\c4\e9\85?\dd\d7\e1\18\a6P&rn?s\0f\f8\12\93#4av\12H\c0\9b\05\93\eb\ac\86\de\94>U\e8\8c\e8\dd\e4\fc\95G\beV\03! L\e6\bf{\f6\7f\d5\bas\1c\c1\14\8f\c4'\96\b3\bd3\ffxA_\c0Z\ce\f6gns\9a\17fp\03\f8\ce'\a3R\b2\9f;\bf\fb\ae\ed\d3Z\f87W\f0\f5n\ef\b1Mp=T\a7\01\9a\85\08H\91\f5\9d\0c`\87[\d9T\1eQm\88\8e\08\8c\a5q:V\08gF\8f\8f\13*,\ec,\1f\b4b+oA\0a\c4eB\a21k,}>\bbu\ac\86\970\d9H\cd\9a\1fV\c4\c6\e4\12\c0\9d\fb\ee\02\8c\ce\1c\f2\1e\a1x#\db\c4\1eI\03\d3q\cc\08P\c5\d8\5c\ed\d5\b5e\ac\b5\c9!\d2\c9)v\de\f00\1a[<\f2;\db:9\82:\16\08o\a8\f1\beii\99q\a6\05\d3\14\93*\16\f2/\11\c7~ \bb\91D\ee\f8\e4\01S\c0\b9\7f\f0\bf\f0\03\9cm\b1\df\a2D\01mkq+\5c\b3!\19F^\8f\db\91\d3|xk\b7\12\00\8f\eb\bd\8a\f5\d4.\c4\c1\1e\dfscYGI\03\0a\b7\cf$\cf\9c\0eDz\9e\14\fbB\bf\9d90\9e\a0\ab/\d1\ae\9ej\83C\e3U}\85\bfc\8a\f8\96\10\1f\fem\e7\22\1b\e1iF\8aD\c8\c8\f9\0c+\19\07\a5\02>\f20\10\9a\85\8a_\ef\81E\a0w\b1\03\10sK\ae\98\9dG\bf\9a-:\d5\0f\03f\e3=S\d9@\ce\1fo2/!+#!lb\d4\a7>\a8\ce(1-\00=g^\af\a0\cf.\d2\b9k\84\ebi\08\ad\bc\0b\c0A\c4P\b6\e3P1\e8\ce\e2\96eU\9c\16F\e6\b0-:\e8\81\05\b0\bf4\f7\bc\10\1c\fb\cc<\f1\85\97B\9f\eb\14\8d<\bf\d7\17\88I\9d\8b+\b2:\83\d1O\04\9e\a1\0f\ad\08\9dT\af\d1\82\c3\ec2/\02\8f\05!-\a2\b7\e4\f4o.\81+\0b\9c\fc\cb\fet\02\f9\db\f4\f3\ea\00\a8\ec\d1\99t&\dd\d64\d5%\b1F\dd\9c\aaq\f5`\b0\88\c8\e0\0bYZ%O)f\f9\e3.\fe\e9\da\e5\18O'b\f4\ce\a4!\95t\c7Wd'\9aL\fdT}a\ce\c3\ac\87F\9c\fa\ff\09\cay\97g$t\ca\d4!\83&%\19\127d\19\e5e\e0tu\8e\dd\c8\eft\c7\d8!+y\04QFe`\03]\fa\d8\f4e\a4\9e]#\da\d7\8a\92\80\a4\dex<\f1WBm\cd\c9/\d5\a4\9e\ab@\f4\cb\1b\d7\a3\ca\fc\eb\a7\01\b2\9aiNF\9b\18N\ddy\a7\aa\a6R9\1e\ef0\cc\9b\bd[\eeL!m0\00r\b0F_\08\cf\c5\b9\e0>\c2\b3\0c\dc\8ed\de\19By\cfC\eaC]\8e\88\f7\ab\15\dc?\c8g \db\b8d\b1G\1f\de\f2\cb?Y\9f\d8F\90\dc\ae/\22\f9\e21\89\d9\9c\1cL\d3\a9JW\84\9c\9f\ea,<\ae<\c3\1e\8b\e5N\17\01%\db4F_\15\ea\05\0c|\d9E\8c\19\d0s\8a\96\16\ddD\f9\05\b7[q\b0\e6!6_u\89\91su\ab}\ae\d3s\ec7\c6\eaUu\ef\ea\ab\8b{\11\dcm\1a\b2j\c4%\cf\aa\e3\9fII\89\cb7\9b\0a\a7\01`p\dc\b7\c8\83\e1B\f5\be\adb\94\ad\8d\a1") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/float_memory0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/float_memory0.wast/0.print index 8f49c4d38c..a3f274402d 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/float_memory0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/float_memory0.wast/0.print @@ -2,6 +2,17 @@ (type (;0;) (func (result f32))) (type (;1;) (func (result i32))) (type (;2;) (func)) + (memory (;0;) 0 0) + (memory (;1;) 0 0) + (memory (;2;) 0 0) + (memory $m (;3;) 1 1) + (memory (;4;) 0 0) + (memory (;5;) 0 0) + (export "f32.load" (func 0)) + (export "i32.load" (func 1)) + (export "f32.store" (func 2)) + (export "i32.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f32) i32.const 0 f32.load $m @@ -25,16 +36,5 @@ i32.const 0 i32.store $m ) - (memory (;0;) 0 0) - (memory (;1;) 0 0) - (memory (;2;) 0 0) - (memory $m (;3;) 1 1) - (memory (;4;) 0 0) - (memory (;5;) 0 0) - (export "f32.load" (func 0)) - (export "i32.load" (func 1)) - (export "f32.store" (func 2)) - (export "i32.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (memory $m) (i32.const 0) "\00\00\a0\7f") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/float_memory0.wast/15.print b/tests/snapshots/testsuite/proposals/multi-memory/float_memory0.wast/15.print index c77089b8cb..a714df4dd7 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/float_memory0.wast/15.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/float_memory0.wast/15.print @@ -2,6 +2,13 @@ (type (;0;) (func (result f64))) (type (;1;) (func (result i64))) (type (;2;) (func)) + (memory (;0;) 0 0) + (memory $m (;1;) 1 1) + (export "f64.load" (func 0)) + (export "i64.load" (func 1)) + (export "f64.store" (func 2)) + (export "i64.store" (func 3)) + (export "reset" (func 4)) (func (;0;) (type 0) (result f64) i32.const 0 f64.load $m @@ -25,12 +32,5 @@ i64.const 0 i64.store $m ) - (memory (;0;) 0 0) - (memory $m (;1;) 1 1) - (export "f64.load" (func 0)) - (export "i64.load" (func 1)) - (export "f64.store" (func 2)) - (export "i64.store" (func 3)) - (export "reset" (func 4)) (data (;0;) (memory $m) (i32.const 0) "\00\00\00\00\00\00\f4\7f") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/0.print index 26325317f4..dec6edad6e 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/0.print @@ -6,21 +6,6 @@ (type (;4;) (func (result f32))) (type (;5;) (func (param i32) (result i32))) (type (;6;) (func (param i64) (result i64))) - (func (;0;) (type 0)) - (func (;1;) (type 1) (param i32)) - (func (;2;) (type 2) (param f32)) - (func (;3;) (type 3) (result i32) - i32.const 22 - ) - (func (;4;) (type 4) (result f32) - f32.const 0x1.6p+3 (;=11;) - ) - (func (;5;) (type 5) (param i32) (result i32) - local.get 0 - ) - (func (;6;) (type 6) (param i64) (result i64) - local.get 0 - ) (table (;0;) 10 funcref) (table (;1;) 10 20 funcref) (memory (;0;) 2) @@ -40,4 +25,19 @@ (export "table-10-inf" (table 0)) (export "table-10-20" (table 1)) (export "memory-2-inf" (memory 0)) + (func (;0;) (type 0)) + (func (;1;) (type 1) (param i32)) + (func (;2;) (type 2) (param f32)) + (func (;3;) (type 3) (result i32) + i32.const 22 + ) + (func (;4;) (type 4) (result f32) + f32.const 0x1.6p+3 (;=11;) + ) + (func (;5;) (type 5) (param i32) (result i32) + local.get 0 + ) + (func (;6;) (type 6) (param i64) (result i64) + local.get 0 + ) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/117.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/117.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/117.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/117.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/122.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/122.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/122.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/122.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/150.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/150.print index c72d519576..c22b9dbe1b 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/150.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/150.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 0 3)) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/156.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/156.print index a275054d33..26228bbc15 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/156.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/156.print @@ -1,10 +1,10 @@ (module $Mgm (type (;0;) (func (result i32))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "grow" (func 0)) (func (;0;) (type 0) (result i32) i32.const 1 memory.grow ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/159.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/159.print index 9f1f4cd732..62be6533dc 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/159.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/159.print @@ -1,10 +1,10 @@ (module $Mgim1 (type (;0;) (func (result i32))) (import "grown-memory" "memory" (memory (;0;) 2)) + (export "memory" (memory 0)) + (export "grow" (func 0)) (func (;0;) (type 0) (result i32) i32.const 1 memory.grow ) - (export "memory" (memory 0)) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/162.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/162.print index 79892bea12..76ad1bbaef 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/162.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/162.print @@ -1,8 +1,8 @@ (module $Mgim2 (type (;0;) (func (result i32))) (import "grown-imported-memory" "memory" (memory (;0;) 3)) + (export "size" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (export "size" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/2.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/2.print index 60b1ddc5cb..35db23c0e6 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/2.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/2.print @@ -25,6 +25,16 @@ (import "spectest" "print_i32" (func (;15;) (type $func_i32))) (import "spectest" "print_i32" (func (;16;) (type $forward))) (import "spectest" "print_i32" (func (;17;) (type $forward))) + (table (;0;) 2 2 funcref) + (export "p1" (func 11)) + (export "p2" (func $p)) + (export "p3" (func 13)) + (export "p4" (func 13)) + (export "p5" (func 14)) + (export "p6" (func 15)) + (export "print32" (func 18)) + (export "print64" (func 19)) + (elem (;0;) (i32.const 0) func $print_i32 $print_f64) (func (;18;) (type $func_i32) (param $i i32) (local $x f32) local.get $i @@ -70,14 +80,4 @@ i32.const 1 call_indirect (type $func_f64) ) - (table (;0;) 2 2 funcref) - (export "p1" (func 11)) - (export "p2" (func $p)) - (export "p3" (func 13)) - (export "p4" (func 13)) - (export "p5" (func 14)) - (export "p6" (func 15)) - (export "print32" (func 18)) - (export "print64" (func 19)) - (elem (;0;) (i32.const 0) func $print_i32 $print_f64) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/41.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/41.print index cdb6d30a03..45653670d6 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/41.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/41.print @@ -10,6 +10,13 @@ (import "spectest" "global_i64" (global (;4;) i64)) (import "spectest" "global_f32" (global (;5;) f32)) (import "spectest" "global_f64" (global (;6;) f64)) + (export "get-0" (func 0)) + (export "get-1" (func 1)) + (export "get-x" (func 2)) + (export "get-y" (func 3)) + (export "get-4" (func 4)) + (export "get-5" (func 5)) + (export "get-6" (func 6)) (func (;0;) (type 0) (result i32) global.get 0 ) @@ -31,11 +38,4 @@ (func (;6;) (type 3) (result f64) global.get 6 ) - (export "get-0" (func 0)) - (export "get-1" (func 1)) - (export "get-x" (func 2)) - (export "get-y" (func 3)) - (export "get-4" (func 4)) - (export "get-5" (func 5)) - (export "get-6" (func 6)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/6.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/6.print index 7111042da6..9c3b885386 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/6.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32))) (import "spectest" "print_i32" (func $imported_print (;0;) (type 0))) + (export "print_i32" (func 1)) (func (;1;) (type 0) (param $i i32) local.get $i call $imported_print ) - (export "print_i32" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/72.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/72.print index 6444756a75..9001a9b066 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/72.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/72.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "table" (table $tab (;0;) 10 20 funcref)) + (export "call" (func 0)) + (elem (;0;) (i32.const 1) func $f $g) (func (;0;) (type 1) (param i32) (result i32) local.get 0 call_indirect (type 0) @@ -12,6 +14,4 @@ (func $g (;2;) (type 0) (result i32) i32.const 22 ) - (export "call" (func 0)) - (elem (;0;) (i32.const 1) func $f $g) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/78.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/78.print index 6444756a75..9001a9b066 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/78.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/78.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "table" (table $tab (;0;) 10 20 funcref)) + (export "call" (func 0)) + (elem (;0;) (i32.const 1) func $f $g) (func (;0;) (type 1) (param i32) (result i32) local.get 0 call_indirect (type 0) @@ -12,6 +14,4 @@ (func $g (;2;) (type 0) (result i32) i32.const 22 ) - (export "call" (func 0)) - (elem (;0;) (i32.const 1) func $f $g) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/8.print b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/8.print index 0a22ecf481..783e0547c3 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/8.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports.wast/8.print @@ -2,10 +2,10 @@ (type (;0;) (func (param i32))) (type (;1;) (func (param i32 i32) (result i32))) (import "spectest" "print_i32" (func $imported_print (;0;) (type 0))) + (export "print_i32" (func 1)) (func (;1;) (type 1) (param $i i32) (param $j i32) (result i32) local.get $i local.get $j i32.add ) - (export "print_i32" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/imports0.wast/0.print index a6f0e61909..6f67d606e8 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports0.wast/0.print @@ -6,21 +6,6 @@ (type (;4;) (func (result f32))) (type (;5;) (func (param i32) (result i32))) (type (;6;) (func (param i64) (result i64))) - (func (;0;) (type 0)) - (func (;1;) (type 1) (param i32)) - (func (;2;) (type 2) (param f32)) - (func (;3;) (type 3) (result i32) - i32.const 22 - ) - (func (;4;) (type 4) (result f32) - f32.const 0x1.6p+3 (;=11;) - ) - (func (;5;) (type 5) (param i32) (result i32) - local.get 0 - ) - (func (;6;) (type 6) (param i64) (result i64) - local.get 0 - ) (table (;0;) 10 funcref) (table (;1;) 10 20 funcref) (memory (;0;) 2) @@ -42,4 +27,19 @@ (export "table-10-20" (table 1)) (export "memory-2-inf" (memory 0)) (export "memory-2-4" (memory 1)) + (func (;0;) (type 0)) + (func (;1;) (type 1) (param i32)) + (func (;2;) (type 2) (param f32)) + (func (;3;) (type 3) (result i32) + i32.const 22 + ) + (func (;4;) (type 4) (result f32) + f32.const 0x1.6p+3 (;=11;) + ) + (func (;5;) (type 5) (param i32) (result i32) + local.get 0 + ) + (func (;6;) (type 6) (param i64) (result i64) + local.get 0 + ) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports1.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/imports1.wast/0.print index ebc39ae08b..5d967ef7ca 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports1.wast/0.print @@ -4,10 +4,10 @@ (import "spectest" "memory" (memory (;1;) 1 2)) (import "spectest" "memory" (memory $m (;2;) 1 2)) (import "spectest" "memory" (memory (;3;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load $m ) - (export "load" (func 0)) (data (;0;) (memory $m) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports2.wast/2.print b/tests/snapshots/testsuite/proposals/multi-memory/imports2.wast/2.print index 62cd004054..346cbe3193 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports2.wast/2.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports2.wast/2.print @@ -2,10 +2,10 @@ (type (;0;) (func (param i32) (result i32))) (import "test" "z" (memory (;0;) 0)) (import "spectest" "memory" (memory $m (;1;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load $m ) - (export "load" (func 0)) (data (;0;) (memory $m) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports2.wast/7.print b/tests/snapshots/testsuite/proposals/multi-memory/imports2.wast/7.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports2.wast/7.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports2.wast/7.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports3.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/imports3.wast/0.print index a6f0e61909..6f67d606e8 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports3.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports3.wast/0.print @@ -6,21 +6,6 @@ (type (;4;) (func (result f32))) (type (;5;) (func (param i32) (result i32))) (type (;6;) (func (param i64) (result i64))) - (func (;0;) (type 0)) - (func (;1;) (type 1) (param i32)) - (func (;2;) (type 2) (param f32)) - (func (;3;) (type 3) (result i32) - i32.const 22 - ) - (func (;4;) (type 4) (result f32) - f32.const 0x1.6p+3 (;=11;) - ) - (func (;5;) (type 5) (param i32) (result i32) - local.get 0 - ) - (func (;6;) (type 6) (param i64) (result i64) - local.get 0 - ) (table (;0;) 10 funcref) (table (;1;) 10 20 funcref) (memory (;0;) 2) @@ -42,4 +27,19 @@ (export "table-10-20" (table 1)) (export "memory-2-inf" (memory 0)) (export "memory-2-4" (memory 1)) + (func (;0;) (type 0)) + (func (;1;) (type 1) (param i32)) + (func (;2;) (type 2) (param f32)) + (func (;3;) (type 3) (result i32) + i32.const 22 + ) + (func (;4;) (type 4) (result f32) + f32.const 0x1.6p+3 (;=11;) + ) + (func (;5;) (type 5) (param i32) (result i32) + local.get 0 + ) + (func (;6;) (type 6) (param i64) (result i64) + local.get 0 + ) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/11.print b/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/11.print index 3d40fd5eb0..35ae9f06e8 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/11.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/11.print @@ -2,12 +2,12 @@ (type (;0;) (func (result i32))) (import "test" "memory-2-4" (memory (;0;) 1)) (import "grown-memory" "memory" (memory $m (;1;) 2)) - (func (;0;) (type 0) (result i32) - i32.const 1 - memory.grow $m - ) (memory (;2;) 0) (memory (;3;) 0) (export "memory" (memory $m)) (export "grow" (func 0)) + (func (;0;) (type 0) (result i32) + i32.const 1 + memory.grow $m + ) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/14.print b/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/14.print index 1cb1baba66..22a8f393d2 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/14.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/14.print @@ -2,10 +2,10 @@ (type (;0;) (func (result i32))) (import "test" "memory-2-4" (memory (;0;) 1)) (import "grown-imported-memory" "memory" (memory $m (;1;) 3)) - (func (;0;) (type 0) (result i32) - memory.size $m - ) (memory (;2;) 0) (memory (;3;) 0) (export "size" (func 0)) + (func (;0;) (type 0) (result i32) + memory.size $m + ) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/2.print b/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/2.print index ad51243e00..ce7bf269a4 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/2.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/2.print @@ -2,9 +2,9 @@ (type (;0;) (func (param i32) (result i32))) (import "test" "memory-2-4" (memory (;0;) 1)) (import "spectest" "memory" (memory $m (;1;) 0 3)) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow $m ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/8.print b/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/8.print index b59bc6b5ac..17b113a047 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/8.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/imports4.wast/8.print @@ -1,12 +1,12 @@ (module $Mgm (type (;0;) (func (result i32))) - (func (;0;) (type 0) (result i32) - i32.const 1 - memory.grow $m - ) (memory (;0;) 0) (memory (;1;) 0) (memory $m (;2;) 1) (export "memory" (memory $m)) (export "grow" (func 0)) + (func (;0;) (type 0) (result i32) + i32.const 1 + memory.grow $m + ) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/linking0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/linking0.wast/0.print index 1527e89cb1..b9ee3f5214 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/linking0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/linking0.wast/0.print @@ -2,6 +2,11 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i32))) + (table (;0;) 10 funcref) + (export "tab" (table 0)) + (export "h" (func 1)) + (export "call" (func 2)) + (elem (;0;) (i32.const 2) func $g $g $g $g) (func $g (;0;) (type 0) (result i32) i32.const 4 ) @@ -12,9 +17,4 @@ local.get 0 call_indirect (type 0) ) - (table (;0;) 10 funcref) - (export "tab" (table 0)) - (export "h" (func 1)) - (export "call" (func 2)) - (elem (;0;) (i32.const 2) func $g $g $g $g) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/0.print index 583d04d296..1658c6d765 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/0.print @@ -1,9 +1,5 @@ (module $Mm (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param $a i32) (result i32) - local.get $a - i32.load8_u $mem1 - ) (memory $mem0 (;0;) 0 0) (memory $mem1 (;1;) 1 5) (memory $mem2 (;2;) 0 0) @@ -11,5 +7,9 @@ (export "mem1" (memory $mem1)) (export "mem2" (memory $mem2)) (export "load" (func 0)) + (func (;0;) (type 0) (param $a i32) (result i32) + local.get $a + i32.load8_u $mem1 + ) (data (;0;) (memory $mem1) (i32.const 10) "\00\01\02\03\04\05\06\07\08\09") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/2.print b/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/2.print index 1fa4998834..e07205bd5f 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/2.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/2.print @@ -2,12 +2,12 @@ (type (;0;) (func (param i32) (result i32))) (import "Mm" "load" (func $loadM (;0;) (type 0))) (import "Mm" "mem0" (memory (;0;) 0)) + (memory $m (;1;) 1) + (export "Mm.load" (func $loadM)) + (export "load" (func 1)) (func (;1;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u $m ) - (memory $m (;1;) 1) - (export "Mm.load" (func $loadM)) - (export "load" (func 1)) (data (;0;) (memory $m) (i32.const 10) "\f0\f1\f2\f3\f4\f5") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/6.print b/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/6.print index f9151fca4e..6cfe1126fc 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/6.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/linking1.wast/6.print @@ -1,10 +1,10 @@ (module $Om (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem1" (memory (;0;) 1)) + (export "load" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load8_u ) - (export "load" (func 0)) (data (;0;) (i32.const 5) "\a0\a1\a2\a3\a4\a5\a6\a7") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/linking2.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/linking2.wast/0.print index 583d04d296..1658c6d765 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/linking2.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/linking2.wast/0.print @@ -1,9 +1,5 @@ (module $Mm (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param $a i32) (result i32) - local.get $a - i32.load8_u $mem1 - ) (memory $mem0 (;0;) 0 0) (memory $mem1 (;1;) 1 5) (memory $mem2 (;2;) 0 0) @@ -11,5 +7,9 @@ (export "mem1" (memory $mem1)) (export "mem2" (memory $mem2)) (export "load" (func 0)) + (func (;0;) (type 0) (param $a i32) (result i32) + local.get $a + i32.load8_u $mem1 + ) (data (;0;) (memory $mem1) (i32.const 10) "\00\01\02\03\04\05\06\07\08\09") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/linking2.wast/2.print b/tests/snapshots/testsuite/proposals/multi-memory/linking2.wast/2.print index 422a680330..af6d6a16d1 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/linking2.wast/2.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/linking2.wast/2.print @@ -1,9 +1,9 @@ (module $Pm (type (;0;) (func (param i32) (result i32))) (import "Mm" "mem1" (memory (;0;) 1 8)) + (export "grow" (func 0)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/linking3.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/linking3.wast/0.print index 48e2af36f7..b68ca4cd43 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/linking3.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/linking3.wast/0.print @@ -1,9 +1,5 @@ (module $Mm (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param $a i32) (result i32) - local.get $a - i32.load8_u $mem1 - ) (memory $mem0 (;0;) 0 0) (memory $mem1 (;1;) 5 5) (memory $mem2 (;2;) 0 0) @@ -11,5 +7,9 @@ (export "mem1" (memory $mem1)) (export "mem2" (memory $mem2)) (export "load" (func 0)) + (func (;0;) (type 0) (param $a i32) (result i32) + local.get $a + i32.load8_u $mem1 + ) (data (;0;) (memory $mem1) (i32.const 10) "\00\01\02\03\04\05\06\07\08\09") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/linking3.wast/9.print b/tests/snapshots/testsuite/proposals/multi-memory/linking3.wast/9.print index fb3eabaa79..310c6e31f7 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/linking3.wast/9.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/linking3.wast/9.print @@ -1,5 +1,11 @@ (module $Ms (type $t (;0;) (func (result i32))) + (table (;0;) 1 funcref) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "table" (table 0)) + (export "get memory[0]" (func 0)) + (export "get table[0]" (func 1)) (func (;0;) (type $t) (result i32) i32.const 0 i32.load8_u @@ -8,10 +14,4 @@ i32.const 0 call_indirect (type $t) ) - (table (;0;) 1 funcref) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "table" (table 0)) - (export "get memory[0]" (func 0)) - (export "get table[0]" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/load.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/load.wast/0.print index d5c72ea75d..26098a7490 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/load.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/load.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param i32) (result i64))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "load1" (func 0)) + (export "load2" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -8,10 +12,6 @@ local.get 0 i64.load $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "load1" (func 0)) - (export "load2" (func 1)) (data (;0;) (i32.const 0) "\01") (data (;1;) (memory $mem2) (i32.const 0) "\02") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/load.wast/21.print b/tests/snapshots/testsuite/proposals/multi-memory/load.wast/21.print index 7ec5c2099d..68c0af17ee 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/load.wast/21.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/load.wast/21.print @@ -3,6 +3,47 @@ (type (;1;) (func (result i32))) (type (;2;) (func)) (type (;3;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "as-br-value" (func 0)) + (export "as-br_if-cond" (func 1)) + (export "as-br_if-value" (func 2)) + (export "as-br_if-value-cond" (func 3)) + (export "as-br_table-index" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-br_table-value-index" (func 6)) + (export "as-return-value" (func 7)) + (export "as-if-cond" (func 8)) + (export "as-if-then" (func 9)) + (export "as-if-else" (func 10)) + (export "as-select-first" (func 11)) + (export "as-select-second" (func 12)) + (export "as-select-cond" (func 13)) + (export "as-call-first" (func 15)) + (export "as-call-mid" (func 16)) + (export "as-call-last" (func 17)) + (export "as-call_indirect-first" (func 18)) + (export "as-call_indirect-mid" (func 19)) + (export "as-call_indirect-last" (func 20)) + (export "as-call_indirect-index" (func 21)) + (export "as-local.set-value" (func 22)) + (export "as-local.tee-value" (func 23)) + (export "as-global.set-value" (func 24)) + (export "as-load-address" (func 25)) + (export "as-loadN-address" (func 26)) + (export "as-store-address" (func 27)) + (export "as-store-value" (func 28)) + (export "as-storeN-address" (func 29)) + (export "as-storeN-value" (func 30)) + (export "as-unary-operand" (func 31)) + (export "as-binary-left" (func 32)) + (export "as-binary-right" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-left" (func 35)) + (export "as-compare-right" (func 36)) + (export "as-memory.grow-size" (func 37)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) block (result i32) ;; label = @1 i32.const 0 @@ -262,45 +303,4 @@ i32.load memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "as-br-value" (func 0)) - (export "as-br_if-cond" (func 1)) - (export "as-br_if-value" (func 2)) - (export "as-br_if-value-cond" (func 3)) - (export "as-br_table-index" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-br_table-value-index" (func 6)) - (export "as-return-value" (func 7)) - (export "as-if-cond" (func 8)) - (export "as-if-then" (func 9)) - (export "as-if-else" (func 10)) - (export "as-select-first" (func 11)) - (export "as-select-second" (func 12)) - (export "as-select-cond" (func 13)) - (export "as-call-first" (func 15)) - (export "as-call-mid" (func 16)) - (export "as-call-last" (func 17)) - (export "as-call_indirect-first" (func 18)) - (export "as-call_indirect-mid" (func 19)) - (export "as-call_indirect-last" (func 20)) - (export "as-call_indirect-index" (func 21)) - (export "as-local.set-value" (func 22)) - (export "as-local.tee-value" (func 23)) - (export "as-global.set-value" (func 24)) - (export "as-load-address" (func 25)) - (export "as-loadN-address" (func 26)) - (export "as-store-address" (func 27)) - (export "as-store-value" (func 28)) - (export "as-storeN-address" (func 29)) - (export "as-storeN-value" (func 30)) - (export "as-unary-operand" (func 31)) - (export "as-binary-left" (func 32)) - (export "as-binary-right" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-left" (func 35)) - (export "as-compare-right" (func 36)) - (export "as-memory.grow-size" (func 37)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/load.wast/3.print b/tests/snapshots/testsuite/proposals/multi-memory/load.wast/3.print index d810291a40..ea7a739a89 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/load.wast/3.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/load.wast/3.print @@ -1,10 +1,10 @@ (module $M (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 2) + (export "mem" (memory 0)) + (export "read" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load8_u ) - (memory (;0;) 2) - (export "mem" (memory 0)) - (export "read" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/load.wast/5.print b/tests/snapshots/testsuite/proposals/multi-memory/load.wast/5.print index b189674735..bcf764e02b 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/load.wast/5.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/load.wast/5.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (import "M" "mem" (memory $mem1 (;0;) 2)) + (memory $mem2 (;1;) 3) + (export "read1" (func 0)) + (export "read2" (func 1)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load8_u @@ -9,9 +12,6 @@ local.get 0 i32.load8_u $mem2 ) - (memory $mem2 (;1;) 3) - (export "read1" (func 0)) - (export "read2" (func 1)) (data (;0;) (i32.const 20) "\01\02\03\04\05") (data (;1;) (memory $mem2) (i32.const 50) "\0a\0b\0c\0d\0e") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/load0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/load0.wast/0.print index d5c72ea75d..26098a7490 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/load0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/load0.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param i32) (result i64))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "load1" (func 0)) + (export "load2" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -8,10 +12,6 @@ local.get 0 i64.load $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "load1" (func 0)) - (export "load2" (func 1)) (data (;0;) (i32.const 0) "\01") (data (;1;) (memory $mem2) (i32.const 0) "\02") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/load1.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/load1.wast/0.print index d810291a40..ea7a739a89 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/load1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/load1.wast/0.print @@ -1,10 +1,10 @@ (module $M (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 2) + (export "mem" (memory 0)) + (export "read" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load8_u ) - (memory (;0;) 2) - (export "mem" (memory 0)) - (export "read" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/load1.wast/2.print b/tests/snapshots/testsuite/proposals/multi-memory/load1.wast/2.print index b189674735..bcf764e02b 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/load1.wast/2.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/load1.wast/2.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (import "M" "mem" (memory $mem1 (;0;) 2)) + (memory $mem2 (;1;) 3) + (export "read1" (func 0)) + (export "read2" (func 1)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load8_u @@ -9,9 +12,6 @@ local.get 0 i32.load8_u $mem2 ) - (memory $mem2 (;1;) 3) - (export "read1" (func 0)) - (export "read2" (func 1)) (data (;0;) (i32.const 20) "\01\02\03\04\05") (data (;1;) (memory $mem2) (i32.const 50) "\0a\0b\0c\0d\0e") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/load2.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/load2.wast/0.print index d1e246de6a..111401ba5e 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/load2.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/load2.wast/0.print @@ -3,6 +3,50 @@ (type (;1;) (func (result i32))) (type (;2;) (func)) (type (;3;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 0) + (memory (;1;) 0) + (memory (;2;) 0) + (memory $m (;3;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "as-br-value" (func 0)) + (export "as-br_if-cond" (func 1)) + (export "as-br_if-value" (func 2)) + (export "as-br_if-value-cond" (func 3)) + (export "as-br_table-index" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-br_table-value-index" (func 6)) + (export "as-return-value" (func 7)) + (export "as-if-cond" (func 8)) + (export "as-if-then" (func 9)) + (export "as-if-else" (func 10)) + (export "as-select-first" (func 11)) + (export "as-select-second" (func 12)) + (export "as-select-cond" (func 13)) + (export "as-call-first" (func 15)) + (export "as-call-mid" (func 16)) + (export "as-call-last" (func 17)) + (export "as-call_indirect-first" (func 18)) + (export "as-call_indirect-mid" (func 19)) + (export "as-call_indirect-last" (func 20)) + (export "as-call_indirect-index" (func 21)) + (export "as-local.set-value" (func 22)) + (export "as-local.tee-value" (func 23)) + (export "as-global.set-value" (func 24)) + (export "as-load-address" (func 25)) + (export "as-loadN-address" (func 26)) + (export "as-store-address" (func 27)) + (export "as-store-value" (func 28)) + (export "as-storeN-address" (func 29)) + (export "as-storeN-value" (func 30)) + (export "as-unary-operand" (func 31)) + (export "as-binary-left" (func 32)) + (export "as-binary-right" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-left" (func 35)) + (export "as-compare-right" (func 36)) + (export "as-memory.grow-size" (func 37)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) block (result i32) ;; label = @1 i32.const 0 @@ -262,48 +306,4 @@ i32.load $m memory.grow $m ) - (table (;0;) 1 1 funcref) - (memory (;0;) 0) - (memory (;1;) 0) - (memory (;2;) 0) - (memory $m (;3;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "as-br-value" (func 0)) - (export "as-br_if-cond" (func 1)) - (export "as-br_if-value" (func 2)) - (export "as-br_if-value-cond" (func 3)) - (export "as-br_table-index" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-br_table-value-index" (func 6)) - (export "as-return-value" (func 7)) - (export "as-if-cond" (func 8)) - (export "as-if-then" (func 9)) - (export "as-if-else" (func 10)) - (export "as-select-first" (func 11)) - (export "as-select-second" (func 12)) - (export "as-select-cond" (func 13)) - (export "as-call-first" (func 15)) - (export "as-call-mid" (func 16)) - (export "as-call-last" (func 17)) - (export "as-call_indirect-first" (func 18)) - (export "as-call_indirect-mid" (func 19)) - (export "as-call_indirect-last" (func 20)) - (export "as-call_indirect-index" (func 21)) - (export "as-local.set-value" (func 22)) - (export "as-local.tee-value" (func 23)) - (export "as-global.set-value" (func 24)) - (export "as-load-address" (func 25)) - (export "as-loadN-address" (func 26)) - (export "as-store-address" (func 27)) - (export "as-store-value" (func 28)) - (export "as-storeN-address" (func 29)) - (export "as-storeN-value" (func 30)) - (export "as-unary-operand" (func 31)) - (export "as-binary-left" (func 32)) - (export "as-binary-right" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-left" (func 35)) - (export "as-compare-right" (func 36)) - (export "as-memory.grow-size" (func 37)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory-multi.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory-multi.wast/0.print index a1fb57e064..933582cb07 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory-multi.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory-multi.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "init1" (func 0)) + (export "init2" (func 1)) (func (;0;) (type 0) (result i32) i32.const 1 i32.const 0 @@ -16,9 +20,5 @@ i32.const 1 i32.load $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "init1" (func 0)) - (export "init2" (func 1)) (data $d (;0;) "\01\00\00\00\02\00\00\00") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory-multi.wast/3.print b/tests/snapshots/testsuite/proposals/multi-memory/memory-multi.wast/3.print index 40db751363..42980f7a6d 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory-multi.wast/3.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory-multi.wast/3.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "fill1" (func 0)) + (export "fill2" (func 1)) (func (;0;) (type 0) (result i32) i32.const 1 i32.const 1 @@ -16,8 +20,4 @@ i32.const 1 i32.load $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "fill1" (func 0)) - (export "fill2" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/10.print b/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/10.print index 84bc4686fc..4eb767d55f 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/10.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/10.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 1 1) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 1 1) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "x") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/31.print b/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/31.print index 1413e79ade..8d87e11de2 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/31.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/31.print @@ -3,6 +3,19 @@ (type (;1;) (func (result f64))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func (param i64) (result i64))) + (memory (;0;) 1) + (export "data" (func 0)) + (export "cast" (func 1)) + (export "i32_load8_s" (func 2)) + (export "i32_load8_u" (func 3)) + (export "i32_load16_s" (func 4)) + (export "i32_load16_u" (func 5)) + (export "i64_load8_s" (func 6)) + (export "i64_load8_u" (func 7)) + (export "i64_load16_s" (func 8)) + (export "i64_load16_u" (func 9)) + (export "i64_load32_s" (func 10)) + (export "i64_load32_u" (func 11)) (func (;0;) (type 0) (result i32) i32.const 0 i32.load8_u @@ -136,19 +149,6 @@ i32.const 8 i64.load32_u ) - (memory (;0;) 1) - (export "data" (func 0)) - (export "cast" (func 1)) - (export "i32_load8_s" (func 2)) - (export "i32_load8_u" (func 3)) - (export "i32_load16_s" (func 4)) - (export "i32_load16_u" (func 5)) - (export "i64_load8_s" (func 6)) - (export "i64_load8_u" (func 7)) - (export "i64_load16_s" (func 8)) - (export "i64_load16_u" (func 9)) - (export "i64_load32_s" (func 10)) - (export "i64_load32_u" (func 11)) (data (;0;) (i32.const 0) "ABC\a7D") (data (;1;) (i32.const 20) "WASM") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/6.print b/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/6.print index 00b8e1a309..6604488ce4 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/6.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 0 0) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 0 0) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/77.print b/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/77.print index 20f91d9cb6..5402b2b5a2 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/77.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/77.print @@ -1,9 +1,5 @@ (module (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param i32) (result i32) - local.get 0 - i32.load8_u - ) (memory (;0;) 1 1) (global (;0;) i32 i32.const 10000) (global (;1;) i32 i32.const 10000) @@ -13,4 +9,8 @@ (export "__stack_top" (global 1)) (export "__heap_base" (global 2)) (export "load" (func 0)) + (func (;0;) (type 0) (param i32) (result i32) + local.get 0 + i32.load8_u + ) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/8.print b/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/8.print index 00b8e1a309..6604488ce4 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/8.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory.wast/8.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 0 0) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 0 0) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_copy0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_copy0.wast/0.print index fa4c860d55..20c3d2c7b0 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_copy0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_copy0.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory $mem0 (;0;) 1 1) + (memory $mem1 (;1;) 1 1) + (memory $mem2 (;2;) 1 1) + (memory $mem3 (;3;) 1 1) + (export "copy" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,12 +17,6 @@ local.get 0 i32.load8_u $mem3 ) - (memory $mem0 (;0;) 1 1) - (memory $mem1 (;1;) 1 1) - (memory $mem2 (;2;) 1 1) - (memory $mem3 (;3;) 1 1) - (export "copy" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\ff\11D\ee") (data (;1;) (memory $mem1) (i32.const 0) "\ee\22U\ff") (data (;2;) (memory $mem2) (i32.const 0) "\dd3f\00") diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_copy1.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_copy1.wast/0.print index ba1732407c..4d32043f45 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_copy1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_copy1.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory $mem0 (;0;) 1 1) + (memory $mem1 (;1;) 1 1) + (memory $mem2 (;2;) 1 1) + (memory $mem3 (;3;) 1 1) + (export "copy" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,12 +17,6 @@ local.get 0 i32.load8_u ) - (memory $mem0 (;0;) 1 1) - (memory $mem1 (;1;) 1 1) - (memory $mem2 (;2;) 1 1) - (memory $mem3 (;3;) 1 1) - (export "copy" (func 0)) - (export "load8_u" (func 1)) (data (;0;) (i32.const 0) "\ff\11D\ee") (data (;1;) (memory $mem1) (i32.const 0) "\ee\22U\ff") (data (;2;) (memory $mem2) (i32.const 0) "\dd3f\00") diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_fill0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_fill0.wast/0.print index be024596fd..f3bf59d02d 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_fill0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_fill0.wast/0.print @@ -1,6 +1,11 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 0) + (memory $mem2 (;2;) 1) + (export "fill" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,9 +16,4 @@ local.get 0 i32.load8_u $mem2 ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 0) - (memory $mem2 (;2;) 1) - (export "fill" (func 0)) - (export "load8_u" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/0.print index e6b320586d..50555caaed 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 0) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (memory (;0;) 0) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/132.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/132.print index 4d283b5d5e..b993d246d3 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/132.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/132.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 2) + (export "grow1" (func 0)) + (export "grow2" (func 1)) + (export "size1" (func 2)) + (export "size2" (func 3)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow @@ -15,10 +21,4 @@ (func (;3;) (type 1) (result i32) memory.size $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 2) - (export "grow1" (func 0)) - (export "grow2" (func 1)) - (export "size1" (func 2)) - (export "size2" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/18.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/18.print index b7c5e0e7c3..e5a32ddd56 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/18.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/18.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32) (result i32))) + (memory (;0;) 1) + (export "grow" (func 0)) + (export "check-memory-zero" (func 1)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow @@ -34,7 +37,4 @@ end local.get 2 ) - (memory (;0;) 1) - (export "grow" (func 0)) - (export "check-memory-zero" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/30.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/30.print index fb780425b3..e8410ecf3a 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/30.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/30.print @@ -2,6 +2,13 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i32))) + (memory (;0;) 0) + (export "load_at_zero" (func 0)) + (export "store_at_zero" (func 1)) + (export "load_at_page_size" (func 2)) + (export "store_at_page_size" (func 3)) + (export "grow" (func 4)) + (export "size" (func 5)) (func (;0;) (type 0) (result i32) i32.const 0 i32.load @@ -27,11 +34,4 @@ (func (;5;) (type 0) (result i32) memory.size ) - (memory (;0;) 0) - (export "load_at_zero" (func 0)) - (export "store_at_zero" (func 1)) - (export "load_at_page_size" (func 2)) - (export "store_at_page_size" (func 3)) - (export "grow" (func 4)) - (export "size" (func 5)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/53.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/53.print index 317ca41e5b..d1110940d0 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/53.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/53.print @@ -3,6 +3,16 @@ (type (;1;) (func (param i32) (result i32))) (import "M" "mem1" (memory $mem1 (;0;) 1 6)) (import "M" "mem2" (memory $mem2 (;1;) 0)) + (memory $mem3 (;2;) 3) + (memory $mem4 (;3;) 4 5) + (export "size1" (func 0)) + (export "size2" (func 1)) + (export "size3" (func 2)) + (export "size4" (func 3)) + (export "grow1" (func 4)) + (export "grow2" (func 5)) + (export "grow3" (func 6)) + (export "grow4" (func 7)) (func (;0;) (type 0) (result i32) memory.size ) @@ -31,14 +41,4 @@ local.get 0 memory.grow $mem4 ) - (memory $mem3 (;2;) 3) - (memory $mem4 (;3;) 4 5) - (export "size1" (func 0)) - (export "size2" (func 1)) - (export "size3" (func 2)) - (export "size4" (func 3)) - (export "grow1" (func 4)) - (export "grow2" (func 5)) - (export "grow3" (func 6)) - (export "grow4" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/9.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/9.print index a35d99218a..292fc4d161 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/9.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/9.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) + (memory (;0;) 0 10) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (memory (;0;) 0 10) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/94.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/94.print index a2125d870b..e6fac4087c 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/94.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_grow.wast/94.print @@ -3,6 +3,47 @@ (type (;1;) (func (result i32))) (type (;2;) (func)) (type (;3;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $g (;0;) (mut i32) i32.const 0) + (export "as-br-value" (func 0)) + (export "as-br_if-cond" (func 1)) + (export "as-br_if-value" (func 2)) + (export "as-br_if-value-cond" (func 3)) + (export "as-br_table-index" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-br_table-value-index" (func 6)) + (export "as-return-value" (func 7)) + (export "as-if-cond" (func 8)) + (export "as-if-then" (func 9)) + (export "as-if-else" (func 10)) + (export "as-select-first" (func 11)) + (export "as-select-second" (func 12)) + (export "as-select-cond" (func 13)) + (export "as-call-first" (func 15)) + (export "as-call-mid" (func 16)) + (export "as-call-last" (func 17)) + (export "as-call_indirect-first" (func 18)) + (export "as-call_indirect-mid" (func 19)) + (export "as-call_indirect-last" (func 20)) + (export "as-call_indirect-index" (func 21)) + (export "as-local.set-value" (func 22)) + (export "as-local.tee-value" (func 23)) + (export "as-global.set-value" (func 24)) + (export "as-load-address" (func 25)) + (export "as-loadN-address" (func 26)) + (export "as-store-address" (func 27)) + (export "as-store-value" (func 28)) + (export "as-storeN-address" (func 29)) + (export "as-storeN-value" (func 30)) + (export "as-unary-operand" (func 31)) + (export "as-binary-left" (func 32)) + (export "as-binary-right" (func 33)) + (export "as-test-operand" (func 34)) + (export "as-compare-left" (func 35)) + (export "as-compare-right" (func 36)) + (export "as-memory.grow-size" (func 37)) + (elem (;0;) (i32.const 0) func $f) (func (;0;) (type 1) (result i32) block (result i32) ;; label = @1 i32.const 0 @@ -262,45 +303,4 @@ memory.grow memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $g (;0;) (mut i32) i32.const 0) - (export "as-br-value" (func 0)) - (export "as-br_if-cond" (func 1)) - (export "as-br_if-value" (func 2)) - (export "as-br_if-value-cond" (func 3)) - (export "as-br_table-index" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-br_table-value-index" (func 6)) - (export "as-return-value" (func 7)) - (export "as-if-cond" (func 8)) - (export "as-if-then" (func 9)) - (export "as-if-else" (func 10)) - (export "as-select-first" (func 11)) - (export "as-select-second" (func 12)) - (export "as-select-cond" (func 13)) - (export "as-call-first" (func 15)) - (export "as-call-mid" (func 16)) - (export "as-call-last" (func 17)) - (export "as-call_indirect-first" (func 18)) - (export "as-call_indirect-mid" (func 19)) - (export "as-call_indirect-last" (func 20)) - (export "as-call_indirect-index" (func 21)) - (export "as-local.set-value" (func 22)) - (export "as-local.tee-value" (func 23)) - (export "as-global.set-value" (func 24)) - (export "as-load-address" (func 25)) - (export "as-loadN-address" (func 26)) - (export "as-store-address" (func 27)) - (export "as-store-value" (func 28)) - (export "as-storeN-address" (func 29)) - (export "as-storeN-value" (func 30)) - (export "as-unary-operand" (func 31)) - (export "as-binary-left" (func 32)) - (export "as-binary-right" (func 33)) - (export "as-test-operand" (func 34)) - (export "as-compare-left" (func 35)) - (export "as-compare-right" (func 36)) - (export "as-memory.grow-size" (func 37)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_init0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_init0.wast/0.print index 71f8afd8fb..a75b2858cb 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_init0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_init0.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) + (memory $mem0 (;0;) 0) + (memory $mem1 (;1;) 0) + (memory $mem2 (;2;) 1) + (memory $mem3 (;3;) 0) + (export "init" (func 0)) + (export "load8_u" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) local.get 0 local.get 1 @@ -11,11 +17,5 @@ local.get 0 i32.load8_u $mem2 ) - (memory $mem0 (;0;) 0) - (memory $mem1 (;1;) 0) - (memory $mem2 (;2;) 1) - (memory $mem3 (;3;) 0) - (export "init" (func 0)) - (export "load8_u" (func 1)) (data $mem2 (;0;) "\aa\bb\cc\dd") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/0.print index 53c0fbc85d..f247a4b0ca 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/0.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 0) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/16.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/16.print index 8261248fa5..2b2651f453 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/16.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/16.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0 2) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 0 2) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/28.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/28.print index c6b7f9d53f..65456a8c41 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/28.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/28.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 3 8) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 3 8) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/42.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/42.print index 81a668faae..c70be2bdf1 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/42.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/42.print @@ -2,6 +2,12 @@ (type (;0;) (func (result i32))) (import "M" "mem1" (memory $mem1 (;0;) 1 5)) (import "M" "mem2" (memory $mem2 (;1;) 0)) + (memory $mem3 (;2;) 3) + (memory $mem4 (;3;) 4 5) + (export "size1" (func 0)) + (export "size2" (func 1)) + (export "size3" (func 2)) + (export "size4" (func 3)) (func (;0;) (type 0) (result i32) memory.size ) @@ -14,10 +20,4 @@ (func (;3;) (type 0) (result i32) memory.size $mem4 ) - (memory $mem3 (;2;) 3) - (memory $mem4 (;3;) 4 5) - (export "size1" (func 0)) - (export "size2" (func 1)) - (export "size3" (func 2)) - (export "size4" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/8.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/8.print index 641f76ffe6..7e2597b136 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/8.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_size.wast/8.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 1) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size ) @@ -9,7 +12,4 @@ memory.grow drop ) - (memory (;0;) 1) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_size0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_size0.wast/0.print index 302442aa23..b361567db3 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_size0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_size0.wast/0.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0) + (memory (;1;) 0) + (memory (;2;) 0) + (memory (;3;) 0) + (memory $m (;4;) 0) + (export "size" (func 0)) + (export "grow" (func 1)) (func (;0;) (type 0) (result i32) memory.size $m ) @@ -9,11 +16,4 @@ memory.grow $m drop ) - (memory (;0;) 0) - (memory (;1;) 0) - (memory (;2;) 0) - (memory (;3;) 0) - (memory $m (;4;) 0) - (export "size" (func 0)) - (export "grow" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_size1.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_size1.wast/0.print index 43bbfb7b79..180e91f2aa 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_size1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_size1.wast/0.print @@ -1,6 +1,15 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0) + (memory (;1;) 0) + (memory $n (;2;) 0) + (memory (;3;) 0) + (memory $m (;4;) 0) + (export "size" (func 0)) + (export "grow" (func 1)) + (export "sizen" (func 2)) + (export "grown" (func 3)) (func (;0;) (type 0) (result i32) memory.size $m ) @@ -17,13 +26,4 @@ memory.grow $n drop ) - (memory (;0;) 0) - (memory (;1;) 0) - (memory $n (;2;) 0) - (memory (;3;) 0) - (memory $m (;4;) 0) - (export "size" (func 0)) - (export "grow" (func 1)) - (export "sizen" (func 2)) - (export "grown" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_size2.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_size2.wast/0.print index 9feb87bea6..76bd4df408 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_size2.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_size2.wast/0.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (memory (;0;) 0 0) + (memory (;1;) 0 0) + (memory $n (;2;) 0 0) + (memory $m (;3;) 0 2) + (export "size" (func 0)) + (export "grow" (func 1)) + (export "sizen" (func 2)) + (export "grown" (func 3)) (func (;0;) (type 0) (result i32) memory.size $m ) @@ -17,12 +25,4 @@ memory.grow $n drop ) - (memory (;0;) 0 0) - (memory (;1;) 0 0) - (memory $n (;2;) 0 0) - (memory $m (;3;) 0 2) - (export "size" (func 0)) - (export "grow" (func 1)) - (export "sizen" (func 2)) - (export "grown" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_trap0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_trap0.wast/0.print index 7602643233..5ae1ff5e7d 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_trap0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_trap0.wast/0.print @@ -2,6 +2,12 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32) (result i32))) + (memory (;0;) 0) + (memory (;1;) 0) + (memory $m (;2;) 1) + (export "store" (func 1)) + (export "load" (func 2)) + (export "memory.grow" (func 3)) (func $addr_limit (;0;) (type 0) (result i32) memory.size $m i32.const 65536 @@ -24,10 +30,4 @@ local.get 0 memory.grow $m ) - (memory (;0;) 0) - (memory (;1;) 0) - (memory $m (;2;) 1) - (export "store" (func 1)) - (export "load" (func 2)) - (export "memory.grow" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/memory_trap1.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/memory_trap1.wast/0.print index 99548781c9..ad4c6db684 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/memory_trap1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/memory_trap1.wast/0.print @@ -7,6 +7,32 @@ (type (;5;) (func (param i32 i64))) (type (;6;) (func (param i32 f32))) (type (;7;) (func (param i32 f64))) + (memory (;0;) 0) + (memory (;1;) 0) + (memory $m (;2;) 1) + (export "i32.load" (func 0)) + (export "i64.load" (func 1)) + (export "f32.load" (func 2)) + (export "f64.load" (func 3)) + (export "i32.load8_s" (func 4)) + (export "i32.load8_u" (func 5)) + (export "i32.load16_s" (func 6)) + (export "i32.load16_u" (func 7)) + (export "i64.load8_s" (func 8)) + (export "i64.load8_u" (func 9)) + (export "i64.load16_s" (func 10)) + (export "i64.load16_u" (func 11)) + (export "i64.load32_s" (func 12)) + (export "i64.load32_u" (func 13)) + (export "i32.store" (func 14)) + (export "i64.store" (func 15)) + (export "f32.store" (func 16)) + (export "f64.store" (func 17)) + (export "i32.store8" (func 18)) + (export "i32.store16" (func 19)) + (export "i64.store8" (func 20)) + (export "i64.store16" (func 21)) + (export "i64.store32" (func 22)) (func (;0;) (type 0) (param $a i32) (result i32) local.get $a i32.load $m @@ -108,32 +134,6 @@ local.get $v i64.store32 $m ) - (memory (;0;) 0) - (memory (;1;) 0) - (memory $m (;2;) 1) - (export "i32.load" (func 0)) - (export "i64.load" (func 1)) - (export "f32.load" (func 2)) - (export "f64.load" (func 3)) - (export "i32.load8_s" (func 4)) - (export "i32.load8_u" (func 5)) - (export "i32.load16_s" (func 6)) - (export "i32.load16_u" (func 7)) - (export "i64.load8_s" (func 8)) - (export "i64.load8_u" (func 9)) - (export "i64.load16_s" (func 10)) - (export "i64.load16_u" (func 11)) - (export "i64.load32_s" (func 12)) - (export "i64.load32_u" (func 13)) - (export "i32.store" (func 14)) - (export "i64.store" (func 15)) - (export "f32.store" (func 16)) - (export "f64.store" (func 17)) - (export "i32.store8" (func 18)) - (export "i32.store16" (func 19)) - (export "i64.store8" (func 20)) - (export "i64.store16" (func 21)) - (export "i64.store32" (func 22)) (data (;0;) (memory $m) (i32.const 0) "abcdefgh") (data (;1;) (memory $m) (i32.const 65528) "abcdefgh") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/simd_memory-multi.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/simd_memory-multi.wast/0.print index e4c816f3e8..a98bb4cc3a 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/simd_memory-multi.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/simd_memory-multi.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (memory $m (;1;) 1) (func (;0;) (type 0) (local $v v128) i32.const 0 @@ -87,6 +89,4 @@ local.get $v v128.store8_lane $m 1 ) - (memory (;0;) 1) - (memory $m (;1;) 1) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/start0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/start0.wast/0.print index a9a7a8236a..b311c53b09 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/start0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/start0.wast/0.print @@ -1,6 +1,13 @@ (module (type (;0;) (func)) (type (;1;) (func (result i32))) + (memory (;0;) 0) + (memory $m (;1;) 1 1) + (memory $n (;2;) 1) + (export "inc" (func $inc)) + (export "get" (func $get)) + (export "getn" (func $getn)) + (start $main) (func $inc (;0;) (type 0) i32.const 0 i32.const 0 @@ -24,12 +31,5 @@ call $inc call $inc ) - (memory (;0;) 0) - (memory $m (;1;) 1 1) - (memory $n (;2;) 1) - (export "inc" (func $inc)) - (export "get" (func $get)) - (export "getn" (func $getn)) - (start $main) (data (;0;) (memory $m) (i32.const 0) "A") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/0.print index 1ba30be7f7..27d14975fd 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "load1" (func 0)) + (export "load2" (func 1)) + (export "store1" (func 2)) + (export "store2" (func 3)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -19,10 +25,4 @@ local.get 1 i64.store $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "load1" (func 0)) - (export "load2" (func 1)) - (export "store1" (func 2)) - (export "store2" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/13.print b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/13.print index ba12e11e4a..ec821a5146 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/13.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/13.print @@ -3,6 +3,10 @@ (type (;1;) (func (param i32 i64))) (import "M1" "mem" (memory $mem1 (;0;) 1)) (import "M2" "mem" (memory $mem2 (;1;) 1)) + (export "load1" (func 0)) + (export "load2" (func 1)) + (export "store1" (func 2)) + (export "store2" (func 3)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -21,8 +25,4 @@ local.get 1 i64.store $mem2 ) - (export "load1" (func 0)) - (export "load2" (func 1)) - (export "store1" (func 2)) - (export "store2" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/20.print b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/20.print index bbd283207b..b1c4237750 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/20.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/20.print @@ -2,6 +2,11 @@ (type (;0;) (func (param i32) (result i32))) (type (;1;) (func)) (import "M" "mem" (memory $mem1 (;0;) 2)) + (memory $mem2 (;1;) 3) + (export "read1" (func 0)) + (export "read2" (func 1)) + (export "copy-1-to-2" (func 2)) + (export "copy-2-to-1" (func 3)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load8_u @@ -50,11 +55,6 @@ br $cont end ) - (memory $mem2 (;1;) 3) - (export "read1" (func 0)) - (export "read2" (func 1)) - (export "copy-1-to-2" (func 2)) - (export "copy-2-to-1" (func 3)) (data (;0;) (i32.const 20) "\01\02\03\04\05") (data (;1;) (memory $mem2) (i32.const 50) "\0a\0b\0c\0d\0e") ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/43.print b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/43.print index 8bbd7d4a32..c2f3130424 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/43.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/43.print @@ -1,5 +1,15 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "as-block-value" (func 0)) + (export "as-loop-value" (func 1)) + (export "as-br-value" (func 2)) + (export "as-br_if-value" (func 3)) + (export "as-br_if-value-cond" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-return-value" (func 6)) + (export "as-if-then" (func 7)) + (export "as-if-else" (func 8)) (func (;0;) (type 0) block ;; label = @1 i32.const 0 @@ -72,14 +82,4 @@ i32.store end ) - (memory (;0;) 1) - (export "as-block-value" (func 0)) - (export "as-loop-value" (func 1)) - (export "as-br-value" (func 2)) - (export "as-br_if-value" (func 3)) - (export "as-br_if-value-cond" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-return-value" (func 6)) - (export "as-if-then" (func 7)) - (export "as-if-else" (func 8)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/5.print b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/5.print index 1bbe6f2a69..d7420ccc26 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/5.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/5.print @@ -1,6 +1,10 @@ (module $M1 (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "load" (func 0)) + (export "store" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -10,8 +14,4 @@ local.get 1 i64.store ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "load" (func 0)) - (export "store" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/7.print b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/7.print index 544f803d9a..d937f5f25a 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/store.wast/7.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/store.wast/7.print @@ -1,6 +1,10 @@ (module $M2 (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "load" (func 0)) + (export "store" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -10,8 +14,4 @@ local.get 1 i64.store ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "load" (func 0)) - (export "store" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/store0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/store0.wast/0.print index 1ba30be7f7..27d14975fd 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/store0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/store0.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory $mem1 (;0;) 1) + (memory $mem2 (;1;) 1) + (export "load1" (func 0)) + (export "load2" (func 1)) + (export "store1" (func 2)) + (export "store2" (func 3)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -19,10 +25,4 @@ local.get 1 i64.store $mem2 ) - (memory $mem1 (;0;) 1) - (memory $mem2 (;1;) 1) - (export "load1" (func 0)) - (export "load2" (func 1)) - (export "store1" (func 2)) - (export "store2" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/0.print index 1bbe6f2a69..d7420ccc26 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/0.print @@ -1,6 +1,10 @@ (module $M1 (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "load" (func 0)) + (export "store" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -10,8 +14,4 @@ local.get 1 i64.store ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "load" (func 0)) - (export "store" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/2.print b/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/2.print index 544f803d9a..d937f5f25a 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/2.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/2.print @@ -1,6 +1,10 @@ (module $M2 (type (;0;) (func (param i32) (result i64))) (type (;1;) (func (param i32 i64))) + (memory (;0;) 1) + (export "mem" (memory 0)) + (export "load" (func 0)) + (export "store" (func 1)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -10,8 +14,4 @@ local.get 1 i64.store ) - (memory (;0;) 1) - (export "mem" (memory 0)) - (export "load" (func 0)) - (export "store" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/8.print b/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/8.print index ba12e11e4a..ec821a5146 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/8.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/store1.wast/8.print @@ -3,6 +3,10 @@ (type (;1;) (func (param i32 i64))) (import "M1" "mem" (memory $mem1 (;0;) 1)) (import "M2" "mem" (memory $mem2 (;1;) 1)) + (export "load1" (func 0)) + (export "load2" (func 1)) + (export "store1" (func 2)) + (export "store2" (func 3)) (func (;0;) (type 0) (param i32) (result i64) local.get 0 i64.load @@ -21,8 +25,4 @@ local.get 1 i64.store $mem2 ) - (export "load1" (func 0)) - (export "load2" (func 1)) - (export "store1" (func 2)) - (export "store2" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/multi-memory/traps0.wast/0.print b/tests/snapshots/testsuite/proposals/multi-memory/traps0.wast/0.print index 4282fd7c9d..6001d4ff38 100644 --- a/tests/snapshots/testsuite/proposals/multi-memory/traps0.wast/0.print +++ b/tests/snapshots/testsuite/proposals/multi-memory/traps0.wast/0.print @@ -1,5 +1,22 @@ (module (type (;0;) (func (param i32))) + (memory $mem0 (;0;) 1) + (memory $mem1 (;1;) 1) + (memory $mem2 (;2;) 1) + (export "no_dce.i32.load" (func 0)) + (export "no_dce.i32.load16_s" (func 1)) + (export "no_dce.i32.load16_u" (func 2)) + (export "no_dce.i32.load8_s" (func 3)) + (export "no_dce.i32.load8_u" (func 4)) + (export "no_dce.i64.load" (func 5)) + (export "no_dce.i64.load32_s" (func 6)) + (export "no_dce.i64.load32_u" (func 7)) + (export "no_dce.i64.load16_s" (func 8)) + (export "no_dce.i64.load16_u" (func 9)) + (export "no_dce.i64.load8_s" (func 10)) + (export "no_dce.i64.load8_u" (func 11)) + (export "no_dce.f32.load" (func 12)) + (export "no_dce.f64.load" (func 13)) (func (;0;) (type 0) (param $i i32) local.get $i i32.load $mem1 @@ -70,21 +87,4 @@ f64.load $mem2 drop ) - (memory $mem0 (;0;) 1) - (memory $mem1 (;1;) 1) - (memory $mem2 (;2;) 1) - (export "no_dce.i32.load" (func 0)) - (export "no_dce.i32.load16_s" (func 1)) - (export "no_dce.i32.load16_u" (func 2)) - (export "no_dce.i32.load8_s" (func 3)) - (export "no_dce.i32.load8_u" (func 4)) - (export "no_dce.i64.load" (func 5)) - (export "no_dce.i64.load32_s" (func 6)) - (export "no_dce.i64.load32_u" (func 7)) - (export "no_dce.i64.load16_s" (func 8)) - (export "no_dce.i64.load16_u" (func 9)) - (export "no_dce.i64.load8_s" (func 10)) - (export "no_dce.i64.load8_u" (func 11)) - (export "no_dce.f32.load" (func 12)) - (export "no_dce.f64.load" (func 13)) ) diff --git a/tests/snapshots/testsuite/proposals/relaxed-simd/i16x8_relaxed_q15mulr_s.wast/0.print b/tests/snapshots/testsuite/proposals/relaxed-simd/i16x8_relaxed_q15mulr_s.wast/0.print index 0d65613789..f1ef06d46d 100644 --- a/tests/snapshots/testsuite/proposals/relaxed-simd/i16x8_relaxed_q15mulr_s.wast/0.print +++ b/tests/snapshots/testsuite/proposals/relaxed-simd/i16x8_relaxed_q15mulr_s.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "i16x8.relaxed_q15mulr_s" (func 0)) + (export "i16x8.relaxed_q15mulr_s_cmp" (func 1)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -14,6 +16,4 @@ i16x8.relaxed_q15mulr_s i16x8.eq ) - (export "i16x8.relaxed_q15mulr_s" (func 0)) - (export "i16x8.relaxed_q15mulr_s_cmp" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/relaxed-simd/i32x4_relaxed_trunc.wast/0.print b/tests/snapshots/testsuite/proposals/relaxed-simd/i32x4_relaxed_trunc.wast/0.print index 9f08b64880..75aa4317d7 100644 --- a/tests/snapshots/testsuite/proposals/relaxed-simd/i32x4_relaxed_trunc.wast/0.print +++ b/tests/snapshots/testsuite/proposals/relaxed-simd/i32x4_relaxed_trunc.wast/0.print @@ -1,5 +1,13 @@ (module (type (;0;) (func (param v128) (result v128))) + (export "i32x4.relaxed_trunc_f32x4_s" (func 0)) + (export "i32x4.relaxed_trunc_f32x4_u" (func 1)) + (export "i32x4.relaxed_trunc_f64x2_s_zero" (func 2)) + (export "i32x4.relaxed_trunc_f64x2_u_zero" (func 3)) + (export "i32x4.relaxed_trunc_f32x4_s_cmp" (func 4)) + (export "i32x4.relaxed_trunc_f32x4_u_cmp" (func 5)) + (export "i32x4.relaxed_trunc_f64x2_s_zero_cmp" (func 6)) + (export "i32x4.relaxed_trunc_f64x2_u_zero_cmp" (func 7)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i32x4.relaxed_trunc_f32x4_s @@ -44,12 +52,4 @@ i32x4.relaxed_trunc_f64x2_u_zero i32x4.eq ) - (export "i32x4.relaxed_trunc_f32x4_s" (func 0)) - (export "i32x4.relaxed_trunc_f32x4_u" (func 1)) - (export "i32x4.relaxed_trunc_f64x2_s_zero" (func 2)) - (export "i32x4.relaxed_trunc_f64x2_u_zero" (func 3)) - (export "i32x4.relaxed_trunc_f32x4_s_cmp" (func 4)) - (export "i32x4.relaxed_trunc_f32x4_u_cmp" (func 5)) - (export "i32x4.relaxed_trunc_f64x2_s_zero_cmp" (func 6)) - (export "i32x4.relaxed_trunc_f64x2_u_zero_cmp" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/relaxed-simd/i8x16_relaxed_swizzle.wast/0.print b/tests/snapshots/testsuite/proposals/relaxed-simd/i8x16_relaxed_swizzle.wast/0.print index 628b8f21df..087d8748f0 100644 --- a/tests/snapshots/testsuite/proposals/relaxed-simd/i8x16_relaxed_swizzle.wast/0.print +++ b/tests/snapshots/testsuite/proposals/relaxed-simd/i8x16_relaxed_swizzle.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "i8x16.relaxed_swizzle" (func 0)) + (export "i8x16.relaxed_swizzle_cmp" (func 1)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -14,6 +16,4 @@ i8x16.relaxed_swizzle i8x16.eq ) - (export "i8x16.relaxed_swizzle" (func 0)) - (export "i8x16.relaxed_swizzle_cmp" (func 1)) ) diff --git a/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_dot_product.wast/0.print b/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_dot_product.wast/0.print index 578f66a5cc..c5527fbf69 100644 --- a/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_dot_product.wast/0.print +++ b/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_dot_product.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128 v128 v128) (result v128))) + (export "i16x8.relaxed_dot_i8x16_i7x16_s" (func 0)) + (export "i32x4.relaxed_dot_i8x16_i7x16_add_s" (func 1)) + (export "i16x8.relaxed_dot_i8x16_i7x16_s_cmp" (func 2)) + (export "i32x4.relaxed_dot_i8x16_i7x16_add_s_cmp" (func 3)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -32,8 +36,4 @@ i32x4.relaxed_dot_i8x16_i7x16_add_s i16x8.eq ) - (export "i16x8.relaxed_dot_i8x16_i7x16_s" (func 0)) - (export "i32x4.relaxed_dot_i8x16_i7x16_add_s" (func 1)) - (export "i16x8.relaxed_dot_i8x16_i7x16_s_cmp" (func 2)) - (export "i32x4.relaxed_dot_i8x16_i7x16_add_s_cmp" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_laneselect.wast/0.print b/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_laneselect.wast/0.print index f591b57ef6..5c857660d3 100644 --- a/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_laneselect.wast/0.print +++ b/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_laneselect.wast/0.print @@ -1,5 +1,13 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) + (export "i8x16.relaxed_laneselect" (func 0)) + (export "i16x8.relaxed_laneselect" (func 1)) + (export "i32x4.relaxed_laneselect" (func 2)) + (export "i64x2.relaxed_laneselect" (func 3)) + (export "i8x16.relaxed_laneselect_cmp" (func 4)) + (export "i16x8.relaxed_laneselect_cmp" (func 5)) + (export "i32x4.relaxed_laneselect_cmp" (func 6)) + (export "i64x2.relaxed_laneselect_cmp" (func 7)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -68,12 +76,4 @@ i64x2.relaxed_laneselect i64x2.eq ) - (export "i8x16.relaxed_laneselect" (func 0)) - (export "i16x8.relaxed_laneselect" (func 1)) - (export "i32x4.relaxed_laneselect" (func 2)) - (export "i64x2.relaxed_laneselect" (func 3)) - (export "i8x16.relaxed_laneselect_cmp" (func 4)) - (export "i16x8.relaxed_laneselect_cmp" (func 5)) - (export "i32x4.relaxed_laneselect_cmp" (func 6)) - (export "i64x2.relaxed_laneselect_cmp" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_madd_nmadd.wast/0.print b/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_madd_nmadd.wast/0.print index 6d16e7ee09..ed9ccd3907 100644 --- a/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_madd_nmadd.wast/0.print +++ b/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_madd_nmadd.wast/0.print @@ -1,5 +1,13 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) + (export "f32x4.relaxed_madd" (func 0)) + (export "f32x4.relaxed_nmadd" (func 1)) + (export "f64x2.relaxed_nmadd" (func 2)) + (export "f64x2.relaxed_madd" (func 3)) + (export "f32x4.relaxed_madd_cmp" (func 4)) + (export "f32x4.relaxed_nmadd_cmp" (func 5)) + (export "f64x2.relaxed_nmadd_cmp" (func 6)) + (export "f64x2.relaxed_madd_cmp" (func 7)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -68,12 +76,4 @@ f64x2.relaxed_madd f64x2.eq ) - (export "f32x4.relaxed_madd" (func 0)) - (export "f32x4.relaxed_nmadd" (func 1)) - (export "f64x2.relaxed_nmadd" (func 2)) - (export "f64x2.relaxed_madd" (func 3)) - (export "f32x4.relaxed_madd_cmp" (func 4)) - (export "f32x4.relaxed_nmadd_cmp" (func 5)) - (export "f64x2.relaxed_nmadd_cmp" (func 6)) - (export "f64x2.relaxed_madd_cmp" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_madd_nmadd.wast/17.print b/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_madd_nmadd.wast/17.print index 5576b01f55..86f9c0ef7c 100644 --- a/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_madd_nmadd.wast/17.print +++ b/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_madd_nmadd.wast/17.print @@ -1,5 +1,6 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) + (export "test-consistent-nondeterminism" (func 0)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) v128.const i32x4 0x7f7fffff 0x7f7fffff 0x7f7fffff 0x7f7fffff v128.const i32x4 0x40000000 0x40000000 0x40000000 0x40000000 @@ -11,5 +12,4 @@ f32x4.relaxed_madd f32x4.eq ) - (export "test-consistent-nondeterminism" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_min_max.wast/0.print b/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_min_max.wast/0.print index f16d1385f7..a56ecc29b2 100644 --- a/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_min_max.wast/0.print +++ b/tests/snapshots/testsuite/proposals/relaxed-simd/relaxed_min_max.wast/0.print @@ -1,5 +1,13 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "f32x4.relaxed_min" (func 0)) + (export "f32x4.relaxed_max" (func 1)) + (export "f64x2.relaxed_min" (func 2)) + (export "f64x2.relaxed_max" (func 3)) + (export "f32x4.relaxed_min_cmp" (func 4)) + (export "f32x4.relaxed_max_cmp" (func 5)) + (export "f64x2.relaxed_min_cmp" (func 6)) + (export "f64x2.relaxed_max_cmp" (func 7)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -56,12 +64,4 @@ f64x2.relaxed_max i64x2.eq ) - (export "f32x4.relaxed_min" (func 0)) - (export "f32x4.relaxed_max" (func 1)) - (export "f64x2.relaxed_min" (func 2)) - (export "f64x2.relaxed_max" (func 3)) - (export "f32x4.relaxed_min_cmp" (func 4)) - (export "f32x4.relaxed_max_cmp" (func 5)) - (export "f64x2.relaxed_min_cmp" (func 6)) - (export "f64x2.relaxed_max_cmp" (func 7)) ) diff --git a/tests/snapshots/testsuite/proposals/tail-call/return_call.wast/0.print b/tests/snapshots/testsuite/proposals/tail-call/return_call.wast/0.print index d1e65c0f4d..5d4c4c7bed 100644 --- a/tests/snapshots/testsuite/proposals/tail-call/return_call.wast/0.print +++ b/tests/snapshots/testsuite/proposals/tail-call/return_call.wast/0.print @@ -13,6 +13,22 @@ (type (;11;) (func (param i64 f64) (result f64))) (type (;12;) (func (param i64 i64) (result i64))) (type (;13;) (func (param i64) (result i32))) + (export "type-i32" (func 12)) + (export "type-i64" (func 13)) + (export "type-f32" (func 14)) + (export "type-f64" (func 15)) + (export "type-first-i32" (func 16)) + (export "type-first-i64" (func 17)) + (export "type-first-f32" (func 18)) + (export "type-first-f64" (func 19)) + (export "type-second-i32" (func 20)) + (export "type-second-i64" (func 21)) + (export "type-second-f32" (func 22)) + (export "type-second-f64" (func 23)) + (export "fac-acc" (func $fac-acc)) + (export "count" (func $count)) + (export "even" (func $even)) + (export "odd" (func $odd)) (func $const-i32 (;0;) (type 0) (result i32) i32.const 306 ) @@ -148,20 +164,4 @@ return_call $even end ) - (export "type-i32" (func 12)) - (export "type-i64" (func 13)) - (export "type-f32" (func 14)) - (export "type-f64" (func 15)) - (export "type-first-i32" (func 16)) - (export "type-first-i64" (func 17)) - (export "type-first-f32" (func 18)) - (export "type-first-f64" (func 19)) - (export "type-second-i32" (func 20)) - (export "type-second-i64" (func 21)) - (export "type-second-f32" (func 22)) - (export "type-second-f64" (func 23)) - (export "fac-acc" (func $fac-acc)) - (export "count" (func $count)) - (export "even" (func $even)) - (export "odd" (func $odd)) ) diff --git a/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/0.print b/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/0.print index ba76cb3e1d..be0799bf90 100644 --- a/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/0.print +++ b/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/0.print @@ -22,6 +22,31 @@ (type (;20;) (func (param i64 f64 i32 i64) (result i32))) (type (;21;) (func (param i32) (result i64))) (type (;22;) (func (param i64 i64) (result i64))) + (table (;0;) 20 20 funcref) + (table $tab2 (;1;) 1 1 funcref) + (table $tab3 (;2;) 1 1 funcref) + (export "type-i32" (func 19)) + (export "type-i64" (func 20)) + (export "type-f32" (func 21)) + (export "type-f64" (func 22)) + (export "type-index" (func 23)) + (export "type-first-i32" (func 24)) + (export "type-first-i64" (func 25)) + (export "type-first-f32" (func 26)) + (export "type-first-f64" (func 27)) + (export "type-second-i32" (func 28)) + (export "type-second-i64" (func 29)) + (export "type-second-f32" (func 30)) + (export "type-second-f64" (func 31)) + (export "dispatch" (func 32)) + (export "dispatch-structural" (func 33)) + (export "call-tab" (func 36)) + (export "fac" (func $fac)) + (export "even" (func $even)) + (export "odd" (func $odd)) + (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac $fac-acc $even $odd $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate) + (elem (;1;) (table $tab2) (i32.const 0) func $tab-f1) + (elem (;2;) (table $tab3) (i32.const 0) func $tab-f2) (func $const-i32 (;0;) (type $out-i32) (result i32) i32.const 306 ) @@ -258,29 +283,4 @@ return_call_indirect (type $over-i32) end ) - (table (;0;) 20 20 funcref) - (table $tab2 (;1;) 1 1 funcref) - (table $tab3 (;2;) 1 1 funcref) - (export "type-i32" (func 19)) - (export "type-i64" (func 20)) - (export "type-f32" (func 21)) - (export "type-f64" (func 22)) - (export "type-index" (func 23)) - (export "type-first-i32" (func 24)) - (export "type-first-i64" (func 25)) - (export "type-first-f32" (func 26)) - (export "type-first-f64" (func 27)) - (export "type-second-i32" (func 28)) - (export "type-second-i64" (func 29)) - (export "type-second-f32" (func 30)) - (export "type-second-f64" (func 31)) - (export "dispatch" (func 32)) - (export "dispatch-structural" (func 33)) - (export "call-tab" (func 36)) - (export "fac" (func $fac)) - (export "even" (func $even)) - (export "odd" (func $odd)) - (elem (;0;) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac $fac-acc $even $odd $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate) - (elem (;1;) (table $tab2) (i32.const 0) func $tab-f1) - (elem (;2;) (table $tab3) (i32.const 0) func $tab-f2) ) diff --git a/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/64.print b/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/64.print index b26615ee35..60d6b9f329 100644 --- a/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/64.print +++ b/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/64.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (table (;0;) 0 funcref) (func $arity-1-vs-0 (;0;) (type 0) i32.const 1 i32.const 0 return_call_indirect (type 0) ) - (table (;0;) 0 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/65.print b/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/65.print index 0e28863cfd..5a4ef5a82d 100644 --- a/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/65.print +++ b/tests/snapshots/testsuite/proposals/tail-call/return_call_indirect.wast/65.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (table (;0;) 0 funcref) (func $arity-2-vs-0 (;0;) (type 0) f64.const 0x1p+1 (;=2;) i32.const 1 i32.const 0 return_call_indirect (type 0) ) - (table (;0;) 0 funcref) ) diff --git a/tests/snapshots/testsuite/proposals/threads/atomic.wast/0.print b/tests/snapshots/testsuite/proposals/threads/atomic.wast/0.print index ea5bb034fb..37383f2b40 100644 --- a/tests/snapshots/testsuite/proposals/threads/atomic.wast/0.print +++ b/tests/snapshots/testsuite/proposals/threads/atomic.wast/0.print @@ -8,6 +8,71 @@ (type (;6;) (func (param i32 i64) (result i64))) (type (;7;) (func (param i32 i32 i32) (result i32))) (type (;8;) (func (param i32 i64 i64) (result i64))) + (memory (;0;) 1 1 shared) + (export "init" (func 0)) + (export "i32.atomic.load" (func 1)) + (export "i64.atomic.load" (func 2)) + (export "i32.atomic.load8_u" (func 3)) + (export "i32.atomic.load16_u" (func 4)) + (export "i64.atomic.load8_u" (func 5)) + (export "i64.atomic.load16_u" (func 6)) + (export "i64.atomic.load32_u" (func 7)) + (export "i32.atomic.store" (func 8)) + (export "i64.atomic.store" (func 9)) + (export "i32.atomic.store8" (func 10)) + (export "i32.atomic.store16" (func 11)) + (export "i64.atomic.store8" (func 12)) + (export "i64.atomic.store16" (func 13)) + (export "i64.atomic.store32" (func 14)) + (export "i32.atomic.rmw.add" (func 15)) + (export "i64.atomic.rmw.add" (func 16)) + (export "i32.atomic.rmw8.add_u" (func 17)) + (export "i32.atomic.rmw16.add_u" (func 18)) + (export "i64.atomic.rmw8.add_u" (func 19)) + (export "i64.atomic.rmw16.add_u" (func 20)) + (export "i64.atomic.rmw32.add_u" (func 21)) + (export "i32.atomic.rmw.sub" (func 22)) + (export "i64.atomic.rmw.sub" (func 23)) + (export "i32.atomic.rmw8.sub_u" (func 24)) + (export "i32.atomic.rmw16.sub_u" (func 25)) + (export "i64.atomic.rmw8.sub_u" (func 26)) + (export "i64.atomic.rmw16.sub_u" (func 27)) + (export "i64.atomic.rmw32.sub_u" (func 28)) + (export "i32.atomic.rmw.and" (func 29)) + (export "i64.atomic.rmw.and" (func 30)) + (export "i32.atomic.rmw8.and_u" (func 31)) + (export "i32.atomic.rmw16.and_u" (func 32)) + (export "i64.atomic.rmw8.and_u" (func 33)) + (export "i64.atomic.rmw16.and_u" (func 34)) + (export "i64.atomic.rmw32.and_u" (func 35)) + (export "i32.atomic.rmw.or" (func 36)) + (export "i64.atomic.rmw.or" (func 37)) + (export "i32.atomic.rmw8.or_u" (func 38)) + (export "i32.atomic.rmw16.or_u" (func 39)) + (export "i64.atomic.rmw8.or_u" (func 40)) + (export "i64.atomic.rmw16.or_u" (func 41)) + (export "i64.atomic.rmw32.or_u" (func 42)) + (export "i32.atomic.rmw.xor" (func 43)) + (export "i64.atomic.rmw.xor" (func 44)) + (export "i32.atomic.rmw8.xor_u" (func 45)) + (export "i32.atomic.rmw16.xor_u" (func 46)) + (export "i64.atomic.rmw8.xor_u" (func 47)) + (export "i64.atomic.rmw16.xor_u" (func 48)) + (export "i64.atomic.rmw32.xor_u" (func 49)) + (export "i32.atomic.rmw.xchg" (func 50)) + (export "i64.atomic.rmw.xchg" (func 51)) + (export "i32.atomic.rmw8.xchg_u" (func 52)) + (export "i32.atomic.rmw16.xchg_u" (func 53)) + (export "i64.atomic.rmw8.xchg_u" (func 54)) + (export "i64.atomic.rmw16.xchg_u" (func 55)) + (export "i64.atomic.rmw32.xchg_u" (func 56)) + (export "i32.atomic.rmw.cmpxchg" (func 57)) + (export "i64.atomic.rmw.cmpxchg" (func 58)) + (export "i32.atomic.rmw8.cmpxchg_u" (func 59)) + (export "i32.atomic.rmw16.cmpxchg_u" (func 60)) + (export "i64.atomic.rmw8.cmpxchg_u" (func 61)) + (export "i64.atomic.rmw16.cmpxchg_u" (func 62)) + (export "i64.atomic.rmw32.cmpxchg_u" (func 63)) (func (;0;) (type 0) (param $value i64) i32.const 0 local.get $value @@ -328,69 +393,4 @@ local.get $value i64.atomic.rmw32.cmpxchg_u ) - (memory (;0;) 1 1 shared) - (export "init" (func 0)) - (export "i32.atomic.load" (func 1)) - (export "i64.atomic.load" (func 2)) - (export "i32.atomic.load8_u" (func 3)) - (export "i32.atomic.load16_u" (func 4)) - (export "i64.atomic.load8_u" (func 5)) - (export "i64.atomic.load16_u" (func 6)) - (export "i64.atomic.load32_u" (func 7)) - (export "i32.atomic.store" (func 8)) - (export "i64.atomic.store" (func 9)) - (export "i32.atomic.store8" (func 10)) - (export "i32.atomic.store16" (func 11)) - (export "i64.atomic.store8" (func 12)) - (export "i64.atomic.store16" (func 13)) - (export "i64.atomic.store32" (func 14)) - (export "i32.atomic.rmw.add" (func 15)) - (export "i64.atomic.rmw.add" (func 16)) - (export "i32.atomic.rmw8.add_u" (func 17)) - (export "i32.atomic.rmw16.add_u" (func 18)) - (export "i64.atomic.rmw8.add_u" (func 19)) - (export "i64.atomic.rmw16.add_u" (func 20)) - (export "i64.atomic.rmw32.add_u" (func 21)) - (export "i32.atomic.rmw.sub" (func 22)) - (export "i64.atomic.rmw.sub" (func 23)) - (export "i32.atomic.rmw8.sub_u" (func 24)) - (export "i32.atomic.rmw16.sub_u" (func 25)) - (export "i64.atomic.rmw8.sub_u" (func 26)) - (export "i64.atomic.rmw16.sub_u" (func 27)) - (export "i64.atomic.rmw32.sub_u" (func 28)) - (export "i32.atomic.rmw.and" (func 29)) - (export "i64.atomic.rmw.and" (func 30)) - (export "i32.atomic.rmw8.and_u" (func 31)) - (export "i32.atomic.rmw16.and_u" (func 32)) - (export "i64.atomic.rmw8.and_u" (func 33)) - (export "i64.atomic.rmw16.and_u" (func 34)) - (export "i64.atomic.rmw32.and_u" (func 35)) - (export "i32.atomic.rmw.or" (func 36)) - (export "i64.atomic.rmw.or" (func 37)) - (export "i32.atomic.rmw8.or_u" (func 38)) - (export "i32.atomic.rmw16.or_u" (func 39)) - (export "i64.atomic.rmw8.or_u" (func 40)) - (export "i64.atomic.rmw16.or_u" (func 41)) - (export "i64.atomic.rmw32.or_u" (func 42)) - (export "i32.atomic.rmw.xor" (func 43)) - (export "i64.atomic.rmw.xor" (func 44)) - (export "i32.atomic.rmw8.xor_u" (func 45)) - (export "i32.atomic.rmw16.xor_u" (func 46)) - (export "i64.atomic.rmw8.xor_u" (func 47)) - (export "i64.atomic.rmw16.xor_u" (func 48)) - (export "i64.atomic.rmw32.xor_u" (func 49)) - (export "i32.atomic.rmw.xchg" (func 50)) - (export "i64.atomic.rmw.xchg" (func 51)) - (export "i32.atomic.rmw8.xchg_u" (func 52)) - (export "i32.atomic.rmw16.xchg_u" (func 53)) - (export "i64.atomic.rmw8.xchg_u" (func 54)) - (export "i64.atomic.rmw16.xchg_u" (func 55)) - (export "i64.atomic.rmw32.xchg_u" (func 56)) - (export "i32.atomic.rmw.cmpxchg" (func 57)) - (export "i64.atomic.rmw.cmpxchg" (func 58)) - (export "i32.atomic.rmw8.cmpxchg_u" (func 59)) - (export "i32.atomic.rmw16.cmpxchg_u" (func 60)) - (export "i64.atomic.rmw8.cmpxchg_u" (func 61)) - (export "i64.atomic.rmw16.cmpxchg_u" (func 62)) - (export "i64.atomic.rmw32.cmpxchg_u" (func 63)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/atomic.wast/243.print b/tests/snapshots/testsuite/proposals/threads/atomic.wast/243.print index 3ee26e4f5e..c7fdfa96ae 100644 --- a/tests/snapshots/testsuite/proposals/threads/atomic.wast/243.print +++ b/tests/snapshots/testsuite/proposals/threads/atomic.wast/243.print @@ -3,6 +3,11 @@ (type (;1;) (func (param i32 i32) (result i32))) (type (;2;) (func (param i32 i32 i64) (result i32))) (type (;3;) (func (param i32 i64 i64) (result i32))) + (memory (;0;) 1 1 shared) + (export "init" (func 0)) + (export "memory.atomic.notify" (func 1)) + (export "memory.atomic.wait32" (func 2)) + (export "memory.atomic.wait64" (func 3)) (func (;0;) (type 0) (param $value i64) i32.const 0 local.get $value @@ -25,9 +30,4 @@ local.get $timeout memory.atomic.wait64 ) - (memory (;0;) 1 1 shared) - (export "init" (func 0)) - (export "memory.atomic.notify" (func 1)) - (export "memory.atomic.wait32" (func 2)) - (export "memory.atomic.wait64" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/atomic.wast/248.print b/tests/snapshots/testsuite/proposals/threads/atomic.wast/248.print index eaccfa527a..4199f444ce 100644 --- a/tests/snapshots/testsuite/proposals/threads/atomic.wast/248.print +++ b/tests/snapshots/testsuite/proposals/threads/atomic.wast/248.print @@ -1,5 +1,6 @@ (module (type (;0;) (func)) + (memory (;0;) 1 1) (func (;0;) (type 0) i32.const 0 i32.const 0 @@ -285,5 +286,4 @@ i64.atomic.rmw32.cmpxchg_u drop ) - (memory (;0;) 1 1) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/0.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/0.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/0.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/0.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/1.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/1.print index 0e6650207b..edafa1a61f 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/1.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/1.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) (export "b" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/10.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/10.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/10.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/10.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/11.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/11.print index 25c740d656..b564b1964d 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/11.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/11.print @@ -1,10 +1,10 @@ (module $Func (type (;0;) (func (param i32) (result i32))) + (export "e" (func $f)) (func $f (;0;) (type 0) (param $n i32) (result i32) local.get $n i32.const 1 i32.add return ) - (export "e" (func $f)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/2.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/2.print index 69eac22051..b139f8873b 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/2.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/2.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) - (func (;1;) (type 0)) (export "a" (func 0)) (export "b" (func 1)) + (func (;0;) (type 0)) + (func (;1;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/3.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/3.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/3.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/3.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/4.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/4.print index cbaf870965..6852c7b4ce 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/4.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/4.print @@ -1,7 +1,7 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) (export "b" (func 0)) (export "c" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/5.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/5.print index a74c1debd3..eadffaacbc 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/5.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/5.print @@ -1,6 +1,6 @@ (module (type (;0;) (func (param i32))) - (func (;0;) (type 0) (param i32)) (export "a" (func 0)) (export "b" (func 0)) + (func (;0;) (type 0) (param i32)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/6.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/6.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/6.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/6.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/7.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/7.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/7.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/7.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/8.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/8.print index fec23552d4..63d369eaca 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/8.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/8.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func $a (;0;) (type 0)) (export "a" (func $a)) + (func $a (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/exports.wast/9.print b/tests/snapshots/testsuite/proposals/threads/exports.wast/9.print index b819eaa115..675e237f6e 100644 --- a/tests/snapshots/testsuite/proposals/threads/exports.wast/9.print +++ b/tests/snapshots/testsuite/proposals/threads/exports.wast/9.print @@ -1,5 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (export "a" (func 0)) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/imports.wast/0.print b/tests/snapshots/testsuite/proposals/threads/imports.wast/0.print index 362de2fff1..b6a9e962e3 100644 --- a/tests/snapshots/testsuite/proposals/threads/imports.wast/0.print +++ b/tests/snapshots/testsuite/proposals/threads/imports.wast/0.print @@ -6,21 +6,6 @@ (type (;4;) (func (result f32))) (type (;5;) (func (param i32) (result i32))) (type (;6;) (func (param i64) (result i64))) - (func (;0;) (type 0)) - (func (;1;) (type 1) (param i32)) - (func (;2;) (type 2) (param f32)) - (func (;3;) (type 3) (result i32) - i32.const 22 - ) - (func (;4;) (type 4) (result f32) - f32.const 0x1.6p+3 (;=11;) - ) - (func (;5;) (type 5) (param i32) (result i32) - local.get 0 - ) - (func (;6;) (type 6) (param i64) (result i64) - local.get 0 - ) (table (;0;) 10 funcref) (memory (;0;) 2) (global (;0;) i32 i32.const 55) @@ -36,4 +21,19 @@ (export "global-f32" (global 1)) (export "table-10-inf" (table 0)) (export "memory-2-inf" (memory 0)) + (func (;0;) (type 0)) + (func (;1;) (type 1) (param i32)) + (func (;2;) (type 2) (param f32)) + (func (;3;) (type 3) (result i32) + i32.const 22 + ) + (func (;4;) (type 4) (result f32) + f32.const 0x1.6p+3 (;=11;) + ) + (func (;5;) (type 5) (param i32) (result i32) + local.get 0 + ) + (func (;6;) (type 6) (param i64) (result i64) + local.get 0 + ) ) diff --git a/tests/snapshots/testsuite/proposals/threads/imports.wast/124.print b/tests/snapshots/testsuite/proposals/threads/imports.wast/124.print index c72d519576..c22b9dbe1b 100644 --- a/tests/snapshots/testsuite/proposals/threads/imports.wast/124.print +++ b/tests/snapshots/testsuite/proposals/threads/imports.wast/124.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 0 3)) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 memory.grow ) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/imports.wast/2.print b/tests/snapshots/testsuite/proposals/threads/imports.wast/2.print index 4a6696df16..a42daa6779 100644 --- a/tests/snapshots/testsuite/proposals/threads/imports.wast/2.print +++ b/tests/snapshots/testsuite/proposals/threads/imports.wast/2.print @@ -23,6 +23,16 @@ (import "spectest" "print_i32" (func (;13;) (type $func_i32))) (import "spectest" "print_i32" (func (;14;) (type $forward))) (import "spectest" "print_i32" (func (;15;) (type $forward))) + (table (;0;) 2 2 funcref) + (export "p1" (func 9)) + (export "p2" (func $p)) + (export "p3" (func 11)) + (export "p4" (func 11)) + (export "p5" (func 12)) + (export "p6" (func 13)) + (export "print32" (func 16)) + (export "print64" (func 17)) + (elem (;0;) (i32.const 0) func $print_i32 $print_f64) (func (;16;) (type $func_i32) (param $i i32) (local $x f32) local.get $i @@ -64,14 +74,4 @@ i32.const 1 call_indirect (type $func_f64) ) - (table (;0;) 2 2 funcref) - (export "p1" (func 9)) - (export "p2" (func $p)) - (export "p3" (func 11)) - (export "p4" (func 11)) - (export "p5" (func 12)) - (export "p6" (func 13)) - (export "print32" (func 16)) - (export "print64" (func 17)) - (elem (;0;) (i32.const 0) func $print_i32 $print_f64) ) diff --git a/tests/snapshots/testsuite/proposals/threads/imports.wast/37.print b/tests/snapshots/testsuite/proposals/threads/imports.wast/37.print index f15d726012..f000ddb6ca 100644 --- a/tests/snapshots/testsuite/proposals/threads/imports.wast/37.print +++ b/tests/snapshots/testsuite/proposals/threads/imports.wast/37.print @@ -6,6 +6,10 @@ (import "spectest" "global_i32" (global $y (;3;) i32)) (import "spectest" "global_f32" (global (;4;) f32)) (import "spectest" "global_f64" (global (;5;) f64)) + (export "get-0" (func 0)) + (export "get-1" (func 1)) + (export "get-x" (func 2)) + (export "get-y" (func 3)) (func (;0;) (type 0) (result i32) global.get 0 ) @@ -18,8 +22,4 @@ (func (;3;) (type 0) (result i32) global.get $y ) - (export "get-0" (func 0)) - (export "get-1" (func 1)) - (export "get-x" (func 2)) - (export "get-y" (func 3)) ) diff --git a/tests/snapshots/testsuite/proposals/threads/imports.wast/52.print b/tests/snapshots/testsuite/proposals/threads/imports.wast/52.print index 0f502edb19..e8cfbd08fe 100644 --- a/tests/snapshots/testsuite/proposals/threads/imports.wast/52.print +++ b/tests/snapshots/testsuite/proposals/threads/imports.wast/52.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "table" (table (;0;) 10 20 funcref)) + (export "call" (func 0)) + (elem (;0;) (i32.const 1) func $f $g) (func (;0;) (type 1) (param i32) (result i32) local.get 0 call_indirect (type 0) @@ -12,6 +14,4 @@ (func $g (;2;) (type 0) (result i32) i32.const 22 ) - (export "call" (func 0)) - (elem (;0;) (i32.const 1) func $f $g) ) diff --git a/tests/snapshots/testsuite/proposals/threads/imports.wast/58.print b/tests/snapshots/testsuite/proposals/threads/imports.wast/58.print index 0f502edb19..e8cfbd08fe 100644 --- a/tests/snapshots/testsuite/proposals/threads/imports.wast/58.print +++ b/tests/snapshots/testsuite/proposals/threads/imports.wast/58.print @@ -2,6 +2,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (import "spectest" "table" (table (;0;) 10 20 funcref)) + (export "call" (func 0)) + (elem (;0;) (i32.const 1) func $f $g) (func (;0;) (type 1) (param i32) (result i32) local.get 0 call_indirect (type 0) @@ -12,6 +14,4 @@ (func $g (;2;) (type 0) (result i32) i32.const 22 ) - (export "call" (func 0)) - (elem (;0;) (i32.const 1) func $f $g) ) diff --git a/tests/snapshots/testsuite/proposals/threads/imports.wast/88.print b/tests/snapshots/testsuite/proposals/threads/imports.wast/88.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/proposals/threads/imports.wast/88.print +++ b/tests/snapshots/testsuite/proposals/threads/imports.wast/88.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/threads/imports.wast/93.print b/tests/snapshots/testsuite/proposals/threads/imports.wast/93.print index c32cdd025d..5d4fdaaf4c 100644 --- a/tests/snapshots/testsuite/proposals/threads/imports.wast/93.print +++ b/tests/snapshots/testsuite/proposals/threads/imports.wast/93.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (import "spectest" "memory" (memory (;0;) 1 2)) + (export "load" (func 0)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i32.load ) - (export "load" (func 0)) (data (;0;) (i32.const 10) "\10") ) diff --git a/tests/snapshots/testsuite/proposals/threads/memory.wast/11.print b/tests/snapshots/testsuite/proposals/threads/memory.wast/11.print index 00b8e1a309..6604488ce4 100644 --- a/tests/snapshots/testsuite/proposals/threads/memory.wast/11.print +++ b/tests/snapshots/testsuite/proposals/threads/memory.wast/11.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 0 0) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 0 0) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "") ) diff --git a/tests/snapshots/testsuite/proposals/threads/memory.wast/13.print b/tests/snapshots/testsuite/proposals/threads/memory.wast/13.print index 00b8e1a309..6604488ce4 100644 --- a/tests/snapshots/testsuite/proposals/threads/memory.wast/13.print +++ b/tests/snapshots/testsuite/proposals/threads/memory.wast/13.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 0 0) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 0 0) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "") ) diff --git a/tests/snapshots/testsuite/proposals/threads/memory.wast/15.print b/tests/snapshots/testsuite/proposals/threads/memory.wast/15.print index 84bc4686fc..4eb767d55f 100644 --- a/tests/snapshots/testsuite/proposals/threads/memory.wast/15.print +++ b/tests/snapshots/testsuite/proposals/threads/memory.wast/15.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 1 1) + (export "memsize" (func 0)) (func (;0;) (type 0) (result i32) memory.size ) - (memory (;0;) 1 1) - (export "memsize" (func 0)) (data (;0;) (i32.const 0) "x") ) diff --git a/tests/snapshots/testsuite/proposals/threads/memory.wast/36.print b/tests/snapshots/testsuite/proposals/threads/memory.wast/36.print index 1413e79ade..8d87e11de2 100644 --- a/tests/snapshots/testsuite/proposals/threads/memory.wast/36.print +++ b/tests/snapshots/testsuite/proposals/threads/memory.wast/36.print @@ -3,6 +3,19 @@ (type (;1;) (func (result f64))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func (param i64) (result i64))) + (memory (;0;) 1) + (export "data" (func 0)) + (export "cast" (func 1)) + (export "i32_load8_s" (func 2)) + (export "i32_load8_u" (func 3)) + (export "i32_load16_s" (func 4)) + (export "i32_load16_u" (func 5)) + (export "i64_load8_s" (func 6)) + (export "i64_load8_u" (func 7)) + (export "i64_load16_s" (func 8)) + (export "i64_load16_u" (func 9)) + (export "i64_load32_s" (func 10)) + (export "i64_load32_u" (func 11)) (func (;0;) (type 0) (result i32) i32.const 0 i32.load8_u @@ -136,19 +149,6 @@ i32.const 8 i64.load32_u ) - (memory (;0;) 1) - (export "data" (func 0)) - (export "cast" (func 1)) - (export "i32_load8_s" (func 2)) - (export "i32_load8_u" (func 3)) - (export "i32_load16_s" (func 4)) - (export "i32_load16_u" (func 5)) - (export "i64_load8_s" (func 6)) - (export "i64_load8_u" (func 7)) - (export "i64_load16_s" (func 8)) - (export "i64_load16_u" (func 9)) - (export "i64_load32_s" (func 10)) - (export "i64_load32_u" (func 11)) (data (;0;) (i32.const 0) "ABC\a7D") (data (;1;) (i32.const 20) "WASM") ) diff --git a/tests/snapshots/testsuite/ref_func.wast/0.print b/tests/snapshots/testsuite/ref_func.wast/0.print index b5232db074..c8493c258b 100644 --- a/tests/snapshots/testsuite/ref_func.wast/0.print +++ b/tests/snapshots/testsuite/ref_func.wast/0.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (param i32) (result i32))) + (export "f" (func 0)) (func (;0;) (type 0) (param $x i32) (result i32) local.get $x ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/ref_func.wast/14.print b/tests/snapshots/testsuite/ref_func.wast/14.print index 6a0959c3a1..b934427fb1 100644 --- a/tests/snapshots/testsuite/ref_func.wast/14.print +++ b/tests/snapshots/testsuite/ref_func.wast/14.print @@ -1,5 +1,12 @@ (module (type (;0;) (func)) + (table $t (;0;) 1 funcref) + (global (;0;) funcref ref.func $f1) + (export "f" (func $f2)) + (elem (;0;) (i32.const 0) func $f3) + (elem (;1;) (i32.const 0) funcref (ref.func $f4)) + (elem (;2;) func $f5) + (elem (;3;) funcref (ref.func $f6)) (func $f1 (;0;) (type 0)) (func $f2 (;1;) (type 0)) (func $f3 (;2;) (type 0)) @@ -15,11 +22,4 @@ ref.func $f6 return ) - (table $t (;0;) 1 funcref) - (global (;0;) funcref ref.func $f1) - (export "f" (func $f2)) - (elem (;0;) (i32.const 0) func $f3) - (elem (;1;) (i32.const 0) funcref (ref.func $f4)) - (elem (;2;) func $f5) - (elem (;3;) funcref (ref.func $f6)) ) diff --git a/tests/snapshots/testsuite/ref_func.wast/2.print b/tests/snapshots/testsuite/ref_func.wast/2.print index 0107ee28d7..b81df3c3a2 100644 --- a/tests/snapshots/testsuite/ref_func.wast/2.print +++ b/tests/snapshots/testsuite/ref_func.wast/2.print @@ -3,6 +3,23 @@ (type (;1;) (func)) (type (;2;) (func (result i32))) (import "M" "f" (func $f (;0;) (type 0))) + (table $t (;0;) 1 funcref) + (global (;0;) funcref ref.func $f) + (global (;1;) funcref ref.func $g) + (global $v (;2;) (mut funcref) ref.func $f) + (global (;3;) funcref ref.func $gf1) + (global (;4;) funcref ref.func $gf2) + (export "is_null-f" (func 7)) + (export "is_null-g" (func 8)) + (export "is_null-v" (func 9)) + (export "set-f" (func 10)) + (export "set-g" (func 11)) + (export "call-f" (func 12)) + (export "call-g" (func 13)) + (export "call-v" (func 14)) + (elem (;0;) declare func $gf1 $ff1) + (elem (;1;) declare funcref (ref.func $gf2) (ref.func $ff2)) + (elem (;2;) declare func $f $g) (func $g (;1;) (type 0) (param $x i32) (result i32) local.get $x i32.const 1 @@ -62,21 +79,4 @@ i32.const 0 call_indirect (type 0) ) - (table $t (;0;) 1 funcref) - (global (;0;) funcref ref.func $f) - (global (;1;) funcref ref.func $g) - (global $v (;2;) (mut funcref) ref.func $f) - (global (;3;) funcref ref.func $gf1) - (global (;4;) funcref ref.func $gf2) - (export "is_null-f" (func 7)) - (export "is_null-g" (func 8)) - (export "is_null-v" (func 9)) - (export "set-f" (func 10)) - (export "set-g" (func 11)) - (export "call-f" (func 12)) - (export "call-g" (func 13)) - (export "call-v" (func 14)) - (elem (;0;) declare func $gf1 $ff1) - (elem (;1;) declare funcref (ref.func $gf2) (ref.func $ff2)) - (elem (;2;) declare func $f $g) ) diff --git a/tests/snapshots/testsuite/ref_is_null.wast/0.print b/tests/snapshots/testsuite/ref_is_null.wast/0.print index 911a83ba8e..7070c1059e 100644 --- a/tests/snapshots/testsuite/ref_is_null.wast/0.print +++ b/tests/snapshots/testsuite/ref_is_null.wast/0.print @@ -4,6 +4,15 @@ (type (;2;) (func)) (type (;3;) (func (param externref))) (type (;4;) (func (param i32) (result i32))) + (table $t1 (;0;) 2 funcref) + (table $t2 (;1;) 2 externref) + (export "funcref" (func $f1)) + (export "externref" (func $f2)) + (export "init" (func 3)) + (export "deinit" (func 4)) + (export "funcref-elem" (func 5)) + (export "externref-elem" (func 6)) + (elem (;0;) (i32.const 1) func $dummy) (func $f1 (;0;) (type 0) (param $x funcref) (result i32) local.get $x ref.is_null @@ -36,13 +45,4 @@ table.get $t2 call $f2 ) - (table $t1 (;0;) 2 funcref) - (table $t2 (;1;) 2 externref) - (export "funcref" (func $f1)) - (export "externref" (func $f2)) - (export "init" (func 3)) - (export "deinit" (func 4)) - (export "funcref-elem" (func 5)) - (export "externref-elem" (func 6)) - (elem (;0;) (i32.const 1) func $dummy) ) diff --git a/tests/snapshots/testsuite/ref_null.wast/0.print b/tests/snapshots/testsuite/ref_null.wast/0.print index 8628f03cbb..32515c6109 100644 --- a/tests/snapshots/testsuite/ref_null.wast/0.print +++ b/tests/snapshots/testsuite/ref_null.wast/0.print @@ -1,14 +1,14 @@ (module (type (;0;) (func (result externref))) (type (;1;) (func (result funcref))) + (global (;0;) externref ref.null extern) + (global (;1;) funcref ref.null func) + (export "externref" (func 0)) + (export "funcref" (func 1)) (func (;0;) (type 0) (result externref) ref.null extern ) (func (;1;) (type 1) (result funcref) ref.null func ) - (global (;0;) externref ref.null extern) - (global (;1;) funcref ref.null func) - (export "externref" (func 0)) - (export "funcref" (func 1)) ) diff --git a/tests/snapshots/testsuite/return.wast/0.print b/tests/snapshots/testsuite/return.wast/0.print index 30026db350..3e6efdeb60 100644 --- a/tests/snapshots/testsuite/return.wast/0.print +++ b/tests/snapshots/testsuite/return.wast/0.print @@ -6,6 +6,69 @@ (type (;4;) (func (result f32))) (type (;5;) (func (result f64))) (type (;6;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 0) + (export "type-i32" (func 1)) + (export "type-i64" (func 2)) + (export "type-f32" (func 3)) + (export "type-f64" (func 4)) + (export "type-i32-value" (func 5)) + (export "type-i64-value" (func 6)) + (export "type-f32-value" (func 7)) + (export "type-f64-value" (func 8)) + (export "nullary" (func 9)) + (export "unary" (func 10)) + (export "as-func-first" (func 11)) + (export "as-func-mid" (func 12)) + (export "as-func-last" (func 13)) + (export "as-func-value" (func 14)) + (export "as-block-first" (func 15)) + (export "as-block-mid" (func 16)) + (export "as-block-last" (func 17)) + (export "as-block-value" (func 18)) + (export "as-loop-first" (func 19)) + (export "as-loop-mid" (func 20)) + (export "as-loop-last" (func 21)) + (export "as-br-value" (func 22)) + (export "as-br_if-cond" (func 23)) + (export "as-br_if-value" (func 24)) + (export "as-br_if-value-cond" (func 25)) + (export "as-br_table-index" (func 26)) + (export "as-br_table-value" (func 27)) + (export "as-br_table-value-index" (func 28)) + (export "as-return-value" (func 29)) + (export "as-if-cond" (func 30)) + (export "as-if-then" (func 31)) + (export "as-if-else" (func 32)) + (export "as-select-first" (func 33)) + (export "as-select-second" (func 34)) + (export "as-select-cond" (func 35)) + (export "as-call-first" (func 37)) + (export "as-call-mid" (func 38)) + (export "as-call-last" (func 39)) + (export "as-call_indirect-func" (func 40)) + (export "as-call_indirect-first" (func 41)) + (export "as-call_indirect-mid" (func 42)) + (export "as-call_indirect-last" (func 43)) + (export "as-local.set-value" (func 44)) + (export "as-local.tee-value" (func 45)) + (export "as-global.set-value" (func 46)) + (export "as-load-address" (func 47)) + (export "as-loadN-address" (func 48)) + (export "as-store-address" (func 49)) + (export "as-store-value" (func 50)) + (export "as-storeN-address" (func 51)) + (export "as-storeN-value" (func 52)) + (export "as-unary-operand" (func 53)) + (export "as-binary-left" (func 54)) + (export "as-binary-right" (func 55)) + (export "as-test-operand" (func 56)) + (export "as-compare-left" (func 57)) + (export "as-compare-right" (func 58)) + (export "as-convert-operand" (func 59)) + (export "as-memory.grow-size" (func 60)) + (elem (;0;) (i32.const 0) func $f) (func $dummy (;0;) (type 1)) (func (;1;) (type 1) return @@ -403,67 +466,4 @@ return memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 0) - (export "type-i32" (func 1)) - (export "type-i64" (func 2)) - (export "type-f32" (func 3)) - (export "type-f64" (func 4)) - (export "type-i32-value" (func 5)) - (export "type-i64-value" (func 6)) - (export "type-f32-value" (func 7)) - (export "type-f64-value" (func 8)) - (export "nullary" (func 9)) - (export "unary" (func 10)) - (export "as-func-first" (func 11)) - (export "as-func-mid" (func 12)) - (export "as-func-last" (func 13)) - (export "as-func-value" (func 14)) - (export "as-block-first" (func 15)) - (export "as-block-mid" (func 16)) - (export "as-block-last" (func 17)) - (export "as-block-value" (func 18)) - (export "as-loop-first" (func 19)) - (export "as-loop-mid" (func 20)) - (export "as-loop-last" (func 21)) - (export "as-br-value" (func 22)) - (export "as-br_if-cond" (func 23)) - (export "as-br_if-value" (func 24)) - (export "as-br_if-value-cond" (func 25)) - (export "as-br_table-index" (func 26)) - (export "as-br_table-value" (func 27)) - (export "as-br_table-value-index" (func 28)) - (export "as-return-value" (func 29)) - (export "as-if-cond" (func 30)) - (export "as-if-then" (func 31)) - (export "as-if-else" (func 32)) - (export "as-select-first" (func 33)) - (export "as-select-second" (func 34)) - (export "as-select-cond" (func 35)) - (export "as-call-first" (func 37)) - (export "as-call-mid" (func 38)) - (export "as-call-last" (func 39)) - (export "as-call_indirect-func" (func 40)) - (export "as-call_indirect-first" (func 41)) - (export "as-call_indirect-mid" (func 42)) - (export "as-call_indirect-last" (func 43)) - (export "as-local.set-value" (func 44)) - (export "as-local.tee-value" (func 45)) - (export "as-global.set-value" (func 46)) - (export "as-load-address" (func 47)) - (export "as-loadN-address" (func 48)) - (export "as-store-address" (func 49)) - (export "as-store-value" (func 50)) - (export "as-storeN-address" (func 51)) - (export "as-storeN-value" (func 52)) - (export "as-unary-operand" (func 53)) - (export "as-binary-left" (func 54)) - (export "as-binary-right" (func 55)) - (export "as-test-operand" (func 56)) - (export "as-compare-left" (func 57)) - (export "as-compare-right" (func 58)) - (export "as-convert-operand" (func 59)) - (export "as-memory.grow-size" (func 60)) - (elem (;0;) (i32.const 0) func $f) ) diff --git a/tests/snapshots/testsuite/select.wast/0.print b/tests/snapshots/testsuite/select.wast/0.print index 862d50d875..644e41cfac 100644 --- a/tests/snapshots/testsuite/select.wast/0.print +++ b/tests/snapshots/testsuite/select.wast/0.print @@ -9,6 +9,55 @@ (type (;7;) (func (param externref externref i32) (result externref))) (type (;8;) (func (param i32) (result i32))) (type (;9;) (func (param i32))) + (table $tab (;0;) 1 1 funcref) + (table $t (;1;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut i32) i32.const 10) + (export "select-i32" (func 1)) + (export "select-i64" (func 2)) + (export "select-f32" (func 3)) + (export "select-f64" (func 4)) + (export "select-i32-t" (func 5)) + (export "select-i64-t" (func 6)) + (export "select-f32-t" (func 7)) + (export "select-f64-t" (func 8)) + (export "select-funcref" (func 9)) + (export "select-externref" (func 10)) + (export "as-select-first" (func 11)) + (export "as-select-mid" (func 12)) + (export "as-select-last" (func 13)) + (export "as-loop-first" (func 14)) + (export "as-loop-mid" (func 15)) + (export "as-loop-last" (func 16)) + (export "as-if-condition" (func 17)) + (export "as-if-then" (func 18)) + (export "as-if-else" (func 19)) + (export "as-br_if-first" (func 20)) + (export "as-br_if-last" (func 21)) + (export "as-br_table-first" (func 22)) + (export "as-br_table-last" (func 23)) + (export "as-call_indirect-first" (func 25)) + (export "as-call_indirect-mid" (func 26)) + (export "as-call_indirect-last" (func 27)) + (export "as-store-first" (func 28)) + (export "as-store-last" (func 29)) + (export "as-memory.grow-value" (func 30)) + (export "as-call-value" (func 32)) + (export "as-return-value" (func 33)) + (export "as-drop-operand" (func 34)) + (export "as-br-value" (func 35)) + (export "as-local.set-value" (func 36)) + (export "as-local.tee-value" (func 37)) + (export "as-global.set-value" (func 38)) + (export "as-load-operand" (func 39)) + (export "as-unary-operand" (func 40)) + (export "as-binary-operand" (func 41)) + (export "as-test-operand" (func 42)) + (export "as-compare-left" (func 43)) + (export "as-compare-right" (func 44)) + (export "as-convert-operand" (func 45)) + (elem (;0;) (i32.const 0) func $dummy) + (elem (;1;) (table $t) (i32.const 0) func $func) (func $dummy (;0;) (type 1)) (func (;1;) (type 2) (param i32 i32 i32) (result i32) local.get 0 @@ -377,53 +426,4 @@ i32.wrap_i64 end ) - (table $tab (;0;) 1 1 funcref) - (table $t (;1;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut i32) i32.const 10) - (export "select-i32" (func 1)) - (export "select-i64" (func 2)) - (export "select-f32" (func 3)) - (export "select-f64" (func 4)) - (export "select-i32-t" (func 5)) - (export "select-i64-t" (func 6)) - (export "select-f32-t" (func 7)) - (export "select-f64-t" (func 8)) - (export "select-funcref" (func 9)) - (export "select-externref" (func 10)) - (export "as-select-first" (func 11)) - (export "as-select-mid" (func 12)) - (export "as-select-last" (func 13)) - (export "as-loop-first" (func 14)) - (export "as-loop-mid" (func 15)) - (export "as-loop-last" (func 16)) - (export "as-if-condition" (func 17)) - (export "as-if-then" (func 18)) - (export "as-if-else" (func 19)) - (export "as-br_if-first" (func 20)) - (export "as-br_if-last" (func 21)) - (export "as-br_table-first" (func 22)) - (export "as-br_table-last" (func 23)) - (export "as-call_indirect-first" (func 25)) - (export "as-call_indirect-mid" (func 26)) - (export "as-call_indirect-last" (func 27)) - (export "as-store-first" (func 28)) - (export "as-store-last" (func 29)) - (export "as-memory.grow-value" (func 30)) - (export "as-call-value" (func 32)) - (export "as-return-value" (func 33)) - (export "as-drop-operand" (func 34)) - (export "as-br-value" (func 35)) - (export "as-local.set-value" (func 36)) - (export "as-local.tee-value" (func 37)) - (export "as-global.set-value" (func 38)) - (export "as-load-operand" (func 39)) - (export "as-unary-operand" (func 40)) - (export "as-binary-operand" (func 41)) - (export "as-test-operand" (func 42)) - (export "as-compare-left" (func 43)) - (export "as-compare-right" (func 44)) - (export "as-convert-operand" (func 45)) - (elem (;0;) (i32.const 0) func $dummy) - (elem (;1;) (table $t) (i32.const 0) func $func) ) diff --git a/tests/snapshots/testsuite/select.wast/147.print b/tests/snapshots/testsuite/select.wast/147.print index 7206792a79..ec6fa70029 100644 --- a/tests/snapshots/testsuite/select.wast/147.print +++ b/tests/snapshots/testsuite/select.wast/147.print @@ -1,6 +1,7 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table (;0;) 1 funcref) (func (;0;) (type 0) (result i32) unreachable select @@ -55,5 +56,4 @@ call_indirect (type 1) select ) - (table (;0;) 1 funcref) ) diff --git a/tests/snapshots/testsuite/simd_address.wast/0.print b/tests/snapshots/testsuite/simd_address.wast/0.print index d4864347e9..ebd986b5e6 100644 --- a/tests/snapshots/testsuite/simd_address.wast/0.print +++ b/tests/snapshots/testsuite/simd_address.wast/0.print @@ -2,6 +2,19 @@ (type (;0;) (func (param i32) (result v128))) (type (;1;) (func (result v128))) (type (;2;) (func (param i32))) + (memory (;0;) 1) + (export "load_data_1" (func 0)) + (export "load_data_2" (func 1)) + (export "load_data_3" (func 2)) + (export "load_data_4" (func 3)) + (export "load_data_5" (func 4)) + (export "store_data_0" (func 5)) + (export "store_data_1" (func 6)) + (export "store_data_2" (func 7)) + (export "store_data_3" (func 8)) + (export "store_data_4" (func 9)) + (export "store_data_5" (func 10)) + (export "store_data_6" (func 11)) (func (;0;) (type 0) (param $i i32) (result v128) local.get $i v128.load @@ -69,19 +82,6 @@ v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 v128.store offset=1 align=1 ) - (memory (;0;) 1) - (export "load_data_1" (func 0)) - (export "load_data_2" (func 1)) - (export "load_data_3" (func 2)) - (export "load_data_4" (func 3)) - (export "load_data_5" (func 4)) - (export "store_data_0" (func 5)) - (export "store_data_1" (func 6)) - (export "store_data_2" (func 7)) - (export "store_data_3" (func 8)) - (export "store_data_4" (func 9)) - (export "store_data_5" (func 10)) - (export "store_data_6" (func 11)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\10\11\12\13\14\15") (data (;1;) (i32.const 65505) "\16\17\18\19 !\22#$%&'()01") ) diff --git a/tests/snapshots/testsuite/simd_address.wast/41.print b/tests/snapshots/testsuite/simd_address.wast/41.print index f49ab4b353..e955271e9e 100644 --- a/tests/snapshots/testsuite/simd_address.wast/41.print +++ b/tests/snapshots/testsuite/simd_address.wast/41.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "v128.load_offset_65521" (func 0)) (func (;0;) (type 0) i32.const 0 v128.load offset=65521 drop ) - (memory (;0;) 1) - (export "v128.load_offset_65521" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_address.wast/44.print b/tests/snapshots/testsuite/simd_address.wast/44.print index 63e3098d91..9dcf741c0f 100644 --- a/tests/snapshots/testsuite/simd_address.wast/44.print +++ b/tests/snapshots/testsuite/simd_address.wast/44.print @@ -1,10 +1,10 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "v128.store_offset_65521" (func 0)) (func (;0;) (type 0) i32.const 0 v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000 v128.store offset=65521 ) - (memory (;0;) 1) - (export "v128.store_offset_65521" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/0.print b/tests/snapshots/testsuite/simd_align.wast/0.print index 9922a6b311..fc1d75ff50 100644 --- a/tests/snapshots/testsuite/simd_align.wast/0.print +++ b/tests/snapshots/testsuite/simd_align.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load align=1 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/1.print b/tests/snapshots/testsuite/simd_align.wast/1.print index d28da8a18a..c3a405c6f7 100644 --- a/tests/snapshots/testsuite/simd_align.wast/1.print +++ b/tests/snapshots/testsuite/simd_align.wast/1.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load align=2 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/10.print b/tests/snapshots/testsuite/simd_align.wast/10.print index bc33346dd4..b7382c353e 100644 --- a/tests/snapshots/testsuite/simd_align.wast/10.print +++ b/tests/snapshots/testsuite/simd_align.wast/10.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load8x8_s align=1 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/11.print b/tests/snapshots/testsuite/simd_align.wast/11.print index 5a799d8d2b..7b0a6637f5 100644 --- a/tests/snapshots/testsuite/simd_align.wast/11.print +++ b/tests/snapshots/testsuite/simd_align.wast/11.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load8x8_s align=2 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/12.print b/tests/snapshots/testsuite/simd_align.wast/12.print index c286d07351..dc2e1992f9 100644 --- a/tests/snapshots/testsuite/simd_align.wast/12.print +++ b/tests/snapshots/testsuite/simd_align.wast/12.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load8x8_s align=4 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/13.print b/tests/snapshots/testsuite/simd_align.wast/13.print index ef7a0a5311..44f1a2e3e9 100644 --- a/tests/snapshots/testsuite/simd_align.wast/13.print +++ b/tests/snapshots/testsuite/simd_align.wast/13.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load8x8_s drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/14.print b/tests/snapshots/testsuite/simd_align.wast/14.print index 7866127bb4..99acfc6b17 100644 --- a/tests/snapshots/testsuite/simd_align.wast/14.print +++ b/tests/snapshots/testsuite/simd_align.wast/14.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load8x8_u align=1 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/15.print b/tests/snapshots/testsuite/simd_align.wast/15.print index fd6b76e089..fa8de775c2 100644 --- a/tests/snapshots/testsuite/simd_align.wast/15.print +++ b/tests/snapshots/testsuite/simd_align.wast/15.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load8x8_u align=2 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/16.print b/tests/snapshots/testsuite/simd_align.wast/16.print index d535170c96..6297e803d0 100644 --- a/tests/snapshots/testsuite/simd_align.wast/16.print +++ b/tests/snapshots/testsuite/simd_align.wast/16.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load8x8_u align=4 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/17.print b/tests/snapshots/testsuite/simd_align.wast/17.print index a3bc56aac4..dea7517017 100644 --- a/tests/snapshots/testsuite/simd_align.wast/17.print +++ b/tests/snapshots/testsuite/simd_align.wast/17.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load8x8_u drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/18.print b/tests/snapshots/testsuite/simd_align.wast/18.print index 7743fcb4ca..5d2083a4be 100644 --- a/tests/snapshots/testsuite/simd_align.wast/18.print +++ b/tests/snapshots/testsuite/simd_align.wast/18.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load16x4_s align=1 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/19.print b/tests/snapshots/testsuite/simd_align.wast/19.print index 634a1531b2..0d82b3f9e3 100644 --- a/tests/snapshots/testsuite/simd_align.wast/19.print +++ b/tests/snapshots/testsuite/simd_align.wast/19.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load16x4_s align=2 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/2.print b/tests/snapshots/testsuite/simd_align.wast/2.print index 75965e0a10..2df6499ac0 100644 --- a/tests/snapshots/testsuite/simd_align.wast/2.print +++ b/tests/snapshots/testsuite/simd_align.wast/2.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load align=4 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/20.print b/tests/snapshots/testsuite/simd_align.wast/20.print index 2020de133b..5ccc40134c 100644 --- a/tests/snapshots/testsuite/simd_align.wast/20.print +++ b/tests/snapshots/testsuite/simd_align.wast/20.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load16x4_s align=4 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/21.print b/tests/snapshots/testsuite/simd_align.wast/21.print index ffb79f0390..a3827be4ef 100644 --- a/tests/snapshots/testsuite/simd_align.wast/21.print +++ b/tests/snapshots/testsuite/simd_align.wast/21.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load16x4_s drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/22.print b/tests/snapshots/testsuite/simd_align.wast/22.print index 56f0458063..96c44d32ea 100644 --- a/tests/snapshots/testsuite/simd_align.wast/22.print +++ b/tests/snapshots/testsuite/simd_align.wast/22.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load16x4_u align=1 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/23.print b/tests/snapshots/testsuite/simd_align.wast/23.print index 414c4eeae2..ec47f3be67 100644 --- a/tests/snapshots/testsuite/simd_align.wast/23.print +++ b/tests/snapshots/testsuite/simd_align.wast/23.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load16x4_u align=2 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/24.print b/tests/snapshots/testsuite/simd_align.wast/24.print index 1400d437ee..436ea8cfd2 100644 --- a/tests/snapshots/testsuite/simd_align.wast/24.print +++ b/tests/snapshots/testsuite/simd_align.wast/24.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load16x4_u align=4 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/25.print b/tests/snapshots/testsuite/simd_align.wast/25.print index 54a9d3c802..3952479f69 100644 --- a/tests/snapshots/testsuite/simd_align.wast/25.print +++ b/tests/snapshots/testsuite/simd_align.wast/25.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load16x4_u drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/26.print b/tests/snapshots/testsuite/simd_align.wast/26.print index 7e35fe248b..ff37f0cec2 100644 --- a/tests/snapshots/testsuite/simd_align.wast/26.print +++ b/tests/snapshots/testsuite/simd_align.wast/26.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32x2_s align=1 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/27.print b/tests/snapshots/testsuite/simd_align.wast/27.print index cb294ac18f..b9ec4e0a38 100644 --- a/tests/snapshots/testsuite/simd_align.wast/27.print +++ b/tests/snapshots/testsuite/simd_align.wast/27.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32x2_s align=2 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/28.print b/tests/snapshots/testsuite/simd_align.wast/28.print index 07fd0232e9..6b3c5728ab 100644 --- a/tests/snapshots/testsuite/simd_align.wast/28.print +++ b/tests/snapshots/testsuite/simd_align.wast/28.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32x2_s align=4 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/29.print b/tests/snapshots/testsuite/simd_align.wast/29.print index a5dfff12ae..a6833d08d6 100644 --- a/tests/snapshots/testsuite/simd_align.wast/29.print +++ b/tests/snapshots/testsuite/simd_align.wast/29.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32x2_s drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/3.print b/tests/snapshots/testsuite/simd_align.wast/3.print index ac2e311668..cf13287b1b 100644 --- a/tests/snapshots/testsuite/simd_align.wast/3.print +++ b/tests/snapshots/testsuite/simd_align.wast/3.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load align=8 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/30.print b/tests/snapshots/testsuite/simd_align.wast/30.print index 44e9241a76..e8569f0503 100644 --- a/tests/snapshots/testsuite/simd_align.wast/30.print +++ b/tests/snapshots/testsuite/simd_align.wast/30.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32x2_u align=1 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/31.print b/tests/snapshots/testsuite/simd_align.wast/31.print index 956ce1beae..dc0cf0d260 100644 --- a/tests/snapshots/testsuite/simd_align.wast/31.print +++ b/tests/snapshots/testsuite/simd_align.wast/31.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32x2_u align=2 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/32.print b/tests/snapshots/testsuite/simd_align.wast/32.print index e1905943e7..840c34aed7 100644 --- a/tests/snapshots/testsuite/simd_align.wast/32.print +++ b/tests/snapshots/testsuite/simd_align.wast/32.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32x2_u align=4 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/33.print b/tests/snapshots/testsuite/simd_align.wast/33.print index d31251e74d..5e5f9131b0 100644 --- a/tests/snapshots/testsuite/simd_align.wast/33.print +++ b/tests/snapshots/testsuite/simd_align.wast/33.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32x2_u drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/34.print b/tests/snapshots/testsuite/simd_align.wast/34.print index a7dc51d48c..8bd4c355da 100644 --- a/tests/snapshots/testsuite/simd_align.wast/34.print +++ b/tests/snapshots/testsuite/simd_align.wast/34.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load8_splat drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/35.print b/tests/snapshots/testsuite/simd_align.wast/35.print index 3a7607f813..ad1ed32df3 100644 --- a/tests/snapshots/testsuite/simd_align.wast/35.print +++ b/tests/snapshots/testsuite/simd_align.wast/35.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load16_splat align=1 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/36.print b/tests/snapshots/testsuite/simd_align.wast/36.print index 7f23e6db09..04bfd570b2 100644 --- a/tests/snapshots/testsuite/simd_align.wast/36.print +++ b/tests/snapshots/testsuite/simd_align.wast/36.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load16_splat drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/37.print b/tests/snapshots/testsuite/simd_align.wast/37.print index ebfa9255f7..397faf5069 100644 --- a/tests/snapshots/testsuite/simd_align.wast/37.print +++ b/tests/snapshots/testsuite/simd_align.wast/37.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32_splat align=1 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/38.print b/tests/snapshots/testsuite/simd_align.wast/38.print index d9fea1aa33..90e5e68a44 100644 --- a/tests/snapshots/testsuite/simd_align.wast/38.print +++ b/tests/snapshots/testsuite/simd_align.wast/38.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32_splat align=2 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/39.print b/tests/snapshots/testsuite/simd_align.wast/39.print index 6adb50302d..0e96b57459 100644 --- a/tests/snapshots/testsuite/simd_align.wast/39.print +++ b/tests/snapshots/testsuite/simd_align.wast/39.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load32_splat drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/4.print b/tests/snapshots/testsuite/simd_align.wast/4.print index 6ba5bceb1f..6108b0d620 100644 --- a/tests/snapshots/testsuite/simd_align.wast/4.print +++ b/tests/snapshots/testsuite/simd_align.wast/4.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/40.print b/tests/snapshots/testsuite/simd_align.wast/40.print index e049def62a..2789be4b26 100644 --- a/tests/snapshots/testsuite/simd_align.wast/40.print +++ b/tests/snapshots/testsuite/simd_align.wast/40.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load64_splat align=1 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/41.print b/tests/snapshots/testsuite/simd_align.wast/41.print index 0ae49000f8..77bfdbc3a0 100644 --- a/tests/snapshots/testsuite/simd_align.wast/41.print +++ b/tests/snapshots/testsuite/simd_align.wast/41.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load64_splat align=2 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/42.print b/tests/snapshots/testsuite/simd_align.wast/42.print index 7656d29664..01019a0d1d 100644 --- a/tests/snapshots/testsuite/simd_align.wast/42.print +++ b/tests/snapshots/testsuite/simd_align.wast/42.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load64_splat align=4 drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/43.print b/tests/snapshots/testsuite/simd_align.wast/43.print index b749d419d4..84c5427730 100644 --- a/tests/snapshots/testsuite/simd_align.wast/43.print +++ b/tests/snapshots/testsuite/simd_align.wast/43.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.load64_splat drop ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/5.print b/tests/snapshots/testsuite/simd_align.wast/5.print index d24e0bd6b3..f3797cde33 100644 --- a/tests/snapshots/testsuite/simd_align.wast/5.print +++ b/tests/snapshots/testsuite/simd_align.wast/5.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 v128.store align=1 ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/6.print b/tests/snapshots/testsuite/simd_align.wast/6.print index 262fd9d8a8..ca46d03c83 100644 --- a/tests/snapshots/testsuite/simd_align.wast/6.print +++ b/tests/snapshots/testsuite/simd_align.wast/6.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 v128.store align=2 ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/7.print b/tests/snapshots/testsuite/simd_align.wast/7.print index fb68e0bede..c4c746969c 100644 --- a/tests/snapshots/testsuite/simd_align.wast/7.print +++ b/tests/snapshots/testsuite/simd_align.wast/7.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 v128.store align=4 ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/8.print b/tests/snapshots/testsuite/simd_align.wast/8.print index 69eb24f897..a26384c493 100644 --- a/tests/snapshots/testsuite/simd_align.wast/8.print +++ b/tests/snapshots/testsuite/simd_align.wast/8.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 v128.store align=8 ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/9.print b/tests/snapshots/testsuite/simd_align.wast/9.print index 5e8c98ca22..da721acb96 100644 --- a/tests/snapshots/testsuite/simd_align.wast/9.print +++ b/tests/snapshots/testsuite/simd_align.wast/9.print @@ -1,9 +1,9 @@ (module (type (;0;) (func)) + (memory (;0;) 1) (func (;0;) (type 0) i32.const 0 v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 v128.store ) - (memory (;0;) 1) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/90.print b/tests/snapshots/testsuite/simd_align.wast/90.print index b9312c53b4..86970460c1 100644 --- a/tests/snapshots/testsuite/simd_align.wast/90.print +++ b/tests/snapshots/testsuite/simd_align.wast/90.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param i32) (result v128))) (type (;1;) (func (param i32 v128))) + (memory (;0;) 1 1) + (export "v128.load align=16" (func 0)) + (export "v128.store align=16" (func 1)) (func (;0;) (type 0) (param $address i32) (result v128) local.get $address v128.load @@ -10,7 +13,4 @@ local.get $value v128.store ) - (memory (;0;) 1 1) - (export "v128.load align=16" (func 0)) - (export "v128.store align=16" (func 1)) ) diff --git a/tests/snapshots/testsuite/simd_align.wast/95.print b/tests/snapshots/testsuite/simd_align.wast/95.print index c340c6edba..7fced2948d 100644 --- a/tests/snapshots/testsuite/simd_align.wast/95.print +++ b/tests/snapshots/testsuite/simd_align.wast/95.print @@ -1,5 +1,10 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "v128_unaligned_read_and_write" (func 0)) + (export "v128_aligned_read_and_write" (func 1)) + (export "v128_aligned_read_and_unaligned_write" (func 2)) + (export "v128_unaligned_read_and_aligned_write" (func 3)) (func (;0;) (type 0) (result v128) (local v128) i32.const 0 @@ -32,9 +37,4 @@ i32.const 0 v128.load ) - (memory (;0;) 1) - (export "v128_unaligned_read_and_write" (func 0)) - (export "v128_aligned_read_and_write" (func 1)) - (export "v128_aligned_read_and_unaligned_write" (func 2)) - (export "v128_unaligned_read_and_aligned_write" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_bit_shift.wast/0.print b/tests/snapshots/testsuite/simd_bit_shift.wast/0.print index 98d595ea45..5c90994a6b 100644 --- a/tests/snapshots/testsuite/simd_bit_shift.wast/0.print +++ b/tests/snapshots/testsuite/simd_bit_shift.wast/0.print @@ -1,6 +1,30 @@ (module (type (;0;) (func (param v128 i32) (result v128))) (type (;1;) (func (param v128) (result v128))) + (export "i8x16.shl" (func 0)) + (export "i8x16.shr_s" (func 1)) + (export "i8x16.shr_u" (func 2)) + (export "i16x8.shl" (func 3)) + (export "i16x8.shr_s" (func 4)) + (export "i16x8.shr_u" (func 5)) + (export "i32x4.shl" (func 6)) + (export "i32x4.shr_s" (func 7)) + (export "i32x4.shr_u" (func 8)) + (export "i64x2.shl" (func 9)) + (export "i64x2.shr_s" (func 10)) + (export "i64x2.shr_u" (func 11)) + (export "i8x16.shl_1" (func 12)) + (export "i8x16.shr_u_8" (func 13)) + (export "i8x16.shr_s_9" (func 14)) + (export "i16x8.shl_1" (func 15)) + (export "i16x8.shr_u_16" (func 16)) + (export "i16x8.shr_s_17" (func 17)) + (export "i32x4.shl_1" (func 18)) + (export "i32x4.shr_u_32" (func 19)) + (export "i32x4.shr_s_33" (func 20)) + (export "i64x2.shl_1" (func 21)) + (export "i64x2.shr_u_64" (func 22)) + (export "i64x2.shr_s_65" (func 23)) (func (;0;) (type 0) (param $0 v128) (param $1 i32) (result v128) local.get $0 local.get $1 @@ -121,28 +145,4 @@ i32.const 65 i64x2.shr_s ) - (export "i8x16.shl" (func 0)) - (export "i8x16.shr_s" (func 1)) - (export "i8x16.shr_u" (func 2)) - (export "i16x8.shl" (func 3)) - (export "i16x8.shr_s" (func 4)) - (export "i16x8.shr_u" (func 5)) - (export "i32x4.shl" (func 6)) - (export "i32x4.shr_s" (func 7)) - (export "i32x4.shr_u" (func 8)) - (export "i64x2.shl" (func 9)) - (export "i64x2.shr_s" (func 10)) - (export "i64x2.shr_u" (func 11)) - (export "i8x16.shl_1" (func 12)) - (export "i8x16.shr_u_8" (func 13)) - (export "i8x16.shr_s_9" (func 14)) - (export "i16x8.shl_1" (func 15)) - (export "i16x8.shr_u_16" (func 16)) - (export "i16x8.shr_s_17" (func 17)) - (export "i32x4.shl_1" (func 18)) - (export "i32x4.shr_u_32" (func 19)) - (export "i32x4.shr_s_33" (func 20)) - (export "i64x2.shl_1" (func 21)) - (export "i64x2.shr_u_64" (func 22)) - (export "i64x2.shr_s_65" (func 23)) ) diff --git a/tests/snapshots/testsuite/simd_bit_shift.wast/188.print b/tests/snapshots/testsuite/simd_bit_shift.wast/188.print index e71025626b..40b3359bbe 100644 --- a/tests/snapshots/testsuite/simd_bit_shift.wast/188.print +++ b/tests/snapshots/testsuite/simd_bit_shift.wast/188.print @@ -1,5 +1,30 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "i8x16.shl-in-block" (func 0)) + (export "i8x16.shr_s-in-block" (func 1)) + (export "i8x16.shr_u-in-block" (func 2)) + (export "i16x8.shl-in-block" (func 3)) + (export "i16x8.shr_s-in-block" (func 4)) + (export "i16x8.shr_u-in-block" (func 5)) + (export "i32x4.shl-in-block" (func 6)) + (export "i32x4.shr_s-in-block" (func 7)) + (export "i32x4.shr_u-in-block" (func 8)) + (export "i64x2.shl-in-block" (func 9)) + (export "i64x2.shr_s-in-block" (func 10)) + (export "i64x2.shr_u-in-block" (func 11)) + (export "nested-i8x16.shl" (func 12)) + (export "nested-i8x16.shr_s" (func 13)) + (export "nested-i8x16.shr_u" (func 14)) + (export "nested-i16x8.shl" (func 15)) + (export "nested-i16x8.shr_s" (func 16)) + (export "nested-i16x8.shr_u" (func 17)) + (export "nested-i32x4.shl" (func 18)) + (export "nested-i32x4.shr_s" (func 19)) + (export "nested-i32x4.shr_u" (func 20)) + (export "nested-i64x2.shl" (func 21)) + (export "nested-i64x2.shr_s" (func 22)) + (export "nested-i64x2.shr_u" (func 23)) (func (;0;) (type 0) block ;; label = @1 block (result v128) ;; label = @2 @@ -288,29 +313,4 @@ i64x2.shr_u drop ) - (memory (;0;) 1) - (export "i8x16.shl-in-block" (func 0)) - (export "i8x16.shr_s-in-block" (func 1)) - (export "i8x16.shr_u-in-block" (func 2)) - (export "i16x8.shl-in-block" (func 3)) - (export "i16x8.shr_s-in-block" (func 4)) - (export "i16x8.shr_u-in-block" (func 5)) - (export "i32x4.shl-in-block" (func 6)) - (export "i32x4.shr_s-in-block" (func 7)) - (export "i32x4.shr_u-in-block" (func 8)) - (export "i64x2.shl-in-block" (func 9)) - (export "i64x2.shr_s-in-block" (func 10)) - (export "i64x2.shr_u-in-block" (func 11)) - (export "nested-i8x16.shl" (func 12)) - (export "nested-i8x16.shr_s" (func 13)) - (export "nested-i8x16.shr_u" (func 14)) - (export "nested-i16x8.shl" (func 15)) - (export "nested-i16x8.shr_s" (func 16)) - (export "nested-i16x8.shr_u" (func 17)) - (export "nested-i32x4.shl" (func 18)) - (export "nested-i32x4.shr_s" (func 19)) - (export "nested-i32x4.shr_u" (func 20)) - (export "nested-i64x2.shl" (func 21)) - (export "nested-i64x2.shr_s" (func 22)) - (export "nested-i64x2.shr_u" (func 23)) ) diff --git a/tests/snapshots/testsuite/simd_bitwise.wast/0.print b/tests/snapshots/testsuite/simd_bitwise.wast/0.print index b4450bc897..16caabd2bc 100644 --- a/tests/snapshots/testsuite/simd_bitwise.wast/0.print +++ b/tests/snapshots/testsuite/simd_bitwise.wast/0.print @@ -2,6 +2,12 @@ (type (;0;) (func (param v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) (type (;2;) (func (param v128 v128 v128) (result v128))) + (export "not" (func 0)) + (export "and" (func 1)) + (export "or" (func 2)) + (export "xor" (func 3)) + (export "bitselect" (func 4)) + (export "andnot" (func 5)) (func (;0;) (type 0) (param $0 v128) (result v128) local.get $0 v128.not @@ -32,10 +38,4 @@ local.get $1 v128.andnot ) - (export "not" (func 0)) - (export "and" (func 1)) - (export "or" (func 2)) - (export "xor" (func 3)) - (export "bitselect" (func 4)) - (export "andnot" (func 5)) ) diff --git a/tests/snapshots/testsuite/simd_bitwise.wast/143.print b/tests/snapshots/testsuite/simd_bitwise.wast/143.print index 7670ddc37f..255d26307f 100644 --- a/tests/snapshots/testsuite/simd_bitwise.wast/143.print +++ b/tests/snapshots/testsuite/simd_bitwise.wast/143.print @@ -1,5 +1,19 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "v128.not-in-block" (func 0)) + (export "v128.and-in-block" (func 1)) + (export "v128.or-in-block" (func 2)) + (export "v128.xor-in-block" (func 3)) + (export "v128.bitselect-in-block" (func 4)) + (export "v128.andnot-in-block" (func 5)) + (export "nested-v128.not" (func 6)) + (export "nested-v128.and" (func 7)) + (export "nested-v128.or" (func 8)) + (export "nested-v128.xor" (func 9)) + (export "nested-v128.bitselect" (func 10)) + (export "nested-v128.andnot" (func 11)) + (export "as-param" (func 12)) (func (;0;) (type 0) block ;; label = @1 block (result v128) ;; label = @2 @@ -302,18 +316,4 @@ v128.or drop ) - (memory (;0;) 1) - (export "v128.not-in-block" (func 0)) - (export "v128.and-in-block" (func 1)) - (export "v128.or-in-block" (func 2)) - (export "v128.xor-in-block" (func 3)) - (export "v128.bitselect-in-block" (func 4)) - (export "v128.andnot-in-block" (func 5)) - (export "nested-v128.not" (func 6)) - (export "nested-v128.and" (func 7)) - (export "nested-v128.or" (func 8)) - (export "nested-v128.xor" (func 9)) - (export "nested-v128.bitselect" (func 10)) - (export "nested-v128.andnot" (func 11)) - (export "as-param" (func 12)) ) diff --git a/tests/snapshots/testsuite/simd_boolean.wast/0.print b/tests/snapshots/testsuite/simd_boolean.wast/0.print index 2318f27728..24af9719b6 100644 --- a/tests/snapshots/testsuite/simd_boolean.wast/0.print +++ b/tests/snapshots/testsuite/simd_boolean.wast/0.print @@ -1,5 +1,16 @@ (module (type (;0;) (func (param v128) (result i32))) + (export "i8x16.any_true" (func 0)) + (export "i8x16.all_true" (func 1)) + (export "i8x16.bitmask" (func 2)) + (export "i16x8.any_true" (func 3)) + (export "i16x8.all_true" (func 4)) + (export "i16x8.bitmask" (func 5)) + (export "i32x4.any_true" (func 6)) + (export "i32x4.all_true" (func 7)) + (export "i32x4.bitmask" (func 8)) + (export "i64x2.all_true" (func 9)) + (export "i64x2.bitmask" (func 10)) (func (;0;) (type 0) (param $0 v128) (result i32) local.get $0 v128.any_true @@ -44,15 +55,4 @@ local.get $0 i64x2.bitmask ) - (export "i8x16.any_true" (func 0)) - (export "i8x16.all_true" (func 1)) - (export "i8x16.bitmask" (func 2)) - (export "i16x8.any_true" (func 3)) - (export "i16x8.all_true" (func 4)) - (export "i16x8.bitmask" (func 5)) - (export "i32x4.any_true" (func 6)) - (export "i32x4.all_true" (func 7)) - (export "i32x4.bitmask" (func 8)) - (export "i64x2.all_true" (func 9)) - (export "i64x2.bitmask" (func 10)) ) diff --git a/tests/snapshots/testsuite/simd_boolean.wast/80.print b/tests/snapshots/testsuite/simd_boolean.wast/80.print index 813ec5398d..ec7eb9d71a 100644 --- a/tests/snapshots/testsuite/simd_boolean.wast/80.print +++ b/tests/snapshots/testsuite/simd_boolean.wast/80.print @@ -2,6 +2,73 @@ (type (;0;) (func (param v128) (result i32))) (type (;1;) (func (param v128 v128) (result i32))) (type (;2;) (func (param v128 v128 v128) (result i32))) + (memory (;0;) 1) + (export "i8x16_any_true_as_if_cond" (func 0)) + (export "i16x8_any_true_as_if_cond" (func 1)) + (export "i32x4_any_true_as_if_cond" (func 2)) + (export "i8x16_all_true_as_if_cond" (func 3)) + (export "i16x8_all_true_as_if_cond" (func 4)) + (export "i32x4_all_true_as_if_cond" (func 5)) + (export "i8x16_any_true_as_select_cond" (func 6)) + (export "i16x8_any_true_as_select_cond" (func 7)) + (export "i32x4_any_true_as_select_cond" (func 8)) + (export "i8x16_all_true_as_select_cond" (func 9)) + (export "i16x8_all_true_as_select_cond" (func 10)) + (export "i32x4_all_true_as_select_cond" (func 11)) + (export "i8x16_any_true_as_br_if_cond" (func 12)) + (export "i16x8_any_true_as_br_if_cond" (func 13)) + (export "i32x4_any_true_as_br_if_cond" (func 14)) + (export "i8x16_all_true_as_br_if_cond" (func 15)) + (export "i16x8_all_true_as_br_if_cond" (func 16)) + (export "i32x4_all_true_as_br_if_cond" (func 17)) + (export "i8x16_any_true_as_i32.and_operand" (func 18)) + (export "i16x8_any_true_as_i32.and_operand" (func 19)) + (export "i32x4_any_true_as_i32.and_operand" (func 20)) + (export "i8x16_any_true_as_i32.or_operand" (func 21)) + (export "i16x8_any_true_as_i32.or_operand" (func 22)) + (export "i32x4_any_true_as_i32.or_operand" (func 23)) + (export "i8x16_any_true_as_i32.xor_operand" (func 24)) + (export "i16x8_any_true_as_i32.xor_operand" (func 25)) + (export "i32x4_any_true_as_i32.xor_operand" (func 26)) + (export "i8x16_all_true_as_i32.and_operand" (func 27)) + (export "i16x8_all_true_as_i32.and_operand" (func 28)) + (export "i32x4_all_true_as_i32.and_operand" (func 29)) + (export "i8x16_all_true_as_i32.or_operand" (func 30)) + (export "i16x8_all_true_as_i32.or_operand" (func 31)) + (export "i32x4_all_true_as_i32.or_operand" (func 32)) + (export "i8x16_all_true_as_i32.xor_operand" (func 33)) + (export "i16x8_all_true_as_i32.xor_operand" (func 34)) + (export "i32x4_all_true_as_i32.xor_operand" (func 35)) + (export "i8x16_any_true_with_v128.not" (func 36)) + (export "i16x8_any_true_with_v128.not" (func 37)) + (export "i32x4_any_true_with_v128.not" (func 38)) + (export "i8x16_any_true_with_v128.and" (func 39)) + (export "i16x8_any_true_with_v128.and" (func 40)) + (export "i32x4_any_true_with_v128.and" (func 41)) + (export "i8x16_any_true_with_v128.or" (func 42)) + (export "i16x8_any_true_with_v128.or" (func 43)) + (export "i32x4_any_true_with_v128.or" (func 44)) + (export "i8x16_any_true_with_v128.xor" (func 45)) + (export "i16x8_any_true_with_v128.xor" (func 46)) + (export "i32x4_any_true_with_v128.xor" (func 47)) + (export "i8x16_any_true_with_v128.bitselect" (func 48)) + (export "i16x8_any_true_with_v128.bitselect" (func 49)) + (export "i32x4_any_true_with_v128.bitselect" (func 50)) + (export "i8x16_all_true_with_v128.not" (func 51)) + (export "i16x8_all_true_with_v128.not" (func 52)) + (export "i32x4_all_true_with_v128.not" (func 53)) + (export "i8x16_all_true_with_v128.and" (func 54)) + (export "i16x8_all_true_with_v128.and" (func 55)) + (export "i32x4_all_true_with_v128.and" (func 56)) + (export "i8x16_all_true_with_v128.or" (func 57)) + (export "i16x8_all_true_with_v128.or" (func 58)) + (export "i32x4_all_true_with_v128.or" (func 59)) + (export "i8x16_all_true_with_v128.xor" (func 60)) + (export "i16x8_all_true_with_v128.xor" (func 61)) + (export "i32x4_all_true_with_v128.xor" (func 62)) + (export "i8x16_all_true_with_v128.bitselect" (func 63)) + (export "i16x8_all_true_with_v128.bitselect" (func 64)) + (export "i32x4_all_true_with_v128.bitselect" (func 65)) (func (;0;) (type 0) (param v128) (result i32) local.get 0 v128.any_true @@ -494,71 +561,4 @@ v128.bitselect i32x4.all_true ) - (memory (;0;) 1) - (export "i8x16_any_true_as_if_cond" (func 0)) - (export "i16x8_any_true_as_if_cond" (func 1)) - (export "i32x4_any_true_as_if_cond" (func 2)) - (export "i8x16_all_true_as_if_cond" (func 3)) - (export "i16x8_all_true_as_if_cond" (func 4)) - (export "i32x4_all_true_as_if_cond" (func 5)) - (export "i8x16_any_true_as_select_cond" (func 6)) - (export "i16x8_any_true_as_select_cond" (func 7)) - (export "i32x4_any_true_as_select_cond" (func 8)) - (export "i8x16_all_true_as_select_cond" (func 9)) - (export "i16x8_all_true_as_select_cond" (func 10)) - (export "i32x4_all_true_as_select_cond" (func 11)) - (export "i8x16_any_true_as_br_if_cond" (func 12)) - (export "i16x8_any_true_as_br_if_cond" (func 13)) - (export "i32x4_any_true_as_br_if_cond" (func 14)) - (export "i8x16_all_true_as_br_if_cond" (func 15)) - (export "i16x8_all_true_as_br_if_cond" (func 16)) - (export "i32x4_all_true_as_br_if_cond" (func 17)) - (export "i8x16_any_true_as_i32.and_operand" (func 18)) - (export "i16x8_any_true_as_i32.and_operand" (func 19)) - (export "i32x4_any_true_as_i32.and_operand" (func 20)) - (export "i8x16_any_true_as_i32.or_operand" (func 21)) - (export "i16x8_any_true_as_i32.or_operand" (func 22)) - (export "i32x4_any_true_as_i32.or_operand" (func 23)) - (export "i8x16_any_true_as_i32.xor_operand" (func 24)) - (export "i16x8_any_true_as_i32.xor_operand" (func 25)) - (export "i32x4_any_true_as_i32.xor_operand" (func 26)) - (export "i8x16_all_true_as_i32.and_operand" (func 27)) - (export "i16x8_all_true_as_i32.and_operand" (func 28)) - (export "i32x4_all_true_as_i32.and_operand" (func 29)) - (export "i8x16_all_true_as_i32.or_operand" (func 30)) - (export "i16x8_all_true_as_i32.or_operand" (func 31)) - (export "i32x4_all_true_as_i32.or_operand" (func 32)) - (export "i8x16_all_true_as_i32.xor_operand" (func 33)) - (export "i16x8_all_true_as_i32.xor_operand" (func 34)) - (export "i32x4_all_true_as_i32.xor_operand" (func 35)) - (export "i8x16_any_true_with_v128.not" (func 36)) - (export "i16x8_any_true_with_v128.not" (func 37)) - (export "i32x4_any_true_with_v128.not" (func 38)) - (export "i8x16_any_true_with_v128.and" (func 39)) - (export "i16x8_any_true_with_v128.and" (func 40)) - (export "i32x4_any_true_with_v128.and" (func 41)) - (export "i8x16_any_true_with_v128.or" (func 42)) - (export "i16x8_any_true_with_v128.or" (func 43)) - (export "i32x4_any_true_with_v128.or" (func 44)) - (export "i8x16_any_true_with_v128.xor" (func 45)) - (export "i16x8_any_true_with_v128.xor" (func 46)) - (export "i32x4_any_true_with_v128.xor" (func 47)) - (export "i8x16_any_true_with_v128.bitselect" (func 48)) - (export "i16x8_any_true_with_v128.bitselect" (func 49)) - (export "i32x4_any_true_with_v128.bitselect" (func 50)) - (export "i8x16_all_true_with_v128.not" (func 51)) - (export "i16x8_all_true_with_v128.not" (func 52)) - (export "i32x4_all_true_with_v128.not" (func 53)) - (export "i8x16_all_true_with_v128.and" (func 54)) - (export "i16x8_all_true_with_v128.and" (func 55)) - (export "i32x4_all_true_with_v128.and" (func 56)) - (export "i8x16_all_true_with_v128.or" (func 57)) - (export "i16x8_all_true_with_v128.or" (func 58)) - (export "i32x4_all_true_with_v128.or" (func 59)) - (export "i8x16_all_true_with_v128.xor" (func 60)) - (export "i16x8_all_true_with_v128.xor" (func 61)) - (export "i32x4_all_true_with_v128.xor" (func 62)) - (export "i8x16_all_true_with_v128.bitselect" (func 63)) - (export "i16x8_all_true_with_v128.bitselect" (func 64)) - (export "i32x4_all_true_with_v128.bitselect" (func 65)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/197.print b/tests/snapshots/testsuite/simd_const.wast/197.print index f0f4cbbd6d..be2996a589 100644 --- a/tests/snapshots/testsuite/simd_const.wast/197.print +++ b/tests/snapshots/testsuite/simd_const.wast/197.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x26800000 0x26800000 0x26800000 0x26800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/199.print b/tests/snapshots/testsuite/simd_const.wast/199.print index 9ce717ed0e..d526c0effc 100644 --- a/tests/snapshots/testsuite/simd_const.wast/199.print +++ b/tests/snapshots/testsuite/simd_const.wast/199.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xa6800000 0xa6800000 0xa6800000 0xa6800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/201.print b/tests/snapshots/testsuite/simd_const.wast/201.print index bca42ed8dd..3be7117bc1 100644 --- a/tests/snapshots/testsuite/simd_const.wast/201.print +++ b/tests/snapshots/testsuite/simd_const.wast/201.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x26800003 0x26800003 0x26800003 0x26800003 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/203.print b/tests/snapshots/testsuite/simd_const.wast/203.print index 99eebb6b81..c20b39ba16 100644 --- a/tests/snapshots/testsuite/simd_const.wast/203.print +++ b/tests/snapshots/testsuite/simd_const.wast/203.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xa6800003 0xa6800003 0xa6800003 0xa6800003 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/205.print b/tests/snapshots/testsuite/simd_const.wast/205.print index f0f4cbbd6d..be2996a589 100644 --- a/tests/snapshots/testsuite/simd_const.wast/205.print +++ b/tests/snapshots/testsuite/simd_const.wast/205.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x26800000 0x26800000 0x26800000 0x26800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/207.print b/tests/snapshots/testsuite/simd_const.wast/207.print index 9ce717ed0e..d526c0effc 100644 --- a/tests/snapshots/testsuite/simd_const.wast/207.print +++ b/tests/snapshots/testsuite/simd_const.wast/207.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xa6800000 0xa6800000 0xa6800000 0xa6800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/209.print b/tests/snapshots/testsuite/simd_const.wast/209.print index bca42ed8dd..3be7117bc1 100644 --- a/tests/snapshots/testsuite/simd_const.wast/209.print +++ b/tests/snapshots/testsuite/simd_const.wast/209.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x26800003 0x26800003 0x26800003 0x26800003 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/211.print b/tests/snapshots/testsuite/simd_const.wast/211.print index 99eebb6b81..c20b39ba16 100644 --- a/tests/snapshots/testsuite/simd_const.wast/211.print +++ b/tests/snapshots/testsuite/simd_const.wast/211.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xa6800003 0xa6800003 0xa6800003 0xa6800003 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/213.print b/tests/snapshots/testsuite/simd_const.wast/213.print index f0f4cbbd6d..be2996a589 100644 --- a/tests/snapshots/testsuite/simd_const.wast/213.print +++ b/tests/snapshots/testsuite/simd_const.wast/213.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x26800000 0x26800000 0x26800000 0x26800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/215.print b/tests/snapshots/testsuite/simd_const.wast/215.print index 9ce717ed0e..d526c0effc 100644 --- a/tests/snapshots/testsuite/simd_const.wast/215.print +++ b/tests/snapshots/testsuite/simd_const.wast/215.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xa6800000 0xa6800000 0xa6800000 0xa6800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/217.print b/tests/snapshots/testsuite/simd_const.wast/217.print index d655817cf2..5b1e3ed038 100644 --- a/tests/snapshots/testsuite/simd_const.wast/217.print +++ b/tests/snapshots/testsuite/simd_const.wast/217.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x26800002 0x26800002 0x26800002 0x26800002 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/219.print b/tests/snapshots/testsuite/simd_const.wast/219.print index e9aa6c081c..8069537d46 100644 --- a/tests/snapshots/testsuite/simd_const.wast/219.print +++ b/tests/snapshots/testsuite/simd_const.wast/219.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xa6800002 0xa6800002 0xa6800002 0xa6800002 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/221.print b/tests/snapshots/testsuite/simd_const.wast/221.print index 1af16617dd..77924c8b53 100644 --- a/tests/snapshots/testsuite/simd_const.wast/221.print +++ b/tests/snapshots/testsuite/simd_const.wast/221.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x58800000 0x58800000 0x58800000 0x58800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/223.print b/tests/snapshots/testsuite/simd_const.wast/223.print index d703f833fc..f621f417a0 100644 --- a/tests/snapshots/testsuite/simd_const.wast/223.print +++ b/tests/snapshots/testsuite/simd_const.wast/223.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xd8800000 0xd8800000 0xd8800000 0xd8800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/225.print b/tests/snapshots/testsuite/simd_const.wast/225.print index 48cac9c665..660375e93d 100644 --- a/tests/snapshots/testsuite/simd_const.wast/225.print +++ b/tests/snapshots/testsuite/simd_const.wast/225.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x58800003 0x58800003 0x58800003 0x58800003 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/227.print b/tests/snapshots/testsuite/simd_const.wast/227.print index f76cc027f7..98a160b111 100644 --- a/tests/snapshots/testsuite/simd_const.wast/227.print +++ b/tests/snapshots/testsuite/simd_const.wast/227.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xd8800003 0xd8800003 0xd8800003 0xd8800003 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/229.print b/tests/snapshots/testsuite/simd_const.wast/229.print index 1af16617dd..77924c8b53 100644 --- a/tests/snapshots/testsuite/simd_const.wast/229.print +++ b/tests/snapshots/testsuite/simd_const.wast/229.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x58800000 0x58800000 0x58800000 0x58800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/231.print b/tests/snapshots/testsuite/simd_const.wast/231.print index d703f833fc..f621f417a0 100644 --- a/tests/snapshots/testsuite/simd_const.wast/231.print +++ b/tests/snapshots/testsuite/simd_const.wast/231.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xd8800000 0xd8800000 0xd8800000 0xd8800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/233.print b/tests/snapshots/testsuite/simd_const.wast/233.print index ec97e89b8e..3421d3bf7f 100644 --- a/tests/snapshots/testsuite/simd_const.wast/233.print +++ b/tests/snapshots/testsuite/simd_const.wast/233.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x58800002 0x58800002 0x58800002 0x58800002 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/235.print b/tests/snapshots/testsuite/simd_const.wast/235.print index 67743e7c41..9dba2fbf84 100644 --- a/tests/snapshots/testsuite/simd_const.wast/235.print +++ b/tests/snapshots/testsuite/simd_const.wast/235.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xd8800002 0xd8800002 0xd8800002 0xd8800002 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/237.print b/tests/snapshots/testsuite/simd_const.wast/237.print index 1af16617dd..77924c8b53 100644 --- a/tests/snapshots/testsuite/simd_const.wast/237.print +++ b/tests/snapshots/testsuite/simd_const.wast/237.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x58800000 0x58800000 0x58800000 0x58800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/239.print b/tests/snapshots/testsuite/simd_const.wast/239.print index d703f833fc..f621f417a0 100644 --- a/tests/snapshots/testsuite/simd_const.wast/239.print +++ b/tests/snapshots/testsuite/simd_const.wast/239.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xd8800000 0xd8800000 0xd8800000 0xd8800000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/241.print b/tests/snapshots/testsuite/simd_const.wast/241.print index ec97e89b8e..3421d3bf7f 100644 --- a/tests/snapshots/testsuite/simd_const.wast/241.print +++ b/tests/snapshots/testsuite/simd_const.wast/241.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x58800002 0x58800002 0x58800002 0x58800002 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/243.print b/tests/snapshots/testsuite/simd_const.wast/243.print index 67743e7c41..9dba2fbf84 100644 --- a/tests/snapshots/testsuite/simd_const.wast/243.print +++ b/tests/snapshots/testsuite/simd_const.wast/243.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xd8800002 0xd8800002 0xd8800002 0xd8800002 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/245.print b/tests/snapshots/testsuite/simd_const.wast/245.print index dbc08ba271..f5ddb959c0 100644 --- a/tests/snapshots/testsuite/simd_const.wast/245.print +++ b/tests/snapshots/testsuite/simd_const.wast/245.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/247.print b/tests/snapshots/testsuite/simd_const.wast/247.print index 6e82735f2d..57f6fbe88f 100644 --- a/tests/snapshots/testsuite/simd_const.wast/247.print +++ b/tests/snapshots/testsuite/simd_const.wast/247.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x80000000 0x80000000 0x80000000 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/249.print b/tests/snapshots/testsuite/simd_const.wast/249.print index a3c7759c9b..3caf8790e5 100644 --- a/tests/snapshots/testsuite/simd_const.wast/249.print +++ b/tests/snapshots/testsuite/simd_const.wast/249.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000003 0x00000003 0x00000003 0x00000003 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/251.print b/tests/snapshots/testsuite/simd_const.wast/251.print index 905a9ce722..86263b7002 100644 --- a/tests/snapshots/testsuite/simd_const.wast/251.print +++ b/tests/snapshots/testsuite/simd_const.wast/251.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x80000003 0x80000003 0x80000003 0x80000003 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/253.print b/tests/snapshots/testsuite/simd_const.wast/253.print index 08f1021aa1..bd07a95976 100644 --- a/tests/snapshots/testsuite/simd_const.wast/253.print +++ b/tests/snapshots/testsuite/simd_const.wast/253.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x7f7fffff 0x7f7fffff 0x7f7fffff 0x7f7fffff ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/255.print b/tests/snapshots/testsuite/simd_const.wast/255.print index af70bcda8b..4f1bbc563d 100644 --- a/tests/snapshots/testsuite/simd_const.wast/255.print +++ b/tests/snapshots/testsuite/simd_const.wast/255.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xff7fffff 0xff7fffff 0xff7fffff 0xff7fffff ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/257.print b/tests/snapshots/testsuite/simd_const.wast/257.print index 08f1021aa1..bd07a95976 100644 --- a/tests/snapshots/testsuite/simd_const.wast/257.print +++ b/tests/snapshots/testsuite/simd_const.wast/257.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x7f7fffff 0x7f7fffff 0x7f7fffff 0x7f7fffff ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/259.print b/tests/snapshots/testsuite/simd_const.wast/259.print index af70bcda8b..4f1bbc563d 100644 --- a/tests/snapshots/testsuite/simd_const.wast/259.print +++ b/tests/snapshots/testsuite/simd_const.wast/259.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xff7fffff 0xff7fffff 0xff7fffff 0xff7fffff ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/261.print b/tests/snapshots/testsuite/simd_const.wast/261.print index f4ba36e21c..6aea430eea 100644 --- a/tests/snapshots/testsuite/simd_const.wast/261.print +++ b/tests/snapshots/testsuite/simd_const.wast/261.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102884;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/263.print b/tests/snapshots/testsuite/simd_const.wast/263.print index f7fa7cf29e..a583158309 100644 --- a/tests/snapshots/testsuite/simd_const.wast/263.print +++ b/tests/snapshots/testsuite/simd_const.wast/263.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102884;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/265.print b/tests/snapshots/testsuite/simd_const.wast/265.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/simd_const.wast/265.print +++ b/tests/snapshots/testsuite/simd_const.wast/265.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/267.print b/tests/snapshots/testsuite/simd_const.wast/267.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/267.print +++ b/tests/snapshots/testsuite/simd_const.wast/267.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/269.print b/tests/snapshots/testsuite/simd_const.wast/269.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/simd_const.wast/269.print +++ b/tests/snapshots/testsuite/simd_const.wast/269.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/271.print b/tests/snapshots/testsuite/simd_const.wast/271.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/271.print +++ b/tests/snapshots/testsuite/simd_const.wast/271.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/273.print b/tests/snapshots/testsuite/simd_const.wast/273.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/simd_const.wast/273.print +++ b/tests/snapshots/testsuite/simd_const.wast/273.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/275.print b/tests/snapshots/testsuite/simd_const.wast/275.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/275.print +++ b/tests/snapshots/testsuite/simd_const.wast/275.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/277.print b/tests/snapshots/testsuite/simd_const.wast/277.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/simd_const.wast/277.print +++ b/tests/snapshots/testsuite/simd_const.wast/277.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/279.print b/tests/snapshots/testsuite/simd_const.wast/279.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/279.print +++ b/tests/snapshots/testsuite/simd_const.wast/279.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/281.print b/tests/snapshots/testsuite/simd_const.wast/281.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/simd_const.wast/281.print +++ b/tests/snapshots/testsuite/simd_const.wast/281.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/283.print b/tests/snapshots/testsuite/simd_const.wast/283.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/283.print +++ b/tests/snapshots/testsuite/simd_const.wast/283.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/285.print b/tests/snapshots/testsuite/simd_const.wast/285.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/285.print +++ b/tests/snapshots/testsuite/simd_const.wast/285.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/287.print b/tests/snapshots/testsuite/simd_const.wast/287.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/287.print +++ b/tests/snapshots/testsuite/simd_const.wast/287.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/289.print b/tests/snapshots/testsuite/simd_const.wast/289.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/289.print +++ b/tests/snapshots/testsuite/simd_const.wast/289.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/291.print b/tests/snapshots/testsuite/simd_const.wast/291.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/291.print +++ b/tests/snapshots/testsuite/simd_const.wast/291.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/293.print b/tests/snapshots/testsuite/simd_const.wast/293.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/293.print +++ b/tests/snapshots/testsuite/simd_const.wast/293.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/295.print b/tests/snapshots/testsuite/simd_const.wast/295.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/295.print +++ b/tests/snapshots/testsuite/simd_const.wast/295.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/297.print b/tests/snapshots/testsuite/simd_const.wast/297.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/297.print +++ b/tests/snapshots/testsuite/simd_const.wast/297.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/299.print b/tests/snapshots/testsuite/simd_const.wast/299.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/299.print +++ b/tests/snapshots/testsuite/simd_const.wast/299.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/301.print b/tests/snapshots/testsuite/simd_const.wast/301.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/301.print +++ b/tests/snapshots/testsuite/simd_const.wast/301.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/303.print b/tests/snapshots/testsuite/simd_const.wast/303.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/303.print +++ b/tests/snapshots/testsuite/simd_const.wast/303.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/305.print b/tests/snapshots/testsuite/simd_const.wast/305.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/305.print +++ b/tests/snapshots/testsuite/simd_const.wast/305.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/307.print b/tests/snapshots/testsuite/simd_const.wast/307.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/307.print +++ b/tests/snapshots/testsuite/simd_const.wast/307.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/309.print b/tests/snapshots/testsuite/simd_const.wast/309.print index 5d1681991e..2817422161 100644 --- a/tests/snapshots/testsuite/simd_const.wast/309.print +++ b/tests/snapshots/testsuite/simd_const.wast/309.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000003p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028857;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/311.print b/tests/snapshots/testsuite/simd_const.wast/311.print index f038aaa089..70a08bfc48 100644 --- a/tests/snapshots/testsuite/simd_const.wast/311.print +++ b/tests/snapshots/testsuite/simd_const.wast/311.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000003p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028857;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/313.print b/tests/snapshots/testsuite/simd_const.wast/313.print index f4ba36e21c..6aea430eea 100644 --- a/tests/snapshots/testsuite/simd_const.wast/313.print +++ b/tests/snapshots/testsuite/simd_const.wast/313.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102884;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/315.print b/tests/snapshots/testsuite/simd_const.wast/315.print index f7fa7cf29e..a583158309 100644 --- a/tests/snapshots/testsuite/simd_const.wast/315.print +++ b/tests/snapshots/testsuite/simd_const.wast/315.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102884;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/317.print b/tests/snapshots/testsuite/simd_const.wast/317.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/simd_const.wast/317.print +++ b/tests/snapshots/testsuite/simd_const.wast/317.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/319.print b/tests/snapshots/testsuite/simd_const.wast/319.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/319.print +++ b/tests/snapshots/testsuite/simd_const.wast/319.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/321.print b/tests/snapshots/testsuite/simd_const.wast/321.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/simd_const.wast/321.print +++ b/tests/snapshots/testsuite/simd_const.wast/321.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/323.print b/tests/snapshots/testsuite/simd_const.wast/323.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/323.print +++ b/tests/snapshots/testsuite/simd_const.wast/323.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/325.print b/tests/snapshots/testsuite/simd_const.wast/325.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/simd_const.wast/325.print +++ b/tests/snapshots/testsuite/simd_const.wast/325.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/327.print b/tests/snapshots/testsuite/simd_const.wast/327.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/327.print +++ b/tests/snapshots/testsuite/simd_const.wast/327.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/329.print b/tests/snapshots/testsuite/simd_const.wast/329.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/simd_const.wast/329.print +++ b/tests/snapshots/testsuite/simd_const.wast/329.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/331.print b/tests/snapshots/testsuite/simd_const.wast/331.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/331.print +++ b/tests/snapshots/testsuite/simd_const.wast/331.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/333.print b/tests/snapshots/testsuite/simd_const.wast/333.print index 88e377cb68..a00cc92798 100644 --- a/tests/snapshots/testsuite/simd_const.wast/333.print +++ b/tests/snapshots/testsuite/simd_const.wast/333.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/335.print b/tests/snapshots/testsuite/simd_const.wast/335.print index d3e1ad41c9..e9391ddd8b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/335.print +++ b/tests/snapshots/testsuite/simd_const.wast/335.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028847;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/337.print b/tests/snapshots/testsuite/simd_const.wast/337.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/337.print +++ b/tests/snapshots/testsuite/simd_const.wast/337.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/339.print b/tests/snapshots/testsuite/simd_const.wast/339.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/339.print +++ b/tests/snapshots/testsuite/simd_const.wast/339.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/341.print b/tests/snapshots/testsuite/simd_const.wast/341.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/341.print +++ b/tests/snapshots/testsuite/simd_const.wast/341.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/343.print b/tests/snapshots/testsuite/simd_const.wast/343.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/343.print +++ b/tests/snapshots/testsuite/simd_const.wast/343.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/345.print b/tests/snapshots/testsuite/simd_const.wast/345.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/345.print +++ b/tests/snapshots/testsuite/simd_const.wast/345.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/347.print b/tests/snapshots/testsuite/simd_const.wast/347.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/347.print +++ b/tests/snapshots/testsuite/simd_const.wast/347.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/349.print b/tests/snapshots/testsuite/simd_const.wast/349.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/349.print +++ b/tests/snapshots/testsuite/simd_const.wast/349.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/351.print b/tests/snapshots/testsuite/simd_const.wast/351.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/351.print +++ b/tests/snapshots/testsuite/simd_const.wast/351.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/353.print b/tests/snapshots/testsuite/simd_const.wast/353.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/353.print +++ b/tests/snapshots/testsuite/simd_const.wast/353.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/355.print b/tests/snapshots/testsuite/simd_const.wast/355.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/355.print +++ b/tests/snapshots/testsuite/simd_const.wast/355.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/357.print b/tests/snapshots/testsuite/simd_const.wast/357.print index b09f824967..708890bb92 100644 --- a/tests/snapshots/testsuite/simd_const.wast/357.print +++ b/tests/snapshots/testsuite/simd_const.wast/357.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p-600 (;=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/359.print b/tests/snapshots/testsuite/simd_const.wast/359.print index 7a940dc2fe..1526c1aefd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/359.print +++ b/tests/snapshots/testsuite/simd_const.wast/359.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p-600 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002409919865102885;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/361.print b/tests/snapshots/testsuite/simd_const.wast/361.print index 5d1681991e..2817422161 100644 --- a/tests/snapshots/testsuite/simd_const.wast/361.print +++ b/tests/snapshots/testsuite/simd_const.wast/361.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000003p-600 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028857;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/363.print b/tests/snapshots/testsuite/simd_const.wast/363.print index f038aaa089..70a08bfc48 100644 --- a/tests/snapshots/testsuite/simd_const.wast/363.print +++ b/tests/snapshots/testsuite/simd_const.wast/363.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000003p-600 (;=-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024099198651028857;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/365.print b/tests/snapshots/testsuite/simd_const.wast/365.print index 731de63204..f5a55fe598 100644 --- a/tests/snapshots/testsuite/simd_const.wast/365.print +++ b/tests/snapshots/testsuite/simd_const.wast/365.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1p+999 (;=5357543035931337000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/367.print b/tests/snapshots/testsuite/simd_const.wast/367.print index 3b3dad3743..3894b3177b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/367.print +++ b/tests/snapshots/testsuite/simd_const.wast/367.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1p+999 (;=-5357543035931337000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/369.print b/tests/snapshots/testsuite/simd_const.wast/369.print index 2ba85708ac..5fa3227c46 100644 --- a/tests/snapshots/testsuite/simd_const.wast/369.print +++ b/tests/snapshots/testsuite/simd_const.wast/369.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+999 (;=5357543035931338000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/371.print b/tests/snapshots/testsuite/simd_const.wast/371.print index 90c057e055..dbcbd73bd5 100644 --- a/tests/snapshots/testsuite/simd_const.wast/371.print +++ b/tests/snapshots/testsuite/simd_const.wast/371.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+999 (;=-5357543035931338000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/373.print b/tests/snapshots/testsuite/simd_const.wast/373.print index 2ba85708ac..5fa3227c46 100644 --- a/tests/snapshots/testsuite/simd_const.wast/373.print +++ b/tests/snapshots/testsuite/simd_const.wast/373.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000001p+999 (;=5357543035931338000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/375.print b/tests/snapshots/testsuite/simd_const.wast/375.print index 90c057e055..dbcbd73bd5 100644 --- a/tests/snapshots/testsuite/simd_const.wast/375.print +++ b/tests/snapshots/testsuite/simd_const.wast/375.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000001p+999 (;=-5357543035931338000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/377.print b/tests/snapshots/testsuite/simd_const.wast/377.print index 14f7c29ee7..7a373d2f54 100644 --- a/tests/snapshots/testsuite/simd_const.wast/377.print +++ b/tests/snapshots/testsuite/simd_const.wast/377.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const 0x1.0000000000002p+999 (;=5357543035931339000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/379.print b/tests/snapshots/testsuite/simd_const.wast/379.print index 33a84bf99f..6ebf038b86 100644 --- a/tests/snapshots/testsuite/simd_const.wast/379.print +++ b/tests/snapshots/testsuite/simd_const.wast/379.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result f64))) + (export "f" (func 0)) (func (;0;) (type 0) (result f64) f64.const -0x1.0000000000002p+999 (;=-5357543035931339000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/381.print b/tests/snapshots/testsuite/simd_const.wast/381.print index 7c0dcb3184..bae590614c 100644 --- a/tests/snapshots/testsuite/simd_const.wast/381.print +++ b/tests/snapshots/testsuite/simd_const.wast/381.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0x65700000 0x00000000 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/383.print b/tests/snapshots/testsuite/simd_const.wast/383.print index c3ec475b7e..2488c5f2d4 100644 --- a/tests/snapshots/testsuite/simd_const.wast/383.print +++ b/tests/snapshots/testsuite/simd_const.wast/383.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0xe5700000 0x00000000 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/385.print b/tests/snapshots/testsuite/simd_const.wast/385.print index 18dc06b5e9..a919beae3b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/385.print +++ b/tests/snapshots/testsuite/simd_const.wast/385.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x65700000 0x00000001 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/387.print b/tests/snapshots/testsuite/simd_const.wast/387.print index 8864bf6a8f..d1adf11e36 100644 --- a/tests/snapshots/testsuite/simd_const.wast/387.print +++ b/tests/snapshots/testsuite/simd_const.wast/387.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xe5700000 0x00000001 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/389.print b/tests/snapshots/testsuite/simd_const.wast/389.print index 18dc06b5e9..a919beae3b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/389.print +++ b/tests/snapshots/testsuite/simd_const.wast/389.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x65700000 0x00000001 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/391.print b/tests/snapshots/testsuite/simd_const.wast/391.print index 8864bf6a8f..d1adf11e36 100644 --- a/tests/snapshots/testsuite/simd_const.wast/391.print +++ b/tests/snapshots/testsuite/simd_const.wast/391.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xe5700000 0x00000001 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/393.print b/tests/snapshots/testsuite/simd_const.wast/393.print index 18dc06b5e9..a919beae3b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/393.print +++ b/tests/snapshots/testsuite/simd_const.wast/393.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x65700000 0x00000001 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/395.print b/tests/snapshots/testsuite/simd_const.wast/395.print index 8864bf6a8f..d1adf11e36 100644 --- a/tests/snapshots/testsuite/simd_const.wast/395.print +++ b/tests/snapshots/testsuite/simd_const.wast/395.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xe5700000 0x00000001 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/397.print b/tests/snapshots/testsuite/simd_const.wast/397.print index 18dc06b5e9..a919beae3b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/397.print +++ b/tests/snapshots/testsuite/simd_const.wast/397.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x65700000 0x00000001 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/399.print b/tests/snapshots/testsuite/simd_const.wast/399.print index 8864bf6a8f..d1adf11e36 100644 --- a/tests/snapshots/testsuite/simd_const.wast/399.print +++ b/tests/snapshots/testsuite/simd_const.wast/399.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xe5700000 0x00000001 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/401.print b/tests/snapshots/testsuite/simd_const.wast/401.print index 18dc06b5e9..a919beae3b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/401.print +++ b/tests/snapshots/testsuite/simd_const.wast/401.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x65700000 0x00000001 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/403.print b/tests/snapshots/testsuite/simd_const.wast/403.print index 8864bf6a8f..d1adf11e36 100644 --- a/tests/snapshots/testsuite/simd_const.wast/403.print +++ b/tests/snapshots/testsuite/simd_const.wast/403.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xe5700000 0x00000001 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/405.print b/tests/snapshots/testsuite/simd_const.wast/405.print index f51defbf25..b73d37e870 100644 --- a/tests/snapshots/testsuite/simd_const.wast/405.print +++ b/tests/snapshots/testsuite/simd_const.wast/405.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x65700000 0x00000002 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/407.print b/tests/snapshots/testsuite/simd_const.wast/407.print index 052f5136be..415017001b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/407.print +++ b/tests/snapshots/testsuite/simd_const.wast/407.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xe5700000 0x00000002 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/409.print b/tests/snapshots/testsuite/simd_const.wast/409.print index f51defbf25..b73d37e870 100644 --- a/tests/snapshots/testsuite/simd_const.wast/409.print +++ b/tests/snapshots/testsuite/simd_const.wast/409.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x65700000 0x00000002 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/411.print b/tests/snapshots/testsuite/simd_const.wast/411.print index 052f5136be..415017001b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/411.print +++ b/tests/snapshots/testsuite/simd_const.wast/411.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xe5700000 0x00000002 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/413.print b/tests/snapshots/testsuite/simd_const.wast/413.print index f51defbf25..b73d37e870 100644 --- a/tests/snapshots/testsuite/simd_const.wast/413.print +++ b/tests/snapshots/testsuite/simd_const.wast/413.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x65700000 0x00000002 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/415.print b/tests/snapshots/testsuite/simd_const.wast/415.print index 052f5136be..415017001b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/415.print +++ b/tests/snapshots/testsuite/simd_const.wast/415.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xe5700000 0x00000002 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/417.print b/tests/snapshots/testsuite/simd_const.wast/417.print index f51defbf25..b73d37e870 100644 --- a/tests/snapshots/testsuite/simd_const.wast/417.print +++ b/tests/snapshots/testsuite/simd_const.wast/417.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x65700000 0x00000002 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/419.print b/tests/snapshots/testsuite/simd_const.wast/419.print index 052f5136be..415017001b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/419.print +++ b/tests/snapshots/testsuite/simd_const.wast/419.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xe5700000 0x00000002 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/421.print b/tests/snapshots/testsuite/simd_const.wast/421.print index f51defbf25..b73d37e870 100644 --- a/tests/snapshots/testsuite/simd_const.wast/421.print +++ b/tests/snapshots/testsuite/simd_const.wast/421.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x65700000 0x00000002 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/423.print b/tests/snapshots/testsuite/simd_const.wast/423.print index 052f5136be..415017001b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/423.print +++ b/tests/snapshots/testsuite/simd_const.wast/423.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xe5700000 0x00000002 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/425.print b/tests/snapshots/testsuite/simd_const.wast/425.print index f51defbf25..b73d37e870 100644 --- a/tests/snapshots/testsuite/simd_const.wast/425.print +++ b/tests/snapshots/testsuite/simd_const.wast/425.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x65700000 0x00000002 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/427.print b/tests/snapshots/testsuite/simd_const.wast/427.print index 052f5136be..415017001b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/427.print +++ b/tests/snapshots/testsuite/simd_const.wast/427.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xe5700000 0x00000002 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/429.print b/tests/snapshots/testsuite/simd_const.wast/429.print index f51defbf25..b73d37e870 100644 --- a/tests/snapshots/testsuite/simd_const.wast/429.print +++ b/tests/snapshots/testsuite/simd_const.wast/429.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x65700000 0x00000002 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/431.print b/tests/snapshots/testsuite/simd_const.wast/431.print index 052f5136be..415017001b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/431.print +++ b/tests/snapshots/testsuite/simd_const.wast/431.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xe5700000 0x00000002 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/433.print b/tests/snapshots/testsuite/simd_const.wast/433.print index 6f26c8abbb..b0d1287225 100644 --- a/tests/snapshots/testsuite/simd_const.wast/433.print +++ b/tests/snapshots/testsuite/simd_const.wast/433.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000003 0x65700000 0x00000003 0x65700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/435.print b/tests/snapshots/testsuite/simd_const.wast/435.print index d976b16031..489d057d93 100644 --- a/tests/snapshots/testsuite/simd_const.wast/435.print +++ b/tests/snapshots/testsuite/simd_const.wast/435.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000003 0xe5700000 0x00000003 0xe5700000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/437.print b/tests/snapshots/testsuite/simd_const.wast/437.print index 0d7e870840..66b83d277e 100644 --- a/tests/snapshots/testsuite/simd_const.wast/437.print +++ b/tests/snapshots/testsuite/simd_const.wast/437.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0x46000000 0x00000000 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/439.print b/tests/snapshots/testsuite/simd_const.wast/439.print index b157fc0f58..09eee3d920 100644 --- a/tests/snapshots/testsuite/simd_const.wast/439.print +++ b/tests/snapshots/testsuite/simd_const.wast/439.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0xc6000000 0x00000000 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/441.print b/tests/snapshots/testsuite/simd_const.wast/441.print index 038bc70fbd..9658ac4be2 100644 --- a/tests/snapshots/testsuite/simd_const.wast/441.print +++ b/tests/snapshots/testsuite/simd_const.wast/441.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x46000000 0x00000001 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/443.print b/tests/snapshots/testsuite/simd_const.wast/443.print index cf31f195ef..206da6ee91 100644 --- a/tests/snapshots/testsuite/simd_const.wast/443.print +++ b/tests/snapshots/testsuite/simd_const.wast/443.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xc6000000 0x00000001 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/445.print b/tests/snapshots/testsuite/simd_const.wast/445.print index 038bc70fbd..9658ac4be2 100644 --- a/tests/snapshots/testsuite/simd_const.wast/445.print +++ b/tests/snapshots/testsuite/simd_const.wast/445.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x46000000 0x00000001 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/447.print b/tests/snapshots/testsuite/simd_const.wast/447.print index cf31f195ef..206da6ee91 100644 --- a/tests/snapshots/testsuite/simd_const.wast/447.print +++ b/tests/snapshots/testsuite/simd_const.wast/447.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xc6000000 0x00000001 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/449.print b/tests/snapshots/testsuite/simd_const.wast/449.print index 038bc70fbd..9658ac4be2 100644 --- a/tests/snapshots/testsuite/simd_const.wast/449.print +++ b/tests/snapshots/testsuite/simd_const.wast/449.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x46000000 0x00000001 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/451.print b/tests/snapshots/testsuite/simd_const.wast/451.print index cf31f195ef..206da6ee91 100644 --- a/tests/snapshots/testsuite/simd_const.wast/451.print +++ b/tests/snapshots/testsuite/simd_const.wast/451.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xc6000000 0x00000001 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/453.print b/tests/snapshots/testsuite/simd_const.wast/453.print index 038bc70fbd..9658ac4be2 100644 --- a/tests/snapshots/testsuite/simd_const.wast/453.print +++ b/tests/snapshots/testsuite/simd_const.wast/453.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x46000000 0x00000001 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/455.print b/tests/snapshots/testsuite/simd_const.wast/455.print index cf31f195ef..206da6ee91 100644 --- a/tests/snapshots/testsuite/simd_const.wast/455.print +++ b/tests/snapshots/testsuite/simd_const.wast/455.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xc6000000 0x00000001 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/457.print b/tests/snapshots/testsuite/simd_const.wast/457.print index 038bc70fbd..9658ac4be2 100644 --- a/tests/snapshots/testsuite/simd_const.wast/457.print +++ b/tests/snapshots/testsuite/simd_const.wast/457.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x46000000 0x00000001 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/459.print b/tests/snapshots/testsuite/simd_const.wast/459.print index cf31f195ef..206da6ee91 100644 --- a/tests/snapshots/testsuite/simd_const.wast/459.print +++ b/tests/snapshots/testsuite/simd_const.wast/459.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xc6000000 0x00000001 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/461.print b/tests/snapshots/testsuite/simd_const.wast/461.print index 4871a764d3..0f4195013b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/461.print +++ b/tests/snapshots/testsuite/simd_const.wast/461.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x46000000 0x00000002 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/463.print b/tests/snapshots/testsuite/simd_const.wast/463.print index 0e880e9069..fce11492cb 100644 --- a/tests/snapshots/testsuite/simd_const.wast/463.print +++ b/tests/snapshots/testsuite/simd_const.wast/463.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xc6000000 0x00000002 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/465.print b/tests/snapshots/testsuite/simd_const.wast/465.print index 4871a764d3..0f4195013b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/465.print +++ b/tests/snapshots/testsuite/simd_const.wast/465.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x46000000 0x00000002 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/467.print b/tests/snapshots/testsuite/simd_const.wast/467.print index 0e880e9069..fce11492cb 100644 --- a/tests/snapshots/testsuite/simd_const.wast/467.print +++ b/tests/snapshots/testsuite/simd_const.wast/467.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xc6000000 0x00000002 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/469.print b/tests/snapshots/testsuite/simd_const.wast/469.print index 4871a764d3..0f4195013b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/469.print +++ b/tests/snapshots/testsuite/simd_const.wast/469.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x46000000 0x00000002 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/471.print b/tests/snapshots/testsuite/simd_const.wast/471.print index 0e880e9069..fce11492cb 100644 --- a/tests/snapshots/testsuite/simd_const.wast/471.print +++ b/tests/snapshots/testsuite/simd_const.wast/471.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xc6000000 0x00000002 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/473.print b/tests/snapshots/testsuite/simd_const.wast/473.print index 4871a764d3..0f4195013b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/473.print +++ b/tests/snapshots/testsuite/simd_const.wast/473.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x46000000 0x00000002 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/475.print b/tests/snapshots/testsuite/simd_const.wast/475.print index 0e880e9069..fce11492cb 100644 --- a/tests/snapshots/testsuite/simd_const.wast/475.print +++ b/tests/snapshots/testsuite/simd_const.wast/475.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xc6000000 0x00000002 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/477.print b/tests/snapshots/testsuite/simd_const.wast/477.print index 4871a764d3..0f4195013b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/477.print +++ b/tests/snapshots/testsuite/simd_const.wast/477.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x46000000 0x00000002 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/479.print b/tests/snapshots/testsuite/simd_const.wast/479.print index 0e880e9069..fce11492cb 100644 --- a/tests/snapshots/testsuite/simd_const.wast/479.print +++ b/tests/snapshots/testsuite/simd_const.wast/479.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xc6000000 0x00000002 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/481.print b/tests/snapshots/testsuite/simd_const.wast/481.print index 4871a764d3..0f4195013b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/481.print +++ b/tests/snapshots/testsuite/simd_const.wast/481.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x46000000 0x00000002 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/483.print b/tests/snapshots/testsuite/simd_const.wast/483.print index 0e880e9069..fce11492cb 100644 --- a/tests/snapshots/testsuite/simd_const.wast/483.print +++ b/tests/snapshots/testsuite/simd_const.wast/483.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xc6000000 0x00000002 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/485.print b/tests/snapshots/testsuite/simd_const.wast/485.print index 4871a764d3..0f4195013b 100644 --- a/tests/snapshots/testsuite/simd_const.wast/485.print +++ b/tests/snapshots/testsuite/simd_const.wast/485.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x46000000 0x00000002 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/487.print b/tests/snapshots/testsuite/simd_const.wast/487.print index 0e880e9069..fce11492cb 100644 --- a/tests/snapshots/testsuite/simd_const.wast/487.print +++ b/tests/snapshots/testsuite/simd_const.wast/487.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xc6000000 0x00000002 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/489.print b/tests/snapshots/testsuite/simd_const.wast/489.print index 59fda5932f..338dad29ab 100644 --- a/tests/snapshots/testsuite/simd_const.wast/489.print +++ b/tests/snapshots/testsuite/simd_const.wast/489.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000003 0x46000000 0x00000003 0x46000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/491.print b/tests/snapshots/testsuite/simd_const.wast/491.print index a7ff163d36..00cb27f0b0 100644 --- a/tests/snapshots/testsuite/simd_const.wast/491.print +++ b/tests/snapshots/testsuite/simd_const.wast/491.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000003 0xc6000000 0x00000003 0xc6000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/493.print b/tests/snapshots/testsuite/simd_const.wast/493.print index 61093c3677..360928a6e0 100644 --- a/tests/snapshots/testsuite/simd_const.wast/493.print +++ b/tests/snapshots/testsuite/simd_const.wast/493.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0x43b00000 0x00000000 0x43b00000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/495.print b/tests/snapshots/testsuite/simd_const.wast/495.print index ea66ecc8d2..6483d75e77 100644 --- a/tests/snapshots/testsuite/simd_const.wast/495.print +++ b/tests/snapshots/testsuite/simd_const.wast/495.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0xc3b00000 0x00000000 0xc3b00000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/497.print b/tests/snapshots/testsuite/simd_const.wast/497.print index c2a6db9355..5a29ca8638 100644 --- a/tests/snapshots/testsuite/simd_const.wast/497.print +++ b/tests/snapshots/testsuite/simd_const.wast/497.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x43b00000 0x00000001 0x43b00000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/499.print b/tests/snapshots/testsuite/simd_const.wast/499.print index e4c87ff98d..e1420ffd6c 100644 --- a/tests/snapshots/testsuite/simd_const.wast/499.print +++ b/tests/snapshots/testsuite/simd_const.wast/499.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xc3b00000 0x00000001 0xc3b00000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/501.print b/tests/snapshots/testsuite/simd_const.wast/501.print index c2a6db9355..5a29ca8638 100644 --- a/tests/snapshots/testsuite/simd_const.wast/501.print +++ b/tests/snapshots/testsuite/simd_const.wast/501.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x43b00000 0x00000001 0x43b00000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/503.print b/tests/snapshots/testsuite/simd_const.wast/503.print index e4c87ff98d..e1420ffd6c 100644 --- a/tests/snapshots/testsuite/simd_const.wast/503.print +++ b/tests/snapshots/testsuite/simd_const.wast/503.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0xc3b00000 0x00000001 0xc3b00000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/505.print b/tests/snapshots/testsuite/simd_const.wast/505.print index 7fa87428fd..c279b6c314 100644 --- a/tests/snapshots/testsuite/simd_const.wast/505.print +++ b/tests/snapshots/testsuite/simd_const.wast/505.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x43b00000 0x00000002 0x43b00000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/507.print b/tests/snapshots/testsuite/simd_const.wast/507.print index dd1b0cc34f..9dc4ec5d31 100644 --- a/tests/snapshots/testsuite/simd_const.wast/507.print +++ b/tests/snapshots/testsuite/simd_const.wast/507.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0xc3b00000 0x00000002 0xc3b00000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/509.print b/tests/snapshots/testsuite/simd_const.wast/509.print index dbc08ba271..f5ddb959c0 100644 --- a/tests/snapshots/testsuite/simd_const.wast/509.print +++ b/tests/snapshots/testsuite/simd_const.wast/509.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/511.print b/tests/snapshots/testsuite/simd_const.wast/511.print index 217059c723..1171f017a6 100644 --- a/tests/snapshots/testsuite/simd_const.wast/511.print +++ b/tests/snapshots/testsuite/simd_const.wast/511.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0x80000000 0x00000000 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/513.print b/tests/snapshots/testsuite/simd_const.wast/513.print index 27f4191182..08205b1209 100644 --- a/tests/snapshots/testsuite/simd_const.wast/513.print +++ b/tests/snapshots/testsuite/simd_const.wast/513.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x00000000 0x00000001 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/515.print b/tests/snapshots/testsuite/simd_const.wast/515.print index 07183b5a4a..ec60881e67 100644 --- a/tests/snapshots/testsuite/simd_const.wast/515.print +++ b/tests/snapshots/testsuite/simd_const.wast/515.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x80000000 0x00000001 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/517.print b/tests/snapshots/testsuite/simd_const.wast/517.print index 27f4191182..08205b1209 100644 --- a/tests/snapshots/testsuite/simd_const.wast/517.print +++ b/tests/snapshots/testsuite/simd_const.wast/517.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x00000000 0x00000001 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/519.print b/tests/snapshots/testsuite/simd_const.wast/519.print index 07183b5a4a..ec60881e67 100644 --- a/tests/snapshots/testsuite/simd_const.wast/519.print +++ b/tests/snapshots/testsuite/simd_const.wast/519.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x80000000 0x00000001 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/521.print b/tests/snapshots/testsuite/simd_const.wast/521.print index 27f4191182..08205b1209 100644 --- a/tests/snapshots/testsuite/simd_const.wast/521.print +++ b/tests/snapshots/testsuite/simd_const.wast/521.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x00000000 0x00000001 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/523.print b/tests/snapshots/testsuite/simd_const.wast/523.print index 07183b5a4a..ec60881e67 100644 --- a/tests/snapshots/testsuite/simd_const.wast/523.print +++ b/tests/snapshots/testsuite/simd_const.wast/523.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x80000000 0x00000001 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/525.print b/tests/snapshots/testsuite/simd_const.wast/525.print index 27f4191182..08205b1209 100644 --- a/tests/snapshots/testsuite/simd_const.wast/525.print +++ b/tests/snapshots/testsuite/simd_const.wast/525.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x00000000 0x00000001 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/527.print b/tests/snapshots/testsuite/simd_const.wast/527.print index 07183b5a4a..ec60881e67 100644 --- a/tests/snapshots/testsuite/simd_const.wast/527.print +++ b/tests/snapshots/testsuite/simd_const.wast/527.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x80000000 0x00000001 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/529.print b/tests/snapshots/testsuite/simd_const.wast/529.print index 27f4191182..08205b1209 100644 --- a/tests/snapshots/testsuite/simd_const.wast/529.print +++ b/tests/snapshots/testsuite/simd_const.wast/529.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x00000000 0x00000001 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/531.print b/tests/snapshots/testsuite/simd_const.wast/531.print index 07183b5a4a..ec60881e67 100644 --- a/tests/snapshots/testsuite/simd_const.wast/531.print +++ b/tests/snapshots/testsuite/simd_const.wast/531.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000001 0x80000000 0x00000001 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/533.print b/tests/snapshots/testsuite/simd_const.wast/533.print index 92f5798613..6f5d61cf09 100644 --- a/tests/snapshots/testsuite/simd_const.wast/533.print +++ b/tests/snapshots/testsuite/simd_const.wast/533.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x00000000 0x00000002 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/535.print b/tests/snapshots/testsuite/simd_const.wast/535.print index f682d8bdc1..6a2ea7dd04 100644 --- a/tests/snapshots/testsuite/simd_const.wast/535.print +++ b/tests/snapshots/testsuite/simd_const.wast/535.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x80000000 0x00000002 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/537.print b/tests/snapshots/testsuite/simd_const.wast/537.print index 92f5798613..6f5d61cf09 100644 --- a/tests/snapshots/testsuite/simd_const.wast/537.print +++ b/tests/snapshots/testsuite/simd_const.wast/537.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x00000000 0x00000002 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/539.print b/tests/snapshots/testsuite/simd_const.wast/539.print index f682d8bdc1..6a2ea7dd04 100644 --- a/tests/snapshots/testsuite/simd_const.wast/539.print +++ b/tests/snapshots/testsuite/simd_const.wast/539.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x80000000 0x00000002 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/541.print b/tests/snapshots/testsuite/simd_const.wast/541.print index 92f5798613..6f5d61cf09 100644 --- a/tests/snapshots/testsuite/simd_const.wast/541.print +++ b/tests/snapshots/testsuite/simd_const.wast/541.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x00000000 0x00000002 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/543.print b/tests/snapshots/testsuite/simd_const.wast/543.print index f682d8bdc1..6a2ea7dd04 100644 --- a/tests/snapshots/testsuite/simd_const.wast/543.print +++ b/tests/snapshots/testsuite/simd_const.wast/543.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x80000000 0x00000002 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/545.print b/tests/snapshots/testsuite/simd_const.wast/545.print index 92f5798613..6f5d61cf09 100644 --- a/tests/snapshots/testsuite/simd_const.wast/545.print +++ b/tests/snapshots/testsuite/simd_const.wast/545.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x00000000 0x00000002 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/547.print b/tests/snapshots/testsuite/simd_const.wast/547.print index f682d8bdc1..6a2ea7dd04 100644 --- a/tests/snapshots/testsuite/simd_const.wast/547.print +++ b/tests/snapshots/testsuite/simd_const.wast/547.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x80000000 0x00000002 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/549.print b/tests/snapshots/testsuite/simd_const.wast/549.print index 92f5798613..6f5d61cf09 100644 --- a/tests/snapshots/testsuite/simd_const.wast/549.print +++ b/tests/snapshots/testsuite/simd_const.wast/549.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x00000000 0x00000002 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/551.print b/tests/snapshots/testsuite/simd_const.wast/551.print index f682d8bdc1..6a2ea7dd04 100644 --- a/tests/snapshots/testsuite/simd_const.wast/551.print +++ b/tests/snapshots/testsuite/simd_const.wast/551.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x80000000 0x00000002 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/553.print b/tests/snapshots/testsuite/simd_const.wast/553.print index 92f5798613..6f5d61cf09 100644 --- a/tests/snapshots/testsuite/simd_const.wast/553.print +++ b/tests/snapshots/testsuite/simd_const.wast/553.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x00000000 0x00000002 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/555.print b/tests/snapshots/testsuite/simd_const.wast/555.print index f682d8bdc1..6a2ea7dd04 100644 --- a/tests/snapshots/testsuite/simd_const.wast/555.print +++ b/tests/snapshots/testsuite/simd_const.wast/555.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x80000000 0x00000002 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/557.print b/tests/snapshots/testsuite/simd_const.wast/557.print index 92f5798613..6f5d61cf09 100644 --- a/tests/snapshots/testsuite/simd_const.wast/557.print +++ b/tests/snapshots/testsuite/simd_const.wast/557.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x00000000 0x00000002 0x00000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/559.print b/tests/snapshots/testsuite/simd_const.wast/559.print index f682d8bdc1..6a2ea7dd04 100644 --- a/tests/snapshots/testsuite/simd_const.wast/559.print +++ b/tests/snapshots/testsuite/simd_const.wast/559.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000002 0x80000000 0x00000002 0x80000000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/561.print b/tests/snapshots/testsuite/simd_const.wast/561.print index f4f397cf93..94fb68d8cd 100644 --- a/tests/snapshots/testsuite/simd_const.wast/561.print +++ b/tests/snapshots/testsuite/simd_const.wast/561.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000003 0x00100000 0x00000003 0x00100000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/563.print b/tests/snapshots/testsuite/simd_const.wast/563.print index 56ec3f9275..29a4151a67 100644 --- a/tests/snapshots/testsuite/simd_const.wast/563.print +++ b/tests/snapshots/testsuite/simd_const.wast/563.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000003 0x80100000 0x00000003 0x80100000 ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/565.print b/tests/snapshots/testsuite/simd_const.wast/565.print index 4a8666ca65..38d8752859 100644 --- a/tests/snapshots/testsuite/simd_const.wast/565.print +++ b/tests/snapshots/testsuite/simd_const.wast/565.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xffffffff 0x7fefffff 0xffffffff 0x7fefffff ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/567.print b/tests/snapshots/testsuite/simd_const.wast/567.print index 9ad63b1542..3689db892c 100644 --- a/tests/snapshots/testsuite/simd_const.wast/567.print +++ b/tests/snapshots/testsuite/simd_const.wast/567.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xffffffff 0xffefffff 0xffffffff 0xffefffff ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/569.print b/tests/snapshots/testsuite/simd_const.wast/569.print index 4a8666ca65..38d8752859 100644 --- a/tests/snapshots/testsuite/simd_const.wast/569.print +++ b/tests/snapshots/testsuite/simd_const.wast/569.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xffffffff 0x7fefffff 0xffffffff 0x7fefffff ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/571.print b/tests/snapshots/testsuite/simd_const.wast/571.print index 9ad63b1542..3689db892c 100644 --- a/tests/snapshots/testsuite/simd_const.wast/571.print +++ b/tests/snapshots/testsuite/simd_const.wast/571.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "f" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xffffffff 0xffefffff 0xffffffff 0xffefffff ) - (export "f" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/573.print b/tests/snapshots/testsuite/simd_const.wast/573.print index af174d1219..6326655a69 100644 --- a/tests/snapshots/testsuite/simd_const.wast/573.print +++ b/tests/snapshots/testsuite/simd_const.wast/573.print @@ -2,6 +2,29 @@ (type $sig (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (result v128))) (type (;2;) (func)) + (table (;0;) 2 2 funcref) + (memory (;0;) 1) + (export "as-br-retval" (func 0)) + (export "as-br_if-retval" (func 1)) + (export "as-return-retval" (func 2)) + (export "as-if-then-retval" (func 3)) + (export "as-if-else-retval" (func 4)) + (export "as-call-param" (func 6)) + (export "as-block-retval" (func 7)) + (export "as-loop-retval" (func 8)) + (export "as-drop-operand" (func 9)) + (export "as-br-retval2" (func 10)) + (export "as-br_if-retval2" (func 11)) + (export "as-return-retval2" (func 12)) + (export "as-if-then-retval2" (func 13)) + (export "as-if-else-retval2" (func 14)) + (export "as-call-param2" (func 16)) + (export "as-call_indirect-param" (func 17)) + (export "as-call_indirect-param2" (func 18)) + (export "as-block-retval2" (func 19)) + (export "as-loop-retval2" (func 20)) + (export "as-drop-operand2" (func 21)) + (elem (;0;) (i32.const 0) func $f $f2) (func (;0;) (type 1) (result v128) block (result v128) ;; label = @1 v128.const i32x4 0x03020100 0x07060504 0x0b0a0908 0x0f0e0d0c @@ -128,27 +151,4 @@ v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 drop ) - (table (;0;) 2 2 funcref) - (memory (;0;) 1) - (export "as-br-retval" (func 0)) - (export "as-br_if-retval" (func 1)) - (export "as-return-retval" (func 2)) - (export "as-if-then-retval" (func 3)) - (export "as-if-else-retval" (func 4)) - (export "as-call-param" (func 6)) - (export "as-block-retval" (func 7)) - (export "as-loop-retval" (func 8)) - (export "as-drop-operand" (func 9)) - (export "as-br-retval2" (func 10)) - (export "as-br_if-retval2" (func 11)) - (export "as-return-retval2" (func 12)) - (export "as-if-then-retval2" (func 13)) - (export "as-if-else-retval2" (func 14)) - (export "as-call-param2" (func 16)) - (export "as-call_indirect-param" (func 17)) - (export "as-call_indirect-param2" (func 18)) - (export "as-block-retval2" (func 19)) - (export "as-loop-retval2" (func 20)) - (export "as-drop-operand2" (func 21)) - (elem (;0;) (i32.const 0) func $f $f2) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/594.print b/tests/snapshots/testsuite/simd_const.wast/594.print index 526258c73a..564664788a 100644 --- a/tests/snapshots/testsuite/simd_const.wast/594.print +++ b/tests/snapshots/testsuite/simd_const.wast/594.print @@ -1,6 +1,11 @@ (module (type (;0;) (func (param v128) (result v128))) (type (;1;) (func (result v128))) + (memory (;0;) 1) + (export "as-local.set/get-value_0_0" (func 0)) + (export "as-local.set/get-value_0_1" (func 1)) + (export "as-local.set/get-value_3_0" (func 2)) + (export "as-local.tee-value" (func 3)) (func (;0;) (type 0) (param $0 v128) (result v128) (local v128 v128 v128 v128) local.get $0 @@ -36,9 +41,4 @@ v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 local.tee 0 ) - (memory (;0;) 1) - (export "as-local.set/get-value_0_0" (func 0)) - (export "as-local.set/get-value_0_1" (func 1)) - (export "as-local.set/get-value_3_0" (func 2)) - (export "as-local.tee-value" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/599.print b/tests/snapshots/testsuite/simd_const.wast/599.print index 17ecceba40..ff6c4b070d 100644 --- a/tests/snapshots/testsuite/simd_const.wast/599.print +++ b/tests/snapshots/testsuite/simd_const.wast/599.print @@ -3,6 +3,19 @@ (type (;1;) (func (param v128 v128))) (type (;2;) (func (param v128 v128 v128 v128))) (type (;3;) (func (result v128))) + (memory (;0;) 1) + (global $g0 (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003) + (global $g1 (;1;) (mut v128) v128.const i32x4 0x00000004 0x00000005 0x00000006 0x00000007) + (global $g2 (;2;) (mut v128) v128.const i32x4 0x00000008 0x00000009 0x0000000a 0x0000000b) + (global $g3 (;3;) (mut v128) v128.const i32x4 0x0000000c 0x0000000d 0x0000000e 0x0000000f) + (global $g4 (;4;) (mut v128) v128.const i32x4 0x00000010 0x00000011 0x00000012 0x00000013) + (export "as-global.set_value_$g0" (func $set_g0)) + (export "as-global.set_value_$g1_$g2" (func $set_g1_g2)) + (export "as-global.set_value_$g0_$g1_$g2_$g3" (func $set_g0_g1_g2_g3)) + (export "global.get_g0" (func 3)) + (export "global.get_g1" (func 4)) + (export "global.get_g2" (func 5)) + (export "global.get_g3" (func 6)) (func $set_g0 (;0;) (type 0) (param $0 v128) local.get $0 global.set $g0 @@ -34,17 +47,4 @@ (func (;6;) (type 3) (result v128) global.get $g3 ) - (memory (;0;) 1) - (global $g0 (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003) - (global $g1 (;1;) (mut v128) v128.const i32x4 0x00000004 0x00000005 0x00000006 0x00000007) - (global $g2 (;2;) (mut v128) v128.const i32x4 0x00000008 0x00000009 0x0000000a 0x0000000b) - (global $g3 (;3;) (mut v128) v128.const i32x4 0x0000000c 0x0000000d 0x0000000e 0x0000000f) - (global $g4 (;4;) (mut v128) v128.const i32x4 0x00000010 0x00000011 0x00000012 0x00000013) - (export "as-global.set_value_$g0" (func $set_g0)) - (export "as-global.set_value_$g1_$g2" (func $set_g1_g2)) - (export "as-global.set_value_$g0_$g1_$g2_$g3" (func $set_g0_g1_g2_g3)) - (export "global.get_g0" (func 3)) - (export "global.get_g1" (func 4)) - (export "global.get_g2" (func 5)) - (export "global.get_g3" (func 6)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/605.print b/tests/snapshots/testsuite/simd_const.wast/605.print index 9057674257..583ea14409 100644 --- a/tests/snapshots/testsuite/simd_const.wast/605.print +++ b/tests/snapshots/testsuite/simd_const.wast/605.print @@ -1,5 +1,27 @@ (module (type (;0;) (func (result v128))) + (export "i32x4.test" (func 0)) + (export "i32x4.smax" (func 1)) + (export "i32x4.neg_smax" (func 2)) + (export "i32x4.inc_smin" (func 3)) + (export "i32x4.neg_zero" (func 4)) + (export "i32x4.not_octal" (func 5)) + (export "i32x4.plus_sign" (func 6)) + (export "i32x4-dec-sep1" (func 7)) + (export "i32x4-dec-sep2" (func 8)) + (export "i32x4-hex-sep1" (func 9)) + (export "i32x4-hex-sep2" (func 10)) + (export "i64x2.test" (func 11)) + (export "i64x2.smax" (func 12)) + (export "i64x2.neg_smax" (func 13)) + (export "i64x2.inc_smin" (func 14)) + (export "i64x2.neg_zero" (func 15)) + (export "i64x2.not_octal" (func 16)) + (export "i64x2.plus_sign" (func 17)) + (export "i64x2-dec-sep1" (func 18)) + (export "i64x2-dec-sep2" (func 19)) + (export "i64x2-hex-sep1" (func 20)) + (export "i64x2-hex-sep2" (func 21)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x0badd00d 0x0badd00d 0x0badd00d 0x0badd00d return @@ -84,26 +106,4 @@ (func (;21;) (type 0) (result v128) v128.const i32x4 0xa0f1aa0f 0x0000001a 0xa0f1aa0f 0x0000001a ) - (export "i32x4.test" (func 0)) - (export "i32x4.smax" (func 1)) - (export "i32x4.neg_smax" (func 2)) - (export "i32x4.inc_smin" (func 3)) - (export "i32x4.neg_zero" (func 4)) - (export "i32x4.not_octal" (func 5)) - (export "i32x4.plus_sign" (func 6)) - (export "i32x4-dec-sep1" (func 7)) - (export "i32x4-dec-sep2" (func 8)) - (export "i32x4-hex-sep1" (func 9)) - (export "i32x4-hex-sep2" (func 10)) - (export "i64x2.test" (func 11)) - (export "i64x2.smax" (func 12)) - (export "i64x2.neg_smax" (func 13)) - (export "i64x2.inc_smin" (func 14)) - (export "i64x2.neg_zero" (func 15)) - (export "i64x2.not_octal" (func 16)) - (export "i64x2.plus_sign" (func 17)) - (export "i64x2-dec-sep1" (func 18)) - (export "i64x2-dec-sep2" (func 19)) - (export "i64x2-hex-sep1" (func 20)) - (export "i64x2-hex-sep2" (func 21)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/648.print b/tests/snapshots/testsuite/simd_const.wast/648.print index e9712f20fe..f3122c74f8 100644 --- a/tests/snapshots/testsuite/simd_const.wast/648.print +++ b/tests/snapshots/testsuite/simd_const.wast/648.print @@ -1,5 +1,25 @@ (module (type (;0;) (func (result v128))) + (export "f32-dec-sep1" (func 0)) + (export "f32-dec-sep2" (func 1)) + (export "f32-dec-sep3" (func 2)) + (export "f32-dec-sep4" (func 3)) + (export "f32-dec-sep5" (func 4)) + (export "f32-hex-sep1" (func 5)) + (export "f32-hex-sep2" (func 6)) + (export "f32-hex-sep3" (func 7)) + (export "f32-hex-sep4" (func 8)) + (export "f32-hex-sep5" (func 9)) + (export "f64-dec-sep1" (func 10)) + (export "f64-dec-sep2" (func 11)) + (export "f64-dec-sep3" (func 12)) + (export "f64-dec-sep4" (func 13)) + (export "f64-dec-sep5" (func 14)) + (export "f64-hex-sep1" (func 15)) + (export "f64-hex-sep2" (func 16)) + (export "f64-hex-sep3" (func 17)) + (export "f64-hex-sep4" (func 18)) + (export "f64-hex-sep5" (func 19)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x49742400 0x49742400 0x49742400 0x49742400 ) @@ -60,24 +80,4 @@ (func (;19;) (type 0) (result v128) v128.const i32x4 0x0f9f7000 0x42b57805 0x0f9f7000 0x42b57805 ) - (export "f32-dec-sep1" (func 0)) - (export "f32-dec-sep2" (func 1)) - (export "f32-dec-sep3" (func 2)) - (export "f32-dec-sep4" (func 3)) - (export "f32-dec-sep5" (func 4)) - (export "f32-hex-sep1" (func 5)) - (export "f32-hex-sep2" (func 6)) - (export "f32-hex-sep3" (func 7)) - (export "f32-hex-sep4" (func 8)) - (export "f32-hex-sep5" (func 9)) - (export "f64-dec-sep1" (func 10)) - (export "f64-dec-sep2" (func 11)) - (export "f64-dec-sep3" (func 12)) - (export "f64-dec-sep4" (func 13)) - (export "f64-dec-sep5" (func 14)) - (export "f64-hex-sep1" (func 15)) - (export "f64-hex-sep2" (func 16)) - (export "f64-hex-sep3" (func 17)) - (export "f64-hex-sep4" (func 18)) - (export "f64-hex-sep5" (func 19)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/745.print b/tests/snapshots/testsuite/simd_const.wast/745.print index be7e2b21c4..1b07a55bb5 100644 --- a/tests/snapshots/testsuite/simd_const.wast/745.print +++ b/tests/snapshots/testsuite/simd_const.wast/745.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "parse_i8x16" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0x80808080 0xffffffff 0xffffffff ) - (export "parse_i8x16" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/747.print b/tests/snapshots/testsuite/simd_const.wast/747.print index 0fa38239d5..6abb279363 100644 --- a/tests/snapshots/testsuite/simd_const.wast/747.print +++ b/tests/snapshots/testsuite/simd_const.wast/747.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "parse_i16x8" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0x80008000 0xffffffff 0xffffffff ) - (export "parse_i16x8" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/749.print b/tests/snapshots/testsuite/simd_const.wast/749.print index ebb060f67e..8016688358 100644 --- a/tests/snapshots/testsuite/simd_const.wast/749.print +++ b/tests/snapshots/testsuite/simd_const.wast/749.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "parse_i32x4" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xffffffd1 0xffffffd1 0xffffffd1 0xffffffd1 ) - (export "parse_i32x4" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/751.print b/tests/snapshots/testsuite/simd_const.wast/751.print index c90b181b68..b88391b36e 100644 --- a/tests/snapshots/testsuite/simd_const.wast/751.print +++ b/tests/snapshots/testsuite/simd_const.wast/751.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "parse_i64x2" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xffffffff 0x7fffffff 0xffffffff 0x7fffffff ) - (export "parse_i64x2" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/753.print b/tests/snapshots/testsuite/simd_const.wast/753.print index 1b0db7af1f..d38d501179 100644 --- a/tests/snapshots/testsuite/simd_const.wast/753.print +++ b/tests/snapshots/testsuite/simd_const.wast/753.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "parse_f32x4" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x4f800000 0x4f800000 0x4f800000 0x4f800000 ) - (export "parse_f32x4" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_const.wast/755.print b/tests/snapshots/testsuite/simd_const.wast/755.print index e2ef9edaba..5eb42a301e 100644 --- a/tests/snapshots/testsuite/simd_const.wast/755.print +++ b/tests/snapshots/testsuite/simd_const.wast/755.print @@ -1,7 +1,7 @@ (module (type (;0;) (func (result v128))) + (export "parse_f64x2" (func 0)) (func (;0;) (type 0) (result v128) v128.const i32x4 0xffffffff 0x7fefffff 0xffffffff 0x7fefffff ) - (export "parse_f64x2" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_conversions.wast/0.print b/tests/snapshots/testsuite/simd_conversions.wast/0.print index 79e8ba3aea..b8cc6bdb3b 100644 --- a/tests/snapshots/testsuite/simd_conversions.wast/0.print +++ b/tests/snapshots/testsuite/simd_conversions.wast/0.print @@ -1,6 +1,16 @@ (module (type (;0;) (func (param v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "f32x4.convert_i32x4_s" (func 0)) + (export "f32x4.convert_i32x4_u" (func 1)) + (export "f64x2.convert_low_i32x4_s" (func 2)) + (export "f64x2.convert_low_i32x4_u" (func 3)) + (export "i8x16.narrow_i16x8_s" (func 4)) + (export "i8x16.narrow_i16x8_u" (func 5)) + (export "i16x8.narrow_i32x4_s" (func 6)) + (export "i16x8.narrow_i32x4_u" (func 7)) + (export "f64x2.promote_low_f32x4" (func 8)) + (export "f32x4.demote_f64x2_zero" (func 9)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 f32x4.convert_i32x4_s @@ -45,14 +55,4 @@ local.get 0 f32x4.demote_f64x2_zero ) - (export "f32x4.convert_i32x4_s" (func 0)) - (export "f32x4.convert_i32x4_u" (func 1)) - (export "f64x2.convert_low_i32x4_s" (func 2)) - (export "f64x2.convert_low_i32x4_u" (func 3)) - (export "i8x16.narrow_i16x8_s" (func 4)) - (export "i8x16.narrow_i16x8_u" (func 5)) - (export "i16x8.narrow_i32x4_s" (func 6)) - (export "i16x8.narrow_i32x4_u" (func 7)) - (export "f64x2.promote_low_f32x4" (func 8)) - (export "f32x4.demote_f64x2_zero" (func 9)) ) diff --git a/tests/snapshots/testsuite/simd_conversions.wast/252.print b/tests/snapshots/testsuite/simd_conversions.wast/252.print index a18cf00a74..d9a04abea0 100644 --- a/tests/snapshots/testsuite/simd_conversions.wast/252.print +++ b/tests/snapshots/testsuite/simd_conversions.wast/252.print @@ -1,5 +1,24 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "f32x4_convert_i32x4_s_add" (func 0)) + (export "f32x4_convert_i32x4_s_sub" (func 1)) + (export "f32x4_convert_i32x4_u_mul" (func 2)) + (export "i16x8_low_extend_narrow_ss" (func 3)) + (export "i16x8_low_extend_narrow_su" (func 4)) + (export "i16x8_high_extend_narrow_ss" (func 5)) + (export "i16x8_high_extend_narrow_su" (func 6)) + (export "i16x8_low_extend_narrow_uu" (func 7)) + (export "i16x8_low_extend_narrow_us" (func 8)) + (export "i16x8_high_extend_narrow_uu" (func 9)) + (export "i16x8_high_extend_narrow_us" (func 10)) + (export "i32x4_low_extend_narrow_ss" (func 11)) + (export "i32x4_low_extend_narrow_su" (func 12)) + (export "i32x4_high_extend_narrow_ss" (func 13)) + (export "i32x4_high_extend_narrow_su" (func 14)) + (export "i32x4_low_extend_narrow_uu" (func 15)) + (export "i32x4_low_extend_narrow_us" (func 16)) + (export "i32x4_high_extend_narrow_uu" (func 17)) + (export "i32x4_high_extend_narrow_us" (func 18)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -114,23 +133,4 @@ i16x8.narrow_i32x4_s i32x4.extend_low_i16x8_u ) - (export "f32x4_convert_i32x4_s_add" (func 0)) - (export "f32x4_convert_i32x4_s_sub" (func 1)) - (export "f32x4_convert_i32x4_u_mul" (func 2)) - (export "i16x8_low_extend_narrow_ss" (func 3)) - (export "i16x8_low_extend_narrow_su" (func 4)) - (export "i16x8_high_extend_narrow_ss" (func 5)) - (export "i16x8_high_extend_narrow_su" (func 6)) - (export "i16x8_low_extend_narrow_uu" (func 7)) - (export "i16x8_low_extend_narrow_us" (func 8)) - (export "i16x8_high_extend_narrow_uu" (func 9)) - (export "i16x8_high_extend_narrow_us" (func 10)) - (export "i32x4_low_extend_narrow_ss" (func 11)) - (export "i32x4_low_extend_narrow_su" (func 12)) - (export "i32x4_high_extend_narrow_ss" (func 13)) - (export "i32x4_high_extend_narrow_su" (func 14)) - (export "i32x4_low_extend_narrow_uu" (func 15)) - (export "i32x4_low_extend_narrow_us" (func 16)) - (export "i32x4_high_extend_narrow_uu" (func 17)) - (export "i32x4_high_extend_narrow_us" (func 18)) ) diff --git a/tests/snapshots/testsuite/simd_f32x4.wast/0.print b/tests/snapshots/testsuite/simd_f32x4.wast/0.print index 9c971e8e6e..50d2a0c0eb 100644 --- a/tests/snapshots/testsuite/simd_f32x4.wast/0.print +++ b/tests/snapshots/testsuite/simd_f32x4.wast/0.print @@ -2,6 +2,26 @@ (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) (type (;2;) (func (result v128))) + (export "f32x4.min" (func 0)) + (export "f32x4.max" (func 1)) + (export "f32x4.abs" (func 2)) + (export "f32x4.min_with_const_0" (func 3)) + (export "f32x4.min_with_const_1" (func 4)) + (export "f32x4.min_with_const_2" (func 5)) + (export "f32x4.min_with_const_3" (func 6)) + (export "f32x4.min_with_const_5" (func 7)) + (export "f32x4.min_with_const_6" (func 8)) + (export "f32x4.min_with_const_7" (func 9)) + (export "f32x4.min_with_const_8" (func 10)) + (export "f32x4.max_with_const_10" (func 11)) + (export "f32x4.max_with_const_11" (func 12)) + (export "f32x4.max_with_const_12" (func 13)) + (export "f32x4.max_with_const_13" (func 14)) + (export "f32x4.max_with_const_15" (func 15)) + (export "f32x4.max_with_const_16" (func 16)) + (export "f32x4.max_with_const_17" (func 17)) + (export "f32x4.max_with_const_18" (func 18)) + (export "f32x4.abs_with_const" (func 19)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -100,24 +120,4 @@ v128.const i32x4 0x80000000 0xbf800000 0xc0000000 0xc0400000 f32x4.abs ) - (export "f32x4.min" (func 0)) - (export "f32x4.max" (func 1)) - (export "f32x4.abs" (func 2)) - (export "f32x4.min_with_const_0" (func 3)) - (export "f32x4.min_with_const_1" (func 4)) - (export "f32x4.min_with_const_2" (func 5)) - (export "f32x4.min_with_const_3" (func 6)) - (export "f32x4.min_with_const_5" (func 7)) - (export "f32x4.min_with_const_6" (func 8)) - (export "f32x4.min_with_const_7" (func 9)) - (export "f32x4.min_with_const_8" (func 10)) - (export "f32x4.max_with_const_10" (func 11)) - (export "f32x4.max_with_const_11" (func 12)) - (export "f32x4.max_with_const_12" (func 13)) - (export "f32x4.max_with_const_13" (func 14)) - (export "f32x4.max_with_const_15" (func 15)) - (export "f32x4.max_with_const_16" (func 16)) - (export "f32x4.max_with_const_17" (func 17)) - (export "f32x4.max_with_const_18" (func 18)) - (export "f32x4.abs_with_const" (func 19)) ) diff --git a/tests/snapshots/testsuite/simd_f32x4.wast/785.print b/tests/snapshots/testsuite/simd_f32x4.wast/785.print index e6b6c8b9a3..bc420e64e2 100644 --- a/tests/snapshots/testsuite/simd_f32x4.wast/785.print +++ b/tests/snapshots/testsuite/simd_f32x4.wast/785.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "max-min" (func 0)) + (export "min-max" (func 1)) + (export "max-abs" (func 2)) + (export "min-abs" (func 3)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -27,8 +31,4 @@ local.get 1 f32x4.min ) - (export "max-min" (func 0)) - (export "min-max" (func 1)) - (export "max-abs" (func 2)) - (export "min-abs" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_f32x4_arith.wast/0.print b/tests/snapshots/testsuite/simd_f32x4_arith.wast/0.print index 57ff250b89..7c22eb5bf9 100644 --- a/tests/snapshots/testsuite/simd_f32x4_arith.wast/0.print +++ b/tests/snapshots/testsuite/simd_f32x4_arith.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) + (export "f32x4.add" (func 0)) + (export "f32x4.sub" (func 1)) + (export "f32x4.mul" (func 2)) + (export "f32x4.div" (func 3)) + (export "f32x4.neg" (func 4)) + (export "f32x4.sqrt" (func 5)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -29,10 +35,4 @@ local.get 0 f32x4.sqrt ) - (export "f32x4.add" (func 0)) - (export "f32x4.sub" (func 1)) - (export "f32x4.mul" (func 2)) - (export "f32x4.div" (func 3)) - (export "f32x4.neg" (func 4)) - (export "f32x4.sqrt" (func 5)) ) diff --git a/tests/snapshots/testsuite/simd_f32x4_arith.wast/1785.print b/tests/snapshots/testsuite/simd_f32x4_arith.wast/1785.print index 3fb76a8ba9..9457b58bf6 100644 --- a/tests/snapshots/testsuite/simd_f32x4_arith.wast/1785.print +++ b/tests/snapshots/testsuite/simd_f32x4_arith.wast/1785.print @@ -1,5 +1,8 @@ (module (type (;0;) (func (result v128))) + (export "f32x4_sqrt_arith" (func 0)) + (export "f32x4_sqrt_canon" (func 1)) + (export "f32x4_sqrt_mixed" (func 2)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x7fa00000 0xffa00000 0x41800000 0x41c80000 f32x4.sqrt @@ -12,7 +15,4 @@ v128.const i32x4 0xff800000 0x7fa00000 0x42100000 0x42440000 f32x4.sqrt ) - (export "f32x4_sqrt_arith" (func 0)) - (export "f32x4_sqrt_canon" (func 1)) - (export "f32x4_sqrt_mixed" (func 2)) ) diff --git a/tests/snapshots/testsuite/simd_f32x4_arith.wast/1805.print b/tests/snapshots/testsuite/simd_f32x4_arith.wast/1805.print index e177500972..5cb4060dd4 100644 --- a/tests/snapshots/testsuite/simd_f32x4_arith.wast/1805.print +++ b/tests/snapshots/testsuite/simd_f32x4_arith.wast/1805.print @@ -1,6 +1,22 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "add-sub" (func 0)) + (export "div-add" (func 1)) + (export "div-mul" (func 2)) + (export "div-sub" (func 3)) + (export "mul-add" (func 4)) + (export "mul-div" (func 5)) + (export "mul-sub" (func 6)) + (export "sub-add" (func 7)) + (export "add-neg" (func 8)) + (export "add-sqrt" (func 9)) + (export "div-neg" (func 10)) + (export "div-sqrt" (func 11)) + (export "mul-neg" (func 12)) + (export "mul-sqrt" (func 13)) + (export "sub-neg" (func 14)) + (export "sub-sqrt" (func 15)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -105,20 +121,4 @@ local.get 1 f32x4.sub ) - (export "add-sub" (func 0)) - (export "div-add" (func 1)) - (export "div-mul" (func 2)) - (export "div-sub" (func 3)) - (export "mul-add" (func 4)) - (export "mul-div" (func 5)) - (export "mul-sub" (func 6)) - (export "sub-add" (func 7)) - (export "add-neg" (func 8)) - (export "add-sqrt" (func 9)) - (export "div-neg" (func 10)) - (export "div-sqrt" (func 11)) - (export "mul-neg" (func 12)) - (export "mul-sqrt" (func 13)) - (export "sub-neg" (func 14)) - (export "sub-sqrt" (func 15)) ) diff --git a/tests/snapshots/testsuite/simd_f32x4_cmp.wast/0.print b/tests/snapshots/testsuite/simd_f32x4_cmp.wast/0.print index 26b63b3e90..5790f161e4 100644 --- a/tests/snapshots/testsuite/simd_f32x4_cmp.wast/0.print +++ b/tests/snapshots/testsuite/simd_f32x4_cmp.wast/0.print @@ -1,5 +1,11 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "eq" (func 0)) + (export "ne" (func 1)) + (export "lt" (func 2)) + (export "le" (func 3)) + (export "gt" (func 4)) + (export "ge" (func 5)) (func (;0;) (type 0) (param $x v128) (param $y v128) (result v128) local.get $x local.get $y @@ -30,10 +36,4 @@ local.get $y f32x4.ge ) - (export "eq" (func 0)) - (export "ne" (func 1)) - (export "lt" (func 2)) - (export "le" (func 3)) - (export "gt" (func 4)) - (export "ge" (func 5)) ) diff --git a/tests/snapshots/testsuite/simd_f32x4_cmp.wast/2581.print b/tests/snapshots/testsuite/simd_f32x4_cmp.wast/2581.print index b6f972fcde..b75bf36055 100644 --- a/tests/snapshots/testsuite/simd_f32x4_cmp.wast/2581.print +++ b/tests/snapshots/testsuite/simd_f32x4_cmp.wast/2581.print @@ -1,5 +1,19 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "eq-in-block" (func 0)) + (export "ne-in-block" (func 1)) + (export "lt-in-block" (func 2)) + (export "le-in-block" (func 3)) + (export "gt-in-block" (func 4)) + (export "ge-in-block" (func 5)) + (export "nested-eq" (func 6)) + (export "nested-ne" (func 7)) + (export "nested-lt" (func 8)) + (export "nested-le" (func 9)) + (export "nested-gt" (func 10)) + (export "nested-ge" (func 11)) + (export "as-param" (func 12)) (func (;0;) (type 0) block ;; label = @1 block (result v128) ;; label = @2 @@ -278,18 +292,4 @@ f32x4.ge drop ) - (memory (;0;) 1) - (export "eq-in-block" (func 0)) - (export "ne-in-block" (func 1)) - (export "lt-in-block" (func 2)) - (export "le-in-block" (func 3)) - (export "gt-in-block" (func 4)) - (export "ge-in-block" (func 5)) - (export "nested-eq" (func 6)) - (export "nested-ne" (func 7)) - (export "nested-lt" (func 8)) - (export "nested-le" (func 9)) - (export "nested-gt" (func 10)) - (export "nested-ge" (func 11)) - (export "as-param" (func 12)) ) diff --git a/tests/snapshots/testsuite/simd_f32x4_pmin_pmax.wast/0.print b/tests/snapshots/testsuite/simd_f32x4_pmin_pmax.wast/0.print index 66f338f848..572b6c055c 100644 --- a/tests/snapshots/testsuite/simd_f32x4_pmin_pmax.wast/0.print +++ b/tests/snapshots/testsuite/simd_f32x4_pmin_pmax.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "f32x4.pmin" (func 0)) + (export "f32x4.pmax" (func 1)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -10,6 +12,4 @@ local.get 1 f32x4.pmax ) - (export "f32x4.pmin" (func 0)) - (export "f32x4.pmax" (func 1)) ) diff --git a/tests/snapshots/testsuite/simd_f32x4_rounding.wast/0.print b/tests/snapshots/testsuite/simd_f32x4_rounding.wast/0.print index 036acfa0d2..5171545875 100644 --- a/tests/snapshots/testsuite/simd_f32x4_rounding.wast/0.print +++ b/tests/snapshots/testsuite/simd_f32x4_rounding.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param v128) (result v128))) + (export "f32x4.ceil" (func 0)) + (export "f32x4.floor" (func 1)) + (export "f32x4.trunc" (func 2)) + (export "f32x4.nearest" (func 3)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 f32x4.ceil @@ -16,8 +20,4 @@ local.get 0 f32x4.nearest ) - (export "f32x4.ceil" (func 0)) - (export "f32x4.floor" (func 1)) - (export "f32x4.trunc" (func 2)) - (export "f32x4.nearest" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_f64x2.wast/0.print b/tests/snapshots/testsuite/simd_f64x2.wast/0.print index 7afd0f5e67..1c20a439cb 100644 --- a/tests/snapshots/testsuite/simd_f64x2.wast/0.print +++ b/tests/snapshots/testsuite/simd_f64x2.wast/0.print @@ -2,6 +2,43 @@ (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) (type (;2;) (func (result v128))) + (export "f64x2.min" (func 0)) + (export "f64x2.max" (func 1)) + (export "f64x2.abs" (func 2)) + (export "f64x2.min_with_const_0" (func 3)) + (export "f64x2.min_with_const_1" (func 4)) + (export "f64x2.min_with_const_2" (func 5)) + (export "f64x2.min_with_const_3" (func 6)) + (export "f64x2.min_with_const_4" (func 7)) + (export "f64x2.min_with_const_5" (func 8)) + (export "f64x2.min_with_const_6" (func 9)) + (export "f64x2.min_with_const_7" (func 10)) + (export "f64x2.min_with_const_9" (func 11)) + (export "f64x2.min_with_const_10" (func 12)) + (export "f64x2.min_with_const_11" (func 13)) + (export "f64x2.min_with_const_12" (func 14)) + (export "f64x2.min_with_const_13" (func 15)) + (export "f64x2.min_with_const_14" (func 16)) + (export "f64x2.min_with_const_15" (func 17)) + (export "f64x2.min_with_const_16" (func 18)) + (export "f64x2.max_with_const_18" (func 19)) + (export "f64x2.max_with_const_19" (func 20)) + (export "f64x2.max_with_const_20" (func 21)) + (export "f64x2.max_with_const_21" (func 22)) + (export "f64x2.max_with_const_22" (func 23)) + (export "f64x2.max_with_const_23" (func 24)) + (export "f64x2.max_with_const_24" (func 25)) + (export "f64x2.max_with_const_25" (func 26)) + (export "f64x2.max_with_const_27" (func 27)) + (export "f64x2.max_with_const_28" (func 28)) + (export "f64x2.max_with_const_29" (func 29)) + (export "f64x2.max_with_const_30" (func 30)) + (export "f64x2.max_with_const_31" (func 31)) + (export "f64x2.max_with_const_32" (func 32)) + (export "f64x2.max_with_const_33" (func 33)) + (export "f64x2.max_with_const_34" (func 34)) + (export "f64x2.abs_with_const_35" (func 35)) + (export "f64x2.abs_with_const_36" (func 36)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -184,41 +221,4 @@ v128.const i32x4 0x00000000 0xc0000000 0x00000000 0xc0080000 f64x2.abs ) - (export "f64x2.min" (func 0)) - (export "f64x2.max" (func 1)) - (export "f64x2.abs" (func 2)) - (export "f64x2.min_with_const_0" (func 3)) - (export "f64x2.min_with_const_1" (func 4)) - (export "f64x2.min_with_const_2" (func 5)) - (export "f64x2.min_with_const_3" (func 6)) - (export "f64x2.min_with_const_4" (func 7)) - (export "f64x2.min_with_const_5" (func 8)) - (export "f64x2.min_with_const_6" (func 9)) - (export "f64x2.min_with_const_7" (func 10)) - (export "f64x2.min_with_const_9" (func 11)) - (export "f64x2.min_with_const_10" (func 12)) - (export "f64x2.min_with_const_11" (func 13)) - (export "f64x2.min_with_const_12" (func 14)) - (export "f64x2.min_with_const_13" (func 15)) - (export "f64x2.min_with_const_14" (func 16)) - (export "f64x2.min_with_const_15" (func 17)) - (export "f64x2.min_with_const_16" (func 18)) - (export "f64x2.max_with_const_18" (func 19)) - (export "f64x2.max_with_const_19" (func 20)) - (export "f64x2.max_with_const_20" (func 21)) - (export "f64x2.max_with_const_21" (func 22)) - (export "f64x2.max_with_const_22" (func 23)) - (export "f64x2.max_with_const_23" (func 24)) - (export "f64x2.max_with_const_24" (func 25)) - (export "f64x2.max_with_const_25" (func 26)) - (export "f64x2.max_with_const_27" (func 27)) - (export "f64x2.max_with_const_28" (func 28)) - (export "f64x2.max_with_const_29" (func 29)) - (export "f64x2.max_with_const_30" (func 30)) - (export "f64x2.max_with_const_31" (func 31)) - (export "f64x2.max_with_const_32" (func 32)) - (export "f64x2.max_with_const_33" (func 33)) - (export "f64x2.max_with_const_34" (func 34)) - (export "f64x2.abs_with_const_35" (func 35)) - (export "f64x2.abs_with_const_36" (func 36)) ) diff --git a/tests/snapshots/testsuite/simd_f64x2.wast/798.print b/tests/snapshots/testsuite/simd_f64x2.wast/798.print index ea68b868d3..69d1075391 100644 --- a/tests/snapshots/testsuite/simd_f64x2.wast/798.print +++ b/tests/snapshots/testsuite/simd_f64x2.wast/798.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "max-min" (func 0)) + (export "min-max" (func 1)) + (export "max-abs" (func 2)) + (export "min-abs" (func 3)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -27,8 +31,4 @@ local.get 1 f64x2.min ) - (export "max-min" (func 0)) - (export "min-max" (func 1)) - (export "max-abs" (func 2)) - (export "min-abs" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_f64x2_arith.wast/0.print b/tests/snapshots/testsuite/simd_f64x2_arith.wast/0.print index 07cdf31b8c..41d0cb1310 100644 --- a/tests/snapshots/testsuite/simd_f64x2_arith.wast/0.print +++ b/tests/snapshots/testsuite/simd_f64x2_arith.wast/0.print @@ -1,6 +1,12 @@ (module (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) + (export "f64x2.add" (func 0)) + (export "f64x2.sub" (func 1)) + (export "f64x2.mul" (func 2)) + (export "f64x2.div" (func 3)) + (export "f64x2.neg" (func 4)) + (export "f64x2.sqrt" (func 5)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -29,10 +35,4 @@ local.get 0 f64x2.sqrt ) - (export "f64x2.add" (func 0)) - (export "f64x2.sub" (func 1)) - (export "f64x2.mul" (func 2)) - (export "f64x2.div" (func 3)) - (export "f64x2.neg" (func 4)) - (export "f64x2.sqrt" (func 5)) ) diff --git a/tests/snapshots/testsuite/simd_f64x2_arith.wast/1785.print b/tests/snapshots/testsuite/simd_f64x2_arith.wast/1785.print index 2ee12c96f6..bc3577ac08 100644 --- a/tests/snapshots/testsuite/simd_f64x2_arith.wast/1785.print +++ b/tests/snapshots/testsuite/simd_f64x2_arith.wast/1785.print @@ -1,5 +1,11 @@ (module (type (;0;) (func (result v128))) + (export "f64x2_add_arith" (func 0)) + (export "f64x2_div_mixed" (func 1)) + (export "f64x2_mul_mixed" (func 2)) + (export "f64x2_neg_canon" (func 3)) + (export "f64x2_sqrt_canon" (func 4)) + (export "f64x2_sub_arith" (func 5)) (func (;0;) (type 0) (result v128) v128.const i32x4 0x00000000 0x7ff80000 0x00000000 0x3ff00000 v128.const i32x4 0x00000000 0x7ff80000 0x00000000 0x3ff00000 @@ -28,10 +34,4 @@ v128.const i32x4 0x00000000 0xfff80000 0x00000000 0x3ff00000 f64x2.sub ) - (export "f64x2_add_arith" (func 0)) - (export "f64x2_div_mixed" (func 1)) - (export "f64x2_mul_mixed" (func 2)) - (export "f64x2_neg_canon" (func 3)) - (export "f64x2_sqrt_canon" (func 4)) - (export "f64x2_sub_arith" (func 5)) ) diff --git a/tests/snapshots/testsuite/simd_f64x2_arith.wast/1808.print b/tests/snapshots/testsuite/simd_f64x2_arith.wast/1808.print index c14d0bee34..82d91de107 100644 --- a/tests/snapshots/testsuite/simd_f64x2_arith.wast/1808.print +++ b/tests/snapshots/testsuite/simd_f64x2_arith.wast/1808.print @@ -1,6 +1,22 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "add-sub" (func 0)) + (export "div-add" (func 1)) + (export "div-mul" (func 2)) + (export "div-sub" (func 3)) + (export "mul-add" (func 4)) + (export "mul-div" (func 5)) + (export "mul-sub" (func 6)) + (export "sub-add" (func 7)) + (export "add-neg" (func 8)) + (export "add-sqrt" (func 9)) + (export "div-neg" (func 10)) + (export "div-sqrt" (func 11)) + (export "mul-neg" (func 12)) + (export "mul-sqrt" (func 13)) + (export "sub-neg" (func 14)) + (export "sub-sqrt" (func 15)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -105,20 +121,4 @@ local.get 1 f64x2.sub ) - (export "add-sub" (func 0)) - (export "div-add" (func 1)) - (export "div-mul" (func 2)) - (export "div-sub" (func 3)) - (export "mul-add" (func 4)) - (export "mul-div" (func 5)) - (export "mul-sub" (func 6)) - (export "sub-add" (func 7)) - (export "add-neg" (func 8)) - (export "add-sqrt" (func 9)) - (export "div-neg" (func 10)) - (export "div-sqrt" (func 11)) - (export "mul-neg" (func 12)) - (export "mul-sqrt" (func 13)) - (export "sub-neg" (func 14)) - (export "sub-sqrt" (func 15)) ) diff --git a/tests/snapshots/testsuite/simd_f64x2_cmp.wast/0.print b/tests/snapshots/testsuite/simd_f64x2_cmp.wast/0.print index 4a2cc3bdbf..520a00ad40 100644 --- a/tests/snapshots/testsuite/simd_f64x2_cmp.wast/0.print +++ b/tests/snapshots/testsuite/simd_f64x2_cmp.wast/0.print @@ -1,5 +1,11 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "f64x2.eq" (func 0)) + (export "f64x2.ne" (func 1)) + (export "f64x2.lt" (func 2)) + (export "f64x2.le" (func 3)) + (export "f64x2.gt" (func 4)) + (export "f64x2.ge" (func 5)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -30,10 +36,4 @@ local.get 1 f64x2.ge ) - (export "f64x2.eq" (func 0)) - (export "f64x2.ne" (func 1)) - (export "f64x2.lt" (func 2)) - (export "f64x2.le" (func 3)) - (export "f64x2.gt" (func 4)) - (export "f64x2.ge" (func 5)) ) diff --git a/tests/snapshots/testsuite/simd_f64x2_cmp.wast/2671.print b/tests/snapshots/testsuite/simd_f64x2_cmp.wast/2671.print index d2280924e0..f2fd34344d 100644 --- a/tests/snapshots/testsuite/simd_f64x2_cmp.wast/2671.print +++ b/tests/snapshots/testsuite/simd_f64x2_cmp.wast/2671.print @@ -1,5 +1,19 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "f64x2.eq-in-block" (func 0)) + (export "f64x2.ne-in-block" (func 1)) + (export "f64x2.lt-in-block" (func 2)) + (export "f64x2.le-in-block" (func 3)) + (export "f64x2.gt-in-block" (func 4)) + (export "f64x2.ge-in-block" (func 5)) + (export "nested-f64x2.eq" (func 6)) + (export "nested-f64x2.ne" (func 7)) + (export "nested-f64x2.lt" (func 8)) + (export "nested-f64x2.le" (func 9)) + (export "nested-f64x2.gt" (func 10)) + (export "nested-f64x2.ge" (func 11)) + (export "as-param" (func 12)) (func (;0;) (type 0) block ;; label = @1 block (result v128) ;; label = @2 @@ -278,18 +292,4 @@ f64x2.eq drop ) - (memory (;0;) 1) - (export "f64x2.eq-in-block" (func 0)) - (export "f64x2.ne-in-block" (func 1)) - (export "f64x2.lt-in-block" (func 2)) - (export "f64x2.le-in-block" (func 3)) - (export "f64x2.gt-in-block" (func 4)) - (export "f64x2.ge-in-block" (func 5)) - (export "nested-f64x2.eq" (func 6)) - (export "nested-f64x2.ne" (func 7)) - (export "nested-f64x2.lt" (func 8)) - (export "nested-f64x2.le" (func 9)) - (export "nested-f64x2.gt" (func 10)) - (export "nested-f64x2.ge" (func 11)) - (export "as-param" (func 12)) ) diff --git a/tests/snapshots/testsuite/simd_f64x2_pmin_pmax.wast/0.print b/tests/snapshots/testsuite/simd_f64x2_pmin_pmax.wast/0.print index 2972dd1333..74438a8175 100644 --- a/tests/snapshots/testsuite/simd_f64x2_pmin_pmax.wast/0.print +++ b/tests/snapshots/testsuite/simd_f64x2_pmin_pmax.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "f64x2.pmin" (func 0)) + (export "f64x2.pmax" (func 1)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -10,6 +12,4 @@ local.get 1 f64x2.pmax ) - (export "f64x2.pmin" (func 0)) - (export "f64x2.pmax" (func 1)) ) diff --git a/tests/snapshots/testsuite/simd_f64x2_rounding.wast/0.print b/tests/snapshots/testsuite/simd_f64x2_rounding.wast/0.print index 1fee210f1b..6023e95fc3 100644 --- a/tests/snapshots/testsuite/simd_f64x2_rounding.wast/0.print +++ b/tests/snapshots/testsuite/simd_f64x2_rounding.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param v128) (result v128))) + (export "f64x2.ceil" (func 0)) + (export "f64x2.floor" (func 1)) + (export "f64x2.trunc" (func 2)) + (export "f64x2.nearest" (func 3)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 f64x2.ceil @@ -16,8 +20,4 @@ local.get 0 f64x2.nearest ) - (export "f64x2.ceil" (func 0)) - (export "f64x2.floor" (func 1)) - (export "f64x2.trunc" (func 2)) - (export "f64x2.nearest" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_arith.wast/0.print b/tests/snapshots/testsuite/simd_i16x8_arith.wast/0.print index b46880ac23..6aa263357c 100644 --- a/tests/snapshots/testsuite/simd_i16x8_arith.wast/0.print +++ b/tests/snapshots/testsuite/simd_i16x8_arith.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) + (export "i16x8.add" (func 0)) + (export "i16x8.sub" (func 1)) + (export "i16x8.mul" (func 2)) + (export "i16x8.neg" (func 3)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -20,8 +24,4 @@ local.get 0 i16x8.neg ) - (export "i16x8.add" (func 0)) - (export "i16x8.sub" (func 1)) - (export "i16x8.mul" (func 2)) - (export "i16x8.neg" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_arith.wast/186.print b/tests/snapshots/testsuite/simd_i16x8_arith.wast/186.print index 9f699e391f..3332f6409c 100644 --- a/tests/snapshots/testsuite/simd_i16x8_arith.wast/186.print +++ b/tests/snapshots/testsuite/simd_i16x8_arith.wast/186.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "add-sub" (func 0)) + (export "mul-add" (func 1)) + (export "mul-sub" (func 2)) + (export "sub-add" (func 3)) + (export "add-neg" (func 4)) + (export "mul-neg" (func 5)) + (export "sub-neg" (func 6)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -47,11 +54,4 @@ local.get 1 i16x8.sub ) - (export "add-sub" (func 0)) - (export "mul-add" (func 1)) - (export "mul-sub" (func 2)) - (export "sub-add" (func 3)) - (export "add-neg" (func 4)) - (export "mul-neg" (func 5)) - (export "sub-neg" (func 6)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_arith2.wast/0.print b/tests/snapshots/testsuite/simd_i16x8_arith2.wast/0.print index d16f85f34c..314a2c7ea3 100644 --- a/tests/snapshots/testsuite/simd_i16x8_arith2.wast/0.print +++ b/tests/snapshots/testsuite/simd_i16x8_arith2.wast/0.print @@ -2,6 +2,33 @@ (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) (type (;2;) (func (result v128))) + (export "i16x8.min_s" (func 0)) + (export "i16x8.min_u" (func 1)) + (export "i16x8.max_s" (func 2)) + (export "i16x8.max_u" (func 3)) + (export "i16x8.avgr_u" (func 4)) + (export "i16x8.abs" (func 5)) + (export "i16x8.min_s_with_const_0" (func 6)) + (export "i16x8.min_s_with_const_1" (func 7)) + (export "i16x8.min_u_with_const_2" (func 8)) + (export "i16x8.min_u_with_const_3" (func 9)) + (export "i16x8.max_s_with_const_4" (func 10)) + (export "i16x8.max_s_with_const_5" (func 11)) + (export "i16x8.max_u_with_const_6" (func 12)) + (export "i16x8.max_u_with_const_7" (func 13)) + (export "i16x8.avgr_u_with_const_8" (func 14)) + (export "i16x8.avgr_u_with_const_9" (func 15)) + (export "i16x8.abs_with_const_10" (func 16)) + (export "i16x8.min_s_with_const_11" (func 17)) + (export "i16x8.min_s_with_const_12" (func 18)) + (export "i16x8.min_u_with_const_13" (func 19)) + (export "i16x8.min_u_with_const_14" (func 20)) + (export "i16x8.max_s_with_const_15" (func 21)) + (export "i16x8.max_s_with_const_16" (func 22)) + (export "i16x8.max_u_with_const_17" (func 23)) + (export "i16x8.max_u_with_const_18" (func 24)) + (export "i16x8.avgr_u_with_const_19" (func 25)) + (export "i16x8.avgr_u_with_const_20" (func 26)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -135,31 +162,4 @@ v128.const i32x4 0x00000000 0x00010001 0x00020002 0x00030003 i16x8.avgr_u ) - (export "i16x8.min_s" (func 0)) - (export "i16x8.min_u" (func 1)) - (export "i16x8.max_s" (func 2)) - (export "i16x8.max_u" (func 3)) - (export "i16x8.avgr_u" (func 4)) - (export "i16x8.abs" (func 5)) - (export "i16x8.min_s_with_const_0" (func 6)) - (export "i16x8.min_s_with_const_1" (func 7)) - (export "i16x8.min_u_with_const_2" (func 8)) - (export "i16x8.min_u_with_const_3" (func 9)) - (export "i16x8.max_s_with_const_4" (func 10)) - (export "i16x8.max_s_with_const_5" (func 11)) - (export "i16x8.max_u_with_const_6" (func 12)) - (export "i16x8.max_u_with_const_7" (func 13)) - (export "i16x8.avgr_u_with_const_8" (func 14)) - (export "i16x8.avgr_u_with_const_9" (func 15)) - (export "i16x8.abs_with_const_10" (func 16)) - (export "i16x8.min_s_with_const_11" (func 17)) - (export "i16x8.min_s_with_const_12" (func 18)) - (export "i16x8.min_u_with_const_13" (func 19)) - (export "i16x8.min_u_with_const_14" (func 20)) - (export "i16x8.max_s_with_const_15" (func 21)) - (export "i16x8.max_s_with_const_16" (func 22)) - (export "i16x8.max_u_with_const_17" (func 23)) - (export "i16x8.max_u_with_const_18" (func 24)) - (export "i16x8.avgr_u_with_const_19" (func 25)) - (export "i16x8.avgr_u_with_const_20" (func 26)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_arith2.wast/135.print b/tests/snapshots/testsuite/simd_i16x8_arith2.wast/135.print index 4922500acc..81b8c94121 100644 --- a/tests/snapshots/testsuite/simd_i16x8_arith2.wast/135.print +++ b/tests/snapshots/testsuite/simd_i16x8_arith2.wast/135.print @@ -2,6 +2,42 @@ (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) (type (;2;) (func (param v128) (result v128))) + (export "i16x8.min_s-i16x8.avgr_u" (func 0)) + (export "i16x8.min_s-i16x8.max_u" (func 1)) + (export "i16x8.min_s-i16x8.max_s" (func 2)) + (export "i16x8.min_s-i16x8.min_u" (func 3)) + (export "i16x8.min_s-i16x8.min_s" (func 4)) + (export "i16x8.min_s-i16x8.abs" (func 5)) + (export "i16x8.abs-i16x8.min_s" (func 6)) + (export "i16x8.min_u-i16x8.avgr_u" (func 7)) + (export "i16x8.min_u-i16x8.max_u" (func 8)) + (export "i16x8.min_u-i16x8.max_s" (func 9)) + (export "i16x8.min_u-i16x8.min_u" (func 10)) + (export "i16x8.min_u-i16x8.min_s" (func 11)) + (export "i16x8.min_u-i16x8.abs" (func 12)) + (export "i16x8.abs-i16x8.min_u" (func 13)) + (export "i16x8.max_s-i16x8.avgr_u" (func 14)) + (export "i16x8.max_s-i16x8.max_u" (func 15)) + (export "i16x8.max_s-i16x8.max_s" (func 16)) + (export "i16x8.max_s-i16x8.min_u" (func 17)) + (export "i16x8.max_s-i16x8.min_s" (func 18)) + (export "i16x8.max_s-i16x8.abs" (func 19)) + (export "i16x8.abs-i16x8.max_s" (func 20)) + (export "i16x8.max_u-i16x8.avgr_u" (func 21)) + (export "i16x8.max_u-i16x8.max_u" (func 22)) + (export "i16x8.max_u-i16x8.max_s" (func 23)) + (export "i16x8.max_u-i16x8.min_u" (func 24)) + (export "i16x8.max_u-i16x8.min_s" (func 25)) + (export "i16x8.max_u-i16x8.abs" (func 26)) + (export "i16x8.abs-i16x8.max_u" (func 27)) + (export "i16x8.avgr_u-i16x8.avgr_u" (func 28)) + (export "i16x8.avgr_u-i16x8.max_u" (func 29)) + (export "i16x8.avgr_u-i16x8.max_s" (func 30)) + (export "i16x8.avgr_u-i16x8.min_u" (func 31)) + (export "i16x8.avgr_u-i16x8.min_s" (func 32)) + (export "i16x8.avgr_u-i16x8.abs" (func 33)) + (export "i16x8.abs-i16x8.avgr_u" (func 34)) + (export "i16x8.abs-i16x8.abs" (func 35)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -242,40 +278,4 @@ i16x8.abs i16x8.abs ) - (export "i16x8.min_s-i16x8.avgr_u" (func 0)) - (export "i16x8.min_s-i16x8.max_u" (func 1)) - (export "i16x8.min_s-i16x8.max_s" (func 2)) - (export "i16x8.min_s-i16x8.min_u" (func 3)) - (export "i16x8.min_s-i16x8.min_s" (func 4)) - (export "i16x8.min_s-i16x8.abs" (func 5)) - (export "i16x8.abs-i16x8.min_s" (func 6)) - (export "i16x8.min_u-i16x8.avgr_u" (func 7)) - (export "i16x8.min_u-i16x8.max_u" (func 8)) - (export "i16x8.min_u-i16x8.max_s" (func 9)) - (export "i16x8.min_u-i16x8.min_u" (func 10)) - (export "i16x8.min_u-i16x8.min_s" (func 11)) - (export "i16x8.min_u-i16x8.abs" (func 12)) - (export "i16x8.abs-i16x8.min_u" (func 13)) - (export "i16x8.max_s-i16x8.avgr_u" (func 14)) - (export "i16x8.max_s-i16x8.max_u" (func 15)) - (export "i16x8.max_s-i16x8.max_s" (func 16)) - (export "i16x8.max_s-i16x8.min_u" (func 17)) - (export "i16x8.max_s-i16x8.min_s" (func 18)) - (export "i16x8.max_s-i16x8.abs" (func 19)) - (export "i16x8.abs-i16x8.max_s" (func 20)) - (export "i16x8.max_u-i16x8.avgr_u" (func 21)) - (export "i16x8.max_u-i16x8.max_u" (func 22)) - (export "i16x8.max_u-i16x8.max_s" (func 23)) - (export "i16x8.max_u-i16x8.min_u" (func 24)) - (export "i16x8.max_u-i16x8.min_s" (func 25)) - (export "i16x8.max_u-i16x8.abs" (func 26)) - (export "i16x8.abs-i16x8.max_u" (func 27)) - (export "i16x8.avgr_u-i16x8.avgr_u" (func 28)) - (export "i16x8.avgr_u-i16x8.max_u" (func 29)) - (export "i16x8.avgr_u-i16x8.max_s" (func 30)) - (export "i16x8.avgr_u-i16x8.min_u" (func 31)) - (export "i16x8.avgr_u-i16x8.min_s" (func 32)) - (export "i16x8.avgr_u-i16x8.abs" (func 33)) - (export "i16x8.abs-i16x8.avgr_u" (func 34)) - (export "i16x8.abs-i16x8.abs" (func 35)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_cmp.wast/0.print b/tests/snapshots/testsuite/simd_i16x8_cmp.wast/0.print index 7b9d089c00..0aaf589b80 100644 --- a/tests/snapshots/testsuite/simd_i16x8_cmp.wast/0.print +++ b/tests/snapshots/testsuite/simd_i16x8_cmp.wast/0.print @@ -1,5 +1,15 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "eq" (func 0)) + (export "ne" (func 1)) + (export "lt_s" (func 2)) + (export "lt_u" (func 3)) + (export "le_s" (func 4)) + (export "le_u" (func 5)) + (export "gt_s" (func 6)) + (export "gt_u" (func 7)) + (export "ge_s" (func 8)) + (export "ge_u" (func 9)) (func (;0;) (type 0) (param $x v128) (param $y v128) (result v128) local.get $x local.get $y @@ -50,14 +60,4 @@ local.get $y i16x8.ge_u ) - (export "eq" (func 0)) - (export "ne" (func 1)) - (export "lt_s" (func 2)) - (export "lt_u" (func 3)) - (export "le_s" (func 4)) - (export "le_u" (func 5)) - (export "gt_s" (func 6)) - (export "gt_u" (func 7)) - (export "ge_s" (func 8)) - (export "ge_u" (func 9)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_cmp.wast/431.print b/tests/snapshots/testsuite/simd_i16x8_cmp.wast/431.print index 97d85a392c..c7f30ad612 100644 --- a/tests/snapshots/testsuite/simd_i16x8_cmp.wast/431.print +++ b/tests/snapshots/testsuite/simd_i16x8_cmp.wast/431.print @@ -1,5 +1,19 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "eq-in-block" (func 0)) + (export "ne-in-block" (func 1)) + (export "lt_s-in-block" (func 2)) + (export "le_u-in-block" (func 3)) + (export "gt_u-in-block" (func 4)) + (export "ge_s-in-block" (func 5)) + (export "nested-eq" (func 6)) + (export "nested-ne" (func 7)) + (export "nested-lt_s" (func 8)) + (export "nested-le_u" (func 9)) + (export "nested-gt_u" (func 10)) + (export "nested-ge_s" (func 11)) + (export "as-param" (func 12)) (func (;0;) (type 0) block ;; label = @1 block (result v128) ;; label = @2 @@ -278,18 +292,4 @@ i16x8.ge_u drop ) - (memory (;0;) 1) - (export "eq-in-block" (func 0)) - (export "ne-in-block" (func 1)) - (export "lt_s-in-block" (func 2)) - (export "le_u-in-block" (func 3)) - (export "gt_u-in-block" (func 4)) - (export "ge_s-in-block" (func 5)) - (export "nested-eq" (func 6)) - (export "nested-ne" (func 7)) - (export "nested-lt_s" (func 8)) - (export "nested-le_u" (func 9)) - (export "nested-gt_u" (func 10)) - (export "nested-ge_s" (func 11)) - (export "as-param" (func 12)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_extadd_pairwise_i8x16.wast/0.print b/tests/snapshots/testsuite/simd_i16x8_extadd_pairwise_i8x16.wast/0.print index 929acc1f5f..1ff45a39c6 100644 --- a/tests/snapshots/testsuite/simd_i16x8_extadd_pairwise_i8x16.wast/0.print +++ b/tests/snapshots/testsuite/simd_i16x8_extadd_pairwise_i8x16.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (param v128) (result v128))) + (export "i16x8.extadd_pairwise_i8x16_s" (func 0)) + (export "i16x8.extadd_pairwise_i8x16_u" (func 1)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i16x8.extadd_pairwise_i8x16_s @@ -8,6 +10,4 @@ local.get 0 i16x8.extadd_pairwise_i8x16_u ) - (export "i16x8.extadd_pairwise_i8x16_s" (func 0)) - (export "i16x8.extadd_pairwise_i8x16_u" (func 1)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_extmul_i8x16.wast/0.print b/tests/snapshots/testsuite/simd_i16x8_extmul_i8x16.wast/0.print index b487621fef..7acb5cc14d 100644 --- a/tests/snapshots/testsuite/simd_i16x8_extmul_i8x16.wast/0.print +++ b/tests/snapshots/testsuite/simd_i16x8_extmul_i8x16.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "i16x8.extmul_low_i8x16_s" (func 0)) + (export "i16x8.extmul_high_i8x16_s" (func 1)) + (export "i16x8.extmul_low_i8x16_u" (func 2)) + (export "i16x8.extmul_high_i8x16_u" (func 3)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -20,8 +24,4 @@ local.get 1 i16x8.extmul_high_i8x16_u ) - (export "i16x8.extmul_low_i8x16_s" (func 0)) - (export "i16x8.extmul_high_i8x16_s" (func 1)) - (export "i16x8.extmul_low_i8x16_u" (func 2)) - (export "i16x8.extmul_high_i8x16_u" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_q15mulr_sat_s.wast/0.print b/tests/snapshots/testsuite/simd_i16x8_q15mulr_sat_s.wast/0.print index 9a19d863c4..d2b20f3f57 100644 --- a/tests/snapshots/testsuite/simd_i16x8_q15mulr_sat_s.wast/0.print +++ b/tests/snapshots/testsuite/simd_i16x8_q15mulr_sat_s.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "i16x8.q15mulr_sat_s" (func 0)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 i16x8.q15mulr_sat_s ) - (export "i16x8.q15mulr_sat_s" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_sat_arith.wast/0.print b/tests/snapshots/testsuite/simd_i16x8_sat_arith.wast/0.print index b82df21fc0..eda8e8e1c9 100644 --- a/tests/snapshots/testsuite/simd_i16x8_sat_arith.wast/0.print +++ b/tests/snapshots/testsuite/simd_i16x8_sat_arith.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "i16x8.add_sat_s" (func 0)) + (export "i16x8.add_sat_u" (func 1)) + (export "i16x8.sub_sat_s" (func 2)) + (export "i16x8.sub_sat_u" (func 3)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -20,8 +24,4 @@ local.get 1 i16x8.sub_sat_u ) - (export "i16x8.add_sat_s" (func 0)) - (export "i16x8.add_sat_u" (func 1)) - (export "i16x8.sub_sat_s" (func 2)) - (export "i16x8.sub_sat_u" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_i16x8_sat_arith.wast/213.print b/tests/snapshots/testsuite/simd_i16x8_sat_arith.wast/213.print index ca2138f396..e3284d4841 100644 --- a/tests/snapshots/testsuite/simd_i16x8_sat_arith.wast/213.print +++ b/tests/snapshots/testsuite/simd_i16x8_sat_arith.wast/213.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "sat-add_s-sub_s" (func 0)) + (export "sat-add_s-sub_u" (func 1)) + (export "sat-add_u-sub_s" (func 2)) + (export "sat-add_u-sub_u" (func 3)) + (export "sat-add_s-neg" (func 4)) + (export "sat-add_u-neg" (func 5)) + (export "sat-sub_s-neg" (func 6)) + (export "sat-sub_u-neg" (func 7)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -53,12 +61,4 @@ local.get 1 i16x8.sub_sat_u ) - (export "sat-add_s-sub_s" (func 0)) - (export "sat-add_s-sub_u" (func 1)) - (export "sat-add_u-sub_s" (func 2)) - (export "sat-add_u-sub_u" (func 3)) - (export "sat-add_s-neg" (func 4)) - (export "sat-add_u-neg" (func 5)) - (export "sat-sub_s-neg" (func 6)) - (export "sat-sub_u-neg" (func 7)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_arith.wast/0.print b/tests/snapshots/testsuite/simd_i32x4_arith.wast/0.print index 3b57f07ad8..bd14d6ad2d 100644 --- a/tests/snapshots/testsuite/simd_i32x4_arith.wast/0.print +++ b/tests/snapshots/testsuite/simd_i32x4_arith.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) + (export "i32x4.add" (func 0)) + (export "i32x4.sub" (func 1)) + (export "i32x4.mul" (func 2)) + (export "i32x4.neg" (func 3)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -20,8 +24,4 @@ local.get 0 i32x4.neg ) - (export "i32x4.add" (func 0)) - (export "i32x4.sub" (func 1)) - (export "i32x4.mul" (func 2)) - (export "i32x4.neg" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_arith.wast/186.print b/tests/snapshots/testsuite/simd_i32x4_arith.wast/186.print index 685435a4cb..8e0a90759c 100644 --- a/tests/snapshots/testsuite/simd_i32x4_arith.wast/186.print +++ b/tests/snapshots/testsuite/simd_i32x4_arith.wast/186.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "add-sub" (func 0)) + (export "mul-add" (func 1)) + (export "mul-sub" (func 2)) + (export "sub-add" (func 3)) + (export "add-neg" (func 4)) + (export "mul-neg" (func 5)) + (export "sub-neg" (func 6)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -47,11 +54,4 @@ local.get 1 i32x4.sub ) - (export "add-sub" (func 0)) - (export "mul-add" (func 1)) - (export "mul-sub" (func 2)) - (export "sub-add" (func 3)) - (export "add-neg" (func 4)) - (export "mul-neg" (func 5)) - (export "sub-neg" (func 6)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_arith2.wast/0.print b/tests/snapshots/testsuite/simd_i32x4_arith2.wast/0.print index f9527b962a..fa80d43583 100644 --- a/tests/snapshots/testsuite/simd_i32x4_arith2.wast/0.print +++ b/tests/snapshots/testsuite/simd_i32x4_arith2.wast/0.print @@ -2,6 +2,28 @@ (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) (type (;2;) (func (result v128))) + (export "i32x4.min_s" (func 0)) + (export "i32x4.min_u" (func 1)) + (export "i32x4.max_s" (func 2)) + (export "i32x4.max_u" (func 3)) + (export "i32x4.abs" (func 4)) + (export "i32x4.min_s_with_const_0" (func 5)) + (export "i32x4.min_s_with_const_1" (func 6)) + (export "i32x4.min_u_with_const_2" (func 7)) + (export "i32x4.min_u_with_const_3" (func 8)) + (export "i32x4.max_s_with_const_4" (func 9)) + (export "i32x4.max_s_with_const_5" (func 10)) + (export "i32x4.max_u_with_const_6" (func 11)) + (export "i32x4.max_u_with_const_7" (func 12)) + (export "i32x4.abs_with_const_8" (func 13)) + (export "i32x4.min_s_with_const_9" (func 14)) + (export "i32x4.min_s_with_const_10" (func 15)) + (export "i32x4.min_u_with_const_11" (func 16)) + (export "i32x4.min_u_with_const_12" (func 17)) + (export "i32x4.max_s_with_const_13" (func 18)) + (export "i32x4.max_s_with_const_14" (func 19)) + (export "i32x4.max_u_with_const_15" (func 20)) + (export "i32x4.max_u_with_const_16" (func 21)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -110,26 +132,4 @@ v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 i32x4.max_u ) - (export "i32x4.min_s" (func 0)) - (export "i32x4.min_u" (func 1)) - (export "i32x4.max_s" (func 2)) - (export "i32x4.max_u" (func 3)) - (export "i32x4.abs" (func 4)) - (export "i32x4.min_s_with_const_0" (func 5)) - (export "i32x4.min_s_with_const_1" (func 6)) - (export "i32x4.min_u_with_const_2" (func 7)) - (export "i32x4.min_u_with_const_3" (func 8)) - (export "i32x4.max_s_with_const_4" (func 9)) - (export "i32x4.max_s_with_const_5" (func 10)) - (export "i32x4.max_u_with_const_6" (func 11)) - (export "i32x4.max_u_with_const_7" (func 12)) - (export "i32x4.abs_with_const_8" (func 13)) - (export "i32x4.min_s_with_const_9" (func 14)) - (export "i32x4.min_s_with_const_10" (func 15)) - (export "i32x4.min_u_with_const_11" (func 16)) - (export "i32x4.min_u_with_const_12" (func 17)) - (export "i32x4.max_s_with_const_13" (func 18)) - (export "i32x4.max_s_with_const_14" (func 19)) - (export "i32x4.max_u_with_const_15" (func 20)) - (export "i32x4.max_u_with_const_16" (func 21)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_arith2.wast/123.print b/tests/snapshots/testsuite/simd_i32x4_arith2.wast/123.print index 088ecda9d0..34267542ef 100644 --- a/tests/snapshots/testsuite/simd_i32x4_arith2.wast/123.print +++ b/tests/snapshots/testsuite/simd_i32x4_arith2.wast/123.print @@ -2,6 +2,31 @@ (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) (type (;2;) (func (param v128) (result v128))) + (export "i32x4.min_s-i32x4.max_u" (func 0)) + (export "i32x4.min_s-i32x4.max_s" (func 1)) + (export "i32x4.min_s-i32x4.min_u" (func 2)) + (export "i32x4.min_s-i32x4.min_s" (func 3)) + (export "i32x4.min_s-i32x4.abs" (func 4)) + (export "i32x4.abs-i32x4.min_s" (func 5)) + (export "i32x4.min_u-i32x4.max_u" (func 6)) + (export "i32x4.min_u-i32x4.max_s" (func 7)) + (export "i32x4.min_u-i32x4.min_u" (func 8)) + (export "i32x4.min_u-i32x4.min_s" (func 9)) + (export "i32x4.min_u-i32x4.abs" (func 10)) + (export "i32x4.abs-i32x4.min_u" (func 11)) + (export "i32x4.max_s-i32x4.max_u" (func 12)) + (export "i32x4.max_s-i32x4.max_s" (func 13)) + (export "i32x4.max_s-i32x4.min_u" (func 14)) + (export "i32x4.max_s-i32x4.min_s" (func 15)) + (export "i32x4.max_s-i32x4.abs" (func 16)) + (export "i32x4.abs-i32x4.max_s" (func 17)) + (export "i32x4.max_u-i32x4.max_u" (func 18)) + (export "i32x4.max_u-i32x4.max_s" (func 19)) + (export "i32x4.max_u-i32x4.min_u" (func 20)) + (export "i32x4.max_u-i32x4.min_s" (func 21)) + (export "i32x4.max_u-i32x4.abs" (func 22)) + (export "i32x4.abs-i32x4.max_u" (func 23)) + (export "i32x4.abs-i32x4.abs" (func 24)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -167,29 +192,4 @@ i32x4.abs i32x4.abs ) - (export "i32x4.min_s-i32x4.max_u" (func 0)) - (export "i32x4.min_s-i32x4.max_s" (func 1)) - (export "i32x4.min_s-i32x4.min_u" (func 2)) - (export "i32x4.min_s-i32x4.min_s" (func 3)) - (export "i32x4.min_s-i32x4.abs" (func 4)) - (export "i32x4.abs-i32x4.min_s" (func 5)) - (export "i32x4.min_u-i32x4.max_u" (func 6)) - (export "i32x4.min_u-i32x4.max_s" (func 7)) - (export "i32x4.min_u-i32x4.min_u" (func 8)) - (export "i32x4.min_u-i32x4.min_s" (func 9)) - (export "i32x4.min_u-i32x4.abs" (func 10)) - (export "i32x4.abs-i32x4.min_u" (func 11)) - (export "i32x4.max_s-i32x4.max_u" (func 12)) - (export "i32x4.max_s-i32x4.max_s" (func 13)) - (export "i32x4.max_s-i32x4.min_u" (func 14)) - (export "i32x4.max_s-i32x4.min_s" (func 15)) - (export "i32x4.max_s-i32x4.abs" (func 16)) - (export "i32x4.abs-i32x4.max_s" (func 17)) - (export "i32x4.max_u-i32x4.max_u" (func 18)) - (export "i32x4.max_u-i32x4.max_s" (func 19)) - (export "i32x4.max_u-i32x4.min_u" (func 20)) - (export "i32x4.max_u-i32x4.min_s" (func 21)) - (export "i32x4.max_u-i32x4.abs" (func 22)) - (export "i32x4.abs-i32x4.max_u" (func 23)) - (export "i32x4.abs-i32x4.abs" (func 24)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_cmp.wast/0.print b/tests/snapshots/testsuite/simd_i32x4_cmp.wast/0.print index 5efe0c28f8..ca5841c4cc 100644 --- a/tests/snapshots/testsuite/simd_i32x4_cmp.wast/0.print +++ b/tests/snapshots/testsuite/simd_i32x4_cmp.wast/0.print @@ -1,5 +1,15 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "eq" (func 0)) + (export "ne" (func 1)) + (export "lt_s" (func 2)) + (export "lt_u" (func 3)) + (export "le_s" (func 4)) + (export "le_u" (func 5)) + (export "gt_s" (func 6)) + (export "gt_u" (func 7)) + (export "ge_s" (func 8)) + (export "ge_u" (func 9)) (func (;0;) (type 0) (param $x v128) (param $y v128) (result v128) local.get $x local.get $y @@ -50,14 +60,4 @@ local.get $y i32x4.ge_u ) - (export "eq" (func 0)) - (export "ne" (func 1)) - (export "lt_s" (func 2)) - (export "lt_u" (func 3)) - (export "le_s" (func 4)) - (export "le_u" (func 5)) - (export "gt_s" (func 6)) - (export "gt_u" (func 7)) - (export "ge_s" (func 8)) - (export "ge_u" (func 9)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_cmp.wast/431.print b/tests/snapshots/testsuite/simd_i32x4_cmp.wast/431.print index fa2cd98d17..86d9ab3a21 100644 --- a/tests/snapshots/testsuite/simd_i32x4_cmp.wast/431.print +++ b/tests/snapshots/testsuite/simd_i32x4_cmp.wast/431.print @@ -1,5 +1,19 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "eq-in-block" (func 0)) + (export "ne-in-block" (func 1)) + (export "lt_s-in-block" (func 2)) + (export "le_u-in-block" (func 3)) + (export "gt_u-in-block" (func 4)) + (export "ge_s-in-block" (func 5)) + (export "nested-eq" (func 6)) + (export "nested-ne" (func 7)) + (export "nested-lt_s" (func 8)) + (export "nested-le_u" (func 9)) + (export "nested-gt_u" (func 10)) + (export "nested-ge_s" (func 11)) + (export "as-param" (func 12)) (func (;0;) (type 0) block ;; label = @1 block (result v128) ;; label = @2 @@ -278,18 +292,4 @@ i32x4.ge_u drop ) - (memory (;0;) 1) - (export "eq-in-block" (func 0)) - (export "ne-in-block" (func 1)) - (export "lt_s-in-block" (func 2)) - (export "le_u-in-block" (func 3)) - (export "gt_u-in-block" (func 4)) - (export "ge_s-in-block" (func 5)) - (export "nested-eq" (func 6)) - (export "nested-ne" (func 7)) - (export "nested-lt_s" (func 8)) - (export "nested-le_u" (func 9)) - (export "nested-gt_u" (func 10)) - (export "nested-ge_s" (func 11)) - (export "as-param" (func 12)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_dot_i16x8.wast/0.print b/tests/snapshots/testsuite/simd_i32x4_dot_i16x8.wast/0.print index 626fa7b6b6..6b8e896774 100644 --- a/tests/snapshots/testsuite/simd_i32x4_dot_i16x8.wast/0.print +++ b/tests/snapshots/testsuite/simd_i32x4_dot_i16x8.wast/0.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "i32x4.dot_i16x8_s" (func 0)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 i32x4.dot_i16x8_s ) - (export "i32x4.dot_i16x8_s" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_extadd_pairwise_i16x8.wast/0.print b/tests/snapshots/testsuite/simd_i32x4_extadd_pairwise_i16x8.wast/0.print index 52665c5b00..f8e9c820ab 100644 --- a/tests/snapshots/testsuite/simd_i32x4_extadd_pairwise_i16x8.wast/0.print +++ b/tests/snapshots/testsuite/simd_i32x4_extadd_pairwise_i16x8.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (param v128) (result v128))) + (export "i32x4.extadd_pairwise_i16x8_s" (func 0)) + (export "i32x4.extadd_pairwise_i16x8_u" (func 1)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i32x4.extadd_pairwise_i16x8_s @@ -8,6 +10,4 @@ local.get 0 i32x4.extadd_pairwise_i16x8_u ) - (export "i32x4.extadd_pairwise_i16x8_s" (func 0)) - (export "i32x4.extadd_pairwise_i16x8_u" (func 1)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_extmul_i16x8.wast/0.print b/tests/snapshots/testsuite/simd_i32x4_extmul_i16x8.wast/0.print index 4727d508ef..bc10b267e8 100644 --- a/tests/snapshots/testsuite/simd_i32x4_extmul_i16x8.wast/0.print +++ b/tests/snapshots/testsuite/simd_i32x4_extmul_i16x8.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "i32x4.extmul_low_i16x8_s" (func 0)) + (export "i32x4.extmul_high_i16x8_s" (func 1)) + (export "i32x4.extmul_low_i16x8_u" (func 2)) + (export "i32x4.extmul_high_i16x8_u" (func 3)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -20,8 +24,4 @@ local.get 1 i32x4.extmul_high_i16x8_u ) - (export "i32x4.extmul_low_i16x8_s" (func 0)) - (export "i32x4.extmul_high_i16x8_s" (func 1)) - (export "i32x4.extmul_low_i16x8_u" (func 2)) - (export "i32x4.extmul_high_i16x8_u" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_trunc_sat_f32x4.wast/0.print b/tests/snapshots/testsuite/simd_i32x4_trunc_sat_f32x4.wast/0.print index 3500412c89..4fba9aae05 100644 --- a/tests/snapshots/testsuite/simd_i32x4_trunc_sat_f32x4.wast/0.print +++ b/tests/snapshots/testsuite/simd_i32x4_trunc_sat_f32x4.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (param v128) (result v128))) + (export "i32x4.trunc_sat_f32x4_s" (func 0)) + (export "i32x4.trunc_sat_f32x4_u" (func 1)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i32x4.trunc_sat_f32x4_s @@ -8,6 +10,4 @@ local.get 0 i32x4.trunc_sat_f32x4_u ) - (export "i32x4.trunc_sat_f32x4_s" (func 0)) - (export "i32x4.trunc_sat_f32x4_u" (func 1)) ) diff --git a/tests/snapshots/testsuite/simd_i32x4_trunc_sat_f64x2.wast/0.print b/tests/snapshots/testsuite/simd_i32x4_trunc_sat_f64x2.wast/0.print index 367fc1f5bf..777757b379 100644 --- a/tests/snapshots/testsuite/simd_i32x4_trunc_sat_f64x2.wast/0.print +++ b/tests/snapshots/testsuite/simd_i32x4_trunc_sat_f64x2.wast/0.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (param v128) (result v128))) + (export "i32x4.trunc_sat_f64x2_s_zero" (func 0)) + (export "i32x4.trunc_sat_f64x2_u_zero" (func 1)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i32x4.trunc_sat_f64x2_s_zero @@ -8,6 +10,4 @@ local.get 0 i32x4.trunc_sat_f64x2_u_zero ) - (export "i32x4.trunc_sat_f64x2_s_zero" (func 0)) - (export "i32x4.trunc_sat_f64x2_u_zero" (func 1)) ) diff --git a/tests/snapshots/testsuite/simd_i64x2_arith.wast/0.print b/tests/snapshots/testsuite/simd_i64x2_arith.wast/0.print index 5c747208f5..2e1ff6e70f 100644 --- a/tests/snapshots/testsuite/simd_i64x2_arith.wast/0.print +++ b/tests/snapshots/testsuite/simd_i64x2_arith.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) + (export "i64x2.add" (func 0)) + (export "i64x2.sub" (func 1)) + (export "i64x2.mul" (func 2)) + (export "i64x2.neg" (func 3)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -20,8 +24,4 @@ local.get 0 i64x2.neg ) - (export "i64x2.add" (func 0)) - (export "i64x2.sub" (func 1)) - (export "i64x2.mul" (func 2)) - (export "i64x2.neg" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_i64x2_arith.wast/192.print b/tests/snapshots/testsuite/simd_i64x2_arith.wast/192.print index be4b61cce4..8e0a7c04e3 100644 --- a/tests/snapshots/testsuite/simd_i64x2_arith.wast/192.print +++ b/tests/snapshots/testsuite/simd_i64x2_arith.wast/192.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "add-sub" (func 0)) + (export "mul-add" (func 1)) + (export "mul-sub" (func 2)) + (export "sub-add" (func 3)) + (export "add-neg" (func 4)) + (export "mul-neg" (func 5)) + (export "sub-neg" (func 6)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -47,11 +54,4 @@ local.get 1 i64x2.sub ) - (export "add-sub" (func 0)) - (export "mul-add" (func 1)) - (export "mul-sub" (func 2)) - (export "sub-add" (func 3)) - (export "add-neg" (func 4)) - (export "mul-neg" (func 5)) - (export "sub-neg" (func 6)) ) diff --git a/tests/snapshots/testsuite/simd_i64x2_arith2.wast/0.print b/tests/snapshots/testsuite/simd_i64x2_arith2.wast/0.print index c1780064b0..1b2b165d08 100644 --- a/tests/snapshots/testsuite/simd_i64x2_arith2.wast/0.print +++ b/tests/snapshots/testsuite/simd_i64x2_arith2.wast/0.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param v128) (result v128))) (type (;1;) (func (result v128))) + (export "i64x2.abs" (func 0)) + (export "i64x2.abs_with_const_0" (func 1)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i64x2.abs @@ -9,6 +11,4 @@ v128.const i32x4 0x00000000 0x80000000 0xffffffff 0x7fffffff i64x2.abs ) - (export "i64x2.abs" (func 0)) - (export "i64x2.abs_with_const_0" (func 1)) ) diff --git a/tests/snapshots/testsuite/simd_i64x2_arith2.wast/23.print b/tests/snapshots/testsuite/simd_i64x2_arith2.wast/23.print index 03b0de190b..39bcbc008e 100644 --- a/tests/snapshots/testsuite/simd_i64x2_arith2.wast/23.print +++ b/tests/snapshots/testsuite/simd_i64x2_arith2.wast/23.print @@ -1,9 +1,9 @@ (module (type (;0;) (func (param v128) (result v128))) + (export "i64x2.abs-i64x2.abs" (func 0)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i64x2.abs i64x2.abs ) - (export "i64x2.abs-i64x2.abs" (func 0)) ) diff --git a/tests/snapshots/testsuite/simd_i64x2_cmp.wast/0.print b/tests/snapshots/testsuite/simd_i64x2_cmp.wast/0.print index 72be039887..9effa2e700 100644 --- a/tests/snapshots/testsuite/simd_i64x2_cmp.wast/0.print +++ b/tests/snapshots/testsuite/simd_i64x2_cmp.wast/0.print @@ -1,5 +1,11 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "eq" (func 0)) + (export "ne" (func 1)) + (export "lt_s" (func 2)) + (export "le_s" (func 3)) + (export "gt_s" (func 4)) + (export "ge_s" (func 5)) (func (;0;) (type 0) (param $x v128) (param $y v128) (result v128) local.get $x local.get $y @@ -30,10 +36,4 @@ local.get $y i64x2.ge_s ) - (export "eq" (func 0)) - (export "ne" (func 1)) - (export "lt_s" (func 2)) - (export "le_s" (func 3)) - (export "gt_s" (func 4)) - (export "ge_s" (func 5)) ) diff --git a/tests/snapshots/testsuite/simd_i64x2_extmul_i32x4.wast/0.print b/tests/snapshots/testsuite/simd_i64x2_extmul_i32x4.wast/0.print index 48ec314541..7159322f6a 100644 --- a/tests/snapshots/testsuite/simd_i64x2_extmul_i32x4.wast/0.print +++ b/tests/snapshots/testsuite/simd_i64x2_extmul_i32x4.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "i64x2.extmul_low_i32x4_s" (func 0)) + (export "i64x2.extmul_high_i32x4_s" (func 1)) + (export "i64x2.extmul_low_i32x4_u" (func 2)) + (export "i64x2.extmul_high_i32x4_u" (func 3)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -20,8 +24,4 @@ local.get 1 i64x2.extmul_high_i32x4_u ) - (export "i64x2.extmul_low_i32x4_s" (func 0)) - (export "i64x2.extmul_high_i32x4_s" (func 1)) - (export "i64x2.extmul_low_i32x4_u" (func 2)) - (export "i64x2.extmul_high_i32x4_u" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_i8x16_arith.wast/0.print b/tests/snapshots/testsuite/simd_i8x16_arith.wast/0.print index 82e4d28a78..a9e067310e 100644 --- a/tests/snapshots/testsuite/simd_i8x16_arith.wast/0.print +++ b/tests/snapshots/testsuite/simd_i8x16_arith.wast/0.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) + (export "i8x16.add" (func 0)) + (export "i8x16.sub" (func 1)) + (export "i8x16.neg" (func 2)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -15,7 +18,4 @@ local.get 0 i8x16.neg ) - (export "i8x16.add" (func 0)) - (export "i8x16.sub" (func 1)) - (export "i8x16.neg" (func 2)) ) diff --git a/tests/snapshots/testsuite/simd_i8x16_arith.wast/126.print b/tests/snapshots/testsuite/simd_i8x16_arith.wast/126.print index f9984e39f8..5de17e828e 100644 --- a/tests/snapshots/testsuite/simd_i8x16_arith.wast/126.print +++ b/tests/snapshots/testsuite/simd_i8x16_arith.wast/126.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "add-sub" (func 0)) + (export "sub-add" (func 1)) + (export "add-neg" (func 2)) + (export "sub-neg" (func 3)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -27,8 +31,4 @@ local.get 1 i8x16.sub ) - (export "add-sub" (func 0)) - (export "sub-add" (func 1)) - (export "add-neg" (func 2)) - (export "sub-neg" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_i8x16_arith2.wast/0.print b/tests/snapshots/testsuite/simd_i8x16_arith2.wast/0.print index 2ccc476a06..bc032af277 100644 --- a/tests/snapshots/testsuite/simd_i8x16_arith2.wast/0.print +++ b/tests/snapshots/testsuite/simd_i8x16_arith2.wast/0.print @@ -2,6 +2,35 @@ (type (;0;) (func (param v128 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) (type (;2;) (func (result v128))) + (export "i8x16.min_s" (func 0)) + (export "i8x16.min_u" (func 1)) + (export "i8x16.max_s" (func 2)) + (export "i8x16.max_u" (func 3)) + (export "i8x16.avgr_u" (func 4)) + (export "i8x16.abs" (func 5)) + (export "i8x16.popcnt" (func 6)) + (export "i8x16.min_s_with_const_0" (func 7)) + (export "i8x16.min_s_with_const_1" (func 8)) + (export "i8x16.min_u_with_const_2" (func 9)) + (export "i8x16.min_u_with_const_3" (func 10)) + (export "i8x16.max_s_with_const_4" (func 11)) + (export "i8x16.max_s_with_const_5" (func 12)) + (export "i8x16.max_u_with_const_6" (func 13)) + (export "i8x16.max_u_with_const_7" (func 14)) + (export "i8x16.avgr_u_with_const_8" (func 15)) + (export "i8x16.avgr_u_with_const_9" (func 16)) + (export "i8x16.abs_with_const_10" (func 17)) + (export "i8x16.popcnt_with_const_11" (func 18)) + (export "i8x16.min_s_with_const_12" (func 19)) + (export "i8x16.min_s_with_const_13" (func 20)) + (export "i8x16.min_u_with_const_14" (func 21)) + (export "i8x16.min_u_with_const_15" (func 22)) + (export "i8x16.max_s_with_const_16" (func 23)) + (export "i8x16.max_s_with_const_17" (func 24)) + (export "i8x16.max_u_with_const_18" (func 25)) + (export "i8x16.max_u_with_const_19" (func 26)) + (export "i8x16.avgr_u_with_const_20" (func 27)) + (export "i8x16.avgr_u_with_const_21" (func 28)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -143,33 +172,4 @@ v128.const i32x4 0x00000000 0x01010101 0x02020202 0x03030303 i8x16.avgr_u ) - (export "i8x16.min_s" (func 0)) - (export "i8x16.min_u" (func 1)) - (export "i8x16.max_s" (func 2)) - (export "i8x16.max_u" (func 3)) - (export "i8x16.avgr_u" (func 4)) - (export "i8x16.abs" (func 5)) - (export "i8x16.popcnt" (func 6)) - (export "i8x16.min_s_with_const_0" (func 7)) - (export "i8x16.min_s_with_const_1" (func 8)) - (export "i8x16.min_u_with_const_2" (func 9)) - (export "i8x16.min_u_with_const_3" (func 10)) - (export "i8x16.max_s_with_const_4" (func 11)) - (export "i8x16.max_s_with_const_5" (func 12)) - (export "i8x16.max_u_with_const_6" (func 13)) - (export "i8x16.max_u_with_const_7" (func 14)) - (export "i8x16.avgr_u_with_const_8" (func 15)) - (export "i8x16.avgr_u_with_const_9" (func 16)) - (export "i8x16.abs_with_const_10" (func 17)) - (export "i8x16.popcnt_with_const_11" (func 18)) - (export "i8x16.min_s_with_const_12" (func 19)) - (export "i8x16.min_s_with_const_13" (func 20)) - (export "i8x16.min_u_with_const_14" (func 21)) - (export "i8x16.min_u_with_const_15" (func 22)) - (export "i8x16.max_s_with_const_16" (func 23)) - (export "i8x16.max_s_with_const_17" (func 24)) - (export "i8x16.max_u_with_const_18" (func 25)) - (export "i8x16.max_u_with_const_19" (func 26)) - (export "i8x16.avgr_u_with_const_20" (func 27)) - (export "i8x16.avgr_u_with_const_21" (func 28)) ) diff --git a/tests/snapshots/testsuite/simd_i8x16_arith2.wast/161.print b/tests/snapshots/testsuite/simd_i8x16_arith2.wast/161.print index 3404d49164..76df01e659 100644 --- a/tests/snapshots/testsuite/simd_i8x16_arith2.wast/161.print +++ b/tests/snapshots/testsuite/simd_i8x16_arith2.wast/161.print @@ -2,6 +2,55 @@ (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) (type (;2;) (func (param v128) (result v128))) + (export "i8x16.min_s-i8x16.avgr_u" (func 0)) + (export "i8x16.min_s-i8x16.max_u" (func 1)) + (export "i8x16.min_s-i8x16.max_s" (func 2)) + (export "i8x16.min_s-i8x16.min_u" (func 3)) + (export "i8x16.min_s-i8x16.min_s" (func 4)) + (export "i8x16.min_s-i8x16.abs" (func 5)) + (export "i8x16.abs-i8x16.min_s" (func 6)) + (export "i8x16.min_s-i8x16.popcnt" (func 7)) + (export "i8x16.popcnt-i8x16.min_s" (func 8)) + (export "i8x16.min_u-i8x16.avgr_u" (func 9)) + (export "i8x16.min_u-i8x16.max_u" (func 10)) + (export "i8x16.min_u-i8x16.max_s" (func 11)) + (export "i8x16.min_u-i8x16.min_u" (func 12)) + (export "i8x16.min_u-i8x16.min_s" (func 13)) + (export "i8x16.min_u-i8x16.abs" (func 14)) + (export "i8x16.abs-i8x16.min_u" (func 15)) + (export "i8x16.min_u-i8x16.popcnt" (func 16)) + (export "i8x16.popcnt-i8x16.min_u" (func 17)) + (export "i8x16.max_s-i8x16.avgr_u" (func 18)) + (export "i8x16.max_s-i8x16.max_u" (func 19)) + (export "i8x16.max_s-i8x16.max_s" (func 20)) + (export "i8x16.max_s-i8x16.min_u" (func 21)) + (export "i8x16.max_s-i8x16.min_s" (func 22)) + (export "i8x16.max_s-i8x16.abs" (func 23)) + (export "i8x16.abs-i8x16.max_s" (func 24)) + (export "i8x16.max_s-i8x16.popcnt" (func 25)) + (export "i8x16.popcnt-i8x16.max_s" (func 26)) + (export "i8x16.max_u-i8x16.avgr_u" (func 27)) + (export "i8x16.max_u-i8x16.max_u" (func 28)) + (export "i8x16.max_u-i8x16.max_s" (func 29)) + (export "i8x16.max_u-i8x16.min_u" (func 30)) + (export "i8x16.max_u-i8x16.min_s" (func 31)) + (export "i8x16.max_u-i8x16.abs" (func 32)) + (export "i8x16.abs-i8x16.max_u" (func 33)) + (export "i8x16.max_u-i8x16.popcnt" (func 34)) + (export "i8x16.popcnt-i8x16.max_u" (func 35)) + (export "i8x16.avgr_u-i8x16.avgr_u" (func 36)) + (export "i8x16.avgr_u-i8x16.max_u" (func 37)) + (export "i8x16.avgr_u-i8x16.max_s" (func 38)) + (export "i8x16.avgr_u-i8x16.min_u" (func 39)) + (export "i8x16.avgr_u-i8x16.min_s" (func 40)) + (export "i8x16.avgr_u-i8x16.abs" (func 41)) + (export "i8x16.abs-i8x16.avgr_u" (func 42)) + (export "i8x16.avgr_u-i8x16.popcnt" (func 43)) + (export "i8x16.popcnt-i8x16.avgr_u" (func 44)) + (export "i8x16.abs-i8x16.popcnt" (func 45)) + (export "i8x16.abs-i8x16.abs" (func 46)) + (export "i8x16.popcnt-i8x16.popcnt" (func 47)) + (export "i8x16.popcnt-i8x16.abs" (func 48)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -317,53 +366,4 @@ i8x16.abs i8x16.popcnt ) - (export "i8x16.min_s-i8x16.avgr_u" (func 0)) - (export "i8x16.min_s-i8x16.max_u" (func 1)) - (export "i8x16.min_s-i8x16.max_s" (func 2)) - (export "i8x16.min_s-i8x16.min_u" (func 3)) - (export "i8x16.min_s-i8x16.min_s" (func 4)) - (export "i8x16.min_s-i8x16.abs" (func 5)) - (export "i8x16.abs-i8x16.min_s" (func 6)) - (export "i8x16.min_s-i8x16.popcnt" (func 7)) - (export "i8x16.popcnt-i8x16.min_s" (func 8)) - (export "i8x16.min_u-i8x16.avgr_u" (func 9)) - (export "i8x16.min_u-i8x16.max_u" (func 10)) - (export "i8x16.min_u-i8x16.max_s" (func 11)) - (export "i8x16.min_u-i8x16.min_u" (func 12)) - (export "i8x16.min_u-i8x16.min_s" (func 13)) - (export "i8x16.min_u-i8x16.abs" (func 14)) - (export "i8x16.abs-i8x16.min_u" (func 15)) - (export "i8x16.min_u-i8x16.popcnt" (func 16)) - (export "i8x16.popcnt-i8x16.min_u" (func 17)) - (export "i8x16.max_s-i8x16.avgr_u" (func 18)) - (export "i8x16.max_s-i8x16.max_u" (func 19)) - (export "i8x16.max_s-i8x16.max_s" (func 20)) - (export "i8x16.max_s-i8x16.min_u" (func 21)) - (export "i8x16.max_s-i8x16.min_s" (func 22)) - (export "i8x16.max_s-i8x16.abs" (func 23)) - (export "i8x16.abs-i8x16.max_s" (func 24)) - (export "i8x16.max_s-i8x16.popcnt" (func 25)) - (export "i8x16.popcnt-i8x16.max_s" (func 26)) - (export "i8x16.max_u-i8x16.avgr_u" (func 27)) - (export "i8x16.max_u-i8x16.max_u" (func 28)) - (export "i8x16.max_u-i8x16.max_s" (func 29)) - (export "i8x16.max_u-i8x16.min_u" (func 30)) - (export "i8x16.max_u-i8x16.min_s" (func 31)) - (export "i8x16.max_u-i8x16.abs" (func 32)) - (export "i8x16.abs-i8x16.max_u" (func 33)) - (export "i8x16.max_u-i8x16.popcnt" (func 34)) - (export "i8x16.popcnt-i8x16.max_u" (func 35)) - (export "i8x16.avgr_u-i8x16.avgr_u" (func 36)) - (export "i8x16.avgr_u-i8x16.max_u" (func 37)) - (export "i8x16.avgr_u-i8x16.max_s" (func 38)) - (export "i8x16.avgr_u-i8x16.min_u" (func 39)) - (export "i8x16.avgr_u-i8x16.min_s" (func 40)) - (export "i8x16.avgr_u-i8x16.abs" (func 41)) - (export "i8x16.abs-i8x16.avgr_u" (func 42)) - (export "i8x16.avgr_u-i8x16.popcnt" (func 43)) - (export "i8x16.popcnt-i8x16.avgr_u" (func 44)) - (export "i8x16.abs-i8x16.popcnt" (func 45)) - (export "i8x16.abs-i8x16.abs" (func 46)) - (export "i8x16.popcnt-i8x16.popcnt" (func 47)) - (export "i8x16.popcnt-i8x16.abs" (func 48)) ) diff --git a/tests/snapshots/testsuite/simd_i8x16_cmp.wast/0.print b/tests/snapshots/testsuite/simd_i8x16_cmp.wast/0.print index c5c41ab9f3..2547615e74 100644 --- a/tests/snapshots/testsuite/simd_i8x16_cmp.wast/0.print +++ b/tests/snapshots/testsuite/simd_i8x16_cmp.wast/0.print @@ -1,5 +1,15 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "eq" (func 0)) + (export "ne" (func 1)) + (export "lt_s" (func 2)) + (export "lt_u" (func 3)) + (export "le_s" (func 4)) + (export "le_u" (func 5)) + (export "gt_s" (func 6)) + (export "gt_u" (func 7)) + (export "ge_s" (func 8)) + (export "ge_u" (func 9)) (func (;0;) (type 0) (param $x v128) (param $y v128) (result v128) local.get $x local.get $y @@ -50,14 +60,4 @@ local.get $y i8x16.ge_u ) - (export "eq" (func 0)) - (export "ne" (func 1)) - (export "lt_s" (func 2)) - (export "lt_u" (func 3)) - (export "le_s" (func 4)) - (export "le_u" (func 5)) - (export "gt_s" (func 6)) - (export "gt_u" (func 7)) - (export "ge_s" (func 8)) - (export "ge_u" (func 9)) ) diff --git a/tests/snapshots/testsuite/simd_i8x16_cmp.wast/411.print b/tests/snapshots/testsuite/simd_i8x16_cmp.wast/411.print index 8a2861451d..05cc500f89 100644 --- a/tests/snapshots/testsuite/simd_i8x16_cmp.wast/411.print +++ b/tests/snapshots/testsuite/simd_i8x16_cmp.wast/411.print @@ -1,5 +1,19 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "eq-in-block" (func 0)) + (export "ne-in-block" (func 1)) + (export "lt_s-in-block" (func 2)) + (export "le_u-in-block" (func 3)) + (export "gt_u-in-block" (func 4)) + (export "ge_s-in-block" (func 5)) + (export "nested-eq" (func 6)) + (export "nested-ne" (func 7)) + (export "nested-lt_s" (func 8)) + (export "nested-le_u" (func 9)) + (export "nested-gt_u" (func 10)) + (export "nested-ge_s" (func 11)) + (export "as-param" (func 12)) (func (;0;) (type 0) block ;; label = @1 block (result v128) ;; label = @2 @@ -278,18 +292,4 @@ i8x16.ge_u drop ) - (memory (;0;) 1) - (export "eq-in-block" (func 0)) - (export "ne-in-block" (func 1)) - (export "lt_s-in-block" (func 2)) - (export "le_u-in-block" (func 3)) - (export "gt_u-in-block" (func 4)) - (export "ge_s-in-block" (func 5)) - (export "nested-eq" (func 6)) - (export "nested-ne" (func 7)) - (export "nested-lt_s" (func 8)) - (export "nested-le_u" (func 9)) - (export "nested-gt_u" (func 10)) - (export "nested-ge_s" (func 11)) - (export "as-param" (func 12)) ) diff --git a/tests/snapshots/testsuite/simd_i8x16_sat_arith.wast/0.print b/tests/snapshots/testsuite/simd_i8x16_sat_arith.wast/0.print index e3f4d647a4..1fc5071913 100644 --- a/tests/snapshots/testsuite/simd_i8x16_sat_arith.wast/0.print +++ b/tests/snapshots/testsuite/simd_i8x16_sat_arith.wast/0.print @@ -1,5 +1,9 @@ (module (type (;0;) (func (param v128 v128) (result v128))) + (export "i8x16.add_sat_s" (func 0)) + (export "i8x16.add_sat_u" (func 1)) + (export "i8x16.sub_sat_s" (func 2)) + (export "i8x16.sub_sat_u" (func 3)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -20,8 +24,4 @@ local.get 1 i8x16.sub_sat_u ) - (export "i8x16.add_sat_s" (func 0)) - (export "i8x16.add_sat_u" (func 1)) - (export "i8x16.sub_sat_s" (func 2)) - (export "i8x16.sub_sat_u" (func 3)) ) diff --git a/tests/snapshots/testsuite/simd_i8x16_sat_arith.wast/205.print b/tests/snapshots/testsuite/simd_i8x16_sat_arith.wast/205.print index 1568018977..8d20e889c9 100644 --- a/tests/snapshots/testsuite/simd_i8x16_sat_arith.wast/205.print +++ b/tests/snapshots/testsuite/simd_i8x16_sat_arith.wast/205.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (param v128 v128 v128) (result v128))) (type (;1;) (func (param v128 v128) (result v128))) + (export "sat-add_s-sub_s" (func 0)) + (export "sat-add_s-sub_u" (func 1)) + (export "sat-add_u-sub_s" (func 2)) + (export "sat-add_u-sub_u" (func 3)) + (export "sat-add_s-neg" (func 4)) + (export "sat-add_u-neg" (func 5)) + (export "sat-sub_s-neg" (func 6)) + (export "sat-sub_u-neg" (func 7)) (func (;0;) (type 0) (param v128 v128 v128) (result v128) local.get 0 local.get 1 @@ -53,12 +61,4 @@ local.get 1 i8x16.sub_sat_u ) - (export "sat-add_s-sub_s" (func 0)) - (export "sat-add_s-sub_u" (func 1)) - (export "sat-add_u-sub_s" (func 2)) - (export "sat-add_u-sub_u" (func 3)) - (export "sat-add_s-neg" (func 4)) - (export "sat-add_u-neg" (func 5)) - (export "sat-sub_s-neg" (func 6)) - (export "sat-sub_u-neg" (func 7)) ) diff --git a/tests/snapshots/testsuite/simd_int_to_int_extend.wast/0.print b/tests/snapshots/testsuite/simd_int_to_int_extend.wast/0.print index 92988c9a86..47e8027c33 100644 --- a/tests/snapshots/testsuite/simd_int_to_int_extend.wast/0.print +++ b/tests/snapshots/testsuite/simd_int_to_int_extend.wast/0.print @@ -1,5 +1,17 @@ (module (type (;0;) (func (param v128) (result v128))) + (export "i16x8.extend_high_i8x16_s" (func 0)) + (export "i16x8.extend_high_i8x16_u" (func 1)) + (export "i16x8.extend_low_i8x16_s" (func 2)) + (export "i16x8.extend_low_i8x16_u" (func 3)) + (export "i32x4.extend_high_i16x8_s" (func 4)) + (export "i32x4.extend_high_i16x8_u" (func 5)) + (export "i32x4.extend_low_i16x8_s" (func 6)) + (export "i32x4.extend_low_i16x8_u" (func 7)) + (export "i64x2.extend_high_i32x4_s" (func 8)) + (export "i64x2.extend_high_i32x4_u" (func 9)) + (export "i64x2.extend_low_i32x4_s" (func 10)) + (export "i64x2.extend_low_i32x4_u" (func 11)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i16x8.extend_high_i8x16_s @@ -48,16 +60,4 @@ local.get 0 i64x2.extend_low_i32x4_u ) - (export "i16x8.extend_high_i8x16_s" (func 0)) - (export "i16x8.extend_high_i8x16_u" (func 1)) - (export "i16x8.extend_low_i8x16_s" (func 2)) - (export "i16x8.extend_low_i8x16_u" (func 3)) - (export "i32x4.extend_high_i16x8_s" (func 4)) - (export "i32x4.extend_high_i16x8_u" (func 5)) - (export "i32x4.extend_low_i16x8_s" (func 6)) - (export "i32x4.extend_low_i16x8_u" (func 7)) - (export "i64x2.extend_high_i32x4_s" (func 8)) - (export "i64x2.extend_high_i32x4_u" (func 9)) - (export "i64x2.extend_low_i32x4_s" (func 10)) - (export "i64x2.extend_low_i32x4_u" (func 11)) ) diff --git a/tests/snapshots/testsuite/simd_lane.wast/0.print b/tests/snapshots/testsuite/simd_lane.wast/0.print index b2f0c3763e..52581ca945 100644 --- a/tests/snapshots/testsuite/simd_lane.wast/0.print +++ b/tests/snapshots/testsuite/simd_lane.wast/0.print @@ -8,6 +8,42 @@ (type (;6;) (func (param v128 i64) (result v128))) (type (;7;) (func (param v128 f64) (result v128))) (type (;8;) (func (param v128 v128) (result v128))) + (export "i8x16_extract_lane_s-first" (func 0)) + (export "i8x16_extract_lane_s-last" (func 1)) + (export "i8x16_extract_lane_u-first" (func 2)) + (export "i8x16_extract_lane_u-last" (func 3)) + (export "i16x8_extract_lane_s-first" (func 4)) + (export "i16x8_extract_lane_s-last" (func 5)) + (export "i16x8_extract_lane_u-first" (func 6)) + (export "i16x8_extract_lane_u-last" (func 7)) + (export "i32x4_extract_lane-first" (func 8)) + (export "i32x4_extract_lane-last" (func 9)) + (export "f32x4_extract_lane-first" (func 10)) + (export "f32x4_extract_lane-last" (func 11)) + (export "i8x16_replace_lane-first" (func 12)) + (export "i8x16_replace_lane-last" (func 13)) + (export "i16x8_replace_lane-first" (func 14)) + (export "i16x8_replace_lane-last" (func 15)) + (export "i32x4_replace_lane-first" (func 16)) + (export "i32x4_replace_lane-last" (func 17)) + (export "f32x4_replace_lane-first" (func 18)) + (export "f32x4_replace_lane-last" (func 19)) + (export "i64x2_extract_lane-first" (func 20)) + (export "i64x2_extract_lane-last" (func 21)) + (export "f64x2_extract_lane-first" (func 22)) + (export "f64x2_extract_lane-last" (func 23)) + (export "i64x2_replace_lane-first" (func 24)) + (export "i64x2_replace_lane-last" (func 25)) + (export "f64x2_replace_lane-first" (func 26)) + (export "f64x2_replace_lane-last" (func 27)) + (export "v8x16_swizzle" (func 28)) + (export "v8x16_shuffle-1" (func 29)) + (export "v8x16_shuffle-2" (func 30)) + (export "v8x16_shuffle-3" (func 31)) + (export "v8x16_shuffle-4" (func 32)) + (export "v8x16_shuffle-5" (func 33)) + (export "v8x16_shuffle-6" (func 34)) + (export "v8x16_shuffle-7" (func 35)) (func (;0;) (type 0) (param v128) (result i32) local.get 0 i8x16.extract_lane_s 0 @@ -172,40 +208,4 @@ local.get 1 i8x16.shuffle 0 0 0 0 0 0 0 0 16 16 16 16 16 16 16 16 ) - (export "i8x16_extract_lane_s-first" (func 0)) - (export "i8x16_extract_lane_s-last" (func 1)) - (export "i8x16_extract_lane_u-first" (func 2)) - (export "i8x16_extract_lane_u-last" (func 3)) - (export "i16x8_extract_lane_s-first" (func 4)) - (export "i16x8_extract_lane_s-last" (func 5)) - (export "i16x8_extract_lane_u-first" (func 6)) - (export "i16x8_extract_lane_u-last" (func 7)) - (export "i32x4_extract_lane-first" (func 8)) - (export "i32x4_extract_lane-last" (func 9)) - (export "f32x4_extract_lane-first" (func 10)) - (export "f32x4_extract_lane-last" (func 11)) - (export "i8x16_replace_lane-first" (func 12)) - (export "i8x16_replace_lane-last" (func 13)) - (export "i16x8_replace_lane-first" (func 14)) - (export "i16x8_replace_lane-last" (func 15)) - (export "i32x4_replace_lane-first" (func 16)) - (export "i32x4_replace_lane-last" (func 17)) - (export "f32x4_replace_lane-first" (func 18)) - (export "f32x4_replace_lane-last" (func 19)) - (export "i64x2_extract_lane-first" (func 20)) - (export "i64x2_extract_lane-last" (func 21)) - (export "f64x2_extract_lane-first" (func 22)) - (export "f64x2_extract_lane-last" (func 23)) - (export "i64x2_replace_lane-first" (func 24)) - (export "i64x2_replace_lane-last" (func 25)) - (export "f64x2_replace_lane-first" (func 26)) - (export "f64x2_replace_lane-last" (func 27)) - (export "v8x16_swizzle" (func 28)) - (export "v8x16_shuffle-1" (func 29)) - (export "v8x16_shuffle-2" (func 30)) - (export "v8x16_shuffle-3" (func 31)) - (export "v8x16_shuffle-4" (func 32)) - (export "v8x16_shuffle-5" (func 33)) - (export "v8x16_shuffle-6" (func 34)) - (export "v8x16_shuffle-7" (func 35)) ) diff --git a/tests/snapshots/testsuite/simd_lane.wast/360.print b/tests/snapshots/testsuite/simd_lane.wast/360.print index 4950536dec..ee382606ad 100644 --- a/tests/snapshots/testsuite/simd_lane.wast/360.print +++ b/tests/snapshots/testsuite/simd_lane.wast/360.print @@ -6,6 +6,24 @@ (type (;4;) (func (param v128 f64) (result f64))) (type (;5;) (func (param v128 i32 v128) (result v128))) (type (;6;) (func (param v128 i32 v128 i32) (result v128))) + (export "i8x16_extract_lane_s" (func 0)) + (export "i8x16_extract_lane_u" (func 1)) + (export "i16x8_extract_lane_s" (func 2)) + (export "i16x8_extract_lane_u" (func 3)) + (export "i32x4_extract_lane" (func 4)) + (export "f32x4_extract_lane" (func 5)) + (export "i64x2_extract_lane" (func 6)) + (export "f64x2_extract_lane" (func 7)) + (export "i8x16_replace_lane-s" (func 8)) + (export "i8x16_replace_lane-u" (func 9)) + (export "i16x8_replace_lane-s" (func 10)) + (export "i16x8_replace_lane-u" (func 11)) + (export "i32x4_replace_lane" (func 12)) + (export "f32x4_replace_lane" (func 13)) + (export "i64x2_replace_lane" (func 14)) + (export "f64x2_replace_lane" (func 15)) + (export "as-v8x16_swizzle-operand" (func 16)) + (export "as-v8x16_shuffle-operands" (func 17)) (func (;0;) (type 0) (param v128 v128) (result v128) local.get 0 local.get 1 @@ -118,22 +136,4 @@ i8x16.replace_lane 15 i8x16.shuffle 16 1 18 3 20 5 22 7 24 9 26 11 28 13 30 15 ) - (export "i8x16_extract_lane_s" (func 0)) - (export "i8x16_extract_lane_u" (func 1)) - (export "i16x8_extract_lane_s" (func 2)) - (export "i16x8_extract_lane_u" (func 3)) - (export "i32x4_extract_lane" (func 4)) - (export "f32x4_extract_lane" (func 5)) - (export "i64x2_extract_lane" (func 6)) - (export "f64x2_extract_lane" (func 7)) - (export "i8x16_replace_lane-s" (func 8)) - (export "i8x16_replace_lane-u" (func 9)) - (export "i16x8_replace_lane-s" (func 10)) - (export "i16x8_replace_lane-u" (func 11)) - (export "i32x4_replace_lane" (func 12)) - (export "f32x4_replace_lane" (func 13)) - (export "i64x2_replace_lane" (func 14)) - (export "f64x2_replace_lane" (func 15)) - (export "as-v8x16_swizzle-operand" (func 16)) - (export "as-v8x16_shuffle-operands" (func 17)) ) diff --git a/tests/snapshots/testsuite/simd_lane.wast/379.print b/tests/snapshots/testsuite/simd_lane.wast/379.print index 9ad2453bba..964c1d4a11 100644 --- a/tests/snapshots/testsuite/simd_lane.wast/379.print +++ b/tests/snapshots/testsuite/simd_lane.wast/379.print @@ -6,6 +6,24 @@ (type (;4;) (func (param v128 i32) (result i32))) (type (;5;) (func (param v128 i64) (result i32))) (type (;6;) (func (param v128 v128) (result i32))) + (export "as-i8x16_splat-operand" (func 0)) + (export "as-i16x8_splat-operand" (func 1)) + (export "as-i32x4_splat-operand" (func 2)) + (export "as-f32x4_splat-operand" (func 3)) + (export "as-i64x2_splat-operand" (func 4)) + (export "as-f64x2_splat-operand" (func 5)) + (export "as-i8x16_add-operands" (func 6)) + (export "as-i16x8_add-operands" (func 7)) + (export "as-i32x4_add-operands" (func 8)) + (export "as-i64x2_add-operands" (func 9)) + (export "swizzle-as-i8x16_add-operands" (func 10)) + (export "shuffle-as-i8x16_sub-operands" (func 11)) + (export "as-i8x16_any_true-operand" (func 12)) + (export "as-i16x8_any_true-operand" (func 13)) + (export "as-i32x4_any_true-operand1" (func 14)) + (export "as-i32x4_any_true-operand2" (func 15)) + (export "swizzle-as-i8x16_all_true-operands" (func 16)) + (export "shuffle-as-i8x16_any_true-operands" (func 17)) (func (;0;) (type 0) (param v128) (result v128) local.get 0 i8x16.extract_lane_s 0 @@ -126,22 +144,4 @@ i8x16.shuffle 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 v128.any_true ) - (export "as-i8x16_splat-operand" (func 0)) - (export "as-i16x8_splat-operand" (func 1)) - (export "as-i32x4_splat-operand" (func 2)) - (export "as-f32x4_splat-operand" (func 3)) - (export "as-i64x2_splat-operand" (func 4)) - (export "as-f64x2_splat-operand" (func 5)) - (export "as-i8x16_add-operands" (func 6)) - (export "as-i16x8_add-operands" (func 7)) - (export "as-i32x4_add-operands" (func 8)) - (export "as-i64x2_add-operands" (func 9)) - (export "swizzle-as-i8x16_add-operands" (func 10)) - (export "shuffle-as-i8x16_sub-operands" (func 11)) - (export "as-i8x16_any_true-operand" (func 12)) - (export "as-i16x8_any_true-operand" (func 13)) - (export "as-i32x4_any_true-operand1" (func 14)) - (export "as-i32x4_any_true-operand2" (func 15)) - (export "swizzle-as-i8x16_all_true-operands" (func 16)) - (export "shuffle-as-i8x16_any_true-operands" (func 17)) ) diff --git a/tests/snapshots/testsuite/simd_lane.wast/399.print b/tests/snapshots/testsuite/simd_lane.wast/399.print index 93fdf8651f..13d06074fb 100644 --- a/tests/snapshots/testsuite/simd_lane.wast/399.print +++ b/tests/snapshots/testsuite/simd_lane.wast/399.print @@ -3,6 +3,13 @@ (type (;1;) (func (param v128 f32) (result v128))) (type (;2;) (func (param v128 i64) (result v128))) (type (;3;) (func (param v128 f64) (result v128))) + (memory (;0;) 1) + (export "as-v128_store-operand-1" (func 0)) + (export "as-v128_store-operand-2" (func 1)) + (export "as-v128_store-operand-3" (func 2)) + (export "as-v128_store-operand-4" (func 3)) + (export "as-v128_store-operand-5" (func 4)) + (export "as-v128_store-operand-6" (func 5)) (func (;0;) (type 0) (param v128 i32) (result v128) i32.const 0 local.get 0 @@ -57,11 +64,4 @@ i32.const 0 v128.load ) - (memory (;0;) 1) - (export "as-v128_store-operand-1" (func 0)) - (export "as-v128_store-operand-2" (func 1)) - (export "as-v128_store-operand-3" (func 2)) - (export "as-v128_store-operand-4" (func 3)) - (export "as-v128_store-operand-5" (func 4)) - (export "as-v128_store-operand-6" (func 5)) ) diff --git a/tests/snapshots/testsuite/simd_lane.wast/406.print b/tests/snapshots/testsuite/simd_lane.wast/406.print index 1678bb6414..e8cd025ff2 100644 --- a/tests/snapshots/testsuite/simd_lane.wast/406.print +++ b/tests/snapshots/testsuite/simd_lane.wast/406.print @@ -5,6 +5,16 @@ (type (;3;) (func (param v128 v128) (result v128))) (type (;4;) (func (param v128) (result i64))) (type (;5;) (func (param v128 f64) (result v128))) + (global $g (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (global $h (;1;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (export "as-if-condition-value" (func 0)) + (export "as-return-value-1" (func 1)) + (export "as-local_set-value" (func 2)) + (export "as-global_set-value-1" (func 3)) + (export "as-return-value-2" (func 4)) + (export "as-global_set-value-2" (func 5)) + (export "as-local_set-value-1" (func 6)) + (export "as-global_set-value-3" (func 7)) (func (;0;) (type 0) (param v128) (result i32) local.get 0 i8x16.extract_lane_s 0 @@ -66,14 +76,4 @@ global.get $g return ) - (global $g (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (global $h (;1;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (export "as-if-condition-value" (func 0)) - (export "as-return-value-1" (func 1)) - (export "as-local_set-value" (func 2)) - (export "as-global_set-value-1" (func 3)) - (export "as-return-value-2" (func 4)) - (export "as-global_set-value-2" (func 5)) - (export "as-local_set-value-1" (func 6)) - (export "as-global_set-value-3" (func 7)) ) diff --git a/tests/snapshots/testsuite/simd_load.wast/0.print b/tests/snapshots/testsuite/simd_load.wast/0.print index f431cf57cd..0fa3de46ef 100644 --- a/tests/snapshots/testsuite/simd_load.wast/0.print +++ b/tests/snapshots/testsuite/simd_load.wast/0.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "v128.load" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load ) - (memory (;0;) 1) - (export "v128.load" (func 0)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\00\01\02\03") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/11.print b/tests/snapshots/testsuite/simd_load.wast/11.print index ed5007bc49..1ee0779771 100644 --- a/tests/snapshots/testsuite/simd_load.wast/11.print +++ b/tests/snapshots/testsuite/simd_load.wast/11.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-v128.bitselect-operand" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load @@ -9,8 +11,6 @@ v128.load v128.bitselect ) - (memory (;0;) 1) - (export "as-v128.bitselect-operand" (func 0)) (data (;0;) (i32.const 0) "\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa") (data (;1;) (i32.const 16) "\bb\bb\bb\bb\bb\bb\bb\bb\bb\bb\bb\bb\bb\bb\bb\bb") (data (;2;) (i32.const 32) "\f0\f0\f0\f0\ff\ff\ff\ff\00\00\00\00\ff\00\ff\00") diff --git a/tests/snapshots/testsuite/simd_load.wast/13.print b/tests/snapshots/testsuite/simd_load.wast/13.print index 526a09e70d..bae32e11ac 100644 --- a/tests/snapshots/testsuite/simd_load.wast/13.print +++ b/tests/snapshots/testsuite/simd_load.wast/13.print @@ -1,12 +1,12 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-i8x16.shl-operand" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load i32.const 1 i8x16.shl ) - (memory (;0;) 1) - (export "as-i8x16.shl-operand" (func 0)) (data (;0;) (i32.const 0) "\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/15.print b/tests/snapshots/testsuite/simd_load.wast/15.print index cca6e4d0b1..4bccab5b44 100644 --- a/tests/snapshots/testsuite/simd_load.wast/15.print +++ b/tests/snapshots/testsuite/simd_load.wast/15.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-add/sub-operand" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load @@ -10,8 +12,6 @@ v128.load i8x16.sub ) - (memory (;0;) 1) - (export "as-add/sub-operand" (func 0)) (data (;0;) (i32.const 0) "\02\00\00\00\02\00\00\00\02\00\00\00\02\00\00\00") (data (;1;) (i32.const 16) "\03\00\00\00\03\00\00\00\03\00\00\00\03\00\00\00") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/17.print b/tests/snapshots/testsuite/simd_load.wast/17.print index 92cf4999da..1836bba1cb 100644 --- a/tests/snapshots/testsuite/simd_load.wast/17.print +++ b/tests/snapshots/testsuite/simd_load.wast/17.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-f32x4.mul-operand" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load @@ -7,8 +9,6 @@ v128.load f32x4.mul ) - (memory (;0;) 1) - (export "as-f32x4.mul-operand" (func 0)) (data (;0;) (i32.const 0) "\00\00\00C\00\00\80?ff\e6?\00\00\80\bf") (data (;1;) (i32.const 16) "\00\00\00@\00\00\00@\00\00\00@\00\00\00@") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/19.print b/tests/snapshots/testsuite/simd_load.wast/19.print index a04625f1ba..ed09611280 100644 --- a/tests/snapshots/testsuite/simd_load.wast/19.print +++ b/tests/snapshots/testsuite/simd_load.wast/19.print @@ -1,11 +1,11 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-f32x4.abs-operand" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load f32x4.abs ) - (memory (;0;) 1) - (export "as-f32x4.abs-operand" (func 0)) (data (;0;) (i32.const 0) "\ff\ff\ff\ff\ff\ff\ff\ff\ff\ff\ff\ff\ff\ff\ff\ff") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/21.print b/tests/snapshots/testsuite/simd_load.wast/21.print index e916ddb248..64f17fa330 100644 --- a/tests/snapshots/testsuite/simd_load.wast/21.print +++ b/tests/snapshots/testsuite/simd_load.wast/21.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-f32x4.min-operand" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load @@ -7,8 +9,6 @@ v128.load offset=16 f32x4.min ) - (memory (;0;) 1) - (export "as-f32x4.min-operand" (func 0)) (data (;0;) (i32.const 0) "\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa\aa") (data (;1;) (i32.const 16) "\02\00\00\00\02\00\00\00\02\00\00\00\02\00\00\00") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/23.print b/tests/snapshots/testsuite/simd_load.wast/23.print index 7ff994febb..77cd7675c9 100644 --- a/tests/snapshots/testsuite/simd_load.wast/23.print +++ b/tests/snapshots/testsuite/simd_load.wast/23.print @@ -1,11 +1,11 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-i32x4.trunc_sat_f32x4_s-operand" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load i32x4.trunc_sat_f32x4_s ) - (memory (;0;) 1) - (export "as-i32x4.trunc_sat_f32x4_s-operand" (func 0)) (data (;0;) (i32.const 0) "\00\00\00C\00\00\80?ff\e6?\00\00\80\bf") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/25.print b/tests/snapshots/testsuite/simd_load.wast/25.print index 9500199d0b..6652a8c098 100644 --- a/tests/snapshots/testsuite/simd_load.wast/25.print +++ b/tests/snapshots/testsuite/simd_load.wast/25.print @@ -1,11 +1,11 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-f32x4.convert_i32x4_u-operand" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load f32x4.convert_i32x4_u ) - (memory (;0;) 1) - (export "as-f32x4.convert_i32x4_u-operand" (func 0)) (data (;0;) (i32.const 0) "\02\00\00\00\02\00\00\00\02\00\00\00\02\00\00\00") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/27.print b/tests/snapshots/testsuite/simd_load.wast/27.print index e7a3bd324f..2fea946441 100644 --- a/tests/snapshots/testsuite/simd_load.wast/27.print +++ b/tests/snapshots/testsuite/simd_load.wast/27.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-i8x16.swizzle-operand" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load @@ -7,8 +9,6 @@ v128.load offset=15 i8x16.swizzle ) - (memory (;0;) 1) - (export "as-i8x16.swizzle-operand" (func 0)) (data (;0;) (i32.const 0) "defghijklmnopqrs") (data (;1;) (i32.const 16) "\0f\0e\0d\0c\0b\0a\09\08\07\06\05\04\03\02\01\00") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/29.print b/tests/snapshots/testsuite/simd_load.wast/29.print index 0d81b3fe1e..bbcc094629 100644 --- a/tests/snapshots/testsuite/simd_load.wast/29.print +++ b/tests/snapshots/testsuite/simd_load.wast/29.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-br-value" (func 0)) (func (;0;) (type 0) (result v128) block (result v128) ;; label = @1 i32.const 0 @@ -7,7 +9,5 @@ br 0 (;@1;) end ) - (memory (;0;) 1) - (export "as-br-value" (func 0)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\00\01\02\03") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/4.print b/tests/snapshots/testsuite/simd_load.wast/4.print index 9cd6876d2c..6955604d01 100644 --- a/tests/snapshots/testsuite/simd_load.wast/4.print +++ b/tests/snapshots/testsuite/simd_load.wast/4.print @@ -1,11 +1,11 @@ (module (type (;0;) (func (result i32))) + (memory (;0;) 1) + (export "as-i8x16_extract_lane_s-value/0" (func 0)) (func (;0;) (type 0) (result i32) i32.const 0 v128.load i8x16.extract_lane_s 0 ) - (memory (;0;) 1) - (export "as-i8x16_extract_lane_s-value/0" (func 0)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\00\01\02\03") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/6.print b/tests/snapshots/testsuite/simd_load.wast/6.print index c0689f388a..c04f885bf9 100644 --- a/tests/snapshots/testsuite/simd_load.wast/6.print +++ b/tests/snapshots/testsuite/simd_load.wast/6.print @@ -1,5 +1,7 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "as-i8x16.eq-operand" (func 0)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load @@ -7,7 +9,5 @@ v128.load offset=16 i8x16.eq ) - (memory (;0;) 1) - (export "as-i8x16.eq-operand" (func 0)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\00\01\02\03") ) diff --git a/tests/snapshots/testsuite/simd_load.wast/8.print b/tests/snapshots/testsuite/simd_load.wast/8.print index 7d0c439d1a..534ca75a08 100644 --- a/tests/snapshots/testsuite/simd_load.wast/8.print +++ b/tests/snapshots/testsuite/simd_load.wast/8.print @@ -1,6 +1,9 @@ (module (type (;0;) (func (result v128))) (type (;1;) (func (result i32))) + (memory (;0;) 1) + (export "as-v128.not-operand" (func 0)) + (export "as-i8x16.all_true-operand" (func 1)) (func (;0;) (type 0) (result v128) i32.const 0 v128.load @@ -11,8 +14,5 @@ v128.load i8x16.all_true ) - (memory (;0;) 1) - (export "as-v128.not-operand" (func 0)) - (export "as-i8x16.all_true-operand" (func 1)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\00\01\02\03") ) diff --git a/tests/snapshots/testsuite/simd_load16_lane.wast/0.print b/tests/snapshots/testsuite/simd_load16_lane.wast/0.print index ac5e70b21b..7890980c5f 100644 --- a/tests/snapshots/testsuite/simd_load16_lane.wast/0.print +++ b/tests/snapshots/testsuite/simd_load16_lane.wast/0.print @@ -1,6 +1,39 @@ (module (type (;0;) (func (param i32 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) + (memory (;0;) 1) + (export "v128.load16_lane_0" (func 0)) + (export "v128.load16_lane_1" (func 1)) + (export "v128.load16_lane_2" (func 2)) + (export "v128.load16_lane_3" (func 3)) + (export "v128.load16_lane_4" (func 4)) + (export "v128.load16_lane_5" (func 5)) + (export "v128.load16_lane_6" (func 6)) + (export "v128.load16_lane_7" (func 7)) + (export "v128.load16_lane_0_offset_0" (func 8)) + (export "v128.load16_lane_1_offset_1" (func 9)) + (export "v128.load16_lane_2_offset_2" (func 10)) + (export "v128.load16_lane_3_offset_3" (func 11)) + (export "v128.load16_lane_4_offset_4" (func 12)) + (export "v128.load16_lane_5_offset_5" (func 13)) + (export "v128.load16_lane_6_offset_6" (func 14)) + (export "v128.load16_lane_7_offset_7" (func 15)) + (export "v128.load16_lane_0_align_1" (func 16)) + (export "v128.load16_lane_0_align_2" (func 17)) + (export "v128.load16_lane_1_align_1" (func 18)) + (export "v128.load16_lane_1_align_2" (func 19)) + (export "v128.load16_lane_2_align_1" (func 20)) + (export "v128.load16_lane_2_align_2" (func 21)) + (export "v128.load16_lane_3_align_1" (func 22)) + (export "v128.load16_lane_3_align_2" (func 23)) + (export "v128.load16_lane_4_align_1" (func 24)) + (export "v128.load16_lane_4_align_2" (func 25)) + (export "v128.load16_lane_5_align_1" (func 26)) + (export "v128.load16_lane_5_align_2" (func 27)) + (export "v128.load16_lane_6_align_1" (func 28)) + (export "v128.load16_lane_6_align_2" (func 29)) + (export "v128.load16_lane_7_align_1" (func 30)) + (export "v128.load16_lane_7_align_2" (func 31)) (func (;0;) (type 0) (param $address i32) (param $x v128) (result v128) local.get $address local.get $x @@ -161,38 +194,5 @@ local.get $x v128.load16_lane 7 ) - (memory (;0;) 1) - (export "v128.load16_lane_0" (func 0)) - (export "v128.load16_lane_1" (func 1)) - (export "v128.load16_lane_2" (func 2)) - (export "v128.load16_lane_3" (func 3)) - (export "v128.load16_lane_4" (func 4)) - (export "v128.load16_lane_5" (func 5)) - (export "v128.load16_lane_6" (func 6)) - (export "v128.load16_lane_7" (func 7)) - (export "v128.load16_lane_0_offset_0" (func 8)) - (export "v128.load16_lane_1_offset_1" (func 9)) - (export "v128.load16_lane_2_offset_2" (func 10)) - (export "v128.load16_lane_3_offset_3" (func 11)) - (export "v128.load16_lane_4_offset_4" (func 12)) - (export "v128.load16_lane_5_offset_5" (func 13)) - (export "v128.load16_lane_6_offset_6" (func 14)) - (export "v128.load16_lane_7_offset_7" (func 15)) - (export "v128.load16_lane_0_align_1" (func 16)) - (export "v128.load16_lane_0_align_2" (func 17)) - (export "v128.load16_lane_1_align_1" (func 18)) - (export "v128.load16_lane_1_align_2" (func 19)) - (export "v128.load16_lane_2_align_1" (func 20)) - (export "v128.load16_lane_2_align_2" (func 21)) - (export "v128.load16_lane_3_align_1" (func 22)) - (export "v128.load16_lane_3_align_2" (func 23)) - (export "v128.load16_lane_4_align_1" (func 24)) - (export "v128.load16_lane_4_align_2" (func 25)) - (export "v128.load16_lane_5_align_1" (func 26)) - (export "v128.load16_lane_5_align_2" (func 27)) - (export "v128.load16_lane_6_align_1" (func 28)) - (export "v128.load16_lane_6_align_2" (func 29)) - (export "v128.load16_lane_7_align_1" (func 30)) - (export "v128.load16_lane_7_align_2" (func 31)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f") ) diff --git a/tests/snapshots/testsuite/simd_load32_lane.wast/0.print b/tests/snapshots/testsuite/simd_load32_lane.wast/0.print index 7671165d7c..763dfb69cc 100644 --- a/tests/snapshots/testsuite/simd_load32_lane.wast/0.print +++ b/tests/snapshots/testsuite/simd_load32_lane.wast/0.print @@ -1,6 +1,27 @@ (module (type (;0;) (func (param i32 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) + (memory (;0;) 1) + (export "v128.load32_lane_0" (func 0)) + (export "v128.load32_lane_1" (func 1)) + (export "v128.load32_lane_2" (func 2)) + (export "v128.load32_lane_3" (func 3)) + (export "v128.load32_lane_0_offset_0" (func 4)) + (export "v128.load32_lane_1_offset_1" (func 5)) + (export "v128.load32_lane_2_offset_2" (func 6)) + (export "v128.load32_lane_3_offset_3" (func 7)) + (export "v128.load32_lane_0_align_1" (func 8)) + (export "v128.load32_lane_0_align_2" (func 9)) + (export "v128.load32_lane_0_align_4" (func 10)) + (export "v128.load32_lane_1_align_1" (func 11)) + (export "v128.load32_lane_1_align_2" (func 12)) + (export "v128.load32_lane_1_align_4" (func 13)) + (export "v128.load32_lane_2_align_1" (func 14)) + (export "v128.load32_lane_2_align_2" (func 15)) + (export "v128.load32_lane_2_align_4" (func 16)) + (export "v128.load32_lane_3_align_1" (func 17)) + (export "v128.load32_lane_3_align_2" (func 18)) + (export "v128.load32_lane_3_align_4" (func 19)) (func (;0;) (type 0) (param $address i32) (param $x v128) (result v128) local.get $address local.get $x @@ -101,26 +122,5 @@ local.get $x v128.load32_lane 3 ) - (memory (;0;) 1) - (export "v128.load32_lane_0" (func 0)) - (export "v128.load32_lane_1" (func 1)) - (export "v128.load32_lane_2" (func 2)) - (export "v128.load32_lane_3" (func 3)) - (export "v128.load32_lane_0_offset_0" (func 4)) - (export "v128.load32_lane_1_offset_1" (func 5)) - (export "v128.load32_lane_2_offset_2" (func 6)) - (export "v128.load32_lane_3_offset_3" (func 7)) - (export "v128.load32_lane_0_align_1" (func 8)) - (export "v128.load32_lane_0_align_2" (func 9)) - (export "v128.load32_lane_0_align_4" (func 10)) - (export "v128.load32_lane_1_align_1" (func 11)) - (export "v128.load32_lane_1_align_2" (func 12)) - (export "v128.load32_lane_1_align_4" (func 13)) - (export "v128.load32_lane_2_align_1" (func 14)) - (export "v128.load32_lane_2_align_2" (func 15)) - (export "v128.load32_lane_2_align_4" (func 16)) - (export "v128.load32_lane_3_align_1" (func 17)) - (export "v128.load32_lane_3_align_2" (func 18)) - (export "v128.load32_lane_3_align_4" (func 19)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f") ) diff --git a/tests/snapshots/testsuite/simd_load64_lane.wast/0.print b/tests/snapshots/testsuite/simd_load64_lane.wast/0.print index 663459c307..f026ce8377 100644 --- a/tests/snapshots/testsuite/simd_load64_lane.wast/0.print +++ b/tests/snapshots/testsuite/simd_load64_lane.wast/0.print @@ -1,6 +1,19 @@ (module (type (;0;) (func (param i32 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) + (memory (;0;) 1) + (export "v128.load64_lane_0" (func 0)) + (export "v128.load64_lane_1" (func 1)) + (export "v128.load64_lane_0_offset_0" (func 2)) + (export "v128.load64_lane_1_offset_1" (func 3)) + (export "v128.load64_lane_0_align_1" (func 4)) + (export "v128.load64_lane_0_align_2" (func 5)) + (export "v128.load64_lane_0_align_4" (func 6)) + (export "v128.load64_lane_0_align_8" (func 7)) + (export "v128.load64_lane_1_align_1" (func 8)) + (export "v128.load64_lane_1_align_2" (func 9)) + (export "v128.load64_lane_1_align_4" (func 10)) + (export "v128.load64_lane_1_align_8" (func 11)) (func (;0;) (type 0) (param $address i32) (param $x v128) (result v128) local.get $address local.get $x @@ -61,18 +74,5 @@ local.get $x v128.load64_lane 1 ) - (memory (;0;) 1) - (export "v128.load64_lane_0" (func 0)) - (export "v128.load64_lane_1" (func 1)) - (export "v128.load64_lane_0_offset_0" (func 2)) - (export "v128.load64_lane_1_offset_1" (func 3)) - (export "v128.load64_lane_0_align_1" (func 4)) - (export "v128.load64_lane_0_align_2" (func 5)) - (export "v128.load64_lane_0_align_4" (func 6)) - (export "v128.load64_lane_0_align_8" (func 7)) - (export "v128.load64_lane_1_align_1" (func 8)) - (export "v128.load64_lane_1_align_2" (func 9)) - (export "v128.load64_lane_1_align_4" (func 10)) - (export "v128.load64_lane_1_align_8" (func 11)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f") ) diff --git a/tests/snapshots/testsuite/simd_load8_lane.wast/0.print b/tests/snapshots/testsuite/simd_load8_lane.wast/0.print index 0b6d3ab4de..f48cd29dc5 100644 --- a/tests/snapshots/testsuite/simd_load8_lane.wast/0.print +++ b/tests/snapshots/testsuite/simd_load8_lane.wast/0.print @@ -1,6 +1,55 @@ (module (type (;0;) (func (param i32 v128) (result v128))) (type (;1;) (func (param v128) (result v128))) + (memory (;0;) 1) + (export "v128.load8_lane_0" (func 0)) + (export "v128.load8_lane_1" (func 1)) + (export "v128.load8_lane_2" (func 2)) + (export "v128.load8_lane_3" (func 3)) + (export "v128.load8_lane_4" (func 4)) + (export "v128.load8_lane_5" (func 5)) + (export "v128.load8_lane_6" (func 6)) + (export "v128.load8_lane_7" (func 7)) + (export "v128.load8_lane_8" (func 8)) + (export "v128.load8_lane_9" (func 9)) + (export "v128.load8_lane_10" (func 10)) + (export "v128.load8_lane_11" (func 11)) + (export "v128.load8_lane_12" (func 12)) + (export "v128.load8_lane_13" (func 13)) + (export "v128.load8_lane_14" (func 14)) + (export "v128.load8_lane_15" (func 15)) + (export "v128.load8_lane_0_offset_0" (func 16)) + (export "v128.load8_lane_1_offset_1" (func 17)) + (export "v128.load8_lane_2_offset_2" (func 18)) + (export "v128.load8_lane_3_offset_3" (func 19)) + (export "v128.load8_lane_4_offset_4" (func 20)) + (export "v128.load8_lane_5_offset_5" (func 21)) + (export "v128.load8_lane_6_offset_6" (func 22)) + (export "v128.load8_lane_7_offset_7" (func 23)) + (export "v128.load8_lane_8_offset_8" (func 24)) + (export "v128.load8_lane_9_offset_9" (func 25)) + (export "v128.load8_lane_10_offset_10" (func 26)) + (export "v128.load8_lane_11_offset_11" (func 27)) + (export "v128.load8_lane_12_offset_12" (func 28)) + (export "v128.load8_lane_13_offset_13" (func 29)) + (export "v128.load8_lane_14_offset_14" (func 30)) + (export "v128.load8_lane_15_offset_15" (func 31)) + (export "v128.load8_lane_0_align_1" (func 32)) + (export "v128.load8_lane_1_align_1" (func 33)) + (export "v128.load8_lane_2_align_1" (func 34)) + (export "v128.load8_lane_3_align_1" (func 35)) + (export "v128.load8_lane_4_align_1" (func 36)) + (export "v128.load8_lane_5_align_1" (func 37)) + (export "v128.load8_lane_6_align_1" (func 38)) + (export "v128.load8_lane_7_align_1" (func 39)) + (export "v128.load8_lane_8_align_1" (func 40)) + (export "v128.load8_lane_9_align_1" (func 41)) + (export "v128.load8_lane_10_align_1" (func 42)) + (export "v128.load8_lane_11_align_1" (func 43)) + (export "v128.load8_lane_12_align_1" (func 44)) + (export "v128.load8_lane_13_align_1" (func 45)) + (export "v128.load8_lane_14_align_1" (func 46)) + (export "v128.load8_lane_15_align_1" (func 47)) (func (;0;) (type 0) (param $address i32) (param $x v128) (result v128) local.get $address local.get $x @@ -241,54 +290,5 @@ local.get $x v128.load8_lane 15 ) - (memory (;0;) 1) - (export "v128.load8_lane_0" (func 0)) - (export "v128.load8_lane_1" (func 1)) - (export "v128.load8_lane_2" (func 2)) - (export "v128.load8_lane_3" (func 3)) - (export "v128.load8_lane_4" (func 4)) - (export "v128.load8_lane_5" (func 5)) - (export "v128.load8_lane_6" (func 6)) - (export "v128.load8_lane_7" (func 7)) - (export "v128.load8_lane_8" (func 8)) - (export "v128.load8_lane_9" (func 9)) - (export "v128.load8_lane_10" (func 10)) - (export "v128.load8_lane_11" (func 11)) - (export "v128.load8_lane_12" (func 12)) - (export "v128.load8_lane_13" (func 13)) - (export "v128.load8_lane_14" (func 14)) - (export "v128.load8_lane_15" (func 15)) - (export "v128.load8_lane_0_offset_0" (func 16)) - (export "v128.load8_lane_1_offset_1" (func 17)) - (export "v128.load8_lane_2_offset_2" (func 18)) - (export "v128.load8_lane_3_offset_3" (func 19)) - (export "v128.load8_lane_4_offset_4" (func 20)) - (export "v128.load8_lane_5_offset_5" (func 21)) - (export "v128.load8_lane_6_offset_6" (func 22)) - (export "v128.load8_lane_7_offset_7" (func 23)) - (export "v128.load8_lane_8_offset_8" (func 24)) - (export "v128.load8_lane_9_offset_9" (func 25)) - (export "v128.load8_lane_10_offset_10" (func 26)) - (export "v128.load8_lane_11_offset_11" (func 27)) - (export "v128.load8_lane_12_offset_12" (func 28)) - (export "v128.load8_lane_13_offset_13" (func 29)) - (export "v128.load8_lane_14_offset_14" (func 30)) - (export "v128.load8_lane_15_offset_15" (func 31)) - (export "v128.load8_lane_0_align_1" (func 32)) - (export "v128.load8_lane_1_align_1" (func 33)) - (export "v128.load8_lane_2_align_1" (func 34)) - (export "v128.load8_lane_3_align_1" (func 35)) - (export "v128.load8_lane_4_align_1" (func 36)) - (export "v128.load8_lane_5_align_1" (func 37)) - (export "v128.load8_lane_6_align_1" (func 38)) - (export "v128.load8_lane_7_align_1" (func 39)) - (export "v128.load8_lane_8_align_1" (func 40)) - (export "v128.load8_lane_9_align_1" (func 41)) - (export "v128.load8_lane_10_align_1" (func 42)) - (export "v128.load8_lane_11_align_1" (func 43)) - (export "v128.load8_lane_12_align_1" (func 44)) - (export "v128.load8_lane_13_align_1" (func 45)) - (export "v128.load8_lane_14_align_1" (func 46)) - (export "v128.load8_lane_15_align_1" (func 47)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f") ) diff --git a/tests/snapshots/testsuite/simd_load_extend.wast/0.print b/tests/snapshots/testsuite/simd_load_extend.wast/0.print index f0b4c8862c..a603376143 100644 --- a/tests/snapshots/testsuite/simd_load_extend.wast/0.print +++ b/tests/snapshots/testsuite/simd_load_extend.wast/0.print @@ -1,6 +1,55 @@ (module (type (;0;) (func (param i32) (result v128))) (type (;1;) (func (result v128))) + (memory (;0;) 1) + (export "v128.load8x8_s" (func 0)) + (export "v128.load8x8_u" (func 1)) + (export "v128.load16x4_s" (func 2)) + (export "v128.load16x4_u" (func 3)) + (export "v128.load32x2_s" (func 4)) + (export "v128.load32x2_u" (func 5)) + (export "v128.load8x8_s_const0" (func 6)) + (export "v128.load8x8_u_const8" (func 7)) + (export "v128.load16x4_s_const10" (func 8)) + (export "v128.load16x4_u_const20" (func 9)) + (export "v128.load32x2_s_const65520" (func 10)) + (export "v128.load32x2_u_const65526" (func 11)) + (export "v128.load8x8_s_offset0" (func 12)) + (export "v128.load8x8_s_align1" (func 13)) + (export "v128.load8x8_s_offset0_align1" (func 14)) + (export "v128.load8x8_s_offset1_align1" (func 15)) + (export "v128.load8x8_s_offset10_align4" (func 16)) + (export "v128.load8x8_s_offset20_align8" (func 17)) + (export "v128.load8x8_u_offset0" (func 18)) + (export "v128.load8x8_u_align1" (func 19)) + (export "v128.load8x8_u_offset0_align1" (func 20)) + (export "v128.load8x8_u_offset1_align1" (func 21)) + (export "v128.load8x8_u_offset10_align4" (func 22)) + (export "v128.load8x8_u_offset20_align8" (func 23)) + (export "v128.load16x4_s_offset0" (func 24)) + (export "v128.load16x4_s_align1" (func 25)) + (export "v128.load16x4_s_offset0_align1" (func 26)) + (export "v128.load16x4_s_offset1_align1" (func 27)) + (export "v128.load16x4_s_offset10_align4" (func 28)) + (export "v128.load16x4_s_offset20_align8" (func 29)) + (export "v128.load16x4_u_offset0" (func 30)) + (export "v128.load16x4_u_align1" (func 31)) + (export "v128.load16x4_u_offset0_align1" (func 32)) + (export "v128.load16x4_u_offset1_align1" (func 33)) + (export "v128.load16x4_u_offset10_align4" (func 34)) + (export "v128.load16x4_u_offset20_align8" (func 35)) + (export "v128.load32x2_s_offset0" (func 36)) + (export "v128.load32x2_s_align1" (func 37)) + (export "v128.load32x2_s_offset0_align1" (func 38)) + (export "v128.load32x2_s_offset1_align1" (func 39)) + (export "v128.load32x2_s_offset10_align4" (func 40)) + (export "v128.load32x2_s_offset20_align8" (func 41)) + (export "v128.load32x2_u_offset0" (func 42)) + (export "v128.load32x2_u_align1" (func 43)) + (export "v128.load32x2_u_offset0_align1" (func 44)) + (export "v128.load32x2_u_offset1_align1" (func 45)) + (export "v128.load32x2_u_offset10_align4" (func 46)) + (export "v128.load32x2_u_offset20_align8" (func 47)) (func (;0;) (type 0) (param $0 i32) (result v128) local.get $0 v128.load8x8_s @@ -193,55 +242,6 @@ local.get $0 v128.load32x2_u offset=20 ) - (memory (;0;) 1) - (export "v128.load8x8_s" (func 0)) - (export "v128.load8x8_u" (func 1)) - (export "v128.load16x4_s" (func 2)) - (export "v128.load16x4_u" (func 3)) - (export "v128.load32x2_s" (func 4)) - (export "v128.load32x2_u" (func 5)) - (export "v128.load8x8_s_const0" (func 6)) - (export "v128.load8x8_u_const8" (func 7)) - (export "v128.load16x4_s_const10" (func 8)) - (export "v128.load16x4_u_const20" (func 9)) - (export "v128.load32x2_s_const65520" (func 10)) - (export "v128.load32x2_u_const65526" (func 11)) - (export "v128.load8x8_s_offset0" (func 12)) - (export "v128.load8x8_s_align1" (func 13)) - (export "v128.load8x8_s_offset0_align1" (func 14)) - (export "v128.load8x8_s_offset1_align1" (func 15)) - (export "v128.load8x8_s_offset10_align4" (func 16)) - (export "v128.load8x8_s_offset20_align8" (func 17)) - (export "v128.load8x8_u_offset0" (func 18)) - (export "v128.load8x8_u_align1" (func 19)) - (export "v128.load8x8_u_offset0_align1" (func 20)) - (export "v128.load8x8_u_offset1_align1" (func 21)) - (export "v128.load8x8_u_offset10_align4" (func 22)) - (export "v128.load8x8_u_offset20_align8" (func 23)) - (export "v128.load16x4_s_offset0" (func 24)) - (export "v128.load16x4_s_align1" (func 25)) - (export "v128.load16x4_s_offset0_align1" (func 26)) - (export "v128.load16x4_s_offset1_align1" (func 27)) - (export "v128.load16x4_s_offset10_align4" (func 28)) - (export "v128.load16x4_s_offset20_align8" (func 29)) - (export "v128.load16x4_u_offset0" (func 30)) - (export "v128.load16x4_u_align1" (func 31)) - (export "v128.load16x4_u_offset0_align1" (func 32)) - (export "v128.load16x4_u_offset1_align1" (func 33)) - (export "v128.load16x4_u_offset10_align4" (func 34)) - (export "v128.load16x4_u_offset20_align8" (func 35)) - (export "v128.load32x2_s_offset0" (func 36)) - (export "v128.load32x2_s_align1" (func 37)) - (export "v128.load32x2_s_offset0_align1" (func 38)) - (export "v128.load32x2_s_offset1_align1" (func 39)) - (export "v128.load32x2_s_offset10_align4" (func 40)) - (export "v128.load32x2_s_offset20_align8" (func 41)) - (export "v128.load32x2_u_offset0" (func 42)) - (export "v128.load32x2_u_align1" (func 43)) - (export "v128.load32x2_u_offset0_align1" (func 44)) - (export "v128.load32x2_u_offset1_align1" (func 45)) - (export "v128.load32x2_u_offset10_align4" (func 46)) - (export "v128.load32x2_u_offset20_align8" (func 47)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\80\81\82\83\84\85\86\87\88\89") (data (;1;) (i32.const 65520) "\0a\0b\0c\0d\0e\0f\80\81\82\83\84\85\86\87\88\89") ) diff --git a/tests/snapshots/testsuite/simd_load_extend.wast/85.print b/tests/snapshots/testsuite/simd_load_extend.wast/85.print index fcc53ec8d1..4e7a5a9807 100644 --- a/tests/snapshots/testsuite/simd_load_extend.wast/85.print +++ b/tests/snapshots/testsuite/simd_load_extend.wast/85.print @@ -1,6 +1,25 @@ (module (type (;0;) (func (result v128))) (type (;1;) (func (result i32))) + (memory (;0;) 1) + (export "v128.load8x8_s-in-block" (func 0)) + (export "v128.load8x8_u-in-block" (func 1)) + (export "v128.load16x4_s-in-block" (func 2)) + (export "v128.load16x4_u-in-block" (func 3)) + (export "v128.load32x2_s-in-block" (func 4)) + (export "v128.load32x2_u-in-block" (func 5)) + (export "v128.load8x8_s-as-br-value" (func 6)) + (export "v128.load8x8_u-as-br-value" (func 7)) + (export "v128.load16x4_s-as-br-value" (func 8)) + (export "v128.load16x4_u-as-br-value" (func 9)) + (export "v128.load32x2_s-as-br-value" (func 10)) + (export "v128.load32x2_u-as-br-value" (func 11)) + (export "v128.load8x8_s-extract_lane_s-operand" (func 12)) + (export "v128.load8x8_u-extract_lane_s-operand" (func 13)) + (export "v128.load16x4_s-extract_lane_s-operand" (func 14)) + (export "v128.load16x4_u-extract_lane_s-operand" (func 15)) + (export "v128.load32x2_s-extract_lane_s-operand" (func 16)) + (export "v128.load32x2_u-extract_lane_s-operand" (func 17)) (func (;0;) (type 0) (result v128) block (result v128) ;; label = @1 block (result v128) ;; label = @2 @@ -121,24 +140,5 @@ v128.load32x2_u i8x16.extract_lane_s 0 ) - (memory (;0;) 1) - (export "v128.load8x8_s-in-block" (func 0)) - (export "v128.load8x8_u-in-block" (func 1)) - (export "v128.load16x4_s-in-block" (func 2)) - (export "v128.load16x4_u-in-block" (func 3)) - (export "v128.load32x2_s-in-block" (func 4)) - (export "v128.load32x2_u-in-block" (func 5)) - (export "v128.load8x8_s-as-br-value" (func 6)) - (export "v128.load8x8_u-as-br-value" (func 7)) - (export "v128.load16x4_s-as-br-value" (func 8)) - (export "v128.load16x4_u-as-br-value" (func 9)) - (export "v128.load32x2_s-as-br-value" (func 10)) - (export "v128.load32x2_u-as-br-value" (func 11)) - (export "v128.load8x8_s-extract_lane_s-operand" (func 12)) - (export "v128.load8x8_u-extract_lane_s-operand" (func 13)) - (export "v128.load16x4_s-extract_lane_s-operand" (func 14)) - (export "v128.load16x4_u-extract_lane_s-operand" (func 15)) - (export "v128.load32x2_s-extract_lane_s-operand" (func 16)) - (export "v128.load32x2_u-extract_lane_s-operand" (func 17)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\80\81\82\83\84\85\86\87\88\89") ) diff --git a/tests/snapshots/testsuite/simd_load_splat.wast/0.print b/tests/snapshots/testsuite/simd_load_splat.wast/0.print index b9b18e7e8f..a1309a8b5a 100644 --- a/tests/snapshots/testsuite/simd_load_splat.wast/0.print +++ b/tests/snapshots/testsuite/simd_load_splat.wast/0.print @@ -1,5 +1,34 @@ (module (type (;0;) (func (param i32) (result v128))) + (memory (;0;) 1) + (export "v128.load8_splat" (func 0)) + (export "v128.load16_splat" (func 1)) + (export "v128.load32_splat" (func 2)) + (export "v128.load64_splat" (func 3)) + (export "v8x16.offset0" (func 4)) + (export "v8x16.align1" (func 5)) + (export "v8x16.offset1_align1" (func 6)) + (export "v8x16.offset2_align1" (func 7)) + (export "v8x16.offset15_align1" (func 8)) + (export "v16x8.offset0" (func 9)) + (export "v16x8.align1" (func 10)) + (export "v16x8.offset1_align1" (func 11)) + (export "v16x8.offset2_align1" (func 12)) + (export "v16x8.offset15_align2" (func 13)) + (export "v32x4.offset0" (func 14)) + (export "v32x4.align1" (func 15)) + (export "v32x4.offset1_align1" (func 16)) + (export "v32x4.offset2_align2" (func 17)) + (export "v32x4.offset15_align4" (func 18)) + (export "v64x2.offset0" (func 19)) + (export "v64x2.align1" (func 20)) + (export "v64x2.offset1_align2" (func 21)) + (export "v64x2.offset2_align4" (func 22)) + (export "v64x2.offset15_align8" (func 23)) + (export "v8x16.offset65536" (func 24)) + (export "v16x8.offset65535" (func 25)) + (export "v32x4.offset65533" (func 26)) + (export "v64x2.offset65529" (func 27)) (func (;0;) (type 0) (param $address i32) (result v128) local.get $address v128.load8_splat @@ -112,35 +141,6 @@ local.get $address v128.load64_splat offset=65529 ) - (memory (;0;) 1) - (export "v128.load8_splat" (func 0)) - (export "v128.load16_splat" (func 1)) - (export "v128.load32_splat" (func 2)) - (export "v128.load64_splat" (func 3)) - (export "v8x16.offset0" (func 4)) - (export "v8x16.align1" (func 5)) - (export "v8x16.offset1_align1" (func 6)) - (export "v8x16.offset2_align1" (func 7)) - (export "v8x16.offset15_align1" (func 8)) - (export "v16x8.offset0" (func 9)) - (export "v16x8.align1" (func 10)) - (export "v16x8.offset1_align1" (func 11)) - (export "v16x8.offset2_align1" (func 12)) - (export "v16x8.offset15_align2" (func 13)) - (export "v32x4.offset0" (func 14)) - (export "v32x4.align1" (func 15)) - (export "v32x4.offset1_align1" (func 16)) - (export "v32x4.offset2_align2" (func 17)) - (export "v32x4.offset15_align4" (func 18)) - (export "v64x2.offset0" (func 19)) - (export "v64x2.align1" (func 20)) - (export "v64x2.offset1_align2" (func 21)) - (export "v64x2.offset2_align4" (func 22)) - (export "v64x2.offset15_align8" (func 23)) - (export "v8x16.offset65536" (func 24)) - (export "v16x8.offset65535" (func 25)) - (export "v32x4.offset65533" (func 26)) - (export "v64x2.offset65529" (func 27)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f") (data (;1;) (i32.const 65520) "\10\11\12\13\14\15\16\17\18\19\1a\1b\1c\1d\1e\1f") ) diff --git a/tests/snapshots/testsuite/simd_load_splat.wast/101.print b/tests/snapshots/testsuite/simd_load_splat.wast/101.print index 3b18194222..b9c334b666 100644 --- a/tests/snapshots/testsuite/simd_load_splat.wast/101.print +++ b/tests/snapshots/testsuite/simd_load_splat.wast/101.print @@ -1,6 +1,19 @@ (module (type (;0;) (func (result v128))) (type (;1;) (func (result i32))) + (memory (;0;) 1) + (export "v128.load8_splat-in-block" (func 0)) + (export "v128.load16_splat-in-block" (func 1)) + (export "v128.load32_splat-in-block" (func 2)) + (export "v128.load64_splat-in-block" (func 3)) + (export "v128.load8_splat-as-br-value" (func 4)) + (export "v128.load16_splat-as-br-value" (func 5)) + (export "v128.load32_splat-as-br-value" (func 6)) + (export "v128.load64_splat-as-br-value" (func 7)) + (export "v128.load8_splat-extract_lane_s-operand" (func 8)) + (export "v128.load16_splat-extract_lane_s-operand" (func 9)) + (export "v128.load32_splat-extract_lane_s-operand" (func 10)) + (export "v128.load64_splat-extract_lane_s-operand" (func 11)) (func (;0;) (type 0) (result v128) block (result v128) ;; label = @1 block (result v128) ;; label = @2 @@ -81,18 +94,5 @@ v128.load64_splat i8x16.extract_lane_s 0 ) - (memory (;0;) 1) - (export "v128.load8_splat-in-block" (func 0)) - (export "v128.load16_splat-in-block" (func 1)) - (export "v128.load32_splat-in-block" (func 2)) - (export "v128.load64_splat-in-block" (func 3)) - (export "v128.load8_splat-as-br-value" (func 4)) - (export "v128.load16_splat-as-br-value" (func 5)) - (export "v128.load32_splat-as-br-value" (func 6)) - (export "v128.load64_splat-as-br-value" (func 7)) - (export "v128.load8_splat-extract_lane_s-operand" (func 8)) - (export "v128.load16_splat-extract_lane_s-operand" (func 9)) - (export "v128.load32_splat-extract_lane_s-operand" (func 10)) - (export "v128.load64_splat-extract_lane_s-operand" (func 11)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a") ) diff --git a/tests/snapshots/testsuite/simd_load_zero.wast/0.print b/tests/snapshots/testsuite/simd_load_zero.wast/0.print index 258642df89..4ced2c3e59 100644 --- a/tests/snapshots/testsuite/simd_load_zero.wast/0.print +++ b/tests/snapshots/testsuite/simd_load_zero.wast/0.print @@ -1,6 +1,22 @@ (module (type (;0;) (func (param i32) (result v128))) (type (;1;) (func (result v128))) + (memory (;0;) 1) + (export "v128.load32_zero" (func 0)) + (export "v128.load64_zero" (func 1)) + (export "v128.load32_zero_const0" (func 2)) + (export "v128.load64_zero_const8" (func 3)) + (export "v128.load32_zero_offset0" (func 4)) + (export "v128.load32_zero_align1" (func 5)) + (export "v128.load32_zero_offset0_align1" (func 6)) + (export "v128.load32_zero_offset1_align1" (func 7)) + (export "v128.load32_zero_offset10_align4" (func 8)) + (export "v128.load64_zero_offset0" (func 9)) + (export "v128.load64_zero_align1" (func 10)) + (export "v128.load64_zero_offset0_align1" (func 11)) + (export "v128.load64_zero_offset1_align1" (func 12)) + (export "v128.load64_zero_offset10_align4" (func 13)) + (export "v128.load64_zero_offset20_align8" (func 14)) (func (;0;) (type 0) (param $0 i32) (result v128) local.get $0 v128.load32_zero @@ -61,22 +77,6 @@ local.get $0 v128.load64_zero offset=20 ) - (memory (;0;) 1) - (export "v128.load32_zero" (func 0)) - (export "v128.load64_zero" (func 1)) - (export "v128.load32_zero_const0" (func 2)) - (export "v128.load64_zero_const8" (func 3)) - (export "v128.load32_zero_offset0" (func 4)) - (export "v128.load32_zero_align1" (func 5)) - (export "v128.load32_zero_offset0_align1" (func 6)) - (export "v128.load32_zero_offset1_align1" (func 7)) - (export "v128.load32_zero_offset10_align4" (func 8)) - (export "v128.load64_zero_offset0" (func 9)) - (export "v128.load64_zero_align1" (func 10)) - (export "v128.load64_zero_offset0_align1" (func 11)) - (export "v128.load64_zero_offset1_align1" (func 12)) - (export "v128.load64_zero_offset10_align4" (func 13)) - (export "v128.load64_zero_offset20_align8" (func 14)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\80\81\82\83\84\85\86\87\88\89") (data (;1;) (i32.const 65520) "\0a\0b\0c\0d\0e\0f\80\81\82\83\84\85\86\87\88\89") ) diff --git a/tests/snapshots/testsuite/simd_load_zero.wast/32.print b/tests/snapshots/testsuite/simd_load_zero.wast/32.print index 3f1c8622f9..d2fb2e46fe 100644 --- a/tests/snapshots/testsuite/simd_load_zero.wast/32.print +++ b/tests/snapshots/testsuite/simd_load_zero.wast/32.print @@ -2,6 +2,13 @@ (type (;0;) (func (result v128))) (type (;1;) (func (result i32))) (type (;2;) (func (result i64))) + (memory (;0;) 1) + (export "v128.load32_zero-in-block" (func 0)) + (export "v128.load64_zero-in-block" (func 1)) + (export "v128.load32_zero-as-br-value" (func 2)) + (export "v128.load64_zero-as-br-value" (func 3)) + (export "v128.load32_zero-extract_lane_s-operand" (func 4)) + (export "v128.load64_zero-extract_lane_s-operand" (func 5)) (func (;0;) (type 0) (result v128) block (result v128) ;; label = @1 block (result v128) ;; label = @2 @@ -42,12 +49,5 @@ v128.load64_zero i64x2.extract_lane 0 ) - (memory (;0;) 1) - (export "v128.load32_zero-in-block" (func 0)) - (export "v128.load64_zero-in-block" (func 1)) - (export "v128.load32_zero-as-br-value" (func 2)) - (export "v128.load64_zero-as-br-value" (func 3)) - (export "v128.load32_zero-extract_lane_s-operand" (func 4)) - (export "v128.load64_zero-extract_lane_s-operand" (func 5)) (data (;0;) (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\80\81\82\83\84\85\86\87\88\89") ) diff --git a/tests/snapshots/testsuite/simd_splat.wast/0.print b/tests/snapshots/testsuite/simd_splat.wast/0.print index b04253ba73..9991a5b172 100644 --- a/tests/snapshots/testsuite/simd_splat.wast/0.print +++ b/tests/snapshots/testsuite/simd_splat.wast/0.print @@ -3,6 +3,12 @@ (type (;1;) (func (param f32) (result v128))) (type (;2;) (func (param i64) (result v128))) (type (;3;) (func (param f64) (result v128))) + (export "i8x16.splat" (func 0)) + (export "i16x8.splat" (func 1)) + (export "i32x4.splat" (func 2)) + (export "f32x4.splat" (func 3)) + (export "i64x2.splat" (func 4)) + (export "f64x2.splat" (func 5)) (func (;0;) (type 0) (param i32) (result v128) local.get 0 i8x16.splat @@ -27,10 +33,4 @@ local.get 0 f64x2.splat ) - (export "i8x16.splat" (func 0)) - (export "i16x8.splat" (func 1)) - (export "i32x4.splat" (func 2)) - (export "f32x4.splat" (func 3)) - (export "i64x2.splat" (func 4)) - (export "f64x2.splat" (func 5)) ) diff --git a/tests/snapshots/testsuite/simd_splat.wast/120.print b/tests/snapshots/testsuite/simd_splat.wast/120.print index ba724dbe1a..3922005c28 100644 --- a/tests/snapshots/testsuite/simd_splat.wast/120.print +++ b/tests/snapshots/testsuite/simd_splat.wast/120.print @@ -2,6 +2,12 @@ (type (;0;) (func (param i32) (result v128))) (type (;1;) (func (param i64) (result v128))) (type (;2;) (func (param f64) (result v128))) + (memory (;0;) 1) + (export "as-v128_store-operand-1" (func 0)) + (export "as-v128_store-operand-2" (func 1)) + (export "as-v128_store-operand-3" (func 2)) + (export "as-v128_store-operand-4" (func 3)) + (export "as-v128_store-operand-5" (func 4)) (func (;0;) (type 0) (param i32) (result v128) i32.const 0 local.get 0 @@ -42,10 +48,4 @@ i32.const 0 v128.load ) - (memory (;0;) 1) - (export "as-v128_store-operand-1" (func 0)) - (export "as-v128_store-operand-2" (func 1)) - (export "as-v128_store-operand-3" (func 2)) - (export "as-v128_store-operand-4" (func 3)) - (export "as-v128_store-operand-5" (func 4)) ) diff --git a/tests/snapshots/testsuite/simd_splat.wast/126.print b/tests/snapshots/testsuite/simd_splat.wast/126.print index 6ce67c6263..c623dd7f9f 100644 --- a/tests/snapshots/testsuite/simd_splat.wast/126.print +++ b/tests/snapshots/testsuite/simd_splat.wast/126.print @@ -14,6 +14,49 @@ (type (;12;) (func (param f64 f64) (result v128))) (type (;13;) (func (param f32) (result v128))) (type (;14;) (func (param i32) (result v128))) + (export "as-i8x16_extract_lane_s-operand-first" (func 0)) + (export "as-i8x16_extract_lane_s-operand-last" (func 1)) + (export "as-i16x8_extract_lane_s-operand-first" (func 2)) + (export "as-i16x8_extract_lane_s-operand-last" (func 3)) + (export "as-i32x4_extract_lane_s-operand-first" (func 4)) + (export "as-i32x4_extract_lane_s-operand-last" (func 5)) + (export "as-f32x4_extract_lane_s-operand-first" (func 6)) + (export "as-f32x4_extract_lane_s-operand-last" (func 7)) + (export "as-v8x16_swizzle-operands" (func 8)) + (export "as-i64x2_extract_lane-operand-first" (func 9)) + (export "as-i64x2_extract_lane-operand-last" (func 10)) + (export "as-f64x2_extract_lane-operand-first" (func 11)) + (export "as-f64x2_extract_lane-operand-last" (func 12)) + (export "as-i8x16_add_sub-operands" (func 13)) + (export "as-i16x8_add_sub_mul-operands" (func 14)) + (export "as-i32x4_add_sub_mul-operands" (func 15)) + (export "as-i64x2_add_sub_mul-operands" (func 16)) + (export "as-f64x2_add_sub_mul-operands" (func 17)) + (export "as-i8x16_add_sat_s-operands" (func 18)) + (export "as-i16x8_add_sat_s-operands" (func 19)) + (export "as-i8x16_sub_sat_u-operands" (func 20)) + (export "as-i16x8_sub_sat_u-operands" (func 21)) + (export "as-i8x16_shr_s-operand" (func 22)) + (export "as-i16x8_shr_s-operand" (func 23)) + (export "as-i32x4_shr_s-operand" (func 24)) + (export "as-v128_and-operands" (func 25)) + (export "as-v128_or-operands" (func 26)) + (export "as-v128_xor-operands" (func 27)) + (export "as-i8x16_all_true-operand" (func 28)) + (export "as-i16x8_all_true-operand" (func 29)) + (export "as-i32x4_all_true-operand1" (func 30)) + (export "as-i32x4_all_true-operand2" (func 31)) + (export "as-i8x16_eq-operands" (func 32)) + (export "as-i16x8_eq-operands" (func 33)) + (export "as-i32x4_eq-operands1" (func 34)) + (export "as-i32x4_eq-operands2" (func 35)) + (export "as-f32x4_eq-operands" (func 36)) + (export "as-f64x2_eq-operands" (func 37)) + (export "as-f32x4_abs-operand" (func 38)) + (export "as-f32x4_min-operands" (func 39)) + (export "as-f32x4_div-operands" (func 40)) + (export "as-f32x4_convert_s_i32x4-operand" (func 41)) + (export "as-i32x4_trunc_s_f32x4_sat-operand" (func 42)) (func (;0;) (type 0) (param i32) (result i32) local.get 0 i8x16.splat @@ -301,47 +344,4 @@ f32x4.splat i32x4.trunc_sat_f32x4_s ) - (export "as-i8x16_extract_lane_s-operand-first" (func 0)) - (export "as-i8x16_extract_lane_s-operand-last" (func 1)) - (export "as-i16x8_extract_lane_s-operand-first" (func 2)) - (export "as-i16x8_extract_lane_s-operand-last" (func 3)) - (export "as-i32x4_extract_lane_s-operand-first" (func 4)) - (export "as-i32x4_extract_lane_s-operand-last" (func 5)) - (export "as-f32x4_extract_lane_s-operand-first" (func 6)) - (export "as-f32x4_extract_lane_s-operand-last" (func 7)) - (export "as-v8x16_swizzle-operands" (func 8)) - (export "as-i64x2_extract_lane-operand-first" (func 9)) - (export "as-i64x2_extract_lane-operand-last" (func 10)) - (export "as-f64x2_extract_lane-operand-first" (func 11)) - (export "as-f64x2_extract_lane-operand-last" (func 12)) - (export "as-i8x16_add_sub-operands" (func 13)) - (export "as-i16x8_add_sub_mul-operands" (func 14)) - (export "as-i32x4_add_sub_mul-operands" (func 15)) - (export "as-i64x2_add_sub_mul-operands" (func 16)) - (export "as-f64x2_add_sub_mul-operands" (func 17)) - (export "as-i8x16_add_sat_s-operands" (func 18)) - (export "as-i16x8_add_sat_s-operands" (func 19)) - (export "as-i8x16_sub_sat_u-operands" (func 20)) - (export "as-i16x8_sub_sat_u-operands" (func 21)) - (export "as-i8x16_shr_s-operand" (func 22)) - (export "as-i16x8_shr_s-operand" (func 23)) - (export "as-i32x4_shr_s-operand" (func 24)) - (export "as-v128_and-operands" (func 25)) - (export "as-v128_or-operands" (func 26)) - (export "as-v128_xor-operands" (func 27)) - (export "as-i8x16_all_true-operand" (func 28)) - (export "as-i16x8_all_true-operand" (func 29)) - (export "as-i32x4_all_true-operand1" (func 30)) - (export "as-i32x4_all_true-operand2" (func 31)) - (export "as-i8x16_eq-operands" (func 32)) - (export "as-i16x8_eq-operands" (func 33)) - (export "as-i32x4_eq-operands1" (func 34)) - (export "as-i32x4_eq-operands2" (func 35)) - (export "as-f32x4_eq-operands" (func 36)) - (export "as-f64x2_eq-operands" (func 37)) - (export "as-f32x4_abs-operand" (func 38)) - (export "as-f32x4_min-operands" (func 39)) - (export "as-f32x4_div-operands" (func 40)) - (export "as-f32x4_convert_s_i32x4-operand" (func 41)) - (export "as-i32x4_trunc_s_f32x4_sat-operand" (func 42)) ) diff --git a/tests/snapshots/testsuite/simd_splat.wast/170.print b/tests/snapshots/testsuite/simd_splat.wast/170.print index 1e31320c4d..a22e79db38 100644 --- a/tests/snapshots/testsuite/simd_splat.wast/170.print +++ b/tests/snapshots/testsuite/simd_splat.wast/170.print @@ -3,6 +3,15 @@ (type (;1;) (func (param f32) (result v128))) (type (;2;) (func (param i64) (result v128))) (type (;3;) (func (param f64) (result v128))) + (global $g (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (export "as-br-value1" (func 0)) + (export "as-return-value1" (func 1)) + (export "as-local_set-value1" (func 2)) + (export "as-global_set-value1" (func 3)) + (export "as-br-value2" (func 4)) + (export "as-return-value2" (func 5)) + (export "as-local_set-value2" (func 6)) + (export "as-global_set-value2" (func 7)) (func (;0;) (type 0) (param i32) (result v128) block (result v128) ;; label = @1 local.get 0 @@ -57,13 +66,4 @@ global.get $g return ) - (global $g (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (export "as-br-value1" (func 0)) - (export "as-return-value1" (func 1)) - (export "as-local_set-value1" (func 2)) - (export "as-global_set-value1" (func 3)) - (export "as-br-value2" (func 4)) - (export "as-return-value2" (func 5)) - (export "as-local_set-value2" (func 6)) - (export "as-global_set-value2" (func 7)) ) diff --git a/tests/snapshots/testsuite/simd_store.wast/0.print b/tests/snapshots/testsuite/simd_store.wast/0.print index 167b0c3633..6706b5fe39 100644 --- a/tests/snapshots/testsuite/simd_store.wast/0.print +++ b/tests/snapshots/testsuite/simd_store.wast/0.print @@ -1,5 +1,14 @@ (module (type (;0;) (func (result v128))) + (memory (;0;) 1) + (export "v128.store_i8x16" (func 0)) + (export "v128.store_i16x8" (func 1)) + (export "v128.store_i16x8_2" (func 2)) + (export "v128.store_i16x8_3" (func 3)) + (export "v128.store_i32x4" (func 4)) + (export "v128.store_i32x4_2" (func 5)) + (export "v128.store_i32x4_3" (func 6)) + (export "v128.store_f32x4" (func 7)) (func (;0;) (type 0) (result v128) i32.const 0 v128.const i32x4 0x03020100 0x07060504 0x0b0a0908 0x0f0e0d0c @@ -56,13 +65,4 @@ i32.const 0 v128.load ) - (memory (;0;) 1) - (export "v128.store_i8x16" (func 0)) - (export "v128.store_i16x8" (func 1)) - (export "v128.store_i16x8_2" (func 2)) - (export "v128.store_i16x8_3" (func 3)) - (export "v128.store_i32x4" (func 4)) - (export "v128.store_i32x4_2" (func 5)) - (export "v128.store_i32x4_3" (func 6)) - (export "v128.store_f32x4" (func 7)) ) diff --git a/tests/snapshots/testsuite/simd_store.wast/9.print b/tests/snapshots/testsuite/simd_store.wast/9.print index d89cd40a48..e611c5cb2b 100644 --- a/tests/snapshots/testsuite/simd_store.wast/9.print +++ b/tests/snapshots/testsuite/simd_store.wast/9.print @@ -1,5 +1,15 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "as-block-value" (func 0)) + (export "as-loop-value" (func 1)) + (export "as-br-value" (func 2)) + (export "as-br_if-value" (func 3)) + (export "as-br_if-value-cond" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-return-value" (func 6)) + (export "as-if-then" (func 7)) + (export "as-if-else" (func 8)) (func (;0;) (type 0) block ;; label = @1 i32.const 0 @@ -72,14 +82,4 @@ v128.store end ) - (memory (;0;) 1) - (export "as-block-value" (func 0)) - (export "as-loop-value" (func 1)) - (export "as-br-value" (func 2)) - (export "as-br_if-value" (func 3)) - (export "as-br_if-value-cond" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-return-value" (func 6)) - (export "as-if-then" (func 7)) - (export "as-if-else" (func 8)) ) diff --git a/tests/snapshots/testsuite/simd_store16_lane.wast/0.print b/tests/snapshots/testsuite/simd_store16_lane.wast/0.print index f3951a3e14..fb9a83718d 100644 --- a/tests/snapshots/testsuite/simd_store16_lane.wast/0.print +++ b/tests/snapshots/testsuite/simd_store16_lane.wast/0.print @@ -1,6 +1,40 @@ (module (type (;0;) (func (param i32 v128) (result i64))) (type (;1;) (func (param v128) (result i64))) + (memory (;0;) 1) + (global $zero (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (export "v128.store16_lane_0" (func 0)) + (export "v128.store16_lane_1" (func 1)) + (export "v128.store16_lane_2" (func 2)) + (export "v128.store16_lane_3" (func 3)) + (export "v128.store16_lane_4" (func 4)) + (export "v128.store16_lane_5" (func 5)) + (export "v128.store16_lane_6" (func 6)) + (export "v128.store16_lane_7" (func 7)) + (export "v128.store16_lane_0_offset_0" (func 8)) + (export "v128.store16_lane_1_offset_1" (func 9)) + (export "v128.store16_lane_2_offset_2" (func 10)) + (export "v128.store16_lane_3_offset_3" (func 11)) + (export "v128.store16_lane_4_offset_4" (func 12)) + (export "v128.store16_lane_5_offset_5" (func 13)) + (export "v128.store16_lane_6_offset_6" (func 14)) + (export "v128.store16_lane_7_offset_7" (func 15)) + (export "v128.store16_lane_0_align_1" (func 16)) + (export "v128.store16_lane_0_align_2" (func 17)) + (export "v128.store16_lane_1_align_1" (func 18)) + (export "v128.store16_lane_1_align_2" (func 19)) + (export "v128.store16_lane_2_align_1" (func 20)) + (export "v128.store16_lane_2_align_2" (func 21)) + (export "v128.store16_lane_3_align_1" (func 22)) + (export "v128.store16_lane_3_align_2" (func 23)) + (export "v128.store16_lane_4_align_1" (func 24)) + (export "v128.store16_lane_4_align_2" (func 25)) + (export "v128.store16_lane_5_align_1" (func 26)) + (export "v128.store16_lane_5_align_2" (func 27)) + (export "v128.store16_lane_6_align_1" (func 28)) + (export "v128.store16_lane_6_align_2" (func 29)) + (export "v128.store16_lane_7_align_1" (func 30)) + (export "v128.store16_lane_7_align_2" (func 31)) (func (;0;) (type 0) (param $address i32) (param $x v128) (result i64) (local $ret i64) local.get $address @@ -417,38 +451,4 @@ v128.store offset=7 local.get $ret ) - (memory (;0;) 1) - (global $zero (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (export "v128.store16_lane_0" (func 0)) - (export "v128.store16_lane_1" (func 1)) - (export "v128.store16_lane_2" (func 2)) - (export "v128.store16_lane_3" (func 3)) - (export "v128.store16_lane_4" (func 4)) - (export "v128.store16_lane_5" (func 5)) - (export "v128.store16_lane_6" (func 6)) - (export "v128.store16_lane_7" (func 7)) - (export "v128.store16_lane_0_offset_0" (func 8)) - (export "v128.store16_lane_1_offset_1" (func 9)) - (export "v128.store16_lane_2_offset_2" (func 10)) - (export "v128.store16_lane_3_offset_3" (func 11)) - (export "v128.store16_lane_4_offset_4" (func 12)) - (export "v128.store16_lane_5_offset_5" (func 13)) - (export "v128.store16_lane_6_offset_6" (func 14)) - (export "v128.store16_lane_7_offset_7" (func 15)) - (export "v128.store16_lane_0_align_1" (func 16)) - (export "v128.store16_lane_0_align_2" (func 17)) - (export "v128.store16_lane_1_align_1" (func 18)) - (export "v128.store16_lane_1_align_2" (func 19)) - (export "v128.store16_lane_2_align_1" (func 20)) - (export "v128.store16_lane_2_align_2" (func 21)) - (export "v128.store16_lane_3_align_1" (func 22)) - (export "v128.store16_lane_3_align_2" (func 23)) - (export "v128.store16_lane_4_align_1" (func 24)) - (export "v128.store16_lane_4_align_2" (func 25)) - (export "v128.store16_lane_5_align_1" (func 26)) - (export "v128.store16_lane_5_align_2" (func 27)) - (export "v128.store16_lane_6_align_1" (func 28)) - (export "v128.store16_lane_6_align_2" (func 29)) - (export "v128.store16_lane_7_align_1" (func 30)) - (export "v128.store16_lane_7_align_2" (func 31)) ) diff --git a/tests/snapshots/testsuite/simd_store32_lane.wast/0.print b/tests/snapshots/testsuite/simd_store32_lane.wast/0.print index 90ac8ed8b4..960c1d7ac3 100644 --- a/tests/snapshots/testsuite/simd_store32_lane.wast/0.print +++ b/tests/snapshots/testsuite/simd_store32_lane.wast/0.print @@ -1,6 +1,28 @@ (module (type (;0;) (func (param i32 v128) (result i64))) (type (;1;) (func (param v128) (result i64))) + (memory (;0;) 1) + (global $zero (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (export "v128.store32_lane_0" (func 0)) + (export "v128.store32_lane_1" (func 1)) + (export "v128.store32_lane_2" (func 2)) + (export "v128.store32_lane_3" (func 3)) + (export "v128.store32_lane_0_offset_0" (func 4)) + (export "v128.store32_lane_1_offset_1" (func 5)) + (export "v128.store32_lane_2_offset_2" (func 6)) + (export "v128.store32_lane_3_offset_3" (func 7)) + (export "v128.store32_lane_0_align_1" (func 8)) + (export "v128.store32_lane_0_align_2" (func 9)) + (export "v128.store32_lane_0_align_4" (func 10)) + (export "v128.store32_lane_1_align_1" (func 11)) + (export "v128.store32_lane_1_align_2" (func 12)) + (export "v128.store32_lane_1_align_4" (func 13)) + (export "v128.store32_lane_2_align_1" (func 14)) + (export "v128.store32_lane_2_align_2" (func 15)) + (export "v128.store32_lane_2_align_4" (func 16)) + (export "v128.store32_lane_3_align_1" (func 17)) + (export "v128.store32_lane_3_align_2" (func 18)) + (export "v128.store32_lane_3_align_4" (func 19)) (func (;0;) (type 0) (param $address i32) (param $x v128) (result i64) (local $ret i64) local.get $address @@ -261,26 +283,4 @@ v128.store offset=3 local.get $ret ) - (memory (;0;) 1) - (global $zero (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (export "v128.store32_lane_0" (func 0)) - (export "v128.store32_lane_1" (func 1)) - (export "v128.store32_lane_2" (func 2)) - (export "v128.store32_lane_3" (func 3)) - (export "v128.store32_lane_0_offset_0" (func 4)) - (export "v128.store32_lane_1_offset_1" (func 5)) - (export "v128.store32_lane_2_offset_2" (func 6)) - (export "v128.store32_lane_3_offset_3" (func 7)) - (export "v128.store32_lane_0_align_1" (func 8)) - (export "v128.store32_lane_0_align_2" (func 9)) - (export "v128.store32_lane_0_align_4" (func 10)) - (export "v128.store32_lane_1_align_1" (func 11)) - (export "v128.store32_lane_1_align_2" (func 12)) - (export "v128.store32_lane_1_align_4" (func 13)) - (export "v128.store32_lane_2_align_1" (func 14)) - (export "v128.store32_lane_2_align_2" (func 15)) - (export "v128.store32_lane_2_align_4" (func 16)) - (export "v128.store32_lane_3_align_1" (func 17)) - (export "v128.store32_lane_3_align_2" (func 18)) - (export "v128.store32_lane_3_align_4" (func 19)) ) diff --git a/tests/snapshots/testsuite/simd_store64_lane.wast/0.print b/tests/snapshots/testsuite/simd_store64_lane.wast/0.print index 0fa6c2a0ec..fd79631669 100644 --- a/tests/snapshots/testsuite/simd_store64_lane.wast/0.print +++ b/tests/snapshots/testsuite/simd_store64_lane.wast/0.print @@ -1,6 +1,20 @@ (module (type (;0;) (func (param i32 v128) (result i64))) (type (;1;) (func (param v128) (result i64))) + (memory (;0;) 1) + (global $zero (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (export "v128.store64_lane_0" (func 0)) + (export "v128.store64_lane_1" (func 1)) + (export "v128.store64_lane_0_offset_0" (func 2)) + (export "v128.store64_lane_1_offset_1" (func 3)) + (export "v128.store64_lane_0_align_1" (func 4)) + (export "v128.store64_lane_0_align_2" (func 5)) + (export "v128.store64_lane_0_align_4" (func 6)) + (export "v128.store64_lane_0_align_8" (func 7)) + (export "v128.store64_lane_1_align_1" (func 8)) + (export "v128.store64_lane_1_align_2" (func 9)) + (export "v128.store64_lane_1_align_4" (func 10)) + (export "v128.store64_lane_1_align_8" (func 11)) (func (;0;) (type 0) (param $address i32) (param $x v128) (result i64) (local $ret i64) local.get $address @@ -157,18 +171,4 @@ v128.store offset=1 local.get $ret ) - (memory (;0;) 1) - (global $zero (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (export "v128.store64_lane_0" (func 0)) - (export "v128.store64_lane_1" (func 1)) - (export "v128.store64_lane_0_offset_0" (func 2)) - (export "v128.store64_lane_1_offset_1" (func 3)) - (export "v128.store64_lane_0_align_1" (func 4)) - (export "v128.store64_lane_0_align_2" (func 5)) - (export "v128.store64_lane_0_align_4" (func 6)) - (export "v128.store64_lane_0_align_8" (func 7)) - (export "v128.store64_lane_1_align_1" (func 8)) - (export "v128.store64_lane_1_align_2" (func 9)) - (export "v128.store64_lane_1_align_4" (func 10)) - (export "v128.store64_lane_1_align_8" (func 11)) ) diff --git a/tests/snapshots/testsuite/simd_store8_lane.wast/0.print b/tests/snapshots/testsuite/simd_store8_lane.wast/0.print index f1c2c6e3bd..16635168ba 100644 --- a/tests/snapshots/testsuite/simd_store8_lane.wast/0.print +++ b/tests/snapshots/testsuite/simd_store8_lane.wast/0.print @@ -1,6 +1,56 @@ (module (type (;0;) (func (param i32 v128) (result i64))) (type (;1;) (func (param v128) (result i64))) + (memory (;0;) 1) + (global $zero (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) + (export "v128.store8_lane_0" (func 0)) + (export "v128.store8_lane_1" (func 1)) + (export "v128.store8_lane_2" (func 2)) + (export "v128.store8_lane_3" (func 3)) + (export "v128.store8_lane_4" (func 4)) + (export "v128.store8_lane_5" (func 5)) + (export "v128.store8_lane_6" (func 6)) + (export "v128.store8_lane_7" (func 7)) + (export "v128.store8_lane_8" (func 8)) + (export "v128.store8_lane_9" (func 9)) + (export "v128.store8_lane_10" (func 10)) + (export "v128.store8_lane_11" (func 11)) + (export "v128.store8_lane_12" (func 12)) + (export "v128.store8_lane_13" (func 13)) + (export "v128.store8_lane_14" (func 14)) + (export "v128.store8_lane_15" (func 15)) + (export "v128.store8_lane_0_offset_0" (func 16)) + (export "v128.store8_lane_1_offset_1" (func 17)) + (export "v128.store8_lane_2_offset_2" (func 18)) + (export "v128.store8_lane_3_offset_3" (func 19)) + (export "v128.store8_lane_4_offset_4" (func 20)) + (export "v128.store8_lane_5_offset_5" (func 21)) + (export "v128.store8_lane_6_offset_6" (func 22)) + (export "v128.store8_lane_7_offset_7" (func 23)) + (export "v128.store8_lane_8_offset_8" (func 24)) + (export "v128.store8_lane_9_offset_9" (func 25)) + (export "v128.store8_lane_10_offset_10" (func 26)) + (export "v128.store8_lane_11_offset_11" (func 27)) + (export "v128.store8_lane_12_offset_12" (func 28)) + (export "v128.store8_lane_13_offset_13" (func 29)) + (export "v128.store8_lane_14_offset_14" (func 30)) + (export "v128.store8_lane_15_offset_15" (func 31)) + (export "v128.store8_lane_0_align_1" (func 32)) + (export "v128.store8_lane_1_align_1" (func 33)) + (export "v128.store8_lane_2_align_1" (func 34)) + (export "v128.store8_lane_3_align_1" (func 35)) + (export "v128.store8_lane_4_align_1" (func 36)) + (export "v128.store8_lane_5_align_1" (func 37)) + (export "v128.store8_lane_6_align_1" (func 38)) + (export "v128.store8_lane_7_align_1" (func 39)) + (export "v128.store8_lane_8_align_1" (func 40)) + (export "v128.store8_lane_9_align_1" (func 41)) + (export "v128.store8_lane_10_align_1" (func 42)) + (export "v128.store8_lane_11_align_1" (func 43)) + (export "v128.store8_lane_12_align_1" (func 44)) + (export "v128.store8_lane_13_align_1" (func 45)) + (export "v128.store8_lane_14_align_1" (func 46)) + (export "v128.store8_lane_15_align_1" (func 47)) (func (;0;) (type 0) (param $address i32) (param $x v128) (result i64) (local $ret i64) local.get $address @@ -625,54 +675,4 @@ v128.store offset=15 local.get $ret ) - (memory (;0;) 1) - (global $zero (;0;) (mut v128) v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000) - (export "v128.store8_lane_0" (func 0)) - (export "v128.store8_lane_1" (func 1)) - (export "v128.store8_lane_2" (func 2)) - (export "v128.store8_lane_3" (func 3)) - (export "v128.store8_lane_4" (func 4)) - (export "v128.store8_lane_5" (func 5)) - (export "v128.store8_lane_6" (func 6)) - (export "v128.store8_lane_7" (func 7)) - (export "v128.store8_lane_8" (func 8)) - (export "v128.store8_lane_9" (func 9)) - (export "v128.store8_lane_10" (func 10)) - (export "v128.store8_lane_11" (func 11)) - (export "v128.store8_lane_12" (func 12)) - (export "v128.store8_lane_13" (func 13)) - (export "v128.store8_lane_14" (func 14)) - (export "v128.store8_lane_15" (func 15)) - (export "v128.store8_lane_0_offset_0" (func 16)) - (export "v128.store8_lane_1_offset_1" (func 17)) - (export "v128.store8_lane_2_offset_2" (func 18)) - (export "v128.store8_lane_3_offset_3" (func 19)) - (export "v128.store8_lane_4_offset_4" (func 20)) - (export "v128.store8_lane_5_offset_5" (func 21)) - (export "v128.store8_lane_6_offset_6" (func 22)) - (export "v128.store8_lane_7_offset_7" (func 23)) - (export "v128.store8_lane_8_offset_8" (func 24)) - (export "v128.store8_lane_9_offset_9" (func 25)) - (export "v128.store8_lane_10_offset_10" (func 26)) - (export "v128.store8_lane_11_offset_11" (func 27)) - (export "v128.store8_lane_12_offset_12" (func 28)) - (export "v128.store8_lane_13_offset_13" (func 29)) - (export "v128.store8_lane_14_offset_14" (func 30)) - (export "v128.store8_lane_15_offset_15" (func 31)) - (export "v128.store8_lane_0_align_1" (func 32)) - (export "v128.store8_lane_1_align_1" (func 33)) - (export "v128.store8_lane_2_align_1" (func 34)) - (export "v128.store8_lane_3_align_1" (func 35)) - (export "v128.store8_lane_4_align_1" (func 36)) - (export "v128.store8_lane_5_align_1" (func 37)) - (export "v128.store8_lane_6_align_1" (func 38)) - (export "v128.store8_lane_7_align_1" (func 39)) - (export "v128.store8_lane_8_align_1" (func 40)) - (export "v128.store8_lane_9_align_1" (func 41)) - (export "v128.store8_lane_10_align_1" (func 42)) - (export "v128.store8_lane_11_align_1" (func 43)) - (export "v128.store8_lane_12_align_1" (func 44)) - (export "v128.store8_lane_13_align_1" (func 45)) - (export "v128.store8_lane_14_align_1" (func 46)) - (export "v128.store8_lane_15_align_1" (func 47)) ) diff --git a/tests/snapshots/testsuite/skip-stack-guard-page.wast/0.print b/tests/snapshots/testsuite/skip-stack-guard-page.wast/0.print index 0717f85053..a4d1171b46 100644 --- a/tests/snapshots/testsuite/skip-stack-guard-page.wast/0.print +++ b/tests/snapshots/testsuite/skip-stack-guard-page.wast/0.print @@ -1,6 +1,8 @@ (module (type (;0;) (func (param i32))) (type (;1;) (func)) + (memory (;0;) 1) + (export "test-guard-page-skip" (func $test-guard-page-skip)) (func $test-guard-page-skip (;0;) (type 0) (param $depth i32) local.get $depth i32.const 0 @@ -6354,6 +6356,4 @@ local.get 1055 i64.store offset=1055 align=1 ) - (memory (;0;) 1) - (export "test-guard-page-skip" (func $test-guard-page-skip)) ) diff --git a/tests/snapshots/testsuite/stack.wast/0.print b/tests/snapshots/testsuite/stack.wast/0.print index b52c939c83..97823f41ca 100644 --- a/tests/snapshots/testsuite/stack.wast/0.print +++ b/tests/snapshots/testsuite/stack.wast/0.print @@ -2,6 +2,13 @@ (type (;0;) (func (param i64) (result i64))) (type (;1;) (func (result i32))) (type (;2;) (func)) + (global $temp (;0;) (mut i32) i32.const 0) + (export "fac-expr" (func 0)) + (export "fac-stack" (func 1)) + (export "fac-stack-raw" (func 2)) + (export "fac-mixed" (func 3)) + (export "fac-mixed-raw" (func 4)) + (export "not-quite-a-tree" (func 7)) (func (;0;) (type 0) (param $n i64) (result i64) (local $i i64) (local $res i64) local.get $n @@ -160,11 +167,4 @@ call $add_one_to_global_and_drop i32.add ) - (global $temp (;0;) (mut i32) i32.const 0) - (export "fac-expr" (func 0)) - (export "fac-stack" (func 1)) - (export "fac-stack-raw" (func 2)) - (export "fac-mixed" (func 3)) - (export "fac-mixed-raw" (func 4)) - (export "not-quite-a-tree" (func 7)) ) diff --git a/tests/snapshots/testsuite/stack.wast/6.print b/tests/snapshots/testsuite/stack.wast/6.print index 9f7fd027ab..a1570280b2 100644 --- a/tests/snapshots/testsuite/stack.wast/6.print +++ b/tests/snapshots/testsuite/stack.wast/6.print @@ -2,6 +2,7 @@ (type $proc (;0;) (func)) (type (;1;) (func (param i32))) (type (;2;) (func (result i32))) + (table (;0;) 1 funcref) (func (;0;) (type $proc) block ;; label = @1 i32.const 0 @@ -222,5 +223,4 @@ i32.const 0 call_indirect (type $proc) ) - (table (;0;) 1 funcref) ) diff --git a/tests/snapshots/testsuite/start.wast/15.print b/tests/snapshots/testsuite/start.wast/15.print index 19e8af89c0..e656208826 100644 --- a/tests/snapshots/testsuite/start.wast/15.print +++ b/tests/snapshots/testsuite/start.wast/15.print @@ -2,9 +2,9 @@ (type (;0;) (func (param i32))) (type (;1;) (func)) (import "spectest" "print_i32" (func $print_i32 (;0;) (type 0))) + (start $main) (func $main (;1;) (type 1) i32.const 1 call $print_i32 ) - (start $main) ) diff --git a/tests/snapshots/testsuite/start.wast/16.print b/tests/snapshots/testsuite/start.wast/16.print index 767bcfa8b0..06a482c01a 100644 --- a/tests/snapshots/testsuite/start.wast/16.print +++ b/tests/snapshots/testsuite/start.wast/16.print @@ -2,9 +2,9 @@ (type (;0;) (func (param i32))) (type (;1;) (func)) (import "spectest" "print_i32" (func $print_i32 (;0;) (type 0))) + (start $main) (func $main (;1;) (type 1) i32.const 2 call $print_i32 ) - (start $main) ) diff --git a/tests/snapshots/testsuite/start.wast/3.print b/tests/snapshots/testsuite/start.wast/3.print index 4bf23117e7..7ed68ae68a 100644 --- a/tests/snapshots/testsuite/start.wast/3.print +++ b/tests/snapshots/testsuite/start.wast/3.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (result i32))) + (memory (;0;) 1 1) + (export "inc" (func $inc)) + (export "get" (func $get)) + (start $main) (func $inc (;0;) (type 0) i32.const 0 i32.const 0 @@ -19,9 +23,5 @@ call $inc call $inc ) - (memory (;0;) 1 1) - (export "inc" (func $inc)) - (export "get" (func $get)) - (start $main) (data (;0;) (i32.const 0) "A") ) diff --git a/tests/snapshots/testsuite/start.wast/9.print b/tests/snapshots/testsuite/start.wast/9.print index 4bf23117e7..7ed68ae68a 100644 --- a/tests/snapshots/testsuite/start.wast/9.print +++ b/tests/snapshots/testsuite/start.wast/9.print @@ -1,6 +1,10 @@ (module (type (;0;) (func)) (type (;1;) (func (result i32))) + (memory (;0;) 1 1) + (export "inc" (func $inc)) + (export "get" (func $get)) + (start $main) (func $inc (;0;) (type 0) i32.const 0 i32.const 0 @@ -19,9 +23,5 @@ call $inc call $inc ) - (memory (;0;) 1 1) - (export "inc" (func $inc)) - (export "get" (func $get)) - (start $main) (data (;0;) (i32.const 0) "A") ) diff --git a/tests/snapshots/testsuite/store.wast/0.print b/tests/snapshots/testsuite/store.wast/0.print index 8bbd7d4a32..c2f3130424 100644 --- a/tests/snapshots/testsuite/store.wast/0.print +++ b/tests/snapshots/testsuite/store.wast/0.print @@ -1,5 +1,15 @@ (module (type (;0;) (func)) + (memory (;0;) 1) + (export "as-block-value" (func 0)) + (export "as-loop-value" (func 1)) + (export "as-br-value" (func 2)) + (export "as-br_if-value" (func 3)) + (export "as-br_if-value-cond" (func 4)) + (export "as-br_table-value" (func 5)) + (export "as-return-value" (func 6)) + (export "as-if-then" (func 7)) + (export "as-if-else" (func 8)) (func (;0;) (type 0) block ;; label = @1 i32.const 0 @@ -72,14 +82,4 @@ i32.store end ) - (memory (;0;) 1) - (export "as-block-value" (func 0)) - (export "as-loop-value" (func 1)) - (export "as-br-value" (func 2)) - (export "as-br_if-value" (func 3)) - (export "as-br_if-value-cond" (func 4)) - (export "as-br_table-value" (func 5)) - (export "as-return-value" (func 6)) - (export "as-if-then" (func 7)) - (export "as-if-else" (func 8)) ) diff --git a/tests/snapshots/testsuite/switch.wast/0.print b/tests/snapshots/testsuite/switch.wast/0.print index fbf95089f3..dd3b31b204 100644 --- a/tests/snapshots/testsuite/switch.wast/0.print +++ b/tests/snapshots/testsuite/switch.wast/0.print @@ -2,6 +2,10 @@ (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i64) (result i64))) (type (;2;) (func (result i32))) + (export "stmt" (func 0)) + (export "expr" (func 1)) + (export "arg" (func 2)) + (export "corner" (func 3)) (func (;0;) (type 0) (param $i i32) (result i32) (local $j i32) i32.const 100 @@ -119,8 +123,4 @@ end i32.const 1 ) - (export "stmt" (func 0)) - (export "expr" (func 1)) - (export "arg" (func 2)) - (export "corner" (func 3)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/0.print b/tests/snapshots/testsuite/table_copy.wast/0.print index 0677b5f604..0c0796e0d6 100644 --- a/tests/snapshots/testsuite/table_copy.wast/0.print +++ b/tests/snapshots/testsuite/table_copy.wast/0.print @@ -1,5 +1,10 @@ (module (type (;0;) (func (result i32))) + (export "ef0" (func 0)) + (export "ef1" (func 1)) + (export "ef2" (func 2)) + (export "ef3" (func 3)) + (export "ef4" (func 4)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -15,9 +20,4 @@ (func (;4;) (type 0) (result i32) i32.const 4 ) - (export "ef0" (func 0)) - (export "ef1" (func 1)) - (export "ef2" (func 2)) - (export "ef3" (func 3)) - (export "ef4" (func 4)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1056.print b/tests/snapshots/testsuite/table_copy.wast/1056.print index 6bc55b4649..0f5db861c7 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1056.print +++ b/tests/snapshots/testsuite/table_copy.wast/1056.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1118.print b/tests/snapshots/testsuite/table_copy.wast/1118.print index 52bdb9a394..87eee7c116 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1118.print +++ b/tests/snapshots/testsuite/table_copy.wast/1118.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 3 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1120.print b/tests/snapshots/testsuite/table_copy.wast/1120.print index 3cfcbe71d0..c10e333c4a 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1120.print +++ b/tests/snapshots/testsuite/table_copy.wast/1120.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 2 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1122.print b/tests/snapshots/testsuite/table_copy.wast/1122.print index 02616c6ed6..676bd13829 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1122.print +++ b/tests/snapshots/testsuite/table_copy.wast/1122.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 6 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1124.print b/tests/snapshots/testsuite/table_copy.wast/1124.print index c232e40ae1..2ad0c123f4 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1124.print +++ b/tests/snapshots/testsuite/table_copy.wast/1124.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 2 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1126.print b/tests/snapshots/testsuite/table_copy.wast/1126.print index 95fe77fd07..f2532bb171 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1126.print +++ b/tests/snapshots/testsuite/table_copy.wast/1126.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1128.print b/tests/snapshots/testsuite/table_copy.wast/1128.print index d47958c90d..858c0c8330 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1128.print +++ b/tests/snapshots/testsuite/table_copy.wast/1128.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1130.print b/tests/snapshots/testsuite/table_copy.wast/1130.print index 63417804f1..76f5f879d6 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1130.print +++ b/tests/snapshots/testsuite/table_copy.wast/1130.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1132.print b/tests/snapshots/testsuite/table_copy.wast/1132.print index d7f495ea16..50ee553820 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1132.print +++ b/tests/snapshots/testsuite/table_copy.wast/1132.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1134.print b/tests/snapshots/testsuite/table_copy.wast/1134.print index f7dda7f7c7..b28b518d32 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1134.print +++ b/tests/snapshots/testsuite/table_copy.wast/1134.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1136.print b/tests/snapshots/testsuite/table_copy.wast/1136.print index e934dda778..799950a487 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1136.print +++ b/tests/snapshots/testsuite/table_copy.wast/1136.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1138.print b/tests/snapshots/testsuite/table_copy.wast/1138.print index 0cde0cc46e..b3126b36b5 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1138.print +++ b/tests/snapshots/testsuite/table_copy.wast/1138.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1140.print b/tests/snapshots/testsuite/table_copy.wast/1140.print index a7439b6b59..4653f529de 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1140.print +++ b/tests/snapshots/testsuite/table_copy.wast/1140.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 3 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1142.print b/tests/snapshots/testsuite/table_copy.wast/1142.print index 4d3d5ae72f..910de4ec2b 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1142.print +++ b/tests/snapshots/testsuite/table_copy.wast/1142.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 2 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1144.print b/tests/snapshots/testsuite/table_copy.wast/1144.print index 94ddcfa771..77e0d8b687 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1144.print +++ b/tests/snapshots/testsuite/table_copy.wast/1144.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 6 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1146.print b/tests/snapshots/testsuite/table_copy.wast/1146.print index f830daf9f1..32e06b6904 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1146.print +++ b/tests/snapshots/testsuite/table_copy.wast/1146.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 2 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1148.print b/tests/snapshots/testsuite/table_copy.wast/1148.print index c0602b7fd1..35e7dc485b 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1148.print +++ b/tests/snapshots/testsuite/table_copy.wast/1148.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1150.print b/tests/snapshots/testsuite/table_copy.wast/1150.print index bd1ee4120a..fe67a4fbf0 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1150.print +++ b/tests/snapshots/testsuite/table_copy.wast/1150.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1152.print b/tests/snapshots/testsuite/table_copy.wast/1152.print index b40ded2704..914158292d 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1152.print +++ b/tests/snapshots/testsuite/table_copy.wast/1152.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1154.print b/tests/snapshots/testsuite/table_copy.wast/1154.print index 8377e6e9fd..67bb0b2ad6 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1154.print +++ b/tests/snapshots/testsuite/table_copy.wast/1154.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1156.print b/tests/snapshots/testsuite/table_copy.wast/1156.print index 38db45cb7f..77495d98fc 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1156.print +++ b/tests/snapshots/testsuite/table_copy.wast/1156.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1158.print b/tests/snapshots/testsuite/table_copy.wast/1158.print index 628a0623c8..f09f48d980 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1158.print +++ b/tests/snapshots/testsuite/table_copy.wast/1158.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1160.print b/tests/snapshots/testsuite/table_copy.wast/1160.print index 8cff72e3c5..5716542ed0 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1160.print +++ b/tests/snapshots/testsuite/table_copy.wast/1160.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.copy $t1 $t0 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1162.print b/tests/snapshots/testsuite/table_copy.wast/1162.print index 90e0f29d57..458d62d153 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1162.print +++ b/tests/snapshots/testsuite/table_copy.wast/1162.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1196.print b/tests/snapshots/testsuite/table_copy.wast/1196.print index 4d44749279..f3acd2415f 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1196.print +++ b/tests/snapshots/testsuite/table_copy.wast/1196.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1230.print b/tests/snapshots/testsuite/table_copy.wast/1230.print index 94eaba103c..079c638556 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1230.print +++ b/tests/snapshots/testsuite/table_copy.wast/1230.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/126.print b/tests/snapshots/testsuite/table_copy.wast/126.print index a046f92e82..3468438033 100644 --- a/tests/snapshots/testsuite/table_copy.wast/126.print +++ b/tests/snapshots/testsuite/table_copy.wast/126.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1264.print b/tests/snapshots/testsuite/table_copy.wast/1264.print index 32ae10e115..c2ca589462 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1264.print +++ b/tests/snapshots/testsuite/table_copy.wast/1264.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 23) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 23) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1298.print b/tests/snapshots/testsuite/table_copy.wast/1298.print index 33ceb42825..4a893c7360 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1298.print +++ b/tests/snapshots/testsuite/table_copy.wast/1298.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 11) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 11) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1332.print b/tests/snapshots/testsuite/table_copy.wast/1332.print index 94eaba103c..079c638556 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1332.print +++ b/tests/snapshots/testsuite/table_copy.wast/1332.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1366.print b/tests/snapshots/testsuite/table_copy.wast/1366.print index 5077bb006c..6f5cdc4f55 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1366.print +++ b/tests/snapshots/testsuite/table_copy.wast/1366.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 21) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 21) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1400.print b/tests/snapshots/testsuite/table_copy.wast/1400.print index 94eaba103c..079c638556 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1400.print +++ b/tests/snapshots/testsuite/table_copy.wast/1400.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 24) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1434.print b/tests/snapshots/testsuite/table_copy.wast/1434.print index a36cc1e4bb..c6d32faa9b 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1434.print +++ b/tests/snapshots/testsuite/table_copy.wast/1434.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 21) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 21) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1468.print b/tests/snapshots/testsuite/table_copy.wast/1468.print index c590adafc8..c4ca18bb9c 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1468.print +++ b/tests/snapshots/testsuite/table_copy.wast/1468.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 128 128 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 112) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 128 128 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 112) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/1598.print b/tests/snapshots/testsuite/table_copy.wast/1598.print index 8c02def315..fe26eea5ba 100644 --- a/tests/snapshots/testsuite/table_copy.wast/1598.print +++ b/tests/snapshots/testsuite/table_copy.wast/1598.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) + (table (;0;) 128 128 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.copy ) - (table (;0;) 128 128 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) (i32.const 0) func $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/188.print b/tests/snapshots/testsuite/table_copy.wast/188.print index 16aedb58bf..20a6e92772 100644 --- a/tests/snapshots/testsuite/table_copy.wast/188.print +++ b/tests/snapshots/testsuite/table_copy.wast/188.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/2.print b/tests/snapshots/testsuite/table_copy.wast/2.print index 32a9c385a4..ff26fa30df 100644 --- a/tests/snapshots/testsuite/table_copy.wast/2.print +++ b/tests/snapshots/testsuite/table_copy.wast/2.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -33,15 +44,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/250.print b/tests/snapshots/testsuite/table_copy.wast/250.print index 350bc90311..5f30ba0407 100644 --- a/tests/snapshots/testsuite/table_copy.wast/250.print +++ b/tests/snapshots/testsuite/table_copy.wast/250.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/312.print b/tests/snapshots/testsuite/table_copy.wast/312.print index 5295b23e4d..df4bf241b5 100644 --- a/tests/snapshots/testsuite/table_copy.wast/312.print +++ b/tests/snapshots/testsuite/table_copy.wast/312.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/374.print b/tests/snapshots/testsuite/table_copy.wast/374.print index f76d19b7bb..65e074706e 100644 --- a/tests/snapshots/testsuite/table_copy.wast/374.print +++ b/tests/snapshots/testsuite/table_copy.wast/374.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/436.print b/tests/snapshots/testsuite/table_copy.wast/436.print index b2a4e5b0ad..74b7eea2ea 100644 --- a/tests/snapshots/testsuite/table_copy.wast/436.print +++ b/tests/snapshots/testsuite/table_copy.wast/436.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/498.print b/tests/snapshots/testsuite/table_copy.wast/498.print index c1bfbaff8a..c75e10c494 100644 --- a/tests/snapshots/testsuite/table_copy.wast/498.print +++ b/tests/snapshots/testsuite/table_copy.wast/498.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/560.print b/tests/snapshots/testsuite/table_copy.wast/560.print index 06e65c6427..760a2dbe78 100644 --- a/tests/snapshots/testsuite/table_copy.wast/560.print +++ b/tests/snapshots/testsuite/table_copy.wast/560.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -33,15 +44,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/622.print b/tests/snapshots/testsuite/table_copy.wast/622.print index 1917df62bc..c13ffceb7b 100644 --- a/tests/snapshots/testsuite/table_copy.wast/622.print +++ b/tests/snapshots/testsuite/table_copy.wast/622.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/64.print b/tests/snapshots/testsuite/table_copy.wast/64.print index f23b6240c0..dfe7294611 100644 --- a/tests/snapshots/testsuite/table_copy.wast/64.print +++ b/tests/snapshots/testsuite/table_copy.wast/64.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) + (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (table $t1) (i32.const 3) func 1 3 1 4) - (elem (;5;) (table $t1) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/684.print b/tests/snapshots/testsuite/table_copy.wast/684.print index 9e7c4d755c..5cb59bc827 100644 --- a/tests/snapshots/testsuite/table_copy.wast/684.print +++ b/tests/snapshots/testsuite/table_copy.wast/684.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/746.print b/tests/snapshots/testsuite/table_copy.wast/746.print index 566608c914..da840f245b 100644 --- a/tests/snapshots/testsuite/table_copy.wast/746.print +++ b/tests/snapshots/testsuite/table_copy.wast/746.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/808.print b/tests/snapshots/testsuite/table_copy.wast/808.print index 3726c8ad8c..43b1e4d804 100644 --- a/tests/snapshots/testsuite/table_copy.wast/808.print +++ b/tests/snapshots/testsuite/table_copy.wast/808.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/870.print b/tests/snapshots/testsuite/table_copy.wast/870.print index db599df887..01f701a496 100644 --- a/tests/snapshots/testsuite/table_copy.wast/870.print +++ b/tests/snapshots/testsuite/table_copy.wast/870.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/932.print b/tests/snapshots/testsuite/table_copy.wast/932.print index 02ee0d0c11..cb3c7d566e 100644 --- a/tests/snapshots/testsuite/table_copy.wast/932.print +++ b/tests/snapshots/testsuite/table_copy.wast/932.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_copy.wast/994.print b/tests/snapshots/testsuite/table_copy.wast/994.print index e7fb6770b7..88b397fd58 100644 --- a/tests/snapshots/testsuite/table_copy.wast/994.print +++ b/tests/snapshots/testsuite/table_copy.wast/994.print @@ -7,6 +7,17 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check_t0" (func 11)) + (export "check_t1" (func 12)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) + (elem (;4;) (i32.const 3) func 1 3 1 4) + (elem (;5;) (i32.const 11) func 6 3 2 5 7) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -36,15 +47,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check_t0" (func 11)) - (export "check_t1" (func 12)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) - (elem (;4;) (i32.const 3) func 1 3 1 4) - (elem (;5;) (i32.const 11) func 6 3 2 5 7) ) diff --git a/tests/snapshots/testsuite/table_fill.wast/0.print b/tests/snapshots/testsuite/table_fill.wast/0.print index 582a510ccf..6f79f73bff 100644 --- a/tests/snapshots/testsuite/table_fill.wast/0.print +++ b/tests/snapshots/testsuite/table_fill.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 externref i32))) (type (;1;) (func (param i32) (result externref))) + (table $t (;0;) 10 externref) + (export "fill" (func 0)) + (export "fill-abbrev" (func 1)) + (export "get" (func 2)) (func (;0;) (type 0) (param $i i32) (param $r externref) (param $n i32) local.get $i local.get $r @@ -17,8 +21,4 @@ local.get $i table.get $t ) - (table $t (;0;) 10 externref) - (export "fill" (func 0)) - (export "fill-abbrev" (func 1)) - (export "get" (func 2)) ) diff --git a/tests/snapshots/testsuite/table_get.wast/0.print b/tests/snapshots/testsuite/table_get.wast/0.print index 3c1465aa6a..65dec0f7fc 100644 --- a/tests/snapshots/testsuite/table_get.wast/0.print +++ b/tests/snapshots/testsuite/table_get.wast/0.print @@ -4,6 +4,13 @@ (type (;2;) (func (param i32) (result externref))) (type (;3;) (func (param i32) (result funcref))) (type (;4;) (func (param i32) (result i32))) + (table $t2 (;0;) 2 externref) + (table $t3 (;1;) 3 funcref) + (export "init" (func 1)) + (export "get-externref" (func 2)) + (export "get-funcref" (func $f3)) + (export "is_null-funcref" (func 4)) + (elem (;0;) (table $t3) (i32.const 1) func $dummy) (func $dummy (;0;) (type 0)) (func (;1;) (type 1) (param $r externref) i32.const 1 @@ -27,11 +34,4 @@ call $f3 ref.is_null ) - (table $t2 (;0;) 2 externref) - (table $t3 (;1;) 3 funcref) - (export "init" (func 1)) - (export "get-externref" (func 2)) - (export "get-funcref" (func $f3)) - (export "is_null-funcref" (func 4)) - (elem (;0;) (table $t3) (i32.const 1) func $dummy) ) diff --git a/tests/snapshots/testsuite/table_grow.wast/0.print b/tests/snapshots/testsuite/table_grow.wast/0.print index 5c63fed8cf..c736f6c5b0 100644 --- a/tests/snapshots/testsuite/table_grow.wast/0.print +++ b/tests/snapshots/testsuite/table_grow.wast/0.print @@ -3,6 +3,12 @@ (type (;1;) (func (param i32 externref))) (type (;2;) (func (param i32 externref) (result i32))) (type (;3;) (func (result i32))) + (table $t (;0;) 0 externref) + (export "get" (func 0)) + (export "set" (func 1)) + (export "grow" (func 2)) + (export "grow-abbrev" (func 3)) + (export "size" (func 4)) (func (;0;) (type 0) (param $i i32) (result externref) local.get $i table.get $t @@ -25,10 +31,4 @@ (func (;4;) (type 3) (result i32) table.size $t ) - (table $t (;0;) 0 externref) - (export "get" (func 0)) - (export "set" (func 1)) - (export "grow" (func 2)) - (export "grow-abbrev" (func 3)) - (export "size" (func 4)) ) diff --git a/tests/snapshots/testsuite/table_grow.wast/22.print b/tests/snapshots/testsuite/table_grow.wast/22.print index 238c3fed52..9a5a62af35 100644 --- a/tests/snapshots/testsuite/table_grow.wast/22.print +++ b/tests/snapshots/testsuite/table_grow.wast/22.print @@ -1,11 +1,11 @@ (module (type (;0;) (func (result i32))) + (table $t (;0;) 16 funcref) + (export "grow" (func $f)) + (elem (;0;) declare func $f) (func $f (;0;) (type 0) (result i32) ref.func $f i32.const -16 table.grow $t ) - (table $t (;0;) 16 funcref) - (export "grow" (func $f)) - (elem (;0;) declare func $f) ) diff --git a/tests/snapshots/testsuite/table_grow.wast/24.print b/tests/snapshots/testsuite/table_grow.wast/24.print index 9df1f74937..e50abc145a 100644 --- a/tests/snapshots/testsuite/table_grow.wast/24.print +++ b/tests/snapshots/testsuite/table_grow.wast/24.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) + (table $t (;0;) 0 externref) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) ref.null extern local.get 0 table.grow $t ) - (table $t (;0;) 0 externref) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/table_grow.wast/30.print b/tests/snapshots/testsuite/table_grow.wast/30.print index 4efc20011a..8355bd267d 100644 --- a/tests/snapshots/testsuite/table_grow.wast/30.print +++ b/tests/snapshots/testsuite/table_grow.wast/30.print @@ -1,10 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) + (table $t (;0;) 0 10 externref) + (export "grow" (func 0)) (func (;0;) (type 0) (param i32) (result i32) ref.null extern local.get 0 table.grow $t ) - (table $t (;0;) 0 10 externref) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/table_grow.wast/39.print b/tests/snapshots/testsuite/table_grow.wast/39.print index cb3a0ea60d..9219dfff88 100644 --- a/tests/snapshots/testsuite/table_grow.wast/39.print +++ b/tests/snapshots/testsuite/table_grow.wast/39.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32) (result funcref))) + (table $t (;0;) 10 funcref) + (export "grow" (func 0)) + (export "check-table-null" (func 1)) + (elem (;0;) declare func 1) (func (;0;) (type 0) (param i32) (result i32) ref.null func local.get 0 @@ -35,8 +39,4 @@ end local.get 2 ) - (table $t (;0;) 10 funcref) - (export "grow" (func 0)) - (export "check-table-null" (func 1)) - (elem (;0;) declare func 1) ) diff --git a/tests/snapshots/testsuite/table_grow.wast/43.print b/tests/snapshots/testsuite/table_grow.wast/43.print index 1a3935469e..86ad707a3e 100644 --- a/tests/snapshots/testsuite/table_grow.wast/43.print +++ b/tests/snapshots/testsuite/table_grow.wast/43.print @@ -1,11 +1,11 @@ (module $Tgt (type (;0;) (func (result i32))) + (table (;0;) 1 funcref) + (export "table" (table 0)) + (export "grow" (func 0)) (func (;0;) (type 0) (result i32) ref.null func i32.const 1 table.grow 0 ) - (table (;0;) 1 funcref) - (export "table" (table 0)) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/table_grow.wast/46.print b/tests/snapshots/testsuite/table_grow.wast/46.print index c5cc162efe..d940d673ec 100644 --- a/tests/snapshots/testsuite/table_grow.wast/46.print +++ b/tests/snapshots/testsuite/table_grow.wast/46.print @@ -1,11 +1,11 @@ (module $Tgit1 (type (;0;) (func (result i32))) (import "grown-table" "table" (table (;0;) 2 funcref)) + (export "table" (table 0)) + (export "grow" (func 0)) (func (;0;) (type 0) (result i32) ref.null func i32.const 1 table.grow 0 ) - (export "table" (table 0)) - (export "grow" (func 0)) ) diff --git a/tests/snapshots/testsuite/table_grow.wast/49.print b/tests/snapshots/testsuite/table_grow.wast/49.print index d84b869e43..54ffb48856 100644 --- a/tests/snapshots/testsuite/table_grow.wast/49.print +++ b/tests/snapshots/testsuite/table_grow.wast/49.print @@ -1,8 +1,8 @@ (module $Tgit2 (type (;0;) (func (result i32))) (import "grown-imported-table" "table" (table (;0;) 3 funcref)) + (export "size" (func 0)) (func (;0;) (type 0) (result i32) table.size 0 ) - (export "size" (func 0)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/0.print b/tests/snapshots/testsuite/table_init.wast/0.print index 0677b5f604..0c0796e0d6 100644 --- a/tests/snapshots/testsuite/table_init.wast/0.print +++ b/tests/snapshots/testsuite/table_init.wast/0.print @@ -1,5 +1,10 @@ (module (type (;0;) (func (result i32))) + (export "ef0" (func 0)) + (export "ef1" (func 1)) + (export "ef2" (func 2)) + (export "ef3" (func 3)) + (export "ef4" (func 4)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -15,9 +20,4 @@ (func (;4;) (type 0) (result i32) i32.const 4 ) - (export "ef0" (func 0)) - (export "ef1" (func 1)) - (export "ef2" (func 2)) - (export "ef3" (func 3)) - (export "ef4" (func 4)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/130.print b/tests/snapshots/testsuite/table_init.wast/130.print index a1a764e47b..a031d7b29b 100644 --- a/tests/snapshots/testsuite/table_init.wast/130.print +++ b/tests/snapshots/testsuite/table_init.wast/130.print @@ -7,6 +7,14 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -32,12 +40,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/162.print b/tests/snapshots/testsuite/table_init.wast/162.print index dca8ca1d19..9cb5e0939f 100644 --- a/tests/snapshots/testsuite/table_init.wast/162.print +++ b/tests/snapshots/testsuite/table_init.wast/162.print @@ -7,6 +7,14 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -58,12 +66,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/198.print b/tests/snapshots/testsuite/table_init.wast/198.print index dbf74496ee..8fb2fa1264 100644 --- a/tests/snapshots/testsuite/table_init.wast/198.print +++ b/tests/snapshots/testsuite/table_init.wast/198.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -34,11 +41,4 @@ (func (;10;) (type 1) elem.drop 2 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/2.print b/tests/snapshots/testsuite/table_init.wast/2.print index c35e902337..4e15845244 100644 --- a/tests/snapshots/testsuite/table_init.wast/2.print +++ b/tests/snapshots/testsuite/table_init.wast/2.print @@ -7,6 +7,14 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -32,12 +40,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/200.print b/tests/snapshots/testsuite/table_init.wast/200.print index ee6aa132ac..b9794c2e75 100644 --- a/tests/snapshots/testsuite/table_init.wast/200.print +++ b/tests/snapshots/testsuite/table_init.wast/200.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 1 table.init 2 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/202.print b/tests/snapshots/testsuite/table_init.wast/202.print index aaac671bb5..e06cc26c40 100644 --- a/tests/snapshots/testsuite/table_init.wast/202.print +++ b/tests/snapshots/testsuite/table_init.wast/202.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -41,11 +48,4 @@ i32.const 1 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/204.print b/tests/snapshots/testsuite/table_init.wast/204.print index 42fcce87cf..e4ebfa43a3 100644 --- a/tests/snapshots/testsuite/table_init.wast/204.print +++ b/tests/snapshots/testsuite/table_init.wast/204.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -35,11 +42,4 @@ elem.drop 1 elem.drop 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/206.print b/tests/snapshots/testsuite/table_init.wast/206.print index c42a86c5d3..087e93f01e 100644 --- a/tests/snapshots/testsuite/table_init.wast/206.print +++ b/tests/snapshots/testsuite/table_init.wast/206.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -38,11 +45,4 @@ i32.const 1 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/208.print b/tests/snapshots/testsuite/table_init.wast/208.print index df88f40d38..ba5189ed91 100644 --- a/tests/snapshots/testsuite/table_init.wast/208.print +++ b/tests/snapshots/testsuite/table_init.wast/208.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 5 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/210.print b/tests/snapshots/testsuite/table_init.wast/210.print index 660a90a750..a2d8a752da 100644 --- a/tests/snapshots/testsuite/table_init.wast/210.print +++ b/tests/snapshots/testsuite/table_init.wast/210.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 3 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/212.print b/tests/snapshots/testsuite/table_init.wast/212.print index 3256396657..b85be8a13e 100644 --- a/tests/snapshots/testsuite/table_init.wast/212.print +++ b/tests/snapshots/testsuite/table_init.wast/212.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 3 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/214.print b/tests/snapshots/testsuite/table_init.wast/214.print index 0fc7fc7c23..e27ce74459 100644 --- a/tests/snapshots/testsuite/table_init.wast/214.print +++ b/tests/snapshots/testsuite/table_init.wast/214.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/216.print b/tests/snapshots/testsuite/table_init.wast/216.print index 2929fd0e33..d785928890 100644 --- a/tests/snapshots/testsuite/table_init.wast/216.print +++ b/tests/snapshots/testsuite/table_init.wast/216.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/218.print b/tests/snapshots/testsuite/table_init.wast/218.print index 47a2f5de34..a77c58270b 100644 --- a/tests/snapshots/testsuite/table_init.wast/218.print +++ b/tests/snapshots/testsuite/table_init.wast/218.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/220.print b/tests/snapshots/testsuite/table_init.wast/220.print index 6022440fec..98fe33ff53 100644 --- a/tests/snapshots/testsuite/table_init.wast/220.print +++ b/tests/snapshots/testsuite/table_init.wast/220.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/222.print b/tests/snapshots/testsuite/table_init.wast/222.print index db358f6e56..a5c59d549f 100644 --- a/tests/snapshots/testsuite/table_init.wast/222.print +++ b/tests/snapshots/testsuite/table_init.wast/222.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/224.print b/tests/snapshots/testsuite/table_init.wast/224.print index 68ebd406d1..de8a52e37b 100644 --- a/tests/snapshots/testsuite/table_init.wast/224.print +++ b/tests/snapshots/testsuite/table_init.wast/224.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/226.print b/tests/snapshots/testsuite/table_init.wast/226.print index 49fee375ab..6d496e0616 100644 --- a/tests/snapshots/testsuite/table_init.wast/226.print +++ b/tests/snapshots/testsuite/table_init.wast/226.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 3 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/228.print b/tests/snapshots/testsuite/table_init.wast/228.print index 7d82ec8132..2af3452eec 100644 --- a/tests/snapshots/testsuite/table_init.wast/228.print +++ b/tests/snapshots/testsuite/table_init.wast/228.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/230.print b/tests/snapshots/testsuite/table_init.wast/230.print index 14197115b9..5bf04e3396 100644 --- a/tests/snapshots/testsuite/table_init.wast/230.print +++ b/tests/snapshots/testsuite/table_init.wast/230.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/232.print b/tests/snapshots/testsuite/table_init.wast/232.print index a43cc55645..cf361944bd 100644 --- a/tests/snapshots/testsuite/table_init.wast/232.print +++ b/tests/snapshots/testsuite/table_init.wast/232.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/234.print b/tests/snapshots/testsuite/table_init.wast/234.print index 6243646666..bfb67c011c 100644 --- a/tests/snapshots/testsuite/table_init.wast/234.print +++ b/tests/snapshots/testsuite/table_init.wast/234.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/236.print b/tests/snapshots/testsuite/table_init.wast/236.print index cbbaff6544..1eb41a2496 100644 --- a/tests/snapshots/testsuite/table_init.wast/236.print +++ b/tests/snapshots/testsuite/table_init.wast/236.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/238.print b/tests/snapshots/testsuite/table_init.wast/238.print index aedc543a21..6c64ad612f 100644 --- a/tests/snapshots/testsuite/table_init.wast/238.print +++ b/tests/snapshots/testsuite/table_init.wast/238.print @@ -1,6 +1,13 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func)) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 28 28 funcref) + (export "test" (func 10)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;0;) (type 0) (result i32) i32.const 0 ) @@ -37,11 +44,4 @@ i32.const 0 table.init $t1 1 ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 28 28 funcref) - (export "test" (func 10)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/303.print b/tests/snapshots/testsuite/table_init.wast/303.print index f8bd504a91..83a883908e 100644 --- a/tests/snapshots/testsuite/table_init.wast/303.print +++ b/tests/snapshots/testsuite/table_init.wast/303.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/337.print b/tests/snapshots/testsuite/table_init.wast/337.print index f8bd504a91..83a883908e 100644 --- a/tests/snapshots/testsuite/table_init.wast/337.print +++ b/tests/snapshots/testsuite/table_init.wast/337.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 32 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 32 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/34.print b/tests/snapshots/testsuite/table_init.wast/34.print index feedc84255..33c183b450 100644 --- a/tests/snapshots/testsuite/table_init.wast/34.print +++ b/tests/snapshots/testsuite/table_init.wast/34.print @@ -7,6 +7,14 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -32,12 +40,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/371.print b/tests/snapshots/testsuite/table_init.wast/371.print index acdc27b3a6..fbff0341bb 100644 --- a/tests/snapshots/testsuite/table_init.wast/371.print +++ b/tests/snapshots/testsuite/table_init.wast/371.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 160 320 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 160 320 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/533.print b/tests/snapshots/testsuite/table_init.wast/533.print index acdc27b3a6..fbff0341bb 100644 --- a/tests/snapshots/testsuite/table_init.wast/533.print +++ b/tests/snapshots/testsuite/table_init.wast/533.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 160 320 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 160 320 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/66.print b/tests/snapshots/testsuite/table_init.wast/66.print index 16e1373ab6..185386a193 100644 --- a/tests/snapshots/testsuite/table_init.wast/66.print +++ b/tests/snapshots/testsuite/table_init.wast/66.print @@ -7,6 +7,14 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -58,12 +66,4 @@ local.get 0 call_indirect (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/695.print b/tests/snapshots/testsuite/table_init.wast/695.print index 22bfa2dbe6..7d24cd3ae2 100644 --- a/tests/snapshots/testsuite/table_init.wast/695.print +++ b/tests/snapshots/testsuite/table_init.wast/695.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 64 64 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 64 64 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/761.print b/tests/snapshots/testsuite/table_init.wast/761.print index 0512b74c5b..fe958d9332 100644 --- a/tests/snapshots/testsuite/table_init.wast/761.print +++ b/tests/snapshots/testsuite/table_init.wast/761.print @@ -2,6 +2,26 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32))) + (table (;0;) 16 16 funcref) + (export "f0" (func $f0)) + (export "f1" (func $f1)) + (export "f2" (func $f2)) + (export "f3" (func $f3)) + (export "f4" (func $f4)) + (export "f5" (func $f5)) + (export "f6" (func $f6)) + (export "f7" (func $f7)) + (export "f8" (func $f8)) + (export "f9" (func $f9)) + (export "f10" (func $f10)) + (export "f11" (func $f11)) + (export "f12" (func $f12)) + (export "f13" (func $f13)) + (export "f14" (func $f14)) + (export "f15" (func $f15)) + (export "test" (func 16)) + (export "run" (func 17)) + (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) (func $f0 (;0;) (type 0) (result i32) i32.const 0 ) @@ -60,24 +80,4 @@ local.get $len table.init 0 ) - (table (;0;) 16 16 funcref) - (export "f0" (func $f0)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "f3" (func $f3)) - (export "f4" (func $f4)) - (export "f5" (func $f5)) - (export "f6" (func $f6)) - (export "f7" (func $f7)) - (export "f8" (func $f8)) - (export "f9" (func $f9)) - (export "f10" (func $f10)) - (export "f11" (func $f11)) - (export "f12" (func $f12)) - (export "f13" (func $f13)) - (export "f14" (func $f14)) - (export "f15" (func $f15)) - (export "test" (func 16)) - (export "run" (func 17)) - (elem (;0;) funcref (ref.func $f0) (ref.func $f1) (ref.func $f2) (ref.func $f3) (ref.func $f4) (ref.func $f5) (ref.func $f6) (ref.func $f7) (ref.func $f8) (ref.func $f9) (ref.func $f10) (ref.func $f11) (ref.func $f12) (ref.func $f13) (ref.func $f14) (ref.func $f15)) ) diff --git a/tests/snapshots/testsuite/table_init.wast/779.print b/tests/snapshots/testsuite/table_init.wast/779.print index c2161c90ce..9d2dd203b6 100644 --- a/tests/snapshots/testsuite/table_init.wast/779.print +++ b/tests/snapshots/testsuite/table_init.wast/779.print @@ -1,11 +1,5 @@ (module (type (;0;) (func)) - (func (;0;) (type 0) - i32.const 0 - i32.const 0 - i32.const 0 - table.init 64 - ) (table (;0;) 1 funcref) (elem (;0;) funcref) (elem (;1;) funcref) @@ -72,4 +66,10 @@ (elem (;62;) funcref) (elem (;63;) funcref) (elem (;64;) funcref) + (func (;0;) (type 0) + i32.const 0 + i32.const 0 + i32.const 0 + table.init 64 + ) ) diff --git a/tests/snapshots/testsuite/table_init.wast/98.print b/tests/snapshots/testsuite/table_init.wast/98.print index a6e9aefda7..2bd8a4da74 100644 --- a/tests/snapshots/testsuite/table_init.wast/98.print +++ b/tests/snapshots/testsuite/table_init.wast/98.print @@ -7,6 +7,14 @@ (import "a" "ef2" (func (;2;) (type 0))) (import "a" "ef3" (func (;3;) (type 0))) (import "a" "ef4" (func (;4;) (type 0))) + (table $t0 (;0;) 30 30 funcref) + (table $t1 (;1;) 30 30 funcref) + (export "test" (func 10)) + (export "check" (func 11)) + (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) + (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) + (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) + (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) (func (;5;) (type 0) (result i32) i32.const 5 ) @@ -32,12 +40,4 @@ local.get 0 call_indirect $t1 (type 0) ) - (table $t0 (;0;) 30 30 funcref) - (table $t1 (;1;) 30 30 funcref) - (export "test" (func 10)) - (export "check" (func 11)) - (elem (;0;) (table $t1) (i32.const 2) func 3 1 4 1) - (elem (;1;) funcref (ref.func 2) (ref.func 7) (ref.func 1) (ref.func 8)) - (elem (;2;) (table $t1) (i32.const 12) func 7 5 2 3 6) - (elem (;3;) funcref (ref.func 5) (ref.func 9) (ref.func 2) (ref.func 7) (ref.func 6)) ) diff --git a/tests/snapshots/testsuite/table_set.wast/0.print b/tests/snapshots/testsuite/table_set.wast/0.print index 05bf558751..434d2c7e02 100644 --- a/tests/snapshots/testsuite/table_set.wast/0.print +++ b/tests/snapshots/testsuite/table_set.wast/0.print @@ -6,6 +6,15 @@ (type (;4;) (func (param i32 funcref))) (type (;5;) (func (param i32 i32))) (type (;6;) (func (param i32) (result i32))) + (table $t2 (;0;) 1 externref) + (table $t3 (;1;) 2 funcref) + (export "get-externref" (func 1)) + (export "get-funcref" (func $f3)) + (export "set-externref" (func 3)) + (export "set-funcref" (func 4)) + (export "set-funcref-from" (func 5)) + (export "is_null-funcref" (func 6)) + (elem (;0;) (table $t3) (i32.const 1) func $dummy) (func $dummy (;0;) (type 0)) (func (;1;) (type 1) (param $i i32) (result externref) local.get $i @@ -36,13 +45,4 @@ call $f3 ref.is_null ) - (table $t2 (;0;) 1 externref) - (table $t3 (;1;) 2 funcref) - (export "get-externref" (func 1)) - (export "get-funcref" (func $f3)) - (export "set-externref" (func 3)) - (export "set-funcref" (func 4)) - (export "set-funcref-from" (func 5)) - (export "is_null-funcref" (func 6)) - (elem (;0;) (table $t3) (i32.const 1) func $dummy) ) diff --git a/tests/snapshots/testsuite/table_size.wast/0.print b/tests/snapshots/testsuite/table_size.wast/0.print index baf794b86d..2586d51c77 100644 --- a/tests/snapshots/testsuite/table_size.wast/0.print +++ b/tests/snapshots/testsuite/table_size.wast/0.print @@ -1,6 +1,18 @@ (module (type (;0;) (func (result i32))) (type (;1;) (func (param i32))) + (table $t0 (;0;) 0 externref) + (table $t1 (;1;) 1 externref) + (table $t2 (;2;) 0 2 externref) + (table $t3 (;3;) 3 8 externref) + (export "size-t0" (func 0)) + (export "size-t1" (func 1)) + (export "size-t2" (func 2)) + (export "size-t3" (func 3)) + (export "grow-t0" (func 4)) + (export "grow-t1" (func 5)) + (export "grow-t2" (func 6)) + (export "grow-t3" (func 7)) (func (;0;) (type 0) (result i32) table.size $t0 ) @@ -37,16 +49,4 @@ table.grow $t3 drop ) - (table $t0 (;0;) 0 externref) - (table $t1 (;1;) 1 externref) - (table $t2 (;2;) 0 2 externref) - (table $t3 (;3;) 3 8 externref) - (export "size-t0" (func 0)) - (export "size-t1" (func 1)) - (export "size-t2" (func 2)) - (export "size-t3" (func 3)) - (export "grow-t0" (func 4)) - (export "grow-t1" (func 5)) - (export "grow-t2" (func 6)) - (export "grow-t3" (func 7)) ) diff --git a/tests/snapshots/testsuite/token.wast/8.print b/tests/snapshots/testsuite/token.wast/8.print index 357849fd3d..b0d086b029 100644 --- a/tests/snapshots/testsuite/token.wast/8.print +++ b/tests/snapshots/testsuite/token.wast/8.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func 0) + (func (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/token.wast/9.print b/tests/snapshots/testsuite/token.wast/9.print index 40b3ac599a..0b9eafb05a 100644 --- a/tests/snapshots/testsuite/token.wast/9.print +++ b/tests/snapshots/testsuite/token.wast/9.print @@ -1,6 +1,6 @@ (module (type (;0;) (func)) - (func $f (;0;) (type 0)) (table (;0;) 1 funcref) (elem (;0;) (i32.const 0) func $f) + (func $f (;0;) (type 0)) ) diff --git a/tests/snapshots/testsuite/traps.wast/0.print b/tests/snapshots/testsuite/traps.wast/0.print index c1d9e32287..8472ac3181 100644 --- a/tests/snapshots/testsuite/traps.wast/0.print +++ b/tests/snapshots/testsuite/traps.wast/0.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i64 i64))) + (export "no_dce.i32.div_s" (func 0)) + (export "no_dce.i32.div_u" (func 1)) + (export "no_dce.i64.div_s" (func 2)) + (export "no_dce.i64.div_u" (func 3)) (func (;0;) (type 0) (param $x i32) (param $y i32) local.get $x local.get $y @@ -25,8 +29,4 @@ i64.div_u drop ) - (export "no_dce.i32.div_s" (func 0)) - (export "no_dce.i32.div_u" (func 1)) - (export "no_dce.i64.div_s" (func 2)) - (export "no_dce.i64.div_u" (func 3)) ) diff --git a/tests/snapshots/testsuite/traps.wast/12.print b/tests/snapshots/testsuite/traps.wast/12.print index 5590b375fe..1244c0b172 100644 --- a/tests/snapshots/testsuite/traps.wast/12.print +++ b/tests/snapshots/testsuite/traps.wast/12.print @@ -1,6 +1,14 @@ (module (type (;0;) (func (param f32))) (type (;1;) (func (param f64))) + (export "no_dce.i32.trunc_f32_s" (func 0)) + (export "no_dce.i32.trunc_f32_u" (func 1)) + (export "no_dce.i32.trunc_f64_s" (func 2)) + (export "no_dce.i32.trunc_f64_u" (func 3)) + (export "no_dce.i64.trunc_f32_s" (func 4)) + (export "no_dce.i64.trunc_f32_u" (func 5)) + (export "no_dce.i64.trunc_f64_s" (func 6)) + (export "no_dce.i64.trunc_f64_u" (func 7)) (func (;0;) (type 0) (param $x f32) local.get $x i32.trunc_f32_s @@ -41,12 +49,4 @@ i64.trunc_f64_u drop ) - (export "no_dce.i32.trunc_f32_s" (func 0)) - (export "no_dce.i32.trunc_f32_u" (func 1)) - (export "no_dce.i32.trunc_f64_s" (func 2)) - (export "no_dce.i32.trunc_f64_u" (func 3)) - (export "no_dce.i64.trunc_f32_s" (func 4)) - (export "no_dce.i64.trunc_f32_u" (func 5)) - (export "no_dce.i64.trunc_f64_s" (func 6)) - (export "no_dce.i64.trunc_f64_u" (func 7)) ) diff --git a/tests/snapshots/testsuite/traps.wast/21.print b/tests/snapshots/testsuite/traps.wast/21.print index ac6e5b326b..b6c730b1ba 100644 --- a/tests/snapshots/testsuite/traps.wast/21.print +++ b/tests/snapshots/testsuite/traps.wast/21.print @@ -1,5 +1,20 @@ (module (type (;0;) (func (param i32))) + (memory (;0;) 1) + (export "no_dce.i32.load" (func 0)) + (export "no_dce.i32.load16_s" (func 1)) + (export "no_dce.i32.load16_u" (func 2)) + (export "no_dce.i32.load8_s" (func 3)) + (export "no_dce.i32.load8_u" (func 4)) + (export "no_dce.i64.load" (func 5)) + (export "no_dce.i64.load32_s" (func 6)) + (export "no_dce.i64.load32_u" (func 7)) + (export "no_dce.i64.load16_s" (func 8)) + (export "no_dce.i64.load16_u" (func 9)) + (export "no_dce.i64.load8_s" (func 10)) + (export "no_dce.i64.load8_u" (func 11)) + (export "no_dce.f32.load" (func 12)) + (export "no_dce.f64.load" (func 13)) (func (;0;) (type 0) (param $i i32) local.get $i i32.load @@ -70,19 +85,4 @@ f64.load drop ) - (memory (;0;) 1) - (export "no_dce.i32.load" (func 0)) - (export "no_dce.i32.load16_s" (func 1)) - (export "no_dce.i32.load16_u" (func 2)) - (export "no_dce.i32.load8_s" (func 3)) - (export "no_dce.i32.load8_u" (func 4)) - (export "no_dce.i64.load" (func 5)) - (export "no_dce.i64.load32_s" (func 6)) - (export "no_dce.i64.load32_u" (func 7)) - (export "no_dce.i64.load16_s" (func 8)) - (export "no_dce.i64.load16_u" (func 9)) - (export "no_dce.i64.load8_s" (func 10)) - (export "no_dce.i64.load8_u" (func 11)) - (export "no_dce.f32.load" (func 12)) - (export "no_dce.f64.load" (func 13)) ) diff --git a/tests/snapshots/testsuite/traps.wast/7.print b/tests/snapshots/testsuite/traps.wast/7.print index a5e1ae468c..6adfbb7be8 100644 --- a/tests/snapshots/testsuite/traps.wast/7.print +++ b/tests/snapshots/testsuite/traps.wast/7.print @@ -1,6 +1,10 @@ (module (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i64 i64))) + (export "no_dce.i32.rem_s" (func 0)) + (export "no_dce.i32.rem_u" (func 1)) + (export "no_dce.i64.rem_s" (func 2)) + (export "no_dce.i64.rem_u" (func 3)) (func (;0;) (type 0) (param $x i32) (param $y i32) local.get $x local.get $y @@ -25,8 +29,4 @@ i64.rem_u drop ) - (export "no_dce.i32.rem_s" (func 0)) - (export "no_dce.i32.rem_u" (func 1)) - (export "no_dce.i64.rem_s" (func 2)) - (export "no_dce.i64.rem_u" (func 3)) ) diff --git a/tests/snapshots/testsuite/unreachable.wast/0.print b/tests/snapshots/testsuite/unreachable.wast/0.print index 04ff5b6bca..19ad4801f4 100644 --- a/tests/snapshots/testsuite/unreachable.wast/0.print +++ b/tests/snapshots/testsuite/unreachable.wast/0.print @@ -6,6 +6,68 @@ (type (;4;) (func (result f32))) (type (;5;) (func (result f64))) (type (;6;) (func (param i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 1) + (global $a (;0;) (mut f32) f32.const 0x0p+0 (;=0;)) + (export "type-i32" (func 2)) + (export "type-i64" (func 3)) + (export "type-f32" (func 4)) + (export "type-f64" (func 5)) + (export "as-func-first" (func 6)) + (export "as-func-mid" (func 7)) + (export "as-func-last" (func 8)) + (export "as-func-value" (func 9)) + (export "as-block-first" (func 10)) + (export "as-block-mid" (func 11)) + (export "as-block-last" (func 12)) + (export "as-block-value" (func 13)) + (export "as-block-broke" (func 14)) + (export "as-loop-first" (func 15)) + (export "as-loop-mid" (func 16)) + (export "as-loop-last" (func 17)) + (export "as-loop-broke" (func 18)) + (export "as-br-value" (func 19)) + (export "as-br_if-cond" (func 20)) + (export "as-br_if-value" (func 21)) + (export "as-br_if-value-cond" (func 22)) + (export "as-br_table-index" (func 23)) + (export "as-br_table-value" (func 24)) + (export "as-br_table-value-2" (func 25)) + (export "as-br_table-value-index" (func 26)) + (export "as-br_table-value-and-index" (func 27)) + (export "as-return-value" (func 28)) + (export "as-if-cond" (func 29)) + (export "as-if-then" (func 30)) + (export "as-if-else" (func 31)) + (export "as-if-then-no-else" (func 32)) + (export "as-select-first" (func 33)) + (export "as-select-second" (func 34)) + (export "as-select-cond" (func 35)) + (export "as-call-first" (func 36)) + (export "as-call-mid" (func 37)) + (export "as-call-last" (func 38)) + (export "as-call_indirect-func" (func 39)) + (export "as-call_indirect-first" (func 40)) + (export "as-call_indirect-mid" (func 41)) + (export "as-call_indirect-last" (func 42)) + (export "as-local.set-value" (func 43)) + (export "as-local.tee-value" (func 44)) + (export "as-global.set-value" (func 45)) + (export "as-load-address" (func 46)) + (export "as-loadN-address" (func 47)) + (export "as-store-address" (func 48)) + (export "as-store-value" (func 49)) + (export "as-storeN-address" (func 50)) + (export "as-storeN-value" (func 51)) + (export "as-unary-operand" (func 52)) + (export "as-binary-left" (func 53)) + (export "as-binary-right" (func 54)) + (export "as-test-operand" (func 55)) + (export "as-compare-left" (func 56)) + (export "as-compare-right" (func 57)) + (export "as-convert-operand" (func 58)) + (export "as-memory.grow-size" (func 59)) + (elem (;0;) (i32.const 0) func $dummy3) (func $dummy (;0;) (type 1)) (func $dummy3 (;1;) (type $sig) (param i32 i32 i32)) (func (;2;) (type 2) (result i32) @@ -347,66 +409,4 @@ unreachable memory.grow ) - (table (;0;) 1 1 funcref) - (memory (;0;) 1) - (global $a (;0;) (mut f32) f32.const 0x0p+0 (;=0;)) - (export "type-i32" (func 2)) - (export "type-i64" (func 3)) - (export "type-f32" (func 4)) - (export "type-f64" (func 5)) - (export "as-func-first" (func 6)) - (export "as-func-mid" (func 7)) - (export "as-func-last" (func 8)) - (export "as-func-value" (func 9)) - (export "as-block-first" (func 10)) - (export "as-block-mid" (func 11)) - (export "as-block-last" (func 12)) - (export "as-block-value" (func 13)) - (export "as-block-broke" (func 14)) - (export "as-loop-first" (func 15)) - (export "as-loop-mid" (func 16)) - (export "as-loop-last" (func 17)) - (export "as-loop-broke" (func 18)) - (export "as-br-value" (func 19)) - (export "as-br_if-cond" (func 20)) - (export "as-br_if-value" (func 21)) - (export "as-br_if-value-cond" (func 22)) - (export "as-br_table-index" (func 23)) - (export "as-br_table-value" (func 24)) - (export "as-br_table-value-2" (func 25)) - (export "as-br_table-value-index" (func 26)) - (export "as-br_table-value-and-index" (func 27)) - (export "as-return-value" (func 28)) - (export "as-if-cond" (func 29)) - (export "as-if-then" (func 30)) - (export "as-if-else" (func 31)) - (export "as-if-then-no-else" (func 32)) - (export "as-select-first" (func 33)) - (export "as-select-second" (func 34)) - (export "as-select-cond" (func 35)) - (export "as-call-first" (func 36)) - (export "as-call-mid" (func 37)) - (export "as-call-last" (func 38)) - (export "as-call_indirect-func" (func 39)) - (export "as-call_indirect-first" (func 40)) - (export "as-call_indirect-mid" (func 41)) - (export "as-call_indirect-last" (func 42)) - (export "as-local.set-value" (func 43)) - (export "as-local.tee-value" (func 44)) - (export "as-global.set-value" (func 45)) - (export "as-load-address" (func 46)) - (export "as-loadN-address" (func 47)) - (export "as-store-address" (func 48)) - (export "as-store-value" (func 49)) - (export "as-storeN-address" (func 50)) - (export "as-storeN-value" (func 51)) - (export "as-unary-operand" (func 52)) - (export "as-binary-left" (func 53)) - (export "as-binary-right" (func 54)) - (export "as-test-operand" (func 55)) - (export "as-compare-left" (func 56)) - (export "as-compare-right" (func 57)) - (export "as-convert-operand" (func 58)) - (export "as-memory.grow-size" (func 59)) - (elem (;0;) (i32.const 0) func $dummy3) ) diff --git a/tests/snapshots/testsuite/unreached-valid.wast/0.print b/tests/snapshots/testsuite/unreached-valid.wast/0.print index 183cfd2b33..0421579e16 100644 --- a/tests/snapshots/testsuite/unreached-valid.wast/0.print +++ b/tests/snapshots/testsuite/unreached-valid.wast/0.print @@ -3,6 +3,13 @@ (type (;1;) (func)) (type (;2;) (func (result i32))) (type (;3;) (func (result i64))) + (export "select-trap-left" (func 0)) + (export "select-trap-right" (func 1)) + (export "select-unreached" (func 2)) + (export "select_unreached_result_1" (func 3)) + (export "select_unreached_result_2" (func 4)) + (export "unreachable-num" (func 5)) + (export "unreachable-ref" (func 6)) (func (;0;) (type 0) (param $cond i32) (result i32) unreachable i32.const 0 @@ -60,11 +67,4 @@ ref.is_null drop ) - (export "select-trap-left" (func 0)) - (export "select-trap-right" (func 1)) - (export "select-unreached" (func 2)) - (export "select_unreached_result_1" (func 3)) - (export "select_unreached_result_2" (func 4)) - (export "unreachable-num" (func 5)) - (export "unreachable-ref" (func 6)) ) diff --git a/tests/snapshots/testsuite/unreached-valid.wast/5.print b/tests/snapshots/testsuite/unreached-valid.wast/5.print index 3baf0b6d5d..6595b36d4b 100644 --- a/tests/snapshots/testsuite/unreached-valid.wast/5.print +++ b/tests/snapshots/testsuite/unreached-valid.wast/5.print @@ -1,5 +1,6 @@ (module (type (;0;) (func)) + (export "meet-bottom" (func 0)) (func (;0;) (type 0) block (result f64) ;; label = @1 block (result f32) ;; label = @2 @@ -12,5 +13,4 @@ end drop ) - (export "meet-bottom" (func 0)) ) diff --git a/tests/snapshots/testsuite/unwind.wast/0.print b/tests/snapshots/testsuite/unwind.wast/0.print index 39d7224864..80b06481c8 100644 --- a/tests/snapshots/testsuite/unwind.wast/0.print +++ b/tests/snapshots/testsuite/unwind.wast/0.print @@ -1,6 +1,55 @@ (module (type (;0;) (func)) (type (;1;) (func (result i32))) + (export "func-unwind-by-unreachable" (func 0)) + (export "func-unwind-by-br" (func 1)) + (export "func-unwind-by-br-value" (func 2)) + (export "func-unwind-by-br_if" (func 3)) + (export "func-unwind-by-br_if-value" (func 4)) + (export "func-unwind-by-br_table" (func 5)) + (export "func-unwind-by-br_table-value" (func 6)) + (export "func-unwind-by-return" (func 7)) + (export "block-unwind-by-unreachable" (func 8)) + (export "block-unwind-by-br" (func 9)) + (export "block-unwind-by-br-value" (func 10)) + (export "block-unwind-by-br_if" (func 11)) + (export "block-unwind-by-br_if-value" (func 12)) + (export "block-unwind-by-br_table" (func 13)) + (export "block-unwind-by-br_table-value" (func 14)) + (export "block-unwind-by-return" (func 15)) + (export "block-nested-unwind-by-unreachable" (func 16)) + (export "block-nested-unwind-by-br" (func 17)) + (export "block-nested-unwind-by-br-value" (func 18)) + (export "block-nested-unwind-by-br_if" (func 19)) + (export "block-nested-unwind-by-br_if-value" (func 20)) + (export "block-nested-unwind-by-br_table" (func 21)) + (export "block-nested-unwind-by-br_table-value" (func 22)) + (export "block-nested-unwind-by-return" (func 23)) + (export "unary-after-unreachable" (func 24)) + (export "unary-after-br" (func 25)) + (export "unary-after-br_if" (func 26)) + (export "unary-after-br_table" (func 27)) + (export "unary-after-return" (func 28)) + (export "binary-after-unreachable" (func 29)) + (export "binary-after-br" (func 30)) + (export "binary-after-br_if" (func 31)) + (export "binary-after-br_table" (func 32)) + (export "binary-after-return" (func 33)) + (export "select-after-unreachable" (func 34)) + (export "select-after-br" (func 35)) + (export "select-after-br_if" (func 36)) + (export "select-after-br_table" (func 37)) + (export "select-after-return" (func 38)) + (export "block-value-after-unreachable" (func 39)) + (export "block-value-after-br" (func 40)) + (export "block-value-after-br_if" (func 41)) + (export "block-value-after-br_table" (func 42)) + (export "block-value-after-return" (func 43)) + (export "loop-value-after-unreachable" (func 44)) + (export "loop-value-after-br" (func 45)) + (export "loop-value-after-br_if" (func 46)) + (export "loop-value-after-br_table" (func 47)) + (export "loop-value-after-return" (func 48)) (func (;0;) (type 0) i32.const 3 i64.const 1 @@ -422,53 +471,4 @@ return end ) - (export "func-unwind-by-unreachable" (func 0)) - (export "func-unwind-by-br" (func 1)) - (export "func-unwind-by-br-value" (func 2)) - (export "func-unwind-by-br_if" (func 3)) - (export "func-unwind-by-br_if-value" (func 4)) - (export "func-unwind-by-br_table" (func 5)) - (export "func-unwind-by-br_table-value" (func 6)) - (export "func-unwind-by-return" (func 7)) - (export "block-unwind-by-unreachable" (func 8)) - (export "block-unwind-by-br" (func 9)) - (export "block-unwind-by-br-value" (func 10)) - (export "block-unwind-by-br_if" (func 11)) - (export "block-unwind-by-br_if-value" (func 12)) - (export "block-unwind-by-br_table" (func 13)) - (export "block-unwind-by-br_table-value" (func 14)) - (export "block-unwind-by-return" (func 15)) - (export "block-nested-unwind-by-unreachable" (func 16)) - (export "block-nested-unwind-by-br" (func 17)) - (export "block-nested-unwind-by-br-value" (func 18)) - (export "block-nested-unwind-by-br_if" (func 19)) - (export "block-nested-unwind-by-br_if-value" (func 20)) - (export "block-nested-unwind-by-br_table" (func 21)) - (export "block-nested-unwind-by-br_table-value" (func 22)) - (export "block-nested-unwind-by-return" (func 23)) - (export "unary-after-unreachable" (func 24)) - (export "unary-after-br" (func 25)) - (export "unary-after-br_if" (func 26)) - (export "unary-after-br_table" (func 27)) - (export "unary-after-return" (func 28)) - (export "binary-after-unreachable" (func 29)) - (export "binary-after-br" (func 30)) - (export "binary-after-br_if" (func 31)) - (export "binary-after-br_table" (func 32)) - (export "binary-after-return" (func 33)) - (export "select-after-unreachable" (func 34)) - (export "select-after-br" (func 35)) - (export "select-after-br_if" (func 36)) - (export "select-after-br_table" (func 37)) - (export "select-after-return" (func 38)) - (export "block-value-after-unreachable" (func 39)) - (export "block-value-after-br" (func 40)) - (export "block-value-after-br_if" (func 41)) - (export "block-value-after-br_table" (func 42)) - (export "block-value-after-return" (func 43)) - (export "loop-value-after-unreachable" (func 44)) - (export "loop-value-after-br" (func 45)) - (export "loop-value-after-br_if" (func 46)) - (export "loop-value-after-br_table" (func 47)) - (export "loop-value-after-return" (func 48)) ) From c5b92eef4339ef2e8500a072a22a5e3e16507eb5 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Mon, 16 Sep 2024 15:08:37 -0400 Subject: [PATCH 2/2] Re-bless more tests --- .../tests/compositions/complex/composed.wat | 74 +++++++++---------- .../connect-resources/composed.wat | 14 ++-- .../tests/compositions/defs/composed.wat | 32 ++++---- crates/wasmprinter/tests/all.rs | 2 +- .../adapt-empty-interface/component.wat | 8 +- .../adapt-export-default/component.wat | 2 +- .../adapt-export-namespaced/component.wat | 2 +- .../adapt-export-reallocs/component.wat | 20 ++--- .../adapt-export-save-args/component.wat | 14 ++-- .../component.wat | 16 ++-- .../component.wat | 18 ++--- .../component.wat | 24 +++--- .../component.wat | 22 +++--- .../component.wat | 22 +++--- .../component.wat | 22 +++--- .../adapt-inject-stack/component.wat | 16 ++-- .../adapt-list-return/component.wat | 12 +-- .../adapt-memory-simple/component.wat | 8 +- .../components/adapt-multiple/component.wat | 12 +-- .../components/adapt-preview1/component.wat | 12 +-- .../adapt-stub-wasip2/component.wat | 16 ++-- .../tests/components/bare-funcs/component.wat | 18 ++--- .../ensure-default-type-exports/component.wat | 8 +- .../export-name-shuffling/component.wat | 2 +- .../components/export-resource/component.wat | 12 +-- .../export-type-name-conflict/component.wat | 2 +- .../export-with-type-alias/component.wat | 2 +- .../tests/components/exports/component.wat | 26 +++---- .../components/import-conflict/component.wat | 14 ++-- .../component.wat | 2 +- .../components/import-export/component.wat | 22 +++--- .../component.wat | 24 +++--- .../tests/components/imports/component.wat | 14 ++-- .../tests/components/initialize/component.wat | 4 +- .../components/lift-options/component.wat | 46 ++++++------ .../components/link-asyncify/component.wat | 32 ++++---- .../components/link-bare-funcs/component.wat | 30 ++++---- .../components/link-circular/component.wat | 18 ++--- .../component.wat | 42 +++++------ .../component.wat | 42 +++++------ .../components/link-dl-openable/component.wat | 12 +-- .../link-duplicate-symbols/component.wat | 20 ++--- .../components/link-got-func/component.wat | 14 ++-- .../components/link-initialize/component.wat | 34 ++++----- .../components/link-resources/component.wat | 10 +-- .../components/link-stub-wasip2/component.wat | 42 +++++------ .../tests/components/link-stubs/component.wat | 8 +- .../link-weak-cabi-realloc/component.wat | 22 +++--- .../components/link-weak-import/component.wat | 8 +- .../tests/components/link/component.wat | 34 ++++----- .../live-exports-dead-imports/component.wat | 2 +- .../components/lower-options/component.wat | 32 ++++---- .../components/many-same-names/component.wat | 2 +- .../components/multi-package/component.wat | 2 +- .../no-realloc-required/component.wat | 6 +- .../components/post-return/component.wat | 10 +-- .../component.wat | 2 +- .../resource-using-export/component.wat | 2 +- .../tests/components/simple/component.wat | 18 ++--- .../components/tricky-resources/component.wat | 2 +- .../tricky-resources2/component.wat | 2 +- .../tricky-resources4/component.wat | 2 +- .../worlds-with-type-renamings/component.wat | 8 +- .../worlds-with-types/component.wat | 2 +- 64 files changed, 512 insertions(+), 512 deletions(-) diff --git a/crates/wasm-compose/tests/compositions/complex/composed.wat b/crates/wasm-compose/tests/compositions/complex/composed.wat index d2ae822b36..2b9317feb3 100644 --- a/crates/wasm-compose/tests/compositions/complex/composed.wat +++ b/crates/wasm-compose/tests/compositions/complex/composed.wat @@ -81,16 +81,16 @@ (type (;1;) (func (param i32 i32) (result i32))) (type (;2;) (func (param i32 i32 i32 i32) (result i32))) (import "a" "m" (func (;0;) (type 0))) + (memory (;0;) 0) + (export "memory" (memory 0)) + (export "m" (func $m)) + (export "canonical_abi_realloc" (func $canonical_abi_realloc)) (func $m (;1;) (type 1) (param i32 i32) (result i32) unreachable ) (func $canonical_abi_realloc (;2;) (type 2) (param i32 i32 i32 i32) (result i32) unreachable ) - (memory (;0;) 0) - (export "memory" (memory 0)) - (export "m" (func $m)) - (export "canonical_abi_realloc" (func $canonical_abi_realloc)) ) (core module $m1 (;1;) (type (;0;) (func (param i32 i32))) @@ -99,6 +99,15 @@ (type (;3;) (func (param i32 i32 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32))) (type (;4;) (func (param i32 i32 i64 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32))) (type (;5;) (func (param i32))) + (table (;0;) 7 7 funcref) + (export "0" (func 0)) + (export "1" (func 1)) + (export "2" (func 2)) + (export "3" (func 3)) + (export "4" (func 4)) + (export "5" (func 5)) + (export "6" (func 6)) + (export "$imports" (table 0)) (func (;0;) (type 0) (param i32 i32) local.get 0 local.get 1 @@ -189,15 +198,6 @@ i32.const 6 call_indirect (type 5) ) - (table (;0;) 7 7 funcref) - (export "0" (func 0)) - (export "1" (func 1)) - (export "2" (func 2)) - (export "3" (func 3)) - (export "4" (func 4)) - (export "5" (func 5)) - (export "6" (func 6)) - (export "$imports" (table 0)) ) (core module $m2 (;2;) (type (;0;) (func (param i32 i32))) @@ -366,6 +366,30 @@ (type (;9;) (func (param i32 i32 i64 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32))) (type (;10;) (func (result i32))) (type (;11;) (func (param i32 i32 i32 i32) (result i32))) + (memory (;0;) 0) + (export "memory" (memory 0)) + (export "a" (func $a)) + (export "b" (func $b)) + (export "c" (func $c)) + (export "d" (func $d)) + (export "e" (func $e)) + (export "f" (func $f)) + (export "g" (func $g)) + (export "h" (func $h)) + (export "i" (func $i)) + (export "j" (func $j)) + (export "k" (func $k)) + (export "l" (func $l)) + (export "m" (func $m)) + (export "n" (func $n)) + (export "o" (func $o)) + (export "p" (func $p)) + (export "q" (func $q)) + (export "r" (func $r)) + (export "s" (func $s)) + (export "t" (func $t)) + (export "u" (func $u)) + (export "canonical_abi_realloc" (func $canonical_abi_realloc)) (func $a (;0;) (type 0) unreachable ) @@ -432,30 +456,6 @@ (func $canonical_abi_realloc (;21;) (type 11) (param i32 i32 i32 i32) (result i32) unreachable ) - (memory (;0;) 0) - (export "memory" (memory 0)) - (export "a" (func $a)) - (export "b" (func $b)) - (export "c" (func $c)) - (export "d" (func $d)) - (export "e" (func $e)) - (export "f" (func $f)) - (export "g" (func $g)) - (export "h" (func $h)) - (export "i" (func $i)) - (export "j" (func $j)) - (export "k" (func $k)) - (export "l" (func $l)) - (export "m" (func $m)) - (export "n" (func $n)) - (export "o" (func $o)) - (export "p" (func $p)) - (export "q" (func $q)) - (export "r" (func $r)) - (export "s" (func $s)) - (export "t" (func $t)) - (export "u" (func $u)) - (export "canonical_abi_realloc" (func $canonical_abi_realloc)) ) (core instance (;0;) (instantiate 0)) (alias core export 0 "memory" (core memory (;0;))) diff --git a/crates/wasm-compose/tests/compositions/connect-resources/composed.wat b/crates/wasm-compose/tests/compositions/connect-resources/composed.wat index 257d8a86bd..0e71b967ad 100644 --- a/crates/wasm-compose/tests/compositions/connect-resources/composed.wat +++ b/crates/wasm-compose/tests/compositions/connect-resources/composed.wat @@ -46,6 +46,11 @@ (import "example:service/logging@0.1.0" "[method]logger.log" (func (;0;) (type 0))) (import "example:service/logging@0.1.0" "get-logger" (func (;1;) (type 1))) (import "[export]example:service/logging@0.1.0" "[resource-new]logger" (func (;2;) (type 2))) + (memory $memory (;0;) 1) + (export "memory" (memory $memory)) + (export "cabi_realloc" (func $cabi_realloc)) + (export "example:service/logging@0.1.0#[method]logger.log" (func $logger-log)) + (export "example:service/logging@0.1.0#get-logger" (func $get-logger)) (func $cabi_realloc (;3;) (type 3) (param i32 i32 i32 i32) (result i32) unreachable ) @@ -55,16 +60,13 @@ (func $get-logger (;5;) (type 1) (result i32) unreachable ) - (memory $memory (;0;) 1) - (export "memory" (memory $memory)) - (export "cabi_realloc" (func $cabi_realloc)) - (export "example:service/logging@0.1.0#[method]logger.log" (func $logger-log)) - (export "example:service/logging@0.1.0#get-logger" (func $get-logger)) ) (core module $module-indirect (;1;) (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (result i32))) (type (;2;) (func (param i32))) + (export "logger.log" (func $logger-log)) + (export "[dtor]logger" (func $dtor-logger)) (func $logger-log (;0;) (type 0) (param i32 i32 i32) unreachable ) @@ -74,8 +76,6 @@ (func $dtor-logger (;2;) (type 2) (param i32) unreachable ) - (export "logger.log" (func $logger-log)) - (export "[dtor]logger" (func $dtor-logger)) ) (core instance $module-indirect-instance (;0;) (instantiate $module-indirect)) (alias export $import-logging-instance "logger" (type $import-logger-type (;1;))) diff --git a/crates/wasm-compose/tests/compositions/defs/composed.wat b/crates/wasm-compose/tests/compositions/defs/composed.wat index a33b8b02ff..f0fc03ffce 100644 --- a/crates/wasm-compose/tests/compositions/defs/composed.wat +++ b/crates/wasm-compose/tests/compositions/defs/composed.wat @@ -25,18 +25,22 @@ (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (import "wasi:cli-base/environment" "get-environment" (func (;0;) (type 0))) (import "wasi:cli-base/environment" "get-arguments" (func (;1;) (type 0))) - (func (;2;) (type 1) (param i32 i32 i32 i32) (result i32) - unreachable - ) (memory (;0;) 0) (export "memory" (memory 0)) (export "cabi_realloc" (func 2)) + (func (;2;) (type 1) (param i32 i32 i32 i32) (result i32) + unreachable + ) (@producers (processed-by "wit-component" "0.11.0") ) ) (core module (;1;) (type (;0;) (func (param i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-wasi:cli-base/environment-get-environment)) + (export "1" (func $indirect-wasi:cli-base/environment-get-arguments)) + (export "$imports" (table 0)) (func $indirect-wasi:cli-base/environment-get-environment (;0;) (type 0) (param i32) local.get 0 i32.const 0 @@ -47,10 +51,6 @@ i32.const 1 call_indirect (type 0) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-wasi:cli-base/environment-get-environment)) - (export "1" (func $indirect-wasi:cli-base/environment-get-arguments)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "0.11.0") ) @@ -107,6 +107,15 @@ (type (;6;) (func (param i32) (result i32))) (type (;7;) (func (param i32 i32))) (type (;8;) (func (param i32 i32 i32) (result i32))) + (table (;0;) 1 1 funcref) + (memory (;0;) 17) + (global $__stack_pointer (;0;) (mut i32) i32.const 1048576) + (export "memory" (memory 0)) + (export "wasi:cli-base/environment#get-environment" (func $wasi:cli-base/environment#get-environment)) + (export "cabi_post_wasi:cli-base/environment#get-environment" (func $cabi_post_wasi:cli-base/environment#get-environment)) + (export "wasi:cli-base/environment#get-arguments" (func $wasi:cli-base/environment#get-arguments)) + (export "cabi_post_wasi:cli-base/environment#get-arguments" (func $cabi_post_wasi:cli-base/environment#get-arguments)) + (export "cabi_realloc" (func $cabi_realloc)) (func $__wasm_call_ctors (;0;) (type 0)) (func $wasi:cli-base/environment#get-environment (;1;) (type 1) (result i32) i32.const 0 @@ -119,15 +128,6 @@ (func $cabi_realloc (;5;) (type 5) (param i32 i32 i32 i32) (result i32) i32.const 0 ) - (table (;0;) 1 1 funcref) - (memory (;0;) 17) - (global $__stack_pointer (;0;) (mut i32) i32.const 1048576) - (export "memory" (memory 0)) - (export "wasi:cli-base/environment#get-environment" (func $wasi:cli-base/environment#get-environment)) - (export "cabi_post_wasi:cli-base/environment#get-environment" (func $cabi_post_wasi:cli-base/environment#get-environment)) - (export "wasi:cli-base/environment#get-arguments" (func $wasi:cli-base/environment#get-arguments)) - (export "cabi_post_wasi:cli-base/environment#get-arguments" (func $cabi_post_wasi:cli-base/environment#get-arguments)) - (export "cabi_realloc" (func $cabi_realloc)) ) (core instance (;0;) (instantiate 0)) (alias core export 0 "memory" (core memory (;0;))) diff --git a/crates/wasmprinter/tests/all.rs b/crates/wasmprinter/tests/all.rs index 114f316124..3d4d3bb255 100644 --- a/crates/wasmprinter/tests/all.rs +++ b/crates/wasmprinter/tests/all.rs @@ -36,10 +36,10 @@ fn offsets_and_lines_smoke_test() { let expected = vec![ (Some(0), "(module\n"), (Some(0xb), " (type (;0;) (func (param i32) (result i32)))\n"), + (Some(0x17), " (export \"f\" (func 0))\n"), (Some(0x1f), " (func (;0;) (type 0) (param i32) (result i32)\n"), (Some(0x20), " local.get 0\n"), (None, " )\n"), - (Some(0x17), " (export \"f\" (func 0))\n"), (None, ")\n"), (Some(0x23), ""), ]; diff --git a/crates/wit-component/tests/components/adapt-empty-interface/component.wat b/crates/wit-component/tests/components/adapt-empty-interface/component.wat index bb8099513b..5f538cc738 100644 --- a/crates/wit-component/tests/components/adapt-empty-interface/component.wat +++ b/crates/wit-component/tests/components/adapt-empty-interface/component.wat @@ -9,18 +9,18 @@ ) (core module (;1;) (type (;0;) (func)) - (func (;0;) (type 0)) (export "thunk" (func 0)) + (func (;0;) (type 0)) ) (core module (;2;) (type (;0;) (func)) + (table (;0;) 1 1 funcref) + (export "0" (func $adapt-old-thunk)) + (export "$imports" (table 0)) (func $adapt-old-thunk (;0;) (type 0) i32.const 0 call_indirect (type 0) ) - (table (;0;) 1 1 funcref) - (export "0" (func $adapt-old-thunk)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-export-default/component.wat b/crates/wit-component/tests/components/adapt-export-default/component.wat index d7c096b4e2..e18231e326 100644 --- a/crates/wit-component/tests/components/adapt-export-default/component.wat +++ b/crates/wit-component/tests/components/adapt-export-default/component.wat @@ -1,8 +1,8 @@ (component (core module (;0;) (type (;0;) (func)) - (func (;0;) (type 0)) (export "the_entrypoint" (func 0)) + (func (;0;) (type 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/adapt-export-namespaced/component.wat b/crates/wit-component/tests/components/adapt-export-namespaced/component.wat index 4e70802f93..ab52ea6144 100644 --- a/crates/wit-component/tests/components/adapt-export-namespaced/component.wat +++ b/crates/wit-component/tests/components/adapt-export-namespaced/component.wat @@ -1,8 +1,8 @@ (component (core module (;0;) (type (;0;) (func)) - (func (;0;) (type 0)) (export "the_entrypoint" (func 0)) + (func (;0;) (type 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/adapt-export-reallocs/component.wat b/crates/wit-component/tests/components/adapt-export-reallocs/component.wat index da045352a2..4c75ab416a 100644 --- a/crates/wit-component/tests/components/adapt-export-reallocs/component.wat +++ b/crates/wit-component/tests/components/adapt-export-reallocs/component.wat @@ -10,10 +10,10 @@ (core module (;0;) (type (;0;) (func (param i32 i32))) (import "old" "read" (func (;0;) (type 0))) - (func (;1;) (type 0) (param $args i32) (param $argv i32)) (memory (;0;) 1) (export "main" (func 1)) (export "memory" (memory 0)) + (func (;1;) (type 0) (param $args i32) (param $argv i32)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -23,6 +23,11 @@ (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (import "new" "read" (func $read (;0;) (type 0))) + (global $sp (;0;) (mut i32) i32.const 0) + (export "entrypoint" (func 1)) + (export "cabi_export_realloc" (func 2)) + (export "read" (func 3)) + (export "cabi_import_realloc" (func 4)) (func (;1;) (type 0) (param i32 i32) unreachable ) @@ -47,15 +52,14 @@ (func (;4;) (type 1) (param i32 i32 i32 i32) (result i32) unreachable ) - (global $sp (;0;) (mut i32) i32.const 0) - (export "entrypoint" (func 1)) - (export "cabi_export_realloc" (func 2)) - (export "read" (func 3)) - (export "cabi_import_realloc" (func 4)) ) (core module (;2;) (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32 i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-new-read)) + (export "1" (func $adapt-old-read)) + (export "$imports" (table 0)) (func $indirect-new-read (;0;) (type 0) (param i32 i32) local.get 0 local.get 1 @@ -68,10 +72,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-new-read)) - (export "1" (func $adapt-old-read)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-export-save-args/component.wat b/crates/wit-component/tests/components/adapt-export-save-args/component.wat index bc0a0ad76d..4e0c27363c 100644 --- a/crates/wit-component/tests/components/adapt-export-save-args/component.wat +++ b/crates/wit-component/tests/components/adapt-export-save-args/component.wat @@ -3,8 +3,8 @@ (type (;0;) (func (result i32))) (type (;1;) (func)) (import "old" "nargs" (func (;0;) (type 0))) - (func (;1;) (type 1)) (export "the_entrypoint" (func 1)) + (func (;1;) (type 1)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -15,6 +15,9 @@ (type (;1;) (func (param i32))) (type (;2;) (func (result i32))) (import "__main_module__" "the_entrypoint" (func $entry (;0;) (type 0))) + (global $nargs (;0;) (mut i32) i32.const 0) + (export "entrypoint" (func 1)) + (export "nargs" (func 2)) (func (;1;) (type 1) (param i32) local.get 0 global.set $nargs @@ -23,19 +26,16 @@ (func (;2;) (type 2) (result i32) global.get $nargs ) - (global $nargs (;0;) (mut i32) i32.const 0) - (export "entrypoint" (func 1)) - (export "nargs" (func 2)) ) (core module (;2;) (type (;0;) (func (result i32))) + (table (;0;) 1 1 funcref) + (export "0" (func $adapt-old-nargs)) + (export "$imports" (table 0)) (func $adapt-old-nargs (;0;) (type 0) (result i32) i32.const 0 call_indirect (type 0) ) - (table (;0;) 1 1 funcref) - (export "0" (func $adapt-old-nargs)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-export-with-post-return/component.wat b/crates/wit-component/tests/components/adapt-export-with-post-return/component.wat index 704c33617c..fda6091bb4 100644 --- a/crates/wit-component/tests/components/adapt-export-with-post-return/component.wat +++ b/crates/wit-component/tests/components/adapt-export-with-post-return/component.wat @@ -2,16 +2,16 @@ (core module (;0;) (type (;0;) (func (param i32 i32 i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32))) + (memory (;0;) 1) + (export "canonical_abi_realloc" (func 0)) + (export "canonical_abi_free" (func 1)) + (export "memory" (memory 0)) (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) unreachable ) (func (;1;) (type 1) (param i32 i32 i32) unreachable ) - (memory (;0;) 1) - (export "canonical_abi_realloc" (func 0)) - (export "canonical_abi_free" (func 1)) - (export "memory" (memory 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -25,6 +25,10 @@ (type (;4;) (func)) (import "__main_module__" "canonical_abi_realloc" (func $realloc (;0;) (type 0))) (import "__main_module__" "canonical_abi_free" (func $free (;1;) (type 1))) + (global $__stack_pointer (;0;) (mut i32) i32.const 0) + (global $allocation_state (;1;) (mut i32) i32.const 0) + (export "foo:foo/new#foo" (func 2)) + (export "cabi_post_foo:foo/new#foo" (func 3)) (func (;2;) (type 2) (result i32) call $allocate_stack global.get $__stack_pointer @@ -63,10 +67,6 @@ global.set $allocation_state end ) - (global $__stack_pointer (;0;) (mut i32) i32.const 0) - (global $allocation_state (;1;) (mut i32) i32.const 0) - (export "foo:foo/new#foo" (func 2)) - (export "cabi_post_foo:foo/new#foo" (func 3)) ) (core instance (;0;) (instantiate 0)) (alias core export 0 "memory" (core memory (;0;))) diff --git a/crates/wit-component/tests/components/adapt-import-only-used-in-adapter/component.wat b/crates/wit-component/tests/components/adapt-import-only-used-in-adapter/component.wat index 531a0531a2..71433f932d 100644 --- a/crates/wit-component/tests/components/adapt-import-only-used-in-adapter/component.wat +++ b/crates/wit-component/tests/components/adapt-import-only-used-in-adapter/component.wat @@ -12,12 +12,12 @@ (type (;0;) (func (param i32 i32))) (type (;1;) (func)) (import "$root" "foo" (func (;0;) (type 0))) - (func (;1;) (type 1) - unreachable - ) (memory (;0;) 1) (export "bar" (func 1)) (export "memory" (memory 0)) + (func (;1;) (type 1) + unreachable + ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -27,6 +27,8 @@ (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (import "foo:foo/adapter-imports" "foo" (func $foo (;0;) (type 0))) + (export "adapter-bar" (func 1)) + (export "cabi_export_realloc" (func 2)) (func (;1;) (type 0) (param i32 i32) i32.const 0 i32.const 0 @@ -35,11 +37,13 @@ (func (;2;) (type 1) (param i32 i32 i32 i32) (result i32) unreachable ) - (export "adapter-bar" (func 1)) - (export "cabi_export_realloc" (func 2)) ) (core module (;2;) (type (;0;) (func (param i32 i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-$root-foo)) + (export "1" (func $indirect-foo:foo/adapter-imports-foo)) + (export "$imports" (table 0)) (func $indirect-$root-foo (;0;) (type 0) (param i32 i32) local.get 0 local.get 1 @@ -52,10 +56,6 @@ i32.const 1 call_indirect (type 0) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-$root-foo)) - (export "1" (func $indirect-foo:foo/adapter-imports-foo)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/component.wat b/crates/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/component.wat index 5cd3ae5e02..63b6159356 100644 --- a/crates/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/component.wat +++ b/crates/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/component.wat @@ -11,16 +11,16 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (import "old" "get_sum" (func (;0;) (type 0))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "cabi_realloc" (func $cabi_realloc)) + (export "cabi_realloc_adapter" (func $cabi_realloc_adapter)) (func $cabi_realloc (;1;) (type 1) (param i32 i32 i32 i32) (result i32) i32.const 123456789 ) (func $cabi_realloc_adapter (;2;) (type 1) (param i32 i32 i32 i32) (result i32) i32.const 987654321 ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "cabi_realloc" (func $cabi_realloc)) - (export "cabi_realloc_adapter" (func $cabi_realloc_adapter)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -34,6 +34,10 @@ (import "env" "memory" (memory (;0;) 0)) (import "new" "get-two" (func $get_two (;0;) (type 0))) (import "__main_module__" "cabi_realloc" (func $cabi_realloc (;1;) (type 1))) + (global $__stack_pointer (;0;) (mut i32) i32.const 0) + (global $some_other_mutable_global (;1;) (mut i32) i32.const 0) + (global $allocation_state (;2;) (mut i32) i32.const 0) + (export "get_sum" (func 2)) (func (;2;) (type 2) (result i32) (local i32 i32) call $allocate_stack @@ -92,14 +96,14 @@ global.set $allocation_state end ) - (global $__stack_pointer (;0;) (mut i32) i32.const 0) - (global $some_other_mutable_global (;1;) (mut i32) i32.const 0) - (global $allocation_state (;2;) (mut i32) i32.const 0) - (export "get_sum" (func 2)) ) (core module (;2;) (type (;0;) (func (param i32))) (type (;1;) (func (result i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-new-get-two)) + (export "1" (func $adapt-old-get_sum)) + (export "$imports" (table 0)) (func $indirect-new-get-two (;0;) (type 0) (param i32) local.get 0 i32.const 0 @@ -109,10 +113,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-new-get-two)) - (export "1" (func $adapt-old-get_sum)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-inject-stack-with-realloc-no-state/component.wat b/crates/wit-component/tests/components/adapt-inject-stack-with-realloc-no-state/component.wat index 6346d6d2b7..203e7fb21b 100644 --- a/crates/wit-component/tests/components/adapt-inject-stack-with-realloc-no-state/component.wat +++ b/crates/wit-component/tests/components/adapt-inject-stack-with-realloc-no-state/component.wat @@ -11,6 +11,9 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (import "old" "get_sum" (func (;0;) (type 0))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "cabi_realloc" (func $cabi_realloc)) (func $cabi_realloc (;1;) (type 1) (param i32 i32 i32 i32) (result i32) (local i32) i32.const 0 @@ -43,9 +46,6 @@ i32.const 16 i32.shl ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "cabi_realloc" (func $cabi_realloc)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -60,6 +60,10 @@ (import "env" "memory" (memory (;0;) 0)) (import "new" "get-two" (func $get_two (;0;) (type 0))) (import "__main_module__" "cabi_realloc" (func $cabi_realloc (;1;) (type 1))) + (global $__stack_pointer (;0;) (mut i32) i32.const 0) + (global $some_other_mutable_global (;1;) (mut i32) i32.const 0) + (export "get_sum" (func 2)) + (start $allocate_stack) (func (;2;) (type 2) (result i32) (local i32 i32) i32.const 0 @@ -134,14 +138,14 @@ i32.add global.set $__stack_pointer ) - (global $__stack_pointer (;0;) (mut i32) i32.const 0) - (global $some_other_mutable_global (;1;) (mut i32) i32.const 0) - (export "get_sum" (func 2)) - (start $allocate_stack) ) (core module (;2;) (type (;0;) (func (param i32))) (type (;1;) (func (result i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-new-get-two)) + (export "1" (func $adapt-old-get_sum)) + (export "$imports" (table 0)) (func $indirect-new-get-two (;0;) (type 0) (param i32) local.get 0 i32.const 0 @@ -151,10 +155,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-new-get-two)) - (export "1" (func $adapt-old-get_sum)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-inject-stack-with-realloc/component.wat b/crates/wit-component/tests/components/adapt-inject-stack-with-realloc/component.wat index acdc4e2d41..742a885bed 100644 --- a/crates/wit-component/tests/components/adapt-inject-stack-with-realloc/component.wat +++ b/crates/wit-component/tests/components/adapt-inject-stack-with-realloc/component.wat @@ -11,6 +11,9 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (import "old" "get_sum" (func (;0;) (type 0))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "cabi_realloc" (func $cabi_realloc)) (func $cabi_realloc (;1;) (type 1) (param i32 i32 i32 i32) (result i32) (local i32) i32.const 0 @@ -43,9 +46,6 @@ i32.const 16 i32.shl ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "cabi_realloc" (func $cabi_realloc)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -59,6 +59,10 @@ (import "env" "memory" (memory (;0;) 0)) (import "new" "get-two" (func $get_two (;0;) (type 0))) (import "__main_module__" "cabi_realloc" (func $cabi_realloc (;1;) (type 1))) + (global $__stack_pointer (;0;) (mut i32) i32.const 0) + (global $some_other_mutable_global (;1;) (mut i32) i32.const 0) + (global $allocation_state (;2;) (mut i32) i32.const 0) + (export "get_sum" (func 2)) (func (;2;) (type 2) (result i32) (local i32 i32) call $allocate_stack @@ -117,14 +121,14 @@ global.set $allocation_state end ) - (global $__stack_pointer (;0;) (mut i32) i32.const 0) - (global $some_other_mutable_global (;1;) (mut i32) i32.const 0) - (global $allocation_state (;2;) (mut i32) i32.const 0) - (export "get_sum" (func 2)) ) (core module (;2;) (type (;0;) (func (param i32))) (type (;1;) (func (result i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-new-get-two)) + (export "1" (func $adapt-old-get_sum)) + (export "$imports" (table 0)) (func $indirect-new-get-two (;0;) (type 0) (param i32) local.get 0 i32.const 0 @@ -134,10 +138,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-new-get-two)) - (export "1" (func $adapt-old-get_sum)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-inject-stack-with-reallocing-adapter/component.wat b/crates/wit-component/tests/components/adapt-inject-stack-with-reallocing-adapter/component.wat index 81c0e7209c..3f853cd333 100644 --- a/crates/wit-component/tests/components/adapt-inject-stack-with-reallocing-adapter/component.wat +++ b/crates/wit-component/tests/components/adapt-inject-stack-with-reallocing-adapter/component.wat @@ -11,6 +11,9 @@ (type (;0;) (func (result i32))) (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (import "old" "get_sum" (func (;0;) (type 0))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "cabi_realloc" (func $cabi_realloc)) (func $cabi_realloc (;1;) (type 1) (param i32 i32 i32 i32) (result i32) (local i32) i32.const 0 @@ -43,9 +46,6 @@ i32.const 16 i32.shl ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "cabi_realloc" (func $cabi_realloc)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -59,6 +59,10 @@ (import "env" "memory" (memory (;0;) 0)) (import "new" "get-two" (func $get_two (;0;) (type 0))) (import "__main_module__" "cabi_realloc" (func $cabi_realloc (;1;) (type 2))) + (global $__stack_pointer (;0;) (mut i32) i32.const 0) + (global $some_other_mutable_global (;1;) (mut i32) i32.const 0) + (global $allocation_state (;2;) (mut i32) i32.const 0) + (export "get_sum" (func 2)) (func (;2;) (type 1) (result i32) (local i32 i32) call $allocate_stack @@ -105,14 +109,14 @@ global.set $allocation_state end ) - (global $__stack_pointer (;0;) (mut i32) i32.const 0) - (global $some_other_mutable_global (;1;) (mut i32) i32.const 0) - (global $allocation_state (;2;) (mut i32) i32.const 0) - (export "get_sum" (func 2)) ) (core module (;2;) (type (;0;) (func (param i32))) (type (;1;) (func (result i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-new-get-two)) + (export "1" (func $adapt-old-get_sum)) + (export "$imports" (table 0)) (func $indirect-new-get-two (;0;) (type 0) (param i32) local.get 0 i32.const 0 @@ -122,10 +126,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-new-get-two)) - (export "1" (func $adapt-old-get_sum)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-inject-stack/component.wat b/crates/wit-component/tests/components/adapt-inject-stack/component.wat index f6eb8fa06c..e079fa0861 100644 --- a/crates/wit-component/tests/components/adapt-inject-stack/component.wat +++ b/crates/wit-component/tests/components/adapt-inject-stack/component.wat @@ -24,6 +24,10 @@ (type (;3;) (func)) (import "env" "memory" (memory (;0;) 0)) (import "new" "get-two" (func $get_two (;0;) (type 0))) + (global $__stack_pointer (;0;) (mut i32) i32.const 0) + (global $some_other_mutable_global (;1;) (mut i32) i32.const 0) + (export "get_sum" (func 1)) + (start $allocate_stack) (func (;1;) (type 1) (result i32) (local i32 i32) global.get $__stack_pointer @@ -86,14 +90,14 @@ i32.add global.set $__stack_pointer ) - (global $__stack_pointer (;0;) (mut i32) i32.const 0) - (global $some_other_mutable_global (;1;) (mut i32) i32.const 0) - (export "get_sum" (func 1)) - (start $allocate_stack) ) (core module (;2;) (type (;0;) (func (param i32))) (type (;1;) (func (result i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-new-get-two)) + (export "1" (func $adapt-old-get_sum)) + (export "$imports" (table 0)) (func $indirect-new-get-two (;0;) (type 0) (param i32) local.get 0 i32.const 0 @@ -103,10 +107,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-new-get-two)) - (export "1" (func $adapt-old-get_sum)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-list-return/component.wat b/crates/wit-component/tests/components/adapt-list-return/component.wat index bdef6756b0..b17f062c44 100644 --- a/crates/wit-component/tests/components/adapt-list-return/component.wat +++ b/crates/wit-component/tests/components/adapt-list-return/component.wat @@ -22,6 +22,8 @@ (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32 i32 i32 i32) (result i32))) (import "new" "read" (func $read (;0;) (type 0))) + (export "read" (func 1)) + (export "cabi_import_realloc" (func 2)) (func (;1;) (type 1) (param i32 i32) i32.const 8 call $read @@ -30,12 +32,14 @@ (func (;2;) (type 2) (param i32 i32 i32 i32) (result i32) unreachable ) - (export "read" (func 1)) - (export "cabi_import_realloc" (func 2)) ) (core module (;2;) (type (;0;) (func (param i32))) (type (;1;) (func (param i32 i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-new-read)) + (export "1" (func $adapt-old-read)) + (export "$imports" (table 0)) (func $indirect-new-read (;0;) (type 0) (param i32) local.get 0 i32.const 0 @@ -47,10 +51,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-new-read)) - (export "1" (func $adapt-old-read)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-memory-simple/component.wat b/crates/wit-component/tests/components/adapt-memory-simple/component.wat index ae005c8268..d9c66b07d5 100644 --- a/crates/wit-component/tests/components/adapt-memory-simple/component.wat +++ b/crates/wit-component/tests/components/adapt-memory-simple/component.wat @@ -24,6 +24,10 @@ (core module (;2;) (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32 i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-new-log)) + (export "1" (func $adapt-old-log)) + (export "$imports" (table 0)) (func $indirect-new-log (;0;) (type 0) (param i32 i32) local.get 0 local.get 1 @@ -36,10 +40,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-new-log)) - (export "1" (func $adapt-old-log)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-multiple/component.wat b/crates/wit-component/tests/components/adapt-multiple/component.wat index 16326fa1c3..cafb0877f7 100644 --- a/crates/wit-component/tests/components/adapt-multiple/component.wat +++ b/crates/wit-component/tests/components/adapt-multiple/component.wat @@ -26,17 +26,21 @@ (type (;0;) (func)) (import "other1" "foo" (func $foo (;0;) (type 0))) (import "other2" "bar" (func $bar (;1;) (type 0))) + (export "foo" (func 2)) + (export "bar" (func 3)) (func (;2;) (type 0) call $foo ) (func (;3;) (type 0) call $bar ) - (export "foo" (func 2)) - (export "bar" (func 3)) ) (core module (;2;) (type (;0;) (func)) + (table (;0;) 2 2 funcref) + (export "0" (func $adapt-foo-foo)) + (export "1" (func $adapt-foo-bar)) + (export "$imports" (table 0)) (func $adapt-foo-foo (;0;) (type 0) i32.const 0 call_indirect (type 0) @@ -45,10 +49,6 @@ i32.const 1 call_indirect (type 0) ) - (table (;0;) 2 2 funcref) - (export "0" (func $adapt-foo-foo)) - (export "1" (func $adapt-foo-bar)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-preview1/component.wat b/crates/wit-component/tests/components/adapt-preview1/component.wat index c465a63217..cc721819ef 100644 --- a/crates/wit-component/tests/components/adapt-preview1/component.wat +++ b/crates/wit-component/tests/components/adapt-preview1/component.wat @@ -31,6 +31,8 @@ (type (;0;) (func (param i32))) (type (;1;) (func (param i32 i32) (result i32))) (import "foo:foo/my-wasi" "proc-exit" (func $proc_exit (;0;) (type 0))) + (export "proc_exit" (func 1)) + (export "random_get" (func 2)) (func (;1;) (type 0) (param i32) local.get 0 call $proc_exit @@ -38,12 +40,14 @@ (func (;2;) (type 1) (param i32 i32) (result i32) i32.const 0 ) - (export "proc_exit" (func 1)) - (export "random_get" (func 2)) ) (core module (;2;) (type (;0;) (func (param i32))) (type (;1;) (func (param i32 i32) (result i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $adapt-wasi-snapshot-preview1-proc_exit)) + (export "1" (func $adapt-wasi-snapshot-preview1-random_get)) + (export "$imports" (table 0)) (func $adapt-wasi-snapshot-preview1-proc_exit (;0;) (type 0) (param i32) local.get 0 i32.const 0 @@ -55,10 +59,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $adapt-wasi-snapshot-preview1-proc_exit)) - (export "1" (func $adapt-wasi-snapshot-preview1-random_get)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/adapt-stub-wasip2/component.wat b/crates/wit-component/tests/components/adapt-stub-wasip2/component.wat index 8a65bd582a..d9626c0e18 100644 --- a/crates/wit-component/tests/components/adapt-stub-wasip2/component.wat +++ b/crates/wit-component/tests/components/adapt-stub-wasip2/component.wat @@ -4,14 +4,14 @@ (type (;1;) (func (param i32))) (type (;2;) (func (param i32 i32 i32 i32) (result i32))) (import "wasi:cli/environment@0.2.0" "get-environment" (func $get-environment (;0;) (type 1))) - (func $start (;1;) (type 0)) - (func $realloc (;2;) (type 2) (param i32 i32 i32 i32) (result i32) - unreachable - ) (memory (;0;) 1) (export "cabi_realloc" (func $realloc)) (export "memory" (memory 0)) (start $start) + (func $start (;1;) (type 0)) + (func $realloc (;2;) (type 2) (param i32 i32 i32 i32) (result i32) + unreachable + ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -19,21 +19,21 @@ ) (core module (;1;) (type (;0;) (func (param i32))) + (export "get-environment" (func $get-environment)) (func $get-environment (;0;) (type 0) (param i32) unreachable ) - (export "get-environment" (func $get-environment)) ) (core module (;2;) (type (;0;) (func (param i32))) + (table (;0;) 1 1 funcref) + (export "0" (func $adapt-wasi:cli/environment@0.2.0-get-environment)) + (export "$imports" (table 0)) (func $adapt-wasi:cli/environment@0.2.0-get-environment (;0;) (type 0) (param i32) local.get 0 i32.const 0 call_indirect (type 0) ) - (table (;0;) 1 1 funcref) - (export "0" (func $adapt-wasi:cli/environment@0.2.0-get-environment)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/bare-funcs/component.wat b/crates/wit-component/tests/components/bare-funcs/component.wat index 2e4f8db2fa..c29a8722c8 100644 --- a/crates/wit-component/tests/components/bare-funcs/component.wat +++ b/crates/wit-component/tests/components/bare-funcs/component.wat @@ -10,6 +10,12 @@ (type (;3;) (func (param i32 i32 i32 i32) (result i32))) (import "$root" "foo" (func (;0;) (type 0))) (import "$root" "bar" (func (;1;) (type 1))) + (memory (;0;) 1) + (export "baz" (func 2)) + (export "foo2" (func 3)) + (export "cabi_post_foo2" (func 4)) + (export "cabi_realloc" (func 5)) + (export "memory" (memory 0)) (func (;2;) (type 0)) (func (;3;) (type 2) (param i32 i32) (result i32) unreachable @@ -20,12 +26,6 @@ (func (;5;) (type 3) (param i32 i32 i32 i32) (result i32) unreachable ) - (memory (;0;) 1) - (export "baz" (func 2)) - (export "foo2" (func 3)) - (export "cabi_post_foo2" (func 4)) - (export "cabi_realloc" (func 5)) - (export "memory" (memory 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -33,14 +33,14 @@ ) (core module (;1;) (type (;0;) (func (param i32))) + (table (;0;) 1 1 funcref) + (export "0" (func $indirect-$root-bar)) + (export "$imports" (table 0)) (func $indirect-$root-bar (;0;) (type 0) (param i32) local.get 0 i32.const 0 call_indirect (type 0) ) - (table (;0;) 1 1 funcref) - (export "0" (func $indirect-$root-bar)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/ensure-default-type-exports/component.wat b/crates/wit-component/tests/components/ensure-default-type-exports/component.wat index 32510af2ab..50cf12585a 100644 --- a/crates/wit-component/tests/components/ensure-default-type-exports/component.wat +++ b/crates/wit-component/tests/components/ensure-default-type-exports/component.wat @@ -14,16 +14,16 @@ (type (;0;) (func (param i32))) (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (import "foo:foo/foo" "a" (func (;0;) (type 0))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "cabi_realloc" (func 1)) + (export "a" (func 2)) (func (;1;) (type 1) (param i32 i32 i32 i32) (result i32) unreachable ) (func (;2;) (type 0) (param i32) unreachable ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "cabi_realloc" (func 1)) - (export "a" (func 2)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/export-name-shuffling/component.wat b/crates/wit-component/tests/components/export-name-shuffling/component.wat index 118efe5aa5..433bb76e45 100644 --- a/crates/wit-component/tests/components/export-name-shuffling/component.wat +++ b/crates/wit-component/tests/components/export-name-shuffling/component.wat @@ -1,8 +1,8 @@ (component (core module (;0;) (type (;0;) (func (param i32))) - (func (;0;) (type 0) (param i32)) (export "name#a" (func 0)) + (func (;0;) (type 0) (param i32)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/export-resource/component.wat b/crates/wit-component/tests/components/export-resource/component.wat index d6a3b4a052..6fa1d68e02 100644 --- a/crates/wit-component/tests/components/export-resource/component.wat +++ b/crates/wit-component/tests/components/export-resource/component.wat @@ -6,6 +6,9 @@ (import "[export]foo" "[resource-new]a" (func $new (;0;) (type 0))) (import "[export]foo" "[resource-rep]a" (func (;1;) (type 0))) (import "[export]foo" "[resource-drop]a" (func (;2;) (type 1))) + (export "foo#[constructor]a" (func 3)) + (export "foo#[static]a.other-new" (func 4)) + (export "foo#[dtor]a" (func 5)) (func (;3;) (type 2) (result i32) i32.const 100 call $new @@ -15,9 +18,6 @@ call $new ) (func (;5;) (type 1) (param i32)) - (export "foo#[constructor]a" (func 3)) - (export "foo#[static]a.other-new" (func 4)) - (export "foo#[dtor]a" (func 5)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -25,14 +25,14 @@ ) (core module (;1;) (type (;0;) (func (param i32))) + (table (;0;) 1 1 funcref) + (export "0" (func $"dtor-[export]foo-a")) + (export "$imports" (table 0)) (func $"dtor-[export]foo-a" (;0;) (type 0) (param i32) local.get 0 i32.const 0 call_indirect (type 0) ) - (table (;0;) 1 1 funcref) - (export "0" (func $"dtor-[export]foo-a")) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/export-type-name-conflict/component.wat b/crates/wit-component/tests/components/export-type-name-conflict/component.wat index 2844c0b3cd..67ad5cb6cf 100644 --- a/crates/wit-component/tests/components/export-type-name-conflict/component.wat +++ b/crates/wit-component/tests/components/export-type-name-conflict/component.wat @@ -8,10 +8,10 @@ (import "foo:foo/foo" (instance (;0;) (type 0))) (core module (;0;) (type (;0;) (func (result i32))) + (export "bar#foo" (func 0)) (func (;0;) (type 0) (result i32) unreachable ) - (export "bar#foo" (func 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/export-with-type-alias/component.wat b/crates/wit-component/tests/components/export-with-type-alias/component.wat index 3f084efb5f..5da0178dac 100644 --- a/crates/wit-component/tests/components/export-with-type-alias/component.wat +++ b/crates/wit-component/tests/components/export-with-type-alias/component.wat @@ -1,10 +1,10 @@ (component (core module (;0;) (type (;0;) (func (param i32) (result i32))) + (export "foo:foo/foo#c" (func 0)) (func (;0;) (type 0) (param i32) (result i32) unreachable ) - (export "foo:foo/foo#c" (func 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/exports/component.wat b/crates/wit-component/tests/components/exports/component.wat index 1e0a39d341..88a6a82271 100644 --- a/crates/wit-component/tests/components/exports/component.wat +++ b/crates/wit-component/tests/components/exports/component.wat @@ -7,6 +7,19 @@ (type (;4;) (func (result i32))) (type (;5;) (func (param i32 i32) (result i32))) (type (;6;) (func (param i32 i64 i32) (result i32))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "cabi_realloc" (func 0)) + (export "a" (func 1)) + (export "b" (func 2)) + (export "cabi_post_b" (func 3)) + (export "c" (func 4)) + (export "foo#a" (func 5)) + (export "foo#b" (func 6)) + (export "cabi_post_foo#b" (func 7)) + (export "foo#c" (func 8)) + (export "cabi_post_foo#c" (func 9)) + (export "bar#a" (func 10)) (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) unreachable ) @@ -40,19 +53,6 @@ (func (;10;) (type 3) (param i32) unreachable ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "cabi_realloc" (func 0)) - (export "a" (func 1)) - (export "b" (func 2)) - (export "cabi_post_b" (func 3)) - (export "c" (func 4)) - (export "foo#a" (func 5)) - (export "foo#b" (func 6)) - (export "cabi_post_foo#b" (func 7)) - (export "foo#c" (func 8)) - (export "cabi_post_foo#c" (func 9)) - (export "bar#a" (func 10)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/import-conflict/component.wat b/crates/wit-component/tests/components/import-conflict/component.wat index 959bf49537..6bc1dc93d6 100644 --- a/crates/wit-component/tests/components/import-conflict/component.wat +++ b/crates/wit-component/tests/components/import-conflict/component.wat @@ -29,12 +29,12 @@ (import "foo:foo/foo" "a" (func (;0;) (type 0))) (import "foo:foo/bar" "a" (func (;1;) (type 1))) (import "foo:foo/baz" "baz" (func (;2;) (type 2))) - (func (;3;) (type 3) (param i32 i32 i32 i32) (result i32) - unreachable - ) (memory (;0;) 1) (export "memory" (memory 0)) (export "cabi_realloc" (func 3)) + (func (;3;) (type 3) (param i32 i32 i32 i32) (result i32) + unreachable + ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -43,6 +43,10 @@ (core module (;1;) (type (;0;) (func (param i64 i32 i32))) (type (;1;) (func (param i32 i32 i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-foo:foo/bar-a)) + (export "1" (func $indirect-foo:foo/baz-baz)) + (export "$imports" (table 0)) (func $indirect-foo:foo/bar-a (;0;) (type 0) (param i64 i32 i32) local.get 0 local.get 1 @@ -57,10 +61,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-foo:foo/bar-a)) - (export "1" (func $indirect-foo:foo/baz-baz)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/import-export-same-iface-name/component.wat b/crates/wit-component/tests/components/import-export-same-iface-name/component.wat index 5438926501..4a38f24573 100644 --- a/crates/wit-component/tests/components/import-export-same-iface-name/component.wat +++ b/crates/wit-component/tests/components/import-export-same-iface-name/component.wat @@ -17,8 +17,8 @@ (type (;0;) (func)) (import "foo:dep/the-name" "a" (func (;0;) (type 0))) (import "foo:foo/the-name" "a" (func (;1;) (type 0))) - (func (;2;) (type 0)) (export "foo:foo/the-name#a" (func 2)) + (func (;2;) (type 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/import-export/component.wat b/crates/wit-component/tests/components/import-export/component.wat index 67779ef82e..5d6745a7c1 100644 --- a/crates/wit-component/tests/components/import-export/component.wat +++ b/crates/wit-component/tests/components/import-export/component.wat @@ -13,6 +13,14 @@ (type (;3;) (func)) (type (;4;) (func (result i32))) (import "foo" "a" (func (;0;) (type 0))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "cabi_realloc" (func 1)) + (export "a" (func 2)) + (export "cabi_post_a" (func 3)) + (export "bar#a" (func 4)) + (export "bar#b" (func 5)) + (export "cabi_post_bar#b" (func 6)) (func (;1;) (type 1) (param i32 i32 i32 i32) (result i32) unreachable ) @@ -31,14 +39,6 @@ (func (;6;) (type 0) (param i32) unreachable ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "cabi_realloc" (func 1)) - (export "a" (func 2)) - (export "cabi_post_a" (func 3)) - (export "bar#a" (func 4)) - (export "bar#b" (func 5)) - (export "cabi_post_bar#b" (func 6)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -46,14 +46,14 @@ ) (core module (;1;) (type (;0;) (func (param i32))) + (table (;0;) 1 1 funcref) + (export "0" (func $indirect-foo-a)) + (export "$imports" (table 0)) (func $indirect-foo-a (;0;) (type 0) (param i32) local.get 0 i32.const 0 call_indirect (type 0) ) - (table (;0;) 1 1 funcref) - (export "0" (func $indirect-foo-a)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/import-in-adapter-and-main-module/component.wat b/crates/wit-component/tests/components/import-in-adapter-and-main-module/component.wat index 1bd0dfbde1..6adc2ff289 100644 --- a/crates/wit-component/tests/components/import-in-adapter-and-main-module/component.wat +++ b/crates/wit-component/tests/components/import-in-adapter-and-main-module/component.wat @@ -50,12 +50,12 @@ (import "foo:shared-dependency/doc" "g2" (func (;3;) (type 1))) (import "old" "adapter-f1" (func (;4;) (type 0))) (import "main-dep" "foo" (func (;5;) (type 2))) - (func (;6;) (type 3) (param i32 i32 i32 i32) (result i32) - unreachable - ) (memory (;0;) 1) (export "memory" (memory 0)) (export "cabi_realloc" (func 6)) + (func (;6;) (type 3) (param i32 i32 i32 i32) (result i32) + unreachable + ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -71,6 +71,8 @@ (import "foo:shared-dependency/doc" "g1" (func $g1 (;2;) (type 1))) (import "foo:shared-dependency/doc" "g3" (func $g3 (;3;) (type 1))) (import "adapter-dep" "foo" (func $foo (;4;) (type 2))) + (export "adapter-f1" (func 5)) + (export "cabi_import_realloc" (func 6)) (func (;5;) (type 0) call $f1 call $f3 @@ -84,12 +86,17 @@ (func (;6;) (type 3) (param i32 i32 i32 i32) (result i32) unreachable ) - (export "adapter-f1" (func 5)) - (export "cabi_import_realloc" (func 6)) ) (core module (;2;) (type (;0;) (func (param i32))) (type (;1;) (func)) + (table (;0;) 5 5 funcref) + (export "0" (func $indirect-foo:shared-dependency/doc-g1)) + (export "1" (func $indirect-foo:shared-dependency/doc-g2)) + (export "2" (func $"#func2 indirect-foo:shared-dependency/doc-g1")) + (export "3" (func $indirect-foo:shared-dependency/doc-g3)) + (export "4" (func $adapt-old-adapter-f1)) + (export "$imports" (table 0)) (func $indirect-foo:shared-dependency/doc-g1 (;0;) (type 0) (param i32) local.get 0 i32.const 0 @@ -114,13 +121,6 @@ i32.const 4 call_indirect (type 1) ) - (table (;0;) 5 5 funcref) - (export "0" (func $indirect-foo:shared-dependency/doc-g1)) - (export "1" (func $indirect-foo:shared-dependency/doc-g2)) - (export "2" (func $"#func2 indirect-foo:shared-dependency/doc-g1")) - (export "3" (func $indirect-foo:shared-dependency/doc-g3)) - (export "4" (func $adapt-old-adapter-f1)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/imports/component.wat b/crates/wit-component/tests/components/imports/component.wat index a344d7f368..b9404b7ee6 100644 --- a/crates/wit-component/tests/components/imports/component.wat +++ b/crates/wit-component/tests/components/imports/component.wat @@ -49,12 +49,12 @@ (import "baz" "baz1" (func (;5;) (type 3))) (import "baz" "baz2" (func (;6;) (type 0))) (import "baz" "baz3" (func (;7;) (type 1))) - (func (;8;) (type 4) (param i32 i32 i32 i32) (result i32) - unreachable - ) (memory (;0;) 1) (export "memory" (memory 0)) (export "cabi_realloc" (func 8)) + (func (;8;) (type 4) (param i32 i32 i32 i32) (result i32) + unreachable + ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -62,6 +62,10 @@ ) (core module (;1;) (type (;0;) (func (param i32 i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-bar-bar1)) + (export "1" (func $indirect-baz-baz1)) + (export "$imports" (table 0)) (func $indirect-bar-bar1 (;0;) (type 0) (param i32 i32) local.get 0 local.get 1 @@ -74,10 +78,6 @@ i32.const 1 call_indirect (type 0) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-bar-bar1)) - (export "1" (func $indirect-baz-baz1)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/initialize/component.wat b/crates/wit-component/tests/components/initialize/component.wat index 1db3debd09..9882cdb57c 100644 --- a/crates/wit-component/tests/components/initialize/component.wat +++ b/crates/wit-component/tests/components/initialize/component.wat @@ -1,14 +1,14 @@ (component (core module (;0;) (type (;0;) (func)) + (export "a" (func 0)) + (export "_initialize" (func 1)) (func (;0;) (type 0) unreachable ) (func (;1;) (type 0) unreachable ) - (export "a" (func 0)) - (export "_initialize" (func 1)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/lift-options/component.wat b/crates/wit-component/tests/components/lift-options/component.wat index 124f431c1f..577d7e24f7 100644 --- a/crates/wit-component/tests/components/lift-options/component.wat +++ b/crates/wit-component/tests/components/lift-options/component.wat @@ -6,6 +6,29 @@ (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func (param i32))) (type (;5;) (func (result i32))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "cabi_realloc" (func 0)) + (export "foo:foo/my-default#a" (func 1)) + (export "foo:foo/my-default#b" (func 2)) + (export "foo:foo/my-default#c" (func 3)) + (export "foo:foo/my-default#d" (func 4)) + (export "foo:foo/my-default#e" (func 5)) + (export "foo:foo/my-default#f" (func 6)) + (export "foo:foo/my-default#g" (func 7)) + (export "foo:foo/my-default#h" (func 8)) + (export "foo:foo/my-default#i" (func 9)) + (export "foo:foo/my-default#j" (func 10)) + (export "foo:foo/my-default#k" (func 11)) + (export "foo:foo/my-default#l" (func 12)) + (export "cabi_post_foo:foo/my-default#l" (func 13)) + (export "foo:foo/my-default#m" (func 14)) + (export "cabi_post_foo:foo/my-default#m" (func 15)) + (export "foo:foo/my-default#n" (func 16)) + (export "foo:foo/my-default#o" (func 17)) + (export "cabi_post_foo:foo/my-default#o" (func 18)) + (export "foo:foo/my-default#p" (func 19)) + (export "cabi_post_foo:foo/my-default#p" (func 20)) (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) unreachable ) @@ -69,29 +92,6 @@ (func (;20;) (type 4) (param i32) unreachable ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "cabi_realloc" (func 0)) - (export "foo:foo/my-default#a" (func 1)) - (export "foo:foo/my-default#b" (func 2)) - (export "foo:foo/my-default#c" (func 3)) - (export "foo:foo/my-default#d" (func 4)) - (export "foo:foo/my-default#e" (func 5)) - (export "foo:foo/my-default#f" (func 6)) - (export "foo:foo/my-default#g" (func 7)) - (export "foo:foo/my-default#h" (func 8)) - (export "foo:foo/my-default#i" (func 9)) - (export "foo:foo/my-default#j" (func 10)) - (export "foo:foo/my-default#k" (func 11)) - (export "foo:foo/my-default#l" (func 12)) - (export "cabi_post_foo:foo/my-default#l" (func 13)) - (export "foo:foo/my-default#m" (func 14)) - (export "cabi_post_foo:foo/my-default#m" (func 15)) - (export "foo:foo/my-default#n" (func 16)) - (export "foo:foo/my-default#o" (func 17)) - (export "cabi_post_foo:foo/my-default#o" (func 18)) - (export "foo:foo/my-default#p" (func 19)) - (export "cabi_post_foo:foo/my-default#p" (func 20)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/link-asyncify/component.wat b/crates/wit-component/tests/components/link-asyncify/component.wat index 93c1dae912..bdf11c903f 100644 --- a/crates/wit-component/tests/components/link-asyncify/component.wat +++ b/crates/wit-component/tests/components/link-asyncify/component.wat @@ -40,6 +40,13 @@ (import "env" "__asyncify_data" (global (;3;) (mut i32))) (import "env" "memory" (memory (;0;) 1)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) + (export "test:test/test#bar" (func $bar)) + (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) + (export "asyncify_start_unwind" (func $asyncify_start_unwind)) + (export "asyncify_stop_unwind" (func $asyncify_stop_unwind)) + (export "asyncify_start_rewind" (func $asyncify_start_rewind)) + (export "asyncify_stop_rewind" (func $asyncify_stop_rewind)) + (export "asyncify_get_state" (func $asyncify_get_state)) (func $__wasm_call_ctors (;0;) (type 0)) (func $__wasm_apply_data_relocs (;1;) (type 0)) (func $asyncify_start_unwind (;2;) (type 1) (param i32) @@ -98,13 +105,6 @@ global.get 2 ) (func $bar (;7;) (type 0)) - (export "test:test/test#bar" (func $bar)) - (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) - (export "asyncify_start_unwind" (func $asyncify_start_unwind)) - (export "asyncify_stop_unwind" (func $asyncify_stop_unwind)) - (export "asyncify_start_rewind" (func $asyncify_start_rewind)) - (export "asyncify_stop_rewind" (func $asyncify_stop_rewind)) - (export "asyncify_get_state" (func $asyncify_get_state)) (data $.bss (;0;) (global.get $__memory_base) "\00\00\00\00") ) (core module (;2;) @@ -121,6 +121,12 @@ (import "env" "__asyncify_data" (global (;3;) (mut i32))) (import "env" "memory" (memory (;0;) 1)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) + (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) + (export "asyncify_start_unwind" (func $asyncify_start_unwind)) + (export "asyncify_stop_unwind" (func $asyncify_stop_unwind)) + (export "asyncify_start_rewind" (func $asyncify_start_rewind)) + (export "asyncify_stop_rewind" (func $asyncify_stop_rewind)) + (export "asyncify_get_state" (func $asyncify_get_state)) (func $__wasm_call_ctors (;0;) (type 0)) (func $__wasm_apply_data_relocs (;1;) (type 0)) (func $asyncify_start_unwind (;2;) (type 1) (param i32) @@ -178,12 +184,6 @@ (func $asyncify_get_state (;6;) (type 2) (result i32) global.get 2 ) - (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) - (export "asyncify_start_unwind" (func $asyncify_start_unwind)) - (export "asyncify_stop_unwind" (func $asyncify_stop_unwind)) - (export "asyncify_start_rewind" (func $asyncify_start_rewind)) - (export "asyncify_stop_rewind" (func $asyncify_stop_rewind)) - (export "asyncify_get_state" (func $asyncify_get_state)) ) (core module (;3;) (type (;0;) (func)) @@ -192,13 +192,13 @@ (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) (import "bar" "__wasm_apply_data_relocs" (func (;0;) (type 0))) (import "foo" "__wasm_apply_data_relocs" (func (;1;) (type 0))) + (start 2) + (elem (;0;) (i32.const 1) func) + (elem (;1;) (i32.const 1) func) (func (;2;) (type 0) call 0 call 1 ) - (start 2) - (elem (;0;) (i32.const 1) func) - (elem (;1;) (i32.const 1) func) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-bare-funcs/component.wat b/crates/wit-component/tests/components/link-bare-funcs/component.wat index f6276f0cd0..a0c6b7036c 100644 --- a/crates/wit-component/tests/components/link-bare-funcs/component.wat +++ b/crates/wit-component/tests/components/link-bare-funcs/component.wat @@ -37,6 +37,10 @@ (type (;1;) (func (param i32) (result i32))) (import "GOT.mem" "__heap_base" (global $__heap_base (;0;) (mut i32))) (import "GOT.mem" "__heap_end" (global $__heap_end (;1;) (mut i32))) + (global $heap (;2;) (mut i32) i32.const 0) + (export "malloc" (func $malloc)) + (export "abort" (func $abort)) + (start $start) (func $start (;0;) (type 0) global.get $__heap_base global.set $heap @@ -51,10 +55,6 @@ (func $abort (;2;) (type 0) unreachable ) - (global $heap (;2;) (mut i32) i32.const 0) - (export "malloc" (func $malloc)) - (export "abort" (func $abort)) - (start $start) ) (core module (;2;) (@dylink.0 @@ -68,6 +68,12 @@ (import "env" "memory" (memory (;0;) 1)) (import "$root" "foo1" (func (;0;) (type 0))) (import "$root" "bar" (func (;1;) (type 1))) + (export "baz" (func 2)) + (export "foo2" (func 3)) + (export "cabi_post_foo2" (func 4)) + (export "cabi_realloc" (func 5)) + (export "cabi_import_realloc" (func 6)) + (export "cabi_export_realloc" (func 7)) (func (;2;) (type 0)) (func (;3;) (type 2) (param i32 i32) (result i32) unreachable @@ -84,22 +90,16 @@ (func (;7;) (type 3) (param i32 i32 i32 i32) (result i32) unreachable ) - (export "baz" (func 2)) - (export "foo2" (func 3)) - (export "cabi_post_foo2" (func 4)) - (export "cabi_realloc" (func 5)) - (export "cabi_import_realloc" (func 6)) - (export "cabi_export_realloc" (func 7)) ) (core module (;3;) (type (;0;) (func)) (type (;1;) (func (param i32))) (import "env" "memory" (memory (;0;) 0)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) - (func (;0;) (type 0)) (start 0) (elem (;0;) (i32.const 1) func) (elem (;1;) (i32.const 1) func) + (func (;0;) (type 0)) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") @@ -108,6 +108,10 @@ (core module (;4;) (type (;0;) (func (param i32))) (type (;1;) (func (param i32 i32 i32 i32) (result i32))) + (table (;0;) 2 2 funcref) + (export "0" (func $indirect-$root-bar)) + (export "1" (func $adapt-foo-cabi_realloc)) + (export "$imports" (table 0)) (func $indirect-$root-bar (;0;) (type 0) (param i32) local.get 0 i32.const 0 @@ -121,10 +125,6 @@ i32.const 1 call_indirect (type 1) ) - (table (;0;) 2 2 funcref) - (export "0" (func $indirect-$root-bar)) - (export "1" (func $adapt-foo-cabi_realloc)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/link-circular/component.wat b/crates/wit-component/tests/components/link-circular/component.wat index f88025ea45..631007d141 100644 --- a/crates/wit-component/tests/components/link-circular/component.wat +++ b/crates/wit-component/tests/components/link-circular/component.wat @@ -8,11 +8,6 @@ (import "test:test/test" (instance (;0;) (type 0))) (core module (;0;) (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param i32) (result i32) - local.get 0 - i32.const 1 - call_indirect (type 0) - ) (table (;0;) 2 funcref) (memory (;0;) 17) (global (;0;) (mut i32) i32.const 1048576) @@ -32,6 +27,11 @@ (export "foo" (func 0)) (export "__indirect_function_table" (table 0)) (export "memory" (memory 0)) + (func (;0;) (type 0) (param i32) (result i32) + local.get 0 + i32.const 1 + call_indirect (type 0) + ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) @@ -43,10 +43,10 @@ ) (type (;0;) (func (param i32) (result i32))) (import "env" "foo" (func $import_foo (;0;) (type 0))) + (export "bar" (func $bar)) (func $bar (;1;) (type 0) (param i32) (result i32) unreachable ) - (export "bar" (func $bar)) ) (core module (;2;) (@dylink.0 @@ -57,11 +57,11 @@ (import "test:test/test" "foo" (func $import_foo (;0;) (type 0))) (import "env" "foo" (func $import_foo2 (;1;) (type 0))) (import "env" "bar" (func $import_bar (;2;) (type 0))) + (export "test:test/test#foo" (func $foo)) + (export "foo" (func $foo)) (func $foo (;3;) (type 0) (param i32) (result i32) unreachable ) - (export "test:test/test#foo" (func $foo)) - (export "foo" (func $foo)) ) (core module (;3;) (type (;0;) (func)) @@ -70,10 +70,10 @@ (import "env" "memory" (memory (;0;) 0)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) (import "foo" "foo" (func (;0;) (type 2))) - (func (;1;) (type 0)) (start 1) (elem (;0;) (i32.const 1) func) (elem (;1;) (i32.const 1) func 0) + (func (;1;) (type 0)) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/component.wat b/crates/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/component.wat index 22ce23d33e..f3ac00af72 100644 --- a/crates/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/component.wat +++ b/crates/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/component.wat @@ -42,6 +42,14 @@ (type (;2;) (func (param i32 i32 i32) (result i32))) (import "GOT.mem" "__heap_base" (global $__heap_base (;0;) (mut i32))) (import "GOT.mem" "__heap_end" (global $__heap_end (;1;) (mut i32))) + (global $errno (;2;) i32 i32.const 0) + (global $heap (;3;) (mut i32) i32.const 0) + (export "malloc" (func $malloc)) + (export "memcmp" (func $memcmp)) + (export "strlen" (func $strlen)) + (export "abort" (func $abort)) + (export "errno" (global $errno)) + (start $start) (func $start (;0;) (type 0) global.get $__heap_base global.set $heap @@ -62,14 +70,6 @@ (func $abort (;4;) (type 0) unreachable ) - (global $errno (;2;) i32 i32.const 0) - (global $heap (;3;) (mut i32) i32.const 0) - (export "malloc" (func $malloc)) - (export "memcmp" (func $memcmp)) - (export "strlen" (func $strlen)) - (export "abort" (func $abort)) - (export "errno" (global $errno)) - (start $start) ) (core module (;2;) (@dylink.0 @@ -88,6 +88,13 @@ (import "env" "__table_base" (global (;1;) i32)) (import "env" "strlen" (func (;0;) (type 0))) (import "env" "memcmp" (func (;1;) (type 1))) + (export "__wasm_apply_data_relocs" (func 3)) + (export "_initialize" (func 4)) + (export "dlclose" (func 5)) + (export "dlerror" (func 7)) + (export "dlopen" (func 8)) + (export "dlsym" (func 9)) + (export "__wasm_set_libraries" (func 10)) (func (;2;) (type 2)) (func (;3;) (type 2)) (func (;4;) (type 2) @@ -473,13 +480,6 @@ local.get 0 i32.store ) - (export "__wasm_apply_data_relocs" (func 3)) - (export "_initialize" (func 4)) - (export "dlclose" (func 5)) - (export "dlerror" (func 7)) - (export "dlopen" (func 8)) - (export "dlsym" (func 9)) - (export "__wasm_set_libraries" (func 10)) (data (;0;) (global.get 0) "invalid library handle\00library not found\00dlopen flags not yet supported\00symbol not found\00dlsym RTLD_NEXT and RTLD_DEFAULT not yet supported\00\00\00\00\00\00\00\00\00\00\00\00\00") ) (core module (;3;) @@ -490,9 +490,6 @@ (type (;1;) (func (param i32 i32) (result i32))) (import "test:test/test" "foo" (func $import_foo (;0;) (type 0))) (import "env" "dlopen" (func $dlopen (;1;) (type 1))) - (func $foo (;2;) (type 0) (param i32) (result i32) - unreachable - ) (global $what (;0;) i32 i32.const 42) (global $um (;1;) i32 i32.const 0) (export "test:test/test#foo" (func $foo)) @@ -500,6 +497,9 @@ (export "baz" (func $foo)) (export "what" (global $what)) (export "um" (global $um)) + (func $foo (;2;) (type 0) (param i32) (result i32) + unreachable + ) ) (core module (;4;) (type (;0;) (func)) @@ -518,6 +518,9 @@ (import "foo" "bar" (func (;3;) (type 2))) (import "foo" "baz" (func (;4;) (type 3))) (import "foo" "test:test/test#foo" (func (;5;) (type 4))) + (start 6) + (elem (;0;) (i32.const 1) func 3 4 5) + (elem (;1;) (i32.const 4) func) (func (;6;) (type 0) i32.const 1048660 global.get 0 @@ -534,9 +537,6 @@ i32.const 1048692 call 2 ) - (start 6) - (elem (;0;) (i32.const 1) func 3 4 5) - (elem (;1;) (i32.const 4) func) (data (;0;) (i32.const 1048576) "foo\00bar\00baz\00test:test/test#foo\00\00um\00\00what\03\00\00\00\04\00\10\00\01\00\00\00\03\00\00\00\08\00\10\00\02\00\00\00\12\00\00\00\0c\00\10\00\03\00\00\00\02\00\00\00 \00\10\00\00\00\00\00\04\00\00\00$\00\10\00\00\00\00\00\03\00\00\00\00\00\10\00\05\00\00\00(\00\10\00\01\00\00\00d\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-dl-openable-builtin-libdl/component.wat b/crates/wit-component/tests/components/link-dl-openable-builtin-libdl/component.wat index 33b9967597..37da0d7801 100644 --- a/crates/wit-component/tests/components/link-dl-openable-builtin-libdl/component.wat +++ b/crates/wit-component/tests/components/link-dl-openable-builtin-libdl/component.wat @@ -45,6 +45,12 @@ (type (;1;) (func (param i32) (result i32))) (import "GOT.mem" "__heap_base" (global $__heap_base (;0;) (mut i32))) (import "GOT.mem" "__heap_end" (global $__heap_end (;1;) (mut i32))) + (global $errno (;2;) i32 i32.const 0) + (global $heap (;3;) (mut i32) i32.const 0) + (export "malloc" (func $malloc)) + (export "abort" (func $abort)) + (export "errno" (global $errno)) + (start $start) (func $start (;0;) (type 0) global.get $__heap_base global.set $heap @@ -59,24 +65,18 @@ (func $abort (;2;) (type 0) unreachable ) - (global $errno (;2;) i32 i32.const 0) - (global $heap (;3;) (mut i32) i32.const 0) - (export "malloc" (func $malloc)) - (export "abort" (func $abort)) - (export "errno" (global $errno)) - (start $start) ) (core module (;2;) (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) + (export "memcmp" (func 0)) + (export "strlen" (func 1)) (func (;0;) (type 0) (param i32 i32 i32) (result i32) unreachable ) (func (;1;) (type 1) (param i32) (result i32) unreachable ) - (export "memcmp" (func 0)) - (export "strlen" (func 1)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) @@ -98,6 +98,13 @@ (import "env" "__table_base" (global (;1;) i32)) (import "env" "strlen" (func (;0;) (type 0))) (import "env" "memcmp" (func (;1;) (type 1))) + (export "__wasm_apply_data_relocs" (func 3)) + (export "_initialize" (func 4)) + (export "dlclose" (func 5)) + (export "dlerror" (func 7)) + (export "dlopen" (func 8)) + (export "dlsym" (func 9)) + (export "__wasm_set_libraries" (func 10)) (func (;2;) (type 2)) (func (;3;) (type 2)) (func (;4;) (type 2) @@ -483,13 +490,6 @@ local.get 0 i32.store ) - (export "__wasm_apply_data_relocs" (func 3)) - (export "_initialize" (func 4)) - (export "dlclose" (func 5)) - (export "dlerror" (func 7)) - (export "dlopen" (func 8)) - (export "dlsym" (func 9)) - (export "__wasm_set_libraries" (func 10)) (data (;0;) (global.get 0) "invalid library handle\00library not found\00dlopen flags not yet supported\00symbol not found\00dlsym RTLD_NEXT and RTLD_DEFAULT not yet supported\00\00\00\00\00\00\00\00\00\00\00\00\00") ) (core module (;4;) @@ -500,14 +500,14 @@ (type (;1;) (func (param i32 i32) (result i32))) (import "test:test/test" "foo" (func $import_foo (;0;) (type 0))) (import "env" "dlopen" (func $dlopen (;1;) (type 1))) - (func $foo (;2;) (type 0) (param i32) (result i32) - unreachable - ) (global $what (;0;) i32 i32.const 42) (export "test:test/test#foo" (func $foo)) (export "bar" (func $foo)) (export "baz" (func $foo)) (export "what" (global $what)) + (func $foo (;2;) (type 0) (param i32) (result i32) + unreachable + ) ) (core module (;5;) (type (;0;) (func)) @@ -525,6 +525,9 @@ (import "foo" "bar" (func (;3;) (type 2))) (import "foo" "baz" (func (;4;) (type 3))) (import "foo" "test:test/test#foo" (func (;5;) (type 4))) + (start 6) + (elem (;0;) (i32.const 1) func 3 4 5) + (elem (;1;) (i32.const 4) func) (func (;6;) (type 0) i32.const 1048656 global.get 0 @@ -536,9 +539,6 @@ i32.const 1048676 call 2 ) - (start 6) - (elem (;0;) (i32.const 1) func 3 4 5) - (elem (;1;) (i32.const 4) func) (data (;0;) (i32.const 1048576) "foo\00bar\00baz\00test:test/test#foo\00\00what\03\00\00\00\04\00\10\00\01\00\00\00\03\00\00\00\08\00\10\00\02\00\00\00\12\00\00\00\0c\00\10\00\03\00\00\00\04\00\00\00 \00\10\00\00\00\00\00\03\00\00\00\00\00\10\00\04\00\00\00$\00\10\00\01\00\00\00T\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-dl-openable/component.wat b/crates/wit-component/tests/components/link-dl-openable/component.wat index cf7d6f2392..82ae096da0 100644 --- a/crates/wit-component/tests/components/link-dl-openable/component.wat +++ b/crates/wit-component/tests/components/link-dl-openable/component.wat @@ -31,14 +31,14 @@ ) (type (;0;) (func (param i32) (result i32))) (import "test:test/test" "foo" (func $import_foo (;0;) (type 0))) - (func $foo (;1;) (type 0) (param i32) (result i32) - unreachable - ) (global $what (;0;) i32 i32.const 42) (export "test:test/test#foo" (func $foo)) (export "bar" (func $foo)) (export "baz" (func $foo)) (export "what" (global $what)) + (func $foo (;1;) (type 0) (param i32) (result i32) + unreachable + ) ) (core module (;2;) (type (;0;) (func)) @@ -53,6 +53,9 @@ (import "foo" "bar" (func (;0;) (type 2))) (import "foo" "baz" (func (;1;) (type 3))) (import "foo" "test:test/test#foo" (func (;2;) (type 4))) + (start 3) + (elem (;0;) (i32.const 1) func 0 1 2) + (elem (;1;) (i32.const 4) func) (func (;3;) (type 0) i32.const 1048656 global.get 0 @@ -60,9 +63,6 @@ i32.add i32.store ) - (start 3) - (elem (;0;) (i32.const 1) func 0 1 2) - (elem (;1;) (i32.const 4) func) (data (;0;) (i32.const 1048576) "foo\00bar\00baz\00test:test/test#foo\00\00what\03\00\00\00\04\00\10\00\01\00\00\00\03\00\00\00\08\00\10\00\02\00\00\00\12\00\00\00\0c\00\10\00\03\00\00\00\04\00\00\00 \00\10\00\00\00\00\00\03\00\00\00\00\00\10\00\04\00\00\00$\00\10\00\01\00\00\00T\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-duplicate-symbols/component.wat b/crates/wit-component/tests/components/link-duplicate-symbols/component.wat index 423c423081..280f3742ef 100644 --- a/crates/wit-component/tests/components/link-duplicate-symbols/component.wat +++ b/crates/wit-component/tests/components/link-duplicate-symbols/component.wat @@ -8,11 +8,6 @@ (import "test:test/test" (instance (;0;) (type 0))) (core module (;0;) (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param i32) (result i32) - local.get 0 - i32.const 1 - call_indirect (type 0) - ) (table (;0;) 2 funcref) (memory (;0;) 17) (global (;0;) (mut i32) i32.const 1048576) @@ -32,6 +27,11 @@ (export "foo" (func 0)) (export "__indirect_function_table" (table 0)) (export "memory" (memory 0)) + (func (;0;) (type 0) (param i32) (result i32) + local.get 0 + i32.const 1 + call_indirect (type 0) + ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) @@ -43,11 +43,11 @@ ) (type (;0;) (func (param i32) (result i32))) (import "env" "foo" (func $import_foo (;0;) (type 0))) + (export "bar" (func $bar)) + (export "foo" (func $bar)) (func $bar (;1;) (type 0) (param i32) (result i32) unreachable ) - (export "bar" (func $bar)) - (export "foo" (func $bar)) ) (core module (;2;) (@dylink.0 @@ -58,11 +58,11 @@ (import "test:test/test" "foo" (func $import_foo (;0;) (type 0))) (import "env" "foo" (func $import_foo2 (;1;) (type 0))) (import "env" "bar" (func $import_bar (;2;) (type 0))) + (export "test:test/test#foo" (func $foo)) + (export "foo" (func $foo)) (func $foo (;3;) (type 0) (param i32) (result i32) unreachable ) - (export "test:test/test#foo" (func $foo)) - (export "foo" (func $foo)) ) (core module (;3;) (type (;0;) (func)) @@ -71,10 +71,10 @@ (import "env" "memory" (memory (;0;) 0)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) (import "bar" "foo" (func (;0;) (type 2))) - (func (;1;) (type 0)) (start 1) (elem (;0;) (i32.const 1) func) (elem (;1;) (i32.const 1) func 0) + (func (;1;) (type 0)) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-got-func/component.wat b/crates/wit-component/tests/components/link-got-func/component.wat index f4555bddb3..e866026874 100644 --- a/crates/wit-component/tests/components/link-got-func/component.wat +++ b/crates/wit-component/tests/components/link-got-func/component.wat @@ -8,11 +8,6 @@ (import "test:test/test" (instance (;0;) (type 0))) (core module (;0;) (type (;0;) (func (param i32) (result i32))) - (func (;0;) (type 0) (param i32) (result i32) - local.get 0 - i32.const 1 - call_indirect (type 0) - ) (table (;0;) 2 funcref) (memory (;0;) 17) (global (;0;) (mut i32) i32.const 1048576) @@ -34,6 +29,11 @@ (export "foo" (func 0)) (export "__indirect_function_table" (table 0)) (export "memory" (memory 0)) + (func (;0;) (type 0) (param i32) (result i32) + local.get 0 + i32.const 1 + call_indirect (type 0) + ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) @@ -43,10 +43,10 @@ (mem-info (memory 0 4)) ) (type (;0;) (func (param i32) (result i32))) + (export "foo" (func $foo)) (func $foo (;0;) (type 0) (param i32) (result i32) unreachable ) - (export "foo" (func $foo)) ) (core module (;2;) (@dylink.0 @@ -65,10 +65,10 @@ (import "env" "memory" (memory (;0;) 0)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) (import "bar" "foo" (func (;0;) (type 2))) - (func (;1;) (type 0)) (start 1) (elem (;0;) (i32.const 1) func) (elem (;1;) (i32.const 1) func 0) + (func (;1;) (type 0)) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-initialize/component.wat b/crates/wit-component/tests/components/link-initialize/component.wat index 4e980221e3..c59812a539 100644 --- a/crates/wit-component/tests/components/link-initialize/component.wat +++ b/crates/wit-component/tests/components/link-initialize/component.wat @@ -45,6 +45,10 @@ (type (;1;) (func (param i32) (result i32))) (import "GOT.mem" "__heap_base" (global $__heap_base (;0;) (mut i32))) (import "GOT.mem" "__heap_end" (global $__heap_end (;1;) (mut i32))) + (global $heap (;2;) (mut i32) i32.const 0) + (export "malloc" (func $malloc)) + (export "abort" (func $abort)) + (start $start) (func $start (;0;) (type 0) global.get $__heap_base global.set $heap @@ -59,10 +63,6 @@ (func $abort (;2;) (type 0) unreachable ) - (global $heap (;2;) (mut i32) i32.const 0) - (export "malloc" (func $malloc)) - (export "abort" (func $abort)) - (start $start) ) (core module (;2;) (@dylink.0 @@ -80,6 +80,11 @@ (import "env" "abort" (func $abort (;1;) (type 0))) (import "GOT.mem" "um" (global $um (;3;) (mut i32))) (import "test:test/test" "bar" (func $bar (;2;) (type 1))) + (global (;4;) i32 i32.const 0) + (export "_initialize" (func $_initialize)) + (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) + (export "foo" (func $foo)) + (export "well" (global 4)) (func $_initialize (;3;) (type 0)) (func $__wasm_apply_data_relocs (;4;) (type 0)) (func $foo (;5;) (type 1) (param i32) (result i32) @@ -107,11 +112,6 @@ i32.add global.set $__stack_pointer ) - (global (;4;) i32 i32.const 0) - (export "_initialize" (func $_initialize)) - (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) - (export "foo" (func $foo)) - (export "well" (global 4)) (data $.data (;0;) (global.get $__memory_base) "\04\00\00\00") ) (core module (;3;) @@ -127,6 +127,11 @@ (import "env" "__table_base" (global $__table_base (;1;) i32)) (import "env" "foo" (func $foo (;0;) (type 0))) (import "GOT.mem" "well" (global $well (;2;) (mut i32))) + (global (;3;) i32 i32.const 0) + (export "_initialize" (func $_initialize)) + (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) + (export "test:test/test#bar" (func $bar)) + (export "um" (global 3)) (func $_initialize (;1;) (type 1)) (func $__wasm_apply_data_relocs (;2;) (type 1)) (func $bar (;3;) (type 0) (param i32) (result i32) @@ -136,11 +141,6 @@ i32.load i32.add ) - (global (;3;) i32 i32.const 0) - (export "_initialize" (func $_initialize)) - (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) - (export "test:test/test#bar" (func $bar)) - (export "um" (global 3)) (data $.data (;0;) (global.get $__memory_base) "\01\00\00\00\02\00\00\00\03\00\00\00\04\00\00\00\05\00\00\00") ) (core module (;4;) @@ -158,6 +158,9 @@ (import "env" "bar:memory_base" (global (;3;) i32)) (import "bar" "um" (global (;4;) i32)) (import "env" "foo:um" (global (;5;) (mut i32))) + (start 4) + (elem (;0;) (i32.const 1) func) + (elem (;1;) (i32.const 1) func) (func (;4;) (type 0) global.get 0 global.get 1 @@ -172,9 +175,6 @@ call 1 call 3 ) - (start 4) - (elem (;0;) (i32.const 1) func) - (elem (;1;) (i32.const 1) func) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-resources/component.wat b/crates/wit-component/tests/components/link-resources/component.wat index e35259a98c..07988f9bf2 100644 --- a/crates/wit-component/tests/components/link-resources/component.wat +++ b/crates/wit-component/tests/components/link-resources/component.wat @@ -27,6 +27,8 @@ (mem-info (memory 0 4)) ) (type (;0;) (func (param i32) (result i32))) + (export "test:test/foo#[constructor]x" (func $x_ctor)) + (export "test:test/foo#[method]x.get" (func $x_get)) (func $foo (;0;) (type 0) (param i32) (result i32) unreachable ) @@ -36,8 +38,6 @@ (func $x_get (;2;) (type 0) (param i32) (result i32) unreachable ) - (export "test:test/foo#[constructor]x" (func $x_ctor)) - (export "test:test/foo#[method]x.get" (func $x_get)) ) (core module (;2;) (@dylink.0 @@ -45,24 +45,24 @@ (needed "foo") ) (type (;0;) (func (param i32) (result i32))) + (export "test:test/bar#[constructor]x" (func $x_ctor)) + (export "test:test/bar#[method]x.get" (func $x_get)) (func $x_ctor (;0;) (type 0) (param i32) (result i32) unreachable ) (func $x_get (;1;) (type 0) (param i32) (result i32) unreachable ) - (export "test:test/bar#[constructor]x" (func $x_ctor)) - (export "test:test/bar#[method]x.get" (func $x_get)) ) (core module (;3;) (type (;0;) (func)) (type (;1;) (func (param i32))) (import "env" "memory" (memory (;0;) 0)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) - (func (;0;) (type 0)) (start 0) (elem (;0;) (i32.const 1) func) (elem (;1;) (i32.const 1) func) + (func (;0;) (type 0)) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-stub-wasip2/component.wat b/crates/wit-component/tests/components/link-stub-wasip2/component.wat index 244efb5c52..f69da45d7b 100644 --- a/crates/wit-component/tests/components/link-stub-wasip2/component.wat +++ b/crates/wit-component/tests/components/link-stub-wasip2/component.wat @@ -42,10 +42,10 @@ ) (core module (;1;) (type (;0;) (func (param i32))) + (export "get-environment" (func $get-environment)) (func $get-environment (;0;) (type 0) (param i32) unreachable ) - (export "get-environment" (func $get-environment)) ) (core module (;2;) (@dylink.0 @@ -57,6 +57,10 @@ (import "wasi:cli/environment@0.2.0" "get-environment" (func $get-environment (;0;) (type 2))) (import "GOT.mem" "__heap_base" (global $__heap_base (;0;) (mut i32))) (import "GOT.mem" "__heap_end" (global $__heap_end (;1;) (mut i32))) + (global $heap (;2;) (mut i32) i32.const 0) + (export "malloc" (func $malloc)) + (export "abort" (func $abort)) + (start $start) (func $start (;1;) (type 0) global.get $__heap_base global.set $heap @@ -71,10 +75,6 @@ (func $abort (;3;) (type 0) unreachable ) - (global $heap (;2;) (mut i32) i32.const 0) - (export "malloc" (func $malloc)) - (export "abort" (func $abort)) - (start $start) ) (core module (;3;) (@dylink.0 @@ -92,6 +92,11 @@ (import "env" "abort" (func $abort (;1;) (type 0))) (import "GOT.mem" "um" (global $um (;3;) (mut i32))) (import "test:test/test" "bar" (func $bar (;2;) (type 1))) + (global (;4;) i32 i32.const 0) + (export "__wasm_call_ctors" (func $__wasm_call_ctors)) + (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) + (export "foo" (func $foo)) + (export "well" (global 4)) (func $__wasm_call_ctors (;3;) (type 0)) (func $__wasm_apply_data_relocs (;4;) (type 0)) (func $foo (;5;) (type 1) (param i32) (result i32) @@ -119,11 +124,6 @@ i32.add global.set $__stack_pointer ) - (global (;4;) i32 i32.const 0) - (export "__wasm_call_ctors" (func $__wasm_call_ctors)) - (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) - (export "foo" (func $foo)) - (export "well" (global 4)) (data $.data (;0;) (global.get $__memory_base) "\04\00\00\00") ) (core module (;4;) @@ -139,6 +139,11 @@ (import "env" "__table_base" (global $__table_base (;1;) i32)) (import "env" "foo" (func $foo (;0;) (type 0))) (import "GOT.mem" "well" (global $well (;2;) (mut i32))) + (global (;3;) i32 i32.const 0) + (export "__wasm_call_ctors" (func $__wasm_call_ctors)) + (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) + (export "test:test/test#bar" (func $bar)) + (export "um" (global 3)) (func $__wasm_call_ctors (;1;) (type 1)) (func $__wasm_apply_data_relocs (;2;) (type 1)) (func $bar (;3;) (type 0) (param i32) (result i32) @@ -148,11 +153,6 @@ i32.load i32.add ) - (global (;3;) i32 i32.const 0) - (export "__wasm_call_ctors" (func $__wasm_call_ctors)) - (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) - (export "test:test/test#bar" (func $bar)) - (export "um" (global 3)) (data $.data (;0;) (global.get $__memory_base) "\01\00\00\00\02\00\00\00\03\00\00\00\04\00\00\00\05\00\00\00") ) (core module (;5;) @@ -170,6 +170,9 @@ (import "env" "bar:memory_base" (global (;3;) i32)) (import "bar" "um" (global (;4;) i32)) (import "env" "foo:um" (global (;5;) (mut i32))) + (start 4) + (elem (;0;) (i32.const 1) func) + (elem (;1;) (i32.const 1) func) (func (;4;) (type 0) global.get 0 global.get 1 @@ -184,9 +187,6 @@ call 1 call 3 ) - (start 4) - (elem (;0;) (i32.const 1) func) - (elem (;1;) (i32.const 1) func) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") @@ -194,14 +194,14 @@ ) (core module (;6;) (type (;0;) (func (param i32))) + (table (;0;) 1 1 funcref) + (export "0" (func $adapt-wasi:cli/environment@0.2.0-get-environment)) + (export "$imports" (table 0)) (func $adapt-wasi:cli/environment@0.2.0-get-environment (;0;) (type 0) (param i32) local.get 0 i32.const 0 call_indirect (type 0) ) - (table (;0;) 1 1 funcref) - (export "0" (func $adapt-wasi:cli/environment@0.2.0-get-environment)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/link-stubs/component.wat b/crates/wit-component/tests/components/link-stubs/component.wat index 3549213e8c..c1b0b01a55 100644 --- a/crates/wit-component/tests/components/link-stubs/component.wat +++ b/crates/wit-component/tests/components/link-stubs/component.wat @@ -32,14 +32,14 @@ (core module (;1;) (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32) (result i32))) + (export "bar" (func 0)) + (export "foo" (func 1)) (func (;0;) (type 0) (param i32) (result i32) unreachable ) (func (;1;) (type 1) (param i32) (result i32) unreachable ) - (export "bar" (func 0)) - (export "foo" (func 1)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) @@ -52,20 +52,20 @@ (import "test:test/test" "foo" (func $import_foo (;0;) (type 0))) (import "env" "foo" (func $import_foo2 (;1;) (type 0))) (import "env" "bar" (func $import_bar (;2;) (type 0))) + (export "test:test/test#foo" (func $foo)) (func $foo (;3;) (type 0) (param i32) (result i32) unreachable ) - (export "test:test/test#foo" (func $foo)) ) (core module (;3;) (type (;0;) (func)) (type (;1;) (func (param i32))) (import "env" "memory" (memory (;0;) 0)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) - (func (;0;) (type 0)) (start 0) (elem (;0;) (i32.const 1) func) (elem (;1;) (i32.const 2) func) + (func (;0;) (type 0)) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-weak-cabi-realloc/component.wat b/crates/wit-component/tests/components/link-weak-cabi-realloc/component.wat index 123ccb84f3..885e515849 100644 --- a/crates/wit-component/tests/components/link-weak-cabi-realloc/component.wat +++ b/crates/wit-component/tests/components/link-weak-cabi-realloc/component.wat @@ -1,14 +1,6 @@ (component (core module (;0;) (type (;0;) (func (param i32 i32 i32 i32) (result i32))) - (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) - local.get 0 - local.get 1 - local.get 2 - local.get 3 - i32.const 1 - call_indirect (type 0) - ) (table (;0;) 2 funcref) (memory (;0;) 17) (global (;0;) (mut i32) i32.const 1048576) @@ -24,6 +16,14 @@ (export "cabi_realloc" (func 0)) (export "__indirect_function_table" (table 0)) (export "memory" (memory 0)) + (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) + local.get 0 + local.get 1 + local.get 2 + local.get 3 + i32.const 1 + call_indirect (type 0) + ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) @@ -36,12 +36,12 @@ (type (;1;) (func (param i32))) (type (;2;) (func (param i32 i32))) (import "env" "cabi_realloc" (func $cabi_realloc.0 (;0;) (type 0))) + (export "cabi_realloc" (func $cabi_realloc.1)) + (export "test:test/test#foo" (func $foo)) (func $cabi_realloc.1 (;1;) (type 0) (param i32 i32 i32 i32) (result i32) i32.const -257976192 ) (func $foo (;2;) (type 2) (param i32 i32)) - (export "cabi_realloc" (func $cabi_realloc.1)) - (export "test:test/test#foo" (func $foo)) ) (core module (;2;) (type (;0;) (func)) @@ -50,10 +50,10 @@ (import "env" "memory" (memory (;0;) 0)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) (import "foo" "cabi_realloc" (func (;0;) (type 2))) - (func (;1;) (type 0)) (start 1) (elem (;0;) (i32.const 1) func) (elem (;1;) (i32.const 1) func 0) + (func (;1;) (type 0)) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link-weak-import/component.wat b/crates/wit-component/tests/components/link-weak-import/component.wat index 919a7032aa..ca5fef401f 100644 --- a/crates/wit-component/tests/components/link-weak-import/component.wat +++ b/crates/wit-component/tests/components/link-weak-import/component.wat @@ -32,14 +32,14 @@ (core module (;1;) (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32) (result i32))) + (export "bar" (func 0)) + (export "foo" (func 1)) (func (;0;) (type 0) (param i32) (result i32) unreachable ) (func (;1;) (type 1) (param i32) (result i32) unreachable ) - (export "bar" (func 0)) - (export "foo" (func 1)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) @@ -54,20 +54,20 @@ (import "test:test/test" "foo" (func $import_foo (;0;) (type 0))) (import "env" "foo" (func $import_foo2 (;1;) (type 0))) (import "env" "bar" (func $import_bar (;2;) (type 0))) + (export "test:test/test#foo" (func $foo)) (func $foo (;3;) (type 0) (param i32) (result i32) unreachable ) - (export "test:test/test#foo" (func $foo)) ) (core module (;3;) (type (;0;) (func)) (type (;1;) (func (param i32))) (import "env" "memory" (memory (;0;) 0)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) - (func (;0;) (type 0)) (start 0) (elem (;0;) (i32.const 1) func) (elem (;1;) (i32.const 2) func) + (func (;0;) (type 0)) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/link/component.wat b/crates/wit-component/tests/components/link/component.wat index 5cab6b6878..c7ba5a3f77 100644 --- a/crates/wit-component/tests/components/link/component.wat +++ b/crates/wit-component/tests/components/link/component.wat @@ -45,6 +45,10 @@ (type (;1;) (func (param i32) (result i32))) (import "GOT.mem" "__heap_base" (global $__heap_base (;0;) (mut i32))) (import "GOT.mem" "__heap_end" (global $__heap_end (;1;) (mut i32))) + (global $heap (;2;) (mut i32) i32.const 0) + (export "malloc" (func $malloc)) + (export "abort" (func $abort)) + (start $start) (func $start (;0;) (type 0) global.get $__heap_base global.set $heap @@ -59,10 +63,6 @@ (func $abort (;2;) (type 0) unreachable ) - (global $heap (;2;) (mut i32) i32.const 0) - (export "malloc" (func $malloc)) - (export "abort" (func $abort)) - (start $start) ) (core module (;2;) (@dylink.0 @@ -80,6 +80,11 @@ (import "env" "abort" (func $abort (;1;) (type 0))) (import "GOT.mem" "um" (global $um (;3;) (mut i32))) (import "test:test/test" "bar" (func $bar (;2;) (type 1))) + (global (;4;) i32 i32.const 0) + (export "__wasm_call_ctors" (func $__wasm_call_ctors)) + (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) + (export "foo" (func $foo)) + (export "well" (global 4)) (func $__wasm_call_ctors (;3;) (type 0)) (func $__wasm_apply_data_relocs (;4;) (type 0)) (func $foo (;5;) (type 1) (param i32) (result i32) @@ -107,11 +112,6 @@ i32.add global.set $__stack_pointer ) - (global (;4;) i32 i32.const 0) - (export "__wasm_call_ctors" (func $__wasm_call_ctors)) - (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) - (export "foo" (func $foo)) - (export "well" (global 4)) (data $.data (;0;) (global.get $__memory_base) "\04\00\00\00") ) (core module (;3;) @@ -127,6 +127,11 @@ (import "env" "__table_base" (global $__table_base (;1;) i32)) (import "env" "foo" (func $foo (;0;) (type 0))) (import "GOT.mem" "well" (global $well (;2;) (mut i32))) + (global (;3;) i32 i32.const 0) + (export "__wasm_call_ctors" (func $__wasm_call_ctors)) + (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) + (export "test:test/test#bar" (func $bar)) + (export "um" (global 3)) (func $__wasm_call_ctors (;1;) (type 1)) (func $__wasm_apply_data_relocs (;2;) (type 1)) (func $bar (;3;) (type 0) (param i32) (result i32) @@ -136,11 +141,6 @@ i32.load i32.add ) - (global (;3;) i32 i32.const 0) - (export "__wasm_call_ctors" (func $__wasm_call_ctors)) - (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) - (export "test:test/test#bar" (func $bar)) - (export "um" (global 3)) (data $.data (;0;) (global.get $__memory_base) "\01\00\00\00\02\00\00\00\03\00\00\00\04\00\00\00\05\00\00\00") ) (core module (;4;) @@ -158,6 +158,9 @@ (import "env" "bar:memory_base" (global (;3;) i32)) (import "bar" "um" (global (;4;) i32)) (import "env" "foo:um" (global (;5;) (mut i32))) + (start 4) + (elem (;0;) (i32.const 1) func) + (elem (;1;) (i32.const 1) func) (func (;4;) (type 0) global.get 0 global.get 1 @@ -172,9 +175,6 @@ call 1 call 3 ) - (start 4) - (elem (;0;) (i32.const 1) func) - (elem (;1;) (i32.const 1) func) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/live-exports-dead-imports/component.wat b/crates/wit-component/tests/components/live-exports-dead-imports/component.wat index 00e9d6873a..5d086526b4 100644 --- a/crates/wit-component/tests/components/live-exports-dead-imports/component.wat +++ b/crates/wit-component/tests/components/live-exports-dead-imports/component.wat @@ -1,10 +1,10 @@ (component (core module (;0;) (type (;0;) (func (result i32))) + (export "foo:foo/a#[constructor]r" (func 0)) (func (;0;) (type 0) (result i32) unreachable ) - (export "foo:foo/a#[constructor]r" (func 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/lower-options/component.wat b/crates/wit-component/tests/components/lower-options/component.wat index 37e5462511..9151756caf 100644 --- a/crates/wit-component/tests/components/lower-options/component.wat +++ b/crates/wit-component/tests/components/lower-options/component.wat @@ -73,12 +73,12 @@ (import "foo:foo/foo" "n" (func (;13;) (type 4))) (import "foo:foo/foo" "o" (func (;14;) (type 3))) (import "foo:foo/foo" "p" (func (;15;) (type 3))) - (func (;16;) (type 5) (param i32 i32 i32 i32) (result i32) - unreachable - ) (memory (;0;) 1) (export "memory" (memory 0)) (export "cabi_realloc" (func 16)) + (func (;16;) (type 5) (param i32 i32 i32 i32) (result i32) + unreachable + ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") @@ -88,6 +88,19 @@ (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32 i32 i32))) (type (;2;) (func (param i32))) + (table (;0;) 11 11 funcref) + (export "0" (func $indirect-foo:foo/foo-b)) + (export "1" (func $indirect-foo:foo/foo-c)) + (export "2" (func $indirect-foo:foo/foo-d)) + (export "3" (func $indirect-foo:foo/foo-g)) + (export "4" (func $indirect-foo:foo/foo-h)) + (export "5" (func $indirect-foo:foo/foo-i)) + (export "6" (func $indirect-foo:foo/foo-k)) + (export "7" (func $indirect-foo:foo/foo-l)) + (export "8" (func $indirect-foo:foo/foo-m)) + (export "9" (func $indirect-foo:foo/foo-o)) + (export "10" (func $indirect-foo:foo/foo-p)) + (export "$imports" (table 0)) (func $indirect-foo:foo/foo-b (;0;) (type 0) (param i32 i32) local.get 0 local.get 1 @@ -150,19 +163,6 @@ i32.const 10 call_indirect (type 2) ) - (table (;0;) 11 11 funcref) - (export "0" (func $indirect-foo:foo/foo-b)) - (export "1" (func $indirect-foo:foo/foo-c)) - (export "2" (func $indirect-foo:foo/foo-d)) - (export "3" (func $indirect-foo:foo/foo-g)) - (export "4" (func $indirect-foo:foo/foo-h)) - (export "5" (func $indirect-foo:foo/foo-i)) - (export "6" (func $indirect-foo:foo/foo-k)) - (export "7" (func $indirect-foo:foo/foo-l)) - (export "8" (func $indirect-foo:foo/foo-m)) - (export "9" (func $indirect-foo:foo/foo-o)) - (export "10" (func $indirect-foo:foo/foo-p)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/many-same-names/component.wat b/crates/wit-component/tests/components/many-same-names/component.wat index 3d1d5c7ec0..2ad6f02282 100644 --- a/crates/wit-component/tests/components/many-same-names/component.wat +++ b/crates/wit-component/tests/components/many-same-names/component.wat @@ -1,8 +1,8 @@ (component (core module (;0;) (type (;0;) (func)) - (func (;0;) (type 0)) (export "name#a" (func 0)) + (func (;0;) (type 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/multi-package/component.wat b/crates/wit-component/tests/components/multi-package/component.wat index a6d81094bd..bfbb317284 100644 --- a/crates/wit-component/tests/components/multi-package/component.wat +++ b/crates/wit-component/tests/components/multi-package/component.wat @@ -19,10 +19,10 @@ (type (;1;) (func (param i32))) (import "env" "memory" (memory (;0;) 0)) (import "env" "__indirect_function_table" (table (;0;) 0 funcref)) - (func (;0;) (type 0)) (start 0) (elem (;0;) (i32.const 1) func) (elem (;1;) (i32.const 1) func) + (func (;0;) (type 0)) (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") diff --git a/crates/wit-component/tests/components/no-realloc-required/component.wat b/crates/wit-component/tests/components/no-realloc-required/component.wat index dc56b30812..e6cedd2a4d 100644 --- a/crates/wit-component/tests/components/no-realloc-required/component.wat +++ b/crates/wit-component/tests/components/no-realloc-required/component.wat @@ -18,15 +18,15 @@ ) (core module (;1;) (type (;0;) (func (param i32 i32))) + (table (;0;) 1 1 funcref) + (export "0" (func $indirect-foo-log)) + (export "$imports" (table 0)) (func $indirect-foo-log (;0;) (type 0) (param i32 i32) local.get 0 local.get 1 i32.const 0 call_indirect (type 0) ) - (table (;0;) 1 1 funcref) - (export "0" (func $indirect-foo-log)) - (export "$imports" (table 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/components/post-return/component.wat b/crates/wit-component/tests/components/post-return/component.wat index a66fd2ded6..3a800d0bb9 100644 --- a/crates/wit-component/tests/components/post-return/component.wat +++ b/crates/wit-component/tests/components/post-return/component.wat @@ -3,6 +3,11 @@ (type (;0;) (func (param i32 i32 i32 i32) (result i32))) (type (;1;) (func (result i32))) (type (;2;) (func (param i32))) + (memory (;0;) 1) + (export "memory" (memory 0)) + (export "cabi_realloc" (func 0)) + (export "a" (func 1)) + (export "cabi_post_a" (func 2)) (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) unreachable ) @@ -12,11 +17,6 @@ (func (;2;) (type 2) (param i32) unreachable ) - (memory (;0;) 1) - (export "memory" (memory 0)) - (export "cabi_realloc" (func 0)) - (export "a" (func 1)) - (export "cabi_post_a" (func 2)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/resource-used-through-import/component.wat b/crates/wit-component/tests/components/resource-used-through-import/component.wat index 7ba94b2732..453afd163b 100644 --- a/crates/wit-component/tests/components/resource-used-through-import/component.wat +++ b/crates/wit-component/tests/components/resource-used-through-import/component.wat @@ -9,10 +9,10 @@ (type (;0;) (func (param i32))) (type (;1;) (func (result i32))) (import "foo:bar/a" "[resource-drop]r" (func (;0;) (type 0))) + (export "b#foo" (func 1)) (func (;1;) (type 1) (result i32) i32.const 0 ) - (export "b#foo" (func 1)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/resource-using-export/component.wat b/crates/wit-component/tests/components/resource-using-export/component.wat index 2e57e3f6a1..dbd17dd46a 100644 --- a/crates/wit-component/tests/components/resource-using-export/component.wat +++ b/crates/wit-component/tests/components/resource-using-export/component.wat @@ -3,11 +3,11 @@ (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) (import "[export]foo:bar/foo" "[resource-new]r" (func $new (;0;) (type 0))) + (export "anon#f" (func 1)) (func (;1;) (type 1) (result i32) i32.const 100 call $new ) - (export "anon#f" (func 1)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/simple/component.wat b/crates/wit-component/tests/components/simple/component.wat index 062e44e5e4..5fc0e70565 100644 --- a/crates/wit-component/tests/components/simple/component.wat +++ b/crates/wit-component/tests/components/simple/component.wat @@ -6,6 +6,15 @@ (type (;3;) (func (param i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func (param i32 i32))) + (memory $memory (;0;) 1) + (export "memory" (memory $memory)) + (export "cabi_realloc" (func $cabi_realloc)) + (export "a" (func $a)) + (export "b" (func $b)) + (export "cabi_post_b" (func 3)) + (export "c" (func $c)) + (export "cabi_post_c" (func 5)) + (export "d" (func $d)) (func $cabi_realloc (;0;) (type 0) (param i32 i32 i32 i32) (result i32) unreachable ) @@ -27,15 +36,6 @@ (func $d (;6;) (type 5) (param i32 i32) unreachable ) - (memory $memory (;0;) 1) - (export "memory" (memory $memory)) - (export "cabi_realloc" (func $cabi_realloc)) - (export "a" (func $a)) - (export "b" (func $b)) - (export "cabi_post_b" (func 3)) - (export "c" (func $c)) - (export "cabi_post_c" (func 5)) - (export "d" (func $d)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/tricky-resources/component.wat b/crates/wit-component/tests/components/tricky-resources/component.wat index cea6782d19..cb5c187a69 100644 --- a/crates/wit-component/tests/components/tricky-resources/component.wat +++ b/crates/wit-component/tests/components/tricky-resources/component.wat @@ -5,10 +5,10 @@ (type (;2;) (func (result i32))) (import "[export]foo:bar/a" "[resource-drop]r" (func (;0;) (type 0))) (import "[export]foo:bar/a" "[resource-rep]r" (func (;1;) (type 1))) + (export "some-name#f" (func 2)) (func (;2;) (type 2) (result i32) unreachable ) - (export "some-name#f" (func 2)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/tricky-resources2/component.wat b/crates/wit-component/tests/components/tricky-resources2/component.wat index be299b0cae..db0688753f 100644 --- a/crates/wit-component/tests/components/tricky-resources2/component.wat +++ b/crates/wit-component/tests/components/tricky-resources2/component.wat @@ -1,10 +1,10 @@ (component (core module (;0;) (type (;0;) (func (result i32))) + (export "anon#foo" (func 0)) (func (;0;) (type 0) (result i32) unreachable ) - (export "anon#foo" (func 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/tricky-resources4/component.wat b/crates/wit-component/tests/components/tricky-resources4/component.wat index bf60c7dd67..1498759e90 100644 --- a/crates/wit-component/tests/components/tricky-resources4/component.wat +++ b/crates/wit-component/tests/components/tricky-resources4/component.wat @@ -3,11 +3,11 @@ (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) (import "[export]foo:bar/name" "[resource-new]name" (func $new (;0;) (type 0))) + (export "foo:bar/name#foo" (func 1)) (func (;1;) (type 1) (result i32) i32.const 100 call $new ) - (export "foo:bar/name#foo" (func 1)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/worlds-with-type-renamings/component.wat b/crates/wit-component/tests/components/worlds-with-type-renamings/component.wat index aa901e7af6..4d272ffb1c 100644 --- a/crates/wit-component/tests/components/worlds-with-type-renamings/component.wat +++ b/crates/wit-component/tests/components/worlds-with-type-renamings/component.wat @@ -15,16 +15,16 @@ (type (;1;) (func (param i32 i32 i32 i32) (result i32))) (type (;2;) (func (result i32))) (import "foo:foo/i" "the-func" (func (;0;) (type 2))) + (memory (;0;) 0) + (export "foo:foo/i#the-func" (func 1)) + (export "cabi_realloc" (func 2)) + (export "memory" (memory 0)) (func (;1;) (type 2) (result i32) unreachable ) (func (;2;) (type 1) (param i32 i32 i32 i32) (result i32) unreachable ) - (memory (;0;) 0) - (export "foo:foo/i#the-func" (func 1)) - (export "cabi_realloc" (func 2)) - (export "memory" (memory 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") diff --git a/crates/wit-component/tests/components/worlds-with-types/component.wat b/crates/wit-component/tests/components/worlds-with-types/component.wat index 3d0b936522..1a69f8f179 100644 --- a/crates/wit-component/tests/components/worlds-with-types/component.wat +++ b/crates/wit-component/tests/components/worlds-with-types/component.wat @@ -5,10 +5,10 @@ (import "r" (type (;3;) (eq 2))) (core module (;0;) (type (;0;) (func (param i32) (result i32))) + (export "a" (func 0)) (func (;0;) (type 0) (param i32) (result i32) i32.const 1 ) - (export "a" (func 0)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45")