• Ng Zhi An's avatar
    [wasm-simd][scalar-lowering] Fix lowering of narrowing · 894bf6df
    Ng Zhi An authored
    Narrowing operations need to sign extend the result.
    
    E.g. for narrowing uint16 to uint8, we compare uint16 to uint8 max,
    0xff. The final result should be 0xffffffff (sign extended) since we
    try to keep nodes in their sign extended form, to work well with
    the rest of the lowering operations.
    
    With this, we pass the last spec test (that is not ignored),
    simd_conversions.
    
    Bug: v8:10507
    Change-Id: I8914fd69db9378b8244cba5dcacff98d36893649
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2436613Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
    Commit-Queue: Zhi An Ng <zhin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#70272}
    894bf6df
Name
Last commit
Last update
..
BUILD.gn Loading commit data...
OWNERS Loading commit data...
testcfg.py Loading commit data...
tests.tar.gz.sha1 Loading commit data...
wasm-spec-tests.status Loading commit data...