mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-04-24 23:02:15 +00:00
Merge pull request #249 from paritytech/drop-wast
Remove outdated wast files from resources
This commit is contained in:
commit
edf79b683b
@ -1,94 +0,0 @@
|
|||||||
;; /// @file accumulate_u8.cpp
|
|
||||||
;; #include <emscripten.h> // macro EMSCRIPTEN_KEEPALIVE
|
|
||||||
;; #include <stdint.h>
|
|
||||||
;; #include <vector>
|
|
||||||
;; #include <numeric>
|
|
||||||
;; extern "C" {
|
|
||||||
;; int32_t EMSCRIPTEN_KEEPALIVE accumulate_u8(const int32_t arlen, const uint8_t *ar) {
|
|
||||||
;; int32_t arsum = 0;
|
|
||||||
;; for (int32_t i=0; i<arlen; ++i)
|
|
||||||
;; arsum += (int32_t) ar[i];
|
|
||||||
;; return arsum;
|
|
||||||
;; }
|
|
||||||
;; } // extern "C"
|
|
||||||
(module
|
|
||||||
(type $0 (func (param i32 i32) (result i32)))
|
|
||||||
(type $1 (func))
|
|
||||||
(import "env" "memoryBase" (global $import$0 i32))
|
|
||||||
(import "env" "memory" (memory $0 256))
|
|
||||||
(import "env" "table" (table 0 anyfunc))
|
|
||||||
(import "env" "tableBase" (global $import$3 i32))
|
|
||||||
(global $global$0 (mut i32) (i32.const 0))
|
|
||||||
(global $global$1 (mut i32) (i32.const 0))
|
|
||||||
(export "__post_instantiate" (func $2))
|
|
||||||
(export "_accumulate_u8" (func $0))
|
|
||||||
(func $0 (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
|
|
||||||
(local $var$2 i32)
|
|
||||||
(local $var$3 i32)
|
|
||||||
(block $label$0 (result i32)
|
|
||||||
(if
|
|
||||||
(i32.gt_s
|
|
||||||
(get_local $var$0)
|
|
||||||
(i32.const 0)
|
|
||||||
)
|
|
||||||
(block $label$1
|
|
||||||
(set_local $var$2
|
|
||||||
(i32.const 0)
|
|
||||||
)
|
|
||||||
(set_local $var$3
|
|
||||||
(i32.const 0)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(block $label$2
|
|
||||||
(return
|
|
||||||
(i32.const 0)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(loop $label$3
|
|
||||||
(set_local $var$3
|
|
||||||
(i32.add
|
|
||||||
(i32.load8_u
|
|
||||||
(i32.add
|
|
||||||
(get_local $var$1)
|
|
||||||
(get_local $var$2)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(get_local $var$3)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(br_if $label$3
|
|
||||||
(i32.ne
|
|
||||||
(tee_local $var$2
|
|
||||||
(i32.add
|
|
||||||
(get_local $var$2)
|
|
||||||
(i32.const 1)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(get_local $var$0)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(get_local $var$3)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(func $1 (type $1)
|
|
||||||
(nop)
|
|
||||||
)
|
|
||||||
(func $2 (type $1)
|
|
||||||
(block $label$0
|
|
||||||
(set_global $global$0
|
|
||||||
(get_global $import$0)
|
|
||||||
)
|
|
||||||
(set_global $global$1
|
|
||||||
(i32.add
|
|
||||||
(get_global $global$0)
|
|
||||||
(i32.const 5242880)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(call $1)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
;; custom section "dylink", size 5
|
|
||||||
)
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
(module
|
|
||||||
(type (;0;) (func (result i32)))
|
|
||||||
(func (;0;) (type 0) (result i32)
|
|
||||||
i64.const 9223372036854775807
|
|
||||||
i64.const -9223372036854775808
|
|
||||||
i64.const -1152894205662152753
|
|
||||||
i64.const -8192
|
|
||||||
i32.const 1024
|
|
||||||
i32.const 2048
|
|
||||||
i32.const 4096
|
|
||||||
i32.const 8192
|
|
||||||
i32.const 16384
|
|
||||||
i32.const 32767
|
|
||||||
i32.const -1024
|
|
||||||
i32.const -2048
|
|
||||||
i32.const -4096
|
|
||||||
i32.const -8192
|
|
||||||
i32.const -16384
|
|
||||||
i32.const -32768
|
|
||||||
i32.const -2147483648
|
|
||||||
i32.const 2147483647
|
|
||||||
return
|
|
||||||
)
|
|
||||||
)
|
|
39560
res/cases/v1/hello.wast
39560
res/cases/v1/hello.wast
File diff suppressed because one or more lines are too long
@ -1,16 +0,0 @@
|
|||||||
(module
|
|
||||||
(type (;0;) (func (result i32)))
|
|
||||||
(func (;0;) (type 0) (result i32)
|
|
||||||
(local i32)
|
|
||||||
i32.const 0
|
|
||||||
set_local 0
|
|
||||||
i32.const 0
|
|
||||||
if i32
|
|
||||||
i32.const 5
|
|
||||||
else
|
|
||||||
i32.const 7
|
|
||||||
end
|
|
||||||
set_local 0
|
|
||||||
get_local 0
|
|
||||||
return)
|
|
||||||
)
|
|
@ -1,45 +0,0 @@
|
|||||||
;; /// @file inc_i32.cpp
|
|
||||||
;; #include <emscripten.h> // macro EMSCRIPTEN_KEEPALIVE
|
|
||||||
;; #include <stdint.h>
|
|
||||||
;; extern "C" {
|
|
||||||
;; uint32_t EMSCRIPTEN_KEEPALIVE inc_i32(uint32_t param) {
|
|
||||||
;; return ++param;
|
|
||||||
;; }
|
|
||||||
;; } // extern "C"
|
|
||||||
(module
|
|
||||||
(type $0 (func (param i32) (result i32)))
|
|
||||||
(type $1 (func))
|
|
||||||
(import "env" "memoryBase" (global $import$0 i32))
|
|
||||||
(import "env" "memory" (memory $0 256))
|
|
||||||
(import "env" "table" (table 0 anyfunc))
|
|
||||||
(import "env" "tableBase" (global $import$3 i32))
|
|
||||||
(global $global$0 (mut i32) (i32.const 0))
|
|
||||||
(global $global$1 (mut i32) (i32.const 0))
|
|
||||||
(export "_inc_i32" (func $0))
|
|
||||||
(export "__post_instantiate" (func $2))
|
|
||||||
(func $0 (type $0) (param $var$0 i32) (result i32)
|
|
||||||
(i32.add
|
|
||||||
(get_local $var$0)
|
|
||||||
(i32.const 1)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(func $1 (type $1)
|
|
||||||
(nop)
|
|
||||||
)
|
|
||||||
(func $2 (type $1)
|
|
||||||
(block $label$0
|
|
||||||
(set_global $global$0
|
|
||||||
(get_global $import$0)
|
|
||||||
)
|
|
||||||
(set_global $global$1
|
|
||||||
(i32.add
|
|
||||||
(get_global $global$0)
|
|
||||||
(i32.const 5242880)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(call $1)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
;; custom section "dylink", size 5
|
|
||||||
)
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
(module
|
|
||||||
(import "env" "memory" (memory (;0;) 256 256))
|
|
||||||
(type (;0;) (func (result i32)))
|
|
||||||
(func (;0;) (type 0) (result i32)
|
|
||||||
(local i32)
|
|
||||||
get_local 0
|
|
||||||
i64.const 72340172838076673
|
|
||||||
i64.store offset=32 align=1
|
|
||||||
i32.const 1
|
|
||||||
)
|
|
||||||
)
|
|
@ -1,24 +0,0 @@
|
|||||||
(module
|
|
||||||
(type $0 (func (param i32) (result i32)))
|
|
||||||
(type $1 (func (result i32)))
|
|
||||||
(type $2 (func))
|
|
||||||
(import "env" "memoryBase" (global $gimport$0 i32))
|
|
||||||
(import "env" "memory" (memory $0 256))
|
|
||||||
(import "env" "table" (table 0 anyfunc))
|
|
||||||
(import "env" "tableBase" (global $gimport$4 i32))
|
|
||||||
(import "env" "_puts" (func $fimport$1 (param i32) (result i32)))
|
|
||||||
(global $global$0 (mut i32) (i32.const 0))
|
|
||||||
(global $global$1 (mut i32) (i32.const 0))
|
|
||||||
(global $global$2 i32 (i32.const 0))
|
|
||||||
(data (i32.const 13) "hello, world!")
|
|
||||||
(export "_main" (func $0))
|
|
||||||
(start $0)
|
|
||||||
(func $0 (type $2)
|
|
||||||
(drop
|
|
||||||
(call $fimport$1
|
|
||||||
(get_global $gimport$0)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
(module
|
|
||||||
(type (;0;) (func (param i32 i32) (result i32)))
|
|
||||||
(type (;1;) (func (param i32)))
|
|
||||||
(type (;2;) (func (param i32) (result i64)))
|
|
||||||
(type (;3;) (func (param i32 i32 i32)))
|
|
||||||
(type (;4;) (func (param i32 i32 i32 i32)))
|
|
||||||
(type (;5;) (func (result i32)))
|
|
||||||
(type (;6;) (func))
|
|
||||||
(type (;7;) (func (param i32 i32 i32) (result i32)))
|
|
||||||
(type (;8;) (func (param i32 i32)))
|
|
||||||
(type (;9;) (func (param i32) (result i32)))
|
|
||||||
(type (;10;) (func (param i32 i32 i32 i32) (result i32)))
|
|
||||||
(type (;11;) (func (param i32 i32 i32 i32 i32)))
|
|
||||||
(type (;12;) (func (param i32 i32 i64 i32 i32) (result i32)))
|
|
||||||
(type (;13;) (func (param i32 i32 i32 i32 i32 i32) (result i32)))
|
|
||||||
(type (;14;) (func (param i32 i32 i32 i32 i32 i32 i32)))
|
|
||||||
(type (;15;) (func (param i32 i32 i32 i32 i32 i32) (result i32)))
|
|
||||||
(type (;16;) (func (param i32 i32 i32 i32 i32) (result i32)))
|
|
||||||
(type (;17;) (func (param i32 i32) (result i64)))
|
|
||||||
)
|
|
@ -1,5 +0,0 @@
|
|||||||
(module
|
|
||||||
(type (;0;) (func (param i32 i32) (result i32)))
|
|
||||||
(type (;1;) (func (param i32)))
|
|
||||||
(import "env" "abort" (func (;0;) (type 1)))
|
|
||||||
)
|
|
@ -1,21 +0,0 @@
|
|||||||
(module
|
|
||||||
(type (;0;) (func (param i32) (result i32)))
|
|
||||||
(global (;0;) (mut i32) (i32.const 0))
|
|
||||||
(func (;55;) (type 0) (param i32) (result i32)
|
|
||||||
(local i32)
|
|
||||||
block i32 ;; label = @1
|
|
||||||
get_global 0
|
|
||||||
set_local 1
|
|
||||||
get_global 0
|
|
||||||
get_local 0
|
|
||||||
i32.add
|
|
||||||
set_global 0
|
|
||||||
get_global 0
|
|
||||||
i32.const 15
|
|
||||||
i32.add
|
|
||||||
i32.const -16
|
|
||||||
i32.and
|
|
||||||
set_global 0
|
|
||||||
get_local 1
|
|
||||||
end)
|
|
||||||
)
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user