• Ng Zhi An's avatar
    [wasm-simd] Optimize i64x2.shr_s · 10d4418f
    Ng Zhi An authored
    Use logical shifts to emulate arithmetic shift, by first adding a bias
    to make all signed values unsigned, then subtracting the shifted bias.
    Details are in code comments for SharedTurboAssembler::I64x2ShrS.
    
    Also refactor ia32 (which was already using this algorithm) to use the
    shared macro-assembler function. And convert Liftoff's implementation as
    well.
    
    Bug: v8:12058
    Change-Id: Ia1fd5fe5a9a0b7a7f31c426d4112256c8bf7021b
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3083291
    Commit-Queue: Zhi An Ng <zhin@chromium.org>
    Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#76209}
    10d4418f
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
riscv64 Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
DEPS Loading commit data...
liftoff-assembler-defs.h Loading commit data...
liftoff-assembler.cc Loading commit data...
liftoff-assembler.h Loading commit data...
liftoff-compiler.cc Loading commit data...
liftoff-compiler.h Loading commit data...
liftoff-register.h Loading commit data...