Add wasm tacle-bench targets
This commit is contained in:
356
targets/wasm-tacle/kernel/matrix1/generated/default/matrix1.wat
Normal file
356
targets/wasm-tacle/kernel/matrix1/generated/default/matrix1.wat
Normal file
@ -0,0 +1,356 @@
|
||||
(module $matrix1.wasm
|
||||
(type (;0;) (func (param i32 i32)))
|
||||
(type (;1;) (func))
|
||||
(type (;2;) (func (result i32)))
|
||||
(import "__pragma" "loopbound" (func $__pragma_loopbound (type 0)))
|
||||
(func $__wasm_apply_data_relocs (type 1))
|
||||
(func $matrix1_main (type 1)
|
||||
(local i32 i32 i32 i32 i32)
|
||||
i32.const 10
|
||||
i32.const 10
|
||||
call $__pragma_loopbound
|
||||
i32.const 1824
|
||||
local.set 0
|
||||
i32.const 0
|
||||
local.set 1
|
||||
loop ;; label = @1
|
||||
i32.const 10
|
||||
i32.const 10
|
||||
call $__pragma_loopbound
|
||||
local.get 1
|
||||
i32.const 40
|
||||
i32.mul
|
||||
i32.const 1424
|
||||
i32.add
|
||||
local.set 2
|
||||
i32.const -400
|
||||
local.set 3
|
||||
loop ;; label = @2
|
||||
local.get 0
|
||||
i32.const 0
|
||||
i32.store
|
||||
i32.const 10
|
||||
i32.const 10
|
||||
call $__pragma_loopbound
|
||||
local.get 0
|
||||
local.get 0
|
||||
i32.load
|
||||
local.get 2
|
||||
i32.load
|
||||
local.get 3
|
||||
i32.const 1424
|
||||
i32.add
|
||||
i32.load
|
||||
i32.mul
|
||||
i32.add
|
||||
local.tee 4
|
||||
i32.store
|
||||
local.get 0
|
||||
local.get 4
|
||||
local.get 2
|
||||
i32.load offset=4
|
||||
local.get 3
|
||||
i32.const 1428
|
||||
i32.add
|
||||
i32.load
|
||||
i32.mul
|
||||
i32.add
|
||||
local.tee 4
|
||||
i32.store
|
||||
local.get 0
|
||||
local.get 4
|
||||
local.get 2
|
||||
i32.load offset=8
|
||||
local.get 3
|
||||
i32.const 1432
|
||||
i32.add
|
||||
i32.load
|
||||
i32.mul
|
||||
i32.add
|
||||
local.tee 4
|
||||
i32.store
|
||||
local.get 0
|
||||
local.get 4
|
||||
local.get 2
|
||||
i32.load offset=12
|
||||
local.get 3
|
||||
i32.const 1436
|
||||
i32.add
|
||||
i32.load
|
||||
i32.mul
|
||||
i32.add
|
||||
local.tee 4
|
||||
i32.store
|
||||
local.get 0
|
||||
local.get 4
|
||||
local.get 2
|
||||
i32.load offset=16
|
||||
local.get 3
|
||||
i32.const 1440
|
||||
i32.add
|
||||
i32.load
|
||||
i32.mul
|
||||
i32.add
|
||||
local.tee 4
|
||||
i32.store
|
||||
local.get 0
|
||||
local.get 4
|
||||
local.get 2
|
||||
i32.load offset=20
|
||||
local.get 3
|
||||
i32.const 1444
|
||||
i32.add
|
||||
i32.load
|
||||
i32.mul
|
||||
i32.add
|
||||
local.tee 4
|
||||
i32.store
|
||||
local.get 0
|
||||
local.get 4
|
||||
local.get 2
|
||||
i32.load offset=24
|
||||
local.get 3
|
||||
i32.const 1448
|
||||
i32.add
|
||||
i32.load
|
||||
i32.mul
|
||||
i32.add
|
||||
local.tee 4
|
||||
i32.store
|
||||
local.get 0
|
||||
local.get 4
|
||||
local.get 2
|
||||
i32.load offset=28
|
||||
local.get 3
|
||||
i32.const 1452
|
||||
i32.add
|
||||
i32.load
|
||||
i32.mul
|
||||
i32.add
|
||||
local.tee 4
|
||||
i32.store
|
||||
local.get 0
|
||||
local.get 4
|
||||
local.get 2
|
||||
i32.load offset=32
|
||||
local.get 3
|
||||
i32.const 1456
|
||||
i32.add
|
||||
i32.load
|
||||
i32.mul
|
||||
i32.add
|
||||
local.tee 4
|
||||
i32.store
|
||||
local.get 0
|
||||
local.get 4
|
||||
local.get 2
|
||||
i32.load offset=36
|
||||
local.get 3
|
||||
i32.const 1460
|
||||
i32.add
|
||||
i32.load
|
||||
i32.mul
|
||||
i32.add
|
||||
i32.store
|
||||
local.get 0
|
||||
i32.const 4
|
||||
i32.add
|
||||
local.set 0
|
||||
local.get 3
|
||||
i32.const 40
|
||||
i32.add
|
||||
local.tee 3
|
||||
br_if 0 (;@2;)
|
||||
end
|
||||
local.get 1
|
||||
i32.const 1
|
||||
i32.add
|
||||
local.tee 1
|
||||
i32.const 10
|
||||
i32.ne
|
||||
br_if 0 (;@1;)
|
||||
end)
|
||||
(func $__original_main (type 2) (result i32)
|
||||
(local i32 i32 i32)
|
||||
global.get $__stack_pointer
|
||||
i32.const 16
|
||||
i32.sub
|
||||
local.tee 0
|
||||
global.set $__stack_pointer
|
||||
local.get 0
|
||||
i32.const 1
|
||||
i32.store offset=12
|
||||
i32.const 100
|
||||
i32.const 100
|
||||
call $__pragma_loopbound
|
||||
i32.const -400
|
||||
local.set 1
|
||||
loop ;; label = @1
|
||||
local.get 1
|
||||
i32.const 1424
|
||||
i32.add
|
||||
local.get 0
|
||||
i32.load offset=12
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 1428
|
||||
i32.add
|
||||
local.get 0
|
||||
i32.load offset=12
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 1432
|
||||
i32.add
|
||||
local.get 0
|
||||
i32.load offset=12
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 1436
|
||||
i32.add
|
||||
local.get 0
|
||||
i32.load offset=12
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 1440
|
||||
i32.add
|
||||
local.get 0
|
||||
i32.load offset=12
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 20
|
||||
i32.add
|
||||
local.tee 1
|
||||
br_if 0 (;@1;)
|
||||
end
|
||||
i32.const 100
|
||||
i32.const 100
|
||||
call $__pragma_loopbound
|
||||
i32.const -400
|
||||
local.set 1
|
||||
loop ;; label = @1
|
||||
local.get 1
|
||||
i32.const 1824
|
||||
i32.add
|
||||
local.get 0
|
||||
i32.load offset=12
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 1828
|
||||
i32.add
|
||||
local.get 0
|
||||
i32.load offset=12
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 1832
|
||||
i32.add
|
||||
local.get 0
|
||||
i32.load offset=12
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 1836
|
||||
i32.add
|
||||
local.get 0
|
||||
i32.load offset=12
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 1840
|
||||
i32.add
|
||||
local.get 0
|
||||
i32.load offset=12
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 20
|
||||
i32.add
|
||||
local.tee 1
|
||||
br_if 0 (;@1;)
|
||||
end
|
||||
i32.const 100
|
||||
i32.const 100
|
||||
call $__pragma_loopbound
|
||||
i32.const -400
|
||||
local.set 1
|
||||
loop ;; label = @1
|
||||
local.get 1
|
||||
i32.const 2240
|
||||
i32.add
|
||||
i32.const 0
|
||||
i32.store
|
||||
local.get 1
|
||||
i32.const 2232
|
||||
i32.add
|
||||
i64.const 0
|
||||
i64.store align=4
|
||||
local.get 1
|
||||
i32.const 2224
|
||||
i32.add
|
||||
i64.const 0
|
||||
i64.store align=4
|
||||
local.get 1
|
||||
i32.const 20
|
||||
i32.add
|
||||
local.tee 1
|
||||
br_if 0 (;@1;)
|
||||
end
|
||||
call $matrix1_main
|
||||
i32.const 100
|
||||
i32.const 100
|
||||
call $__pragma_loopbound
|
||||
i32.const 0
|
||||
local.set 2
|
||||
i32.const -400
|
||||
local.set 1
|
||||
loop ;; label = @1
|
||||
local.get 1
|
||||
i32.const 2240
|
||||
i32.add
|
||||
i32.load
|
||||
local.get 1
|
||||
i32.const 2236
|
||||
i32.add
|
||||
i32.load
|
||||
local.get 1
|
||||
i32.const 2232
|
||||
i32.add
|
||||
i32.load
|
||||
local.get 1
|
||||
i32.const 2228
|
||||
i32.add
|
||||
i32.load
|
||||
local.get 1
|
||||
i32.const 2224
|
||||
i32.add
|
||||
i32.load
|
||||
local.get 2
|
||||
i32.add
|
||||
i32.add
|
||||
i32.add
|
||||
i32.add
|
||||
i32.add
|
||||
local.set 2
|
||||
local.get 1
|
||||
i32.const 20
|
||||
i32.add
|
||||
local.tee 1
|
||||
br_if 0 (;@1;)
|
||||
end
|
||||
local.get 0
|
||||
i32.const 16
|
||||
i32.add
|
||||
global.set $__stack_pointer
|
||||
i32.const -1
|
||||
i32.const 0
|
||||
local.get 2
|
||||
i32.const 1000
|
||||
i32.ne
|
||||
select)
|
||||
(table (;0;) 1 1 funcref)
|
||||
(memory (;0;) 1)
|
||||
(global $__stack_pointer (mut i32) (i32.const 6320))
|
||||
(global (;1;) i32 (i32.const 2224))
|
||||
(global (;2;) i32 (i32.const 6320))
|
||||
(export "memory" (memory 0))
|
||||
(export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs))
|
||||
(export "entrypoint" (func $matrix1_main))
|
||||
(export "main" (func $__original_main))
|
||||
(export "__data_end" (global 1))
|
||||
(export "__heap_base" (global 2)))
|
||||
Reference in New Issue
Block a user