• Ng Zhi An's avatar
    Add test case for F32x4Extract · e06c65ec
    Ng Zhi An authored
    The test case SimdF32x4ExtractWithI32x4 was still passing when the codegen for
    F32x4Extract was entirely commented out. This change adds a new test
    cases that specifically exercises F32x4ExtractLane.
    
    It copies what is done in SimdI32x4SplatFromExtract,
    which involves moving the splatted and
    extracted values around locals, to ensure we move the values around
    registers and not unintentionally reuse registers that we splatted to,
    without actually extracting anything.
    
    Note that the existing SimdF32x4ExtractWithI32x4 is kept because it is
    used to test scalar lowering passes.
    
    
    Bug: v8:9420
    Change-Id: Ieb883175b0e0139e8452c18f09d50b7dfb05a994
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1684699
    Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
    Reviewed-by: 's avatarDeepti Gandluri <gdeepti@chromium.org>
    Auto-Submit: Zhi An Ng <zhin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#62496}
    e06c65ec
test-run-wasm-simd.cc 102 KB