• Ng Zhi An's avatar
    [wasm-simd] Add some simd ops to fuzzer · 27b41b54
    Ng Zhi An authored
    This is still very limited, but we will have some simd instructions.
    We add 2 kinds of instructions:
    - any_true to generate i32 from v128
    - add to generate v128 from v128 and v128
    - extract_lane to generate v128 from all other types
    
    We do not add v128 to the list of types returned by GetValueType, since
    that is used in a couple of places, like generating globals, which
    requires v128.const but is not implemented yet.
    
    Special case to enable the experimental-wasm-simd flag since simd is not
    included in wasm-staging yet.
    
    Bug: v8:10180
    Change-Id: Ifd86f55bdd49cae9514b061965de81ff6d579934
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2040514Reviewed-by: 's avatarDeepti Gandluri <gdeepti@chromium.org>
    Commit-Queue: Zhi An Ng <zhin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#66326}
    27b41b54
wasm-fuzzer-common.cc 13.5 KB