• Ng Zhi An's avatar
    [x64] Consolidate SSE/AVX Float32/Float64 Abs/Neg · 9996d8ae
    Ng Zhi An authored
    1. Move Abspd, Negpd from MacroAssembler into TurboAssembler so that we
    can use it in code-generator
    2. Add Absps and Negps (float32 versions of the instructions in 1)
    3. Refactor SSE/AVX float32/float64 abs/neg to use these macro-assembler
    helpers.
    4. Use these helpers in Liftoff too
    
    This has the benefit of not requiring to set up the masks in a temporary
    register, and loading the constants via an ExternalReference instead.
    It does require (in ins-sel) to have the input be in a Register, since
    the ExternalReference is an operand (and the instruction can only have 1
    operand input).
    
    Bug: v8:11589
    Change-Id: I68fafaf31b19ab05ee391aa3d54c45d547a85b34
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3123635Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
    Commit-Queue: Zhi An Ng <zhin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#76520}
    9996d8ae
Name
Last commit
Last update
..
benchmarks Loading commit data...
bigint 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...