• 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
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer Loading commit data...
fuzzilli Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...