diff options
author | Heejin Ahn <aheejin@gmail.com> | 2023-12-13 10:53:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 10:53:50 -0800 |
commit | 0024c8bdd28f701d57e49e65d38b28aad0594299 (patch) | |
tree | 19b9eb323836843d147dedf40495042edcf9404f /test/polymorphic_stack.wast.from-wast | |
parent | 9e636855b582d1499a87fb73f55d85102ce95a58 (diff) | |
download | binaryen-0024c8bdd28f701d57e49e65d38b28aad0594299.tar.gz binaryen-0024c8bdd28f701d57e49e65d38b28aad0594299.tar.bz2 binaryen-0024c8bdd28f701d57e49e65d38b28aad0594299.zip |
[test] Port tests in test/ to test/lit/basic/ (#6160)
This ports all tests from `test/` to `test/lit/basic/`. The set of
commands and `CHECK` lines used are the same as the ones in #6159. Now
we use `lit` to test these, this also deletes all `.wast`,
`.wast.from-wast`, `.wast.fromBinary`, and
`.wast.fromBinary.noDebugInfo` files from `test/` and all related test
routines from the python scripts.
All `CHECK` lines are generated by `update_lit_checks.py --all-items`.
This also deletes these three multi-memory tests in `test/lit/`, because
they seem to contain the same code with the ones in `test/`, which have
been ported to `test/lit/basic/` along with other tests.
- `test/lit/multi-memories-atomics64.wast`
- `test/lit/multi-memories-basics.wast`
- `test/lit/multi-memories-simd.wast`
This also adds newlines between `(func`s in case there are none to make
`CHECK` lines easy to view, and removes some extra existing newlines
here and there.
Diffstat (limited to 'test/polymorphic_stack.wast.from-wast')
-rw-r--r-- | test/polymorphic_stack.wast.from-wast | 135 |
1 files changed, 0 insertions, 135 deletions
diff --git a/test/polymorphic_stack.wast.from-wast b/test/polymorphic_stack.wast.from-wast deleted file mode 100644 index d0ac28345..000000000 --- a/test/polymorphic_stack.wast.from-wast +++ /dev/null @@ -1,135 +0,0 @@ -(module - (type $0 (func (result i32))) - (type $FUNCSIG$ii (func (param i32) (result i32))) - (type $2 (func)) - (type $3 (func (param i32))) - (import "env" "table" (table $timport$0 9 9 funcref)) - (func $break-and-binary (type $0) (result i32) - (block $x (result i32) - (f32.add - (br_if $x - (i32.trunc_f64_u - (unreachable) - ) - (i32.trunc_f64_u - (unreachable) - ) - ) - (f32.const 1) - ) - ) - ) - (func $call-and-unary (type $FUNCSIG$ii) (param $0 i32) (result i32) - (drop - (i64.eqz - (call $call-and-unary - (unreachable) - ) - ) - ) - (drop - (i64.eqz - (i32.eqz - (unreachable) - ) - ) - ) - (drop - (i64.eqz - (call_indirect $timport$0 (type $FUNCSIG$ii) - (unreachable) - (unreachable) - ) - ) - ) - ) - (func $tee (type $3) (param $x i32) - (local $y f32) - (drop - (i64.eqz - (local.tee $x - (unreachable) - ) - ) - ) - (drop - (local.tee $y - (i64.eqz - (unreachable) - ) - ) - ) - ) - (func $tee2 (type $2) - (local $0 f32) - (if - (i32.const 259) - (local.tee $0 - (unreachable) - ) - ) - ) - (func $select (type $2) - (drop - (i64.eqz - (select - (unreachable) - (i32.const 1) - (i32.const 2) - ) - ) - ) - ) - (func $untaken-break-should-have-value (type $0) (result i32) - (block $x (result i32) - (block - (br_if $x - (i32.const 0) - (unreachable) - ) - ) - ) - ) - (func $unreachable-in-block-but-code-before (type $FUNCSIG$ii) (param $0 i32) (result i32) - (if - (local.get $0) - (return - (i32.const 127) - ) - ) - (block $label$0 (result i32) - (br_if $label$0 - (i32.const 0) - (return - (i32.const -32) - ) - ) - ) - ) - (func $br_table_unreachable_to_also_unreachable (type $0) (result i32) - (block $a (result i32) - (block $b (result i32) - (br_table $a $b - (unreachable) - (unreachable) - ) - ) - ) - ) - (func $untaken-br_if (type $0) (result i32) - (block $label$8 (result i32) - (block $label$9 - (drop - (if - (i32.const 0) - (br_if $label$8 - (unreachable) - (i32.const 0) - ) - (unreachable) - ) - ) - ) - ) - ) -) |