summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-05-05 08:10:24 -0700
committerGitHub <noreply@github.com>2022-05-05 15:10:24 +0000
commit984a28828f7536a5d39272a1c0bbdd18254bb486 (patch)
tree8671a39501e278c3642d8cc81cdd9b4af665babb /test
parent996cbd861c0cae4c942cc57b1915af5ea7b4d5f5 (diff)
downloadbinaryen-984a28828f7536a5d39272a1c0bbdd18254bb486.tar.gz
binaryen-984a28828f7536a5d39272a1c0bbdd18254bb486.tar.bz2
binaryen-984a28828f7536a5d39272a1c0bbdd18254bb486.zip
Fix fuzzer's choosing of reference types (#4642)
* Don't emit "i31" or "data" if GC is not enabled, as only the GC feature adds those. * Don't emit "any" without GC either. While it is allowed, fuzzer limitations prevent this atm (see details in comment - it's fixable).
Diffstat (limited to 'test')
-rw-r--r--test/passes/translate-to-fuzz_all-features_metrics_noprint.txt69
1 files changed, 37 insertions, 32 deletions
diff --git a/test/passes/translate-to-fuzz_all-features_metrics_noprint.txt b/test/passes/translate-to-fuzz_all-features_metrics_noprint.txt
index f264b4e63..15f0a9ac4 100644
--- a/test/passes/translate-to-fuzz_all-features_metrics_noprint.txt
+++ b/test/passes/translate-to-fuzz_all-features_metrics_noprint.txt
@@ -1,43 +1,48 @@
total
- [exports] : 3
- [funcs] : 3
+ [exports] : 4
+ [funcs] : 5
[globals] : 6
[imports] : 5
[memory-data] : 22
[table-data] : 0
[tables] : 1
[tags] : 1
- [total] : 813
- [vars] : 2
- ArrayInit : 1
+ [total] : 810
+ [vars] : 9
+ ArrayInit : 6
+ AtomicCmpxchg : 2
AtomicFence : 2
- Binary : 96
- Block : 104
- Break : 25
- Call : 25
- CallRef : 4
- Const : 173
- Drop : 1
- GlobalGet : 54
- GlobalSet : 28
- I31New : 4
- If : 38
- Load : 23
- LocalGet : 56
- LocalSet : 39
- Loop : 24
+ AtomicNotify : 4
+ AtomicRMW : 1
+ Binary : 94
+ Block : 93
+ Break : 29
+ Call : 34
+ CallRef : 2
+ Const : 143
+ DataDrop : 1
+ Drop : 4
+ GlobalGet : 49
+ GlobalSet : 25
+ I31Get : 1
+ I31New : 15
+ If : 30
+ Load : 24
+ LocalGet : 69
+ LocalSet : 36
+ Loop : 19
MemoryFill : 1
- MemoryInit : 1
- Nop : 8
- RefEq : 1
- RefFunc : 6
- RefIs : 3
- RefNull : 2
- Return : 26
+ Nop : 10
+ RefEq : 2
+ RefFunc : 7
+ RefIs : 7
+ RefNull : 4
+ Return : 27
SIMDExtract : 6
- Select : 2
- Store : 5
- StructNew : 2
- TupleExtract : 5
- TupleMake : 5
+ SIMDShuffle : 1
+ Select : 3
+ Store : 1
+ StructNew : 4
+ TupleExtract : 4
+ TupleMake : 7
Unary : 43