Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tools/fuzzing/fuzzing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5200,7 +5200,7 @@ Expression* TranslateToFuzzReader::makeAtomic(Type type) {
}
wasm.memories[0]->shared = true;
if (type == Type::none) {
return builder.makeAtomicFence(MemoryOrder::SeqCst);
return builder.makeAtomicFence(pick(atomicMemoryOrders));
}
if (type == Type::i32 && oneIn(2)) {
if (ATOMIC_WAITS && oneIn(2)) {
Expand Down
167 changes: 83 additions & 84 deletions test/passes/translate-to-fuzz_all-features_metrics_noprint.txt
Original file line number Diff line number Diff line change
@@ -1,92 +1,91 @@
Metrics
total
[exports] : 124
[funcs] : 223
[exports] : 170
[funcs] : 280
[globals] : 13
[imports] : 13
[memories] : 1
[memory-data] : 31
[table-data] : 40
[table-data] : 86
[tables] : 2
[tags] : 2
[total] : 78541
[vars] : 4770
ArrayCmpxchg : 45
ArrayCopy : 41
ArrayFill : 38
ArrayGet : 391
ArrayLen : 602
ArrayNew : 1109
ArrayNewFixed : 415
ArrayRMW : 55
ArraySet : 82
AtomicCmpxchg : 37
AtomicFence : 74
AtomicNotify : 45
AtomicRMW : 63
Binary : 3946
Block : 7421
BrOn : 319
Break : 1166
Call : 1109
CallIndirect : 187
CallRef : 274
Const : 11911
ContBind : 1
ContNew : 29
DataDrop : 15
Drop : 598
GlobalGet : 4167
GlobalSet : 2340
I31Get : 67
If : 2686
Load : 364
LocalGet : 6969
LocalSet : 4277
Loop : 942
MemoryCopy : 16
MemoryFill : 9
MemoryInit : 14
Nop : 805
Pop : 323
RefAs : 4383
RefCast : 197
RefEq : 358
RefFunc : 1205
RefGetDesc : 59
RefI31 : 667
RefIsNull : 78
RefNull : 5442
RefTest : 78
Return : 363
SIMDExtract : 159
SIMDLoad : 2
SIMDReplace : 1
SIMDShift : 2
SIMDShuffle : 1
SIMDTernary : 1
Select : 348
Store : 185
StringConcat : 1
StringConst : 432
StringEncode : 59
StringEq : 60
StringMeasure : 77
StringNew : 8
StringWTF16Get : 98
StructCmpxchg : 50
StructGet : 560
StructNew : 5387
StructRMW : 55
StructSet : 79
Switch : 6
TableGet : 1
TableSet : 79
Throw : 114
ThrowRef : 8
Try : 426
TryTable : 532
TupleExtract : 253
TupleMake : 294
Unary : 2283
Unreachable : 1198
[total] : 74878
[vars] : 4958
ArrayCmpxchg : 60
ArrayCopy : 33
ArrayFill : 32
ArrayGet : 367
ArrayLen : 578
ArrayNew : 1160
ArrayNewFixed : 413
ArrayRMW : 60
ArraySet : 52
AtomicCmpxchg : 49
AtomicFence : 84
AtomicNotify : 42
AtomicRMW : 47
Binary : 3896
Block : 6899
BrOn : 272
Break : 1013
Call : 1184
CallIndirect : 213
CallRef : 221
Const : 11751
ContNew : 32
DataDrop : 13
Drop : 496
GlobalGet : 4034
GlobalSet : 2294
I31Get : 56
If : 2582
Load : 356
LocalGet : 6322
LocalSet : 4039
Loop : 865
MemoryCopy : 17
MemoryFill : 17
MemoryInit : 15
Nop : 629
Pop : 320
RefAs : 4047
RefCast : 167
RefEq : 341
RefFunc : 1204
RefGetDesc : 54
RefI31 : 661
RefIsNull : 74
RefNull : 5231
RefTest : 103
Return : 373
SIMDExtract : 163
SIMDLoad : 5
SIMDReplace : 3
SIMDShift : 4
SIMDShuffle : 4
SIMDTernary : 2
Select : 312
Store : 149
StringConcat : 2
StringConst : 447
StringEncode : 63
StringEq : 66
StringMeasure : 55
StringNew : 5
StringWTF16Get : 77
StructCmpxchg : 49
StructGet : 512
StructNew : 5149
StructRMW : 61
StructSet : 67
Switch : 10
TableGet : 2
TableSet : 76
Throw : 74
ThrowRef : 5
Try : 421
TryTable : 482
TupleExtract : 238
TupleMake : 296
Unary : 2139
Unreachable : 1172
Loading