From 860e52c64da5200676d4226a2e48c849945f6687 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sun, 22 Nov 2015 14:37:21 -0800 Subject: refactor pass tests --- test/if_else.txt | 52 ------------------------------------------ test/if_else.wast | 21 ----------------- test/passes/lower-if-else.txt | 52 ++++++++++++++++++++++++++++++++++++++++++ test/passes/lower-if-else.wast | 21 +++++++++++++++++ 4 files changed, 73 insertions(+), 73 deletions(-) delete mode 100644 test/if_else.txt delete mode 100644 test/if_else.wast create mode 100644 test/passes/lower-if-else.txt create mode 100644 test/passes/lower-if-else.wast (limited to 'test') diff --git a/test/if_else.txt b/test/if_else.txt deleted file mode 100644 index 2245f7230..000000000 --- a/test/if_else.txt +++ /dev/null @@ -1,52 +0,0 @@ -printing before: -(module - (memory 16777216 16777216) - (func $ifs - (block - (if - (i32.const 0) - (i32.const 1) - ) - (if_else - (i32.const 0) - (i32.const 1) - (i32.const 2) - ) - (if_else - (i32.const 4) - (i32.const 5) - (i32.const 6) - ) - ) - ) -) -printing after: -(module - (memory 16777216 16777216) - (func $ifs - (block - (if - (i32.const 0) - (i32.const 1) - ) - (block $L0 - (if - (i32.const 0) - (br $L0 - (i32.const 1) - ) - ) - (i32.const 2) - ) - (block $L1 - (if - (i32.const 4) - (br $L1 - (i32.const 5) - ) - ) - (i32.const 6) - ) - ) - ) -) diff --git a/test/if_else.wast b/test/if_else.wast deleted file mode 100644 index 70251a469..000000000 --- a/test/if_else.wast +++ /dev/null @@ -1,21 +0,0 @@ -(module - (memory 16777216 16777216) - (func $ifs - (block - (if - (i32.const 0) - (i32.const 1) - ) - (if_else - (i32.const 0) - (i32.const 1) - (i32.const 2) - ) - (if_else - (i32.const 4) - (i32.const 5) - (i32.const 6) - ) - ) - ) -) diff --git a/test/passes/lower-if-else.txt b/test/passes/lower-if-else.txt new file mode 100644 index 000000000..2245f7230 --- /dev/null +++ b/test/passes/lower-if-else.txt @@ -0,0 +1,52 @@ +printing before: +(module + (memory 16777216 16777216) + (func $ifs + (block + (if + (i32.const 0) + (i32.const 1) + ) + (if_else + (i32.const 0) + (i32.const 1) + (i32.const 2) + ) + (if_else + (i32.const 4) + (i32.const 5) + (i32.const 6) + ) + ) + ) +) +printing after: +(module + (memory 16777216 16777216) + (func $ifs + (block + (if + (i32.const 0) + (i32.const 1) + ) + (block $L0 + (if + (i32.const 0) + (br $L0 + (i32.const 1) + ) + ) + (i32.const 2) + ) + (block $L1 + (if + (i32.const 4) + (br $L1 + (i32.const 5) + ) + ) + (i32.const 6) + ) + ) + ) +) diff --git a/test/passes/lower-if-else.wast b/test/passes/lower-if-else.wast new file mode 100644 index 000000000..70251a469 --- /dev/null +++ b/test/passes/lower-if-else.wast @@ -0,0 +1,21 @@ +(module + (memory 16777216 16777216) + (func $ifs + (block + (if + (i32.const 0) + (i32.const 1) + ) + (if_else + (i32.const 0) + (i32.const 1) + (i32.const 2) + ) + (if_else + (i32.const 4) + (i32.const 5) + (i32.const 6) + ) + ) + ) +) -- cgit v1.2.3