summaryrefslogtreecommitdiff
path: root/test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-12-17 01:03:54 -0800
committerGitHub <noreply@github.com>2019-12-17 01:03:54 -0800
commitfad92eaf2092efddf84da455d4af8431d5f87592 (patch)
treef28ba44a0284307689614b13ec90b3890fbf6c8d /test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt
parent48ccb2bb8a7d013abba4667dfc0fb46548bef2af (diff)
downloadbinaryen-fad92eaf2092efddf84da455d4af8431d5f87592.tar.gz
binaryen-fad92eaf2092efddf84da455d4af8431d5f87592.tar.bz2
binaryen-fad92eaf2092efddf84da455d4af8431d5f87592.zip
Fix misc. tests (#2534)
- Remove a function from memory-packing_all-features.wast, because it does not test anything meaningful after #2529. - Rename a test file to use `--all-features`; it started failing I guess because `exnref` requires also reference type features, but not sure why it was OK so far.
Diffstat (limited to 'test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt')
-rw-r--r--test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt47
1 files changed, 47 insertions, 0 deletions
diff --git a/test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt b/test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt
new file mode 100644
index 000000000..8e9dfc415
--- /dev/null
+++ b/test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt
@@ -0,0 +1,47 @@
+(module
+ (type $none_=>_none (func))
+ (type $i32_=>_none (func (param i32)))
+ (event $e0 (attr 0) (param i32))
+ (func $eh (; 0 ;)
+ (local $exn exnref)
+ try
+ i32.const 0
+ throw $e0
+ catch
+ local.set $exn
+ block $l0 (result i32)
+ local.get $exn
+ br_on_exn $l0 $e0
+ rethrow
+ end
+ drop
+ end
+ )
+)
+(module
+ (type $none_=>_none (func))
+ (type $i32_=>_none (func (param i32)))
+ (event $e0 (attr 0) (param i32))
+ (func $eh (; 0 ;) (; has Stack IR ;)
+ (local $exn exnref)
+ (try
+ (throw $e0
+ (i32.const 0)
+ )
+ (catch
+ (local.set $exn
+ (exnref.pop)
+ )
+ (drop
+ (block $l0 (result i32)
+ (rethrow
+ (br_on_exn $l0 $e0
+ (local.get $exn)
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+)