mirror of
https://github.com/wazero/wazero
synced 2026-06-21 14:12:37 +00:00
c4516ae243
vs was introduced to bench various things including the tests against other runtimes. However, the cases are not representative, and also some are just unable to build plus some are simply failing. This removes the entire vs directory, and reduces the maintenance burden. Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
30 lines
1004 B
WebAssembly Text Format
30 lines
1004 B
WebAssembly Text Format
;; This file includes changes to test/core/fac.wast from the commit that added "multi-value" support.
|
|
;;
|
|
;; Compile like so, in order to not add any other post 1.0 features to the resulting wasm.
|
|
;; wat2wasm \
|
|
;; --disable-saturating-float-to-int \
|
|
;; --disable-sign-extension \
|
|
;; --disable-simd \
|
|
;; --disable-bulk-memory \
|
|
;; --disable-reference-types \
|
|
;; fac.wat
|
|
;;
|
|
;; See https://github.com/WebAssembly/spec/commit/484180ba3d9d7638ba1cb400b699ffede796927c
|
|
(module $fac.wast
|
|
(func $pick0 (param i64) (result i64 i64)
|
|
(local.get 0) (local.get 0)
|
|
)
|
|
(func $pick1 (param i64 i64) (result i64 i64 i64)
|
|
(local.get 0) (local.get 1) (local.get 0)
|
|
)
|
|
(func (export "fac-ssa") (param i64) (result i64)
|
|
(i64.const 1) (local.get 0)
|
|
(loop $l (param i64 i64) (result i64)
|
|
(call $pick1) (call $pick1) (i64.mul)
|
|
(call $pick1) (i64.const 1) (i64.sub)
|
|
(call $pick0) (i64.const 0) (i64.gt_u)
|
|
(br_if $l)
|
|
(drop) (return)
|
|
)
|
|
)
|
|
) |