diff options
Diffstat (limited to 'test/dot_s')
35 files changed, 315 insertions, 350 deletions
diff --git a/test/dot_s/alias.wast b/test/dot_s/alias.wast index acb13f8f0..812fb94d2 100644 --- a/test/dot_s/alias.wast +++ b/test/dot_s/alias.wast @@ -38,19 +38,18 @@ ) (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/alternate-lcomm.wast b/test/dot_s/alternate-lcomm.wast index b998ca27a..5c6f67a5c 100644 --- a/test/dot_s/alternate-lcomm.wast +++ b/test/dot_s/alternate-lcomm.wast @@ -11,19 +11,18 @@ ) (func $stackAlloc (; 1 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/asm_const.wast b/test/dot_s/asm_const.wast index 0974c817e..621a9ddc4 100644 --- a/test/dot_s/asm_const.wast +++ b/test/dot_s/asm_const.wast @@ -23,19 +23,18 @@ ) (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast index 57b3b9899..95806d309 100644 --- a/test/dot_s/basics.wast +++ b/test/dot_s/basics.wast @@ -107,19 +107,18 @@ ) (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/bcp-1.wast b/test/dot_s/bcp-1.wast index c75687537..b52a14bb5 100644 --- a/test/dot_s/bcp-1.wast +++ b/test/dot_s/bcp-1.wast @@ -319,19 +319,18 @@ ) (func $stackAlloc (; 22 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/data-offset-folding.wast b/test/dot_s/data-offset-folding.wast index 78aa96539..7dae9720e 100644 --- a/test/dot_s/data-offset-folding.wast +++ b/test/dot_s/data-offset-folding.wast @@ -13,19 +13,18 @@ ) (func $stackAlloc (; 1 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/debug.wast b/test/dot_s/debug.wast index 6a7d36eac..b6ffc7f29 100644 --- a/test/dot_s/debug.wast +++ b/test/dot_s/debug.wast @@ -64,19 +64,18 @@ ) (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/dso_handle.wast b/test/dot_s/dso_handle.wast index 7dfb84db2..948cb2562 100644 --- a/test/dot_s/dso_handle.wast +++ b/test/dot_s/dso_handle.wast @@ -17,19 +17,18 @@ ) (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/dyncall.wast b/test/dot_s/dyncall.wast index 35ee92d9b..a5291eefc 100644 --- a/test/dot_s/dyncall.wast +++ b/test/dot_s/dyncall.wast @@ -60,19 +60,18 @@ ) (func $stackAlloc (; 8 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/exit.wast b/test/dot_s/exit.wast index 65fb224cc..69e560300 100644 --- a/test/dot_s/exit.wast +++ b/test/dot_s/exit.wast @@ -21,19 +21,18 @@ ) (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/export_malloc_free.wast b/test/dot_s/export_malloc_free.wast index 33dbcdfe7..6399d7fb1 100644 --- a/test/dot_s/export_malloc_free.wast +++ b/test/dot_s/export_malloc_free.wast @@ -33,19 +33,18 @@ ) (func $stackAlloc (; 7 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/fix_em_ehsjlj_names.wast b/test/dot_s/fix_em_ehsjlj_names.wast index 28dc00867..a1844306c 100644 --- a/test/dot_s/fix_em_ehsjlj_names.wast +++ b/test/dot_s/fix_em_ehsjlj_names.wast @@ -86,19 +86,18 @@ ) (func $stackAlloc (; 12 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/function-data-sections.wast b/test/dot_s/function-data-sections.wast index 205d815f4..5d34c1472 100644 --- a/test/dot_s/function-data-sections.wast +++ b/test/dot_s/function-data-sections.wast @@ -33,19 +33,18 @@ ) (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/globals.wast b/test/dot_s/globals.wast index 4e08e3375..d6a07f303 100644 --- a/test/dot_s/globals.wast +++ b/test/dot_s/globals.wast @@ -87,19 +87,18 @@ ) (func $stackAlloc (; 5 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/hostFinalize.wast b/test/dot_s/hostFinalize.wast index b3d30a93f..1e13d5d89 100644 --- a/test/dot_s/hostFinalize.wast +++ b/test/dot_s/hostFinalize.wast @@ -21,19 +21,18 @@ ) (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/indidx.wast b/test/dot_s/indidx.wast index 105b0faa0..a2cd15a33 100644 --- a/test/dot_s/indidx.wast +++ b/test/dot_s/indidx.wast @@ -61,19 +61,18 @@ ) (func $stackAlloc (; 8 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/indirect-import.wast b/test/dot_s/indirect-import.wast index cd8a13ed6..49a41a574 100644 --- a/test/dot_s/indirect-import.wast +++ b/test/dot_s/indirect-import.wast @@ -129,19 +129,18 @@ ) (func $stackAlloc (; 16 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/initializers.wast b/test/dot_s/initializers.wast index e3e866cc3..5ad48f5b3 100644 --- a/test/dot_s/initializers.wast +++ b/test/dot_s/initializers.wast @@ -25,19 +25,18 @@ ) (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/lcomm-in-text-segment.wast b/test/dot_s/lcomm-in-text-segment.wast index 2f7e3173e..278beee84 100644 --- a/test/dot_s/lcomm-in-text-segment.wast +++ b/test/dot_s/lcomm-in-text-segment.wast @@ -12,19 +12,18 @@ ) (func $stackAlloc (; 1 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/local_align.wast b/test/dot_s/local_align.wast index 046b2b9f6..263bfc20c 100644 --- a/test/dot_s/local_align.wast +++ b/test/dot_s/local_align.wast @@ -20,19 +20,18 @@ ) (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/macClangMetaData.wast b/test/dot_s/macClangMetaData.wast index 3dcde706c..f95994e82 100644 --- a/test/dot_s/macClangMetaData.wast +++ b/test/dot_s/macClangMetaData.wast @@ -25,19 +25,18 @@ ) (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/memops.wast b/test/dot_s/memops.wast index acb70e511..a8d9852be 100644 --- a/test/dot_s/memops.wast +++ b/test/dot_s/memops.wast @@ -215,19 +215,18 @@ ) (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/minimal.wast b/test/dot_s/minimal.wast index ae918b3e5..b2345c57f 100644 --- a/test/dot_s/minimal.wast +++ b/test/dot_s/minimal.wast @@ -17,19 +17,18 @@ ) (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/permute.wast b/test/dot_s/permute.wast index 4ff88947d..021ece15a 100644 --- a/test/dot_s/permute.wast +++ b/test/dot_s/permute.wast @@ -12,19 +12,18 @@ ) (func $stackAlloc (; 1 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/relocation.wast b/test/dot_s/relocation.wast index c528efcae..536caff4a 100644 --- a/test/dot_s/relocation.wast +++ b/test/dot_s/relocation.wast @@ -22,19 +22,18 @@ ) (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/return.wast b/test/dot_s/return.wast index 8a527b01a..0e60c7a84 100644 --- a/test/dot_s/return.wast +++ b/test/dot_s/return.wast @@ -27,19 +27,18 @@ ) (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/start_main0.wast b/test/dot_s/start_main0.wast index 79ab8b217..9951ae6eb 100644 --- a/test/dot_s/start_main0.wast +++ b/test/dot_s/start_main0.wast @@ -18,19 +18,18 @@ ) (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/start_main2.wast b/test/dot_s/start_main2.wast index cd67cdeda..34929e3ff 100644 --- a/test/dot_s/start_main2.wast +++ b/test/dot_s/start_main2.wast @@ -28,19 +28,18 @@ ) (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/symbolic-offset.wast b/test/dot_s/symbolic-offset.wast index e9fe0eb0b..4005f6c0c 100644 --- a/test/dot_s/symbolic-offset.wast +++ b/test/dot_s/symbolic-offset.wast @@ -20,19 +20,18 @@ ) (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/text_before_type.wast b/test/dot_s/text_before_type.wast index 04d8ec806..be2a10102 100644 --- a/test/dot_s/text_before_type.wast +++ b/test/dot_s/text_before_type.wast @@ -18,19 +18,18 @@ ) (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/traps.clamp.wast b/test/dot_s/traps.clamp.wast index 7228741bb..3add94a93 100644 --- a/test/dot_s/traps.clamp.wast +++ b/test/dot_s/traps.clamp.wast @@ -86,19 +86,18 @@ ) (func $stackAlloc (; 5 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/traps.js.wast b/test/dot_s/traps.js.wast index 2dd71d29a..6982a5289 100644 --- a/test/dot_s/traps.js.wast +++ b/test/dot_s/traps.js.wast @@ -38,19 +38,18 @@ ) (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/traps.wast b/test/dot_s/traps.wast index e6371fdaf..f417edc25 100644 --- a/test/dot_s/traps.wast +++ b/test/dot_s/traps.wast @@ -22,19 +22,18 @@ ) (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/unreachable_blocks.wast b/test/dot_s/unreachable_blocks.wast index 43450bb07..00b8183b3 100644 --- a/test/dot_s/unreachable_blocks.wast +++ b/test/dot_s/unreachable_blocks.wast @@ -96,19 +96,18 @@ ) (func $stackAlloc (; 11 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) diff --git a/test/dot_s/visibilities.wast b/test/dot_s/visibilities.wast index 58442bd37..4fc21f8df 100644 --- a/test/dot_s/visibilities.wast +++ b/test/dot_s/visibilities.wast @@ -23,19 +23,18 @@ ) (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) (local $1 i32) - (set_local $1 - (i32.load offset=4 - (i32.const 0) - ) - ) (i32.store offset=4 (i32.const 0) - (i32.and - (i32.sub - (get_local $1) - (get_local $0) + (tee_local $1 + (i32.and + (i32.sub + (i32.load offset=4 + (i32.const 0) + ) + (get_local $0) + ) + (i32.const -16) ) - (i32.const -16) ) ) (get_local $1) |