diff options
Diffstat (limited to 'test/llvm_autogenerated/offset.wast')
-rw-r--r-- | test/llvm_autogenerated/offset.wast | 486 |
1 files changed, 177 insertions, 309 deletions
diff --git a/test/llvm_autogenerated/offset.wast b/test/llvm_autogenerated/offset.wast index 81a21b06d..caf0f95a2 100644 --- a/test/llvm_autogenerated/offset.wast +++ b/test/llvm_autogenerated/offset.wast @@ -36,448 +36,316 @@ (export "aggregate_return" $aggregate_return) (export "aggregate_return_without_merge" $aggregate_return_without_merge) (func $load_i32_with_folded_offset (param $$0 i32) (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load offset=24 align=4 - (get_local $$0) - ) - ) + (return + (i32.load offset=24 align=4 + (get_local $$0) ) ) ) (func $load_i32_with_folded_gep_offset (param $$0 i32) (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load offset=24 align=4 - (get_local $$0) - ) - ) + (return + (i32.load offset=24 align=4 + (get_local $$0) ) ) ) (func $load_i32_with_unfolded_gep_negative_offset (param $$0 i32) (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load align=4 - (i32.add - (get_local $$0) - (i32.const -24) - ) - ) + (return + (i32.load align=4 + (i32.add + (get_local $$0) + (i32.const -24) ) ) ) ) (func $load_i32_with_unfolded_offset (param $$0 i32) (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load align=4 - (i32.add - (get_local $$0) - (i32.const 24) - ) - ) + (return + (i32.load align=4 + (i32.add + (get_local $$0) + (i32.const 24) ) ) ) ) (func $load_i32_with_unfolded_gep_offset (param $$0 i32) (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load align=4 - (i32.add - (get_local $$0) - (i32.const 24) - ) - ) + (return + (i32.load align=4 + (i32.add + (get_local $$0) + (i32.const 24) ) ) ) ) (func $load_i64_with_folded_offset (param $$0 i32) (result i64) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i64.load offset=24 align=8 - (get_local $$0) - ) - ) + (return + (i64.load offset=24 align=8 + (get_local $$0) ) ) ) (func $load_i64_with_folded_gep_offset (param $$0 i32) (result i64) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i64.load offset=24 align=8 - (get_local $$0) - ) - ) + (return + (i64.load offset=24 align=8 + (get_local $$0) ) ) ) (func $load_i64_with_unfolded_gep_negative_offset (param $$0 i32) (result i64) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i64.load align=8 - (i32.add - (get_local $$0) - (i32.const -24) - ) - ) + (return + (i64.load align=8 + (i32.add + (get_local $$0) + (i32.const -24) ) ) ) ) (func $load_i64_with_unfolded_offset (param $$0 i32) (result i64) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i64.load align=8 - (i32.add - (get_local $$0) - (i32.const 24) - ) - ) + (return + (i64.load align=8 + (i32.add + (get_local $$0) + (i32.const 24) ) ) ) ) (func $load_i64_with_unfolded_gep_offset (param $$0 i32) (result i64) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i64.load align=8 - (i32.add - (get_local $$0) - (i32.const 24) - ) - ) + (return + (i64.load align=8 + (i32.add + (get_local $$0) + (i32.const 24) ) ) ) ) (func $store_i32_with_folded_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i32.store offset=24 align=4 - (get_local $$0) - (i32.const 0) - ) - (br $fake_return_waka123) - ) + (i32.store offset=24 align=4 + (get_local $$0) + (i32.const 0) ) + (return) ) (func $store_i32_with_folded_gep_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i32.store offset=24 align=4 - (get_local $$0) - (i32.const 0) - ) - (br $fake_return_waka123) - ) + (i32.store offset=24 align=4 + (get_local $$0) + (i32.const 0) ) + (return) ) (func $store_i32_with_unfolded_gep_negative_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i32.store align=4 - (i32.add - (get_local $$0) - (i32.const -24) - ) - (i32.const 0) - ) - (br $fake_return_waka123) + (i32.store align=4 + (i32.add + (get_local $$0) + (i32.const -24) ) + (i32.const 0) ) + (return) ) (func $store_i32_with_unfolded_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i32.store align=4 - (i32.add - (get_local $$0) - (i32.const 24) - ) - (i32.const 0) - ) - (br $fake_return_waka123) + (i32.store align=4 + (i32.add + (get_local $$0) + (i32.const 24) ) + (i32.const 0) ) + (return) ) (func $store_i32_with_unfolded_gep_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i32.store align=4 - (i32.add - (get_local $$0) - (i32.const 24) - ) - (i32.const 0) - ) - (br $fake_return_waka123) + (i32.store align=4 + (i32.add + (get_local $$0) + (i32.const 24) ) + (i32.const 0) ) + (return) ) (func $store_i64_with_folded_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i64.store offset=24 align=8 - (get_local $$0) - (i64.const 0) - ) - (br $fake_return_waka123) - ) + (i64.store offset=24 align=8 + (get_local $$0) + (i64.const 0) ) + (return) ) (func $store_i64_with_folded_gep_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i64.store offset=24 align=8 - (get_local $$0) - (i64.const 0) - ) - (br $fake_return_waka123) - ) + (i64.store offset=24 align=8 + (get_local $$0) + (i64.const 0) ) + (return) ) (func $store_i64_with_unfolded_gep_negative_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i64.store align=8 - (i32.add - (get_local $$0) - (i32.const -24) - ) - (i64.const 0) - ) - (br $fake_return_waka123) + (i64.store align=8 + (i32.add + (get_local $$0) + (i32.const -24) ) + (i64.const 0) ) + (return) ) (func $store_i64_with_unfolded_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i64.store align=8 - (i32.add - (get_local $$0) - (i32.const 24) - ) - (i64.const 0) - ) - (br $fake_return_waka123) + (i64.store align=8 + (i32.add + (get_local $$0) + (i32.const 24) ) + (i64.const 0) ) + (return) ) (func $store_i64_with_unfolded_gep_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i64.store align=8 - (i32.add - (get_local $$0) - (i32.const 24) - ) - (i64.const 0) - ) - (br $fake_return_waka123) + (i64.store align=8 + (i32.add + (get_local $$0) + (i32.const 24) ) + (i64.const 0) ) + (return) ) (func $load_i32_from_numeric_address (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load offset=42 align=4 - (i32.const 0) - ) - ) + (return + (i32.load offset=42 align=4 + (i32.const 0) ) ) ) (func $load_i32_from_global_address (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load offset=8 align=4 - (i32.const 0) - ) - ) + (return + (i32.load offset=8 align=4 + (i32.const 0) ) ) ) (func $store_i32_to_numeric_address - (block $fake_return_waka123 - (block - (i32.store offset=42 align=4 - (i32.const 0) - (i32.const 0) - ) - (br $fake_return_waka123) - ) + (i32.store offset=42 align=4 + (i32.const 0) + (i32.const 0) ) + (return) ) (func $store_i32_to_global_address - (block $fake_return_waka123 - (block - (i32.store offset=8 align=4 - (i32.const 0) - (i32.const 0) - ) - (br $fake_return_waka123) - ) + (i32.store offset=8 align=4 + (i32.const 0) + (i32.const 0) ) + (return) ) (func $load_i8_s_with_folded_offset (param $$0 i32) (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load8_s offset=24 align=1 - (get_local $$0) - ) - ) + (return + (i32.load8_s offset=24 align=1 + (get_local $$0) ) ) ) (func $load_i8_s_with_folded_gep_offset (param $$0 i32) (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load8_s offset=24 align=1 - (get_local $$0) - ) - ) + (return + (i32.load8_s offset=24 align=1 + (get_local $$0) ) ) ) (func $load_i8_u_with_folded_offset (param $$0 i32) (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load8_u offset=24 align=1 - (get_local $$0) - ) - ) + (return + (i32.load8_u offset=24 align=1 + (get_local $$0) ) ) ) (func $load_i8_u_with_folded_gep_offset (param $$0 i32) (result i32) - (block $fake_return_waka123 - (block - (br $fake_return_waka123 - (i32.load8_u offset=24 align=1 - (get_local $$0) - ) - ) + (return + (i32.load8_u offset=24 align=1 + (get_local $$0) ) ) ) (func $store_i8_with_folded_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i32.store offset=24 align=8 - (get_local $$0) - (i32.const 0) - ) - (br $fake_return_waka123) - ) + (i32.store offset=24 align=8 + (get_local $$0) + (i32.const 0) ) + (return) ) (func $store_i8_with_folded_gep_offset (param $$0 i32) - (block $fake_return_waka123 - (block - (i32.store offset=24 align=8 - (get_local $$0) - (i32.const 0) - ) - (br $fake_return_waka123) - ) + (i32.store offset=24 align=8 + (get_local $$0) + (i32.const 0) ) + (return) ) (func $aggregate_load_store (param $$0 i32) (param $$1 i32) (local $$2 i32) (local $$3 i32) (local $$4 i32) - (block $fake_return_waka123 - (block - (set_local $$2 - (i32.load align=4 - (get_local $$0) - ) - ) - (set_local $$3 - (i32.load offset=4 align=4 - (get_local $$0) - ) - ) - (set_local $$4 - (i32.load offset=8 align=4 - (get_local $$0) - ) - ) - (i32.store offset=12 align=4 - (get_local $$1) - (i32.load offset=12 align=4 - (get_local $$0) - ) - ) - (i32.store offset=8 align=4 - (get_local $$1) - (get_local $$4) - ) - (i32.store offset=4 align=4 - (get_local $$1) - (get_local $$3) - ) - (i32.store align=4 - (get_local $$1) - (get_local $$2) - ) - (br $fake_return_waka123) + (set_local $$2 + (i32.load align=4 + (get_local $$0) + ) + ) + (set_local $$3 + (i32.load offset=4 align=4 + (get_local $$0) + ) + ) + (set_local $$4 + (i32.load offset=8 align=4 + (get_local $$0) + ) + ) + (i32.store offset=12 align=4 + (get_local $$1) + (i32.load offset=12 align=4 + (get_local $$0) ) ) + (i32.store offset=8 align=4 + (get_local $$1) + (get_local $$4) + ) + (i32.store offset=4 align=4 + (get_local $$1) + (get_local $$3) + ) + (i32.store align=4 + (get_local $$1) + (get_local $$2) + ) + (return) ) (func $aggregate_return (param $$0 i32) - (block $fake_return_waka123 - (block - (i64.store align=4 - (get_local $$0) - (i64.store offset=8 align=4 - (get_local $$0) - (i64.const 0) - ) - ) - (br $fake_return_waka123) + (i64.store align=4 + (get_local $$0) + (i64.store offset=8 align=4 + (get_local $$0) + (i64.const 0) ) ) + (return) ) (func $aggregate_return_without_merge (param $$0 i32) - (block $fake_return_waka123 - (block - (i32.store offset=8 align=4 + (i32.store offset=8 align=4 + (get_local $$0) + (i32.store offset=12 align=16 + (get_local $$0) + (i32.store offset=14 align=8 (get_local $$0) - (i32.store offset=12 align=16 - (get_local $$0) - (i32.store offset=14 align=8 - (get_local $$0) - (i32.const 0) - ) - ) - ) - (i64.store align=8 - (get_local $$0) - (i64.const 0) + (i32.const 0) ) - (br $fake_return_waka123) ) ) + (i64.store align=8 + (get_local $$0) + (i64.const 0) + ) + (return) ) ) ;; METADATA: { "asmConsts": {},"staticBump": 11 } |