• Pierre Langlois's avatar
    [arm64] Correctly print V registers. · 77a643e3
    Pierre Langlois authored
    The arm64 backend defines registers with a common base `CPURegister` class which
    can represent both general purpose and vector registers. We would use it to
    define the `RegisterName` function which results in printing all registers with
    `xN` when using the --trace-turbo-graph flag:
    
    ~~~
    [x0|R|f64] = Arm64LdrD : MRR [x7|R|tp] [x5|R|w64]
     ^^
     This is the d0 register, not x0
    ~~~
    
    We have `Register` and `VRegister` classes to distinguish general purpose
    registers from vector registers, use those to define `RegisterName` functions
    and print vector registers as `vN` intead:
    
    ~~~
    [v0|R|f64] = Arm64LdrD : MRR [x7|R|tp] [x5|R|w64]
    ~~~
    
    Since FloatRegister, DoubleRegister and Simd128Register are typedef of
    VRegister, we cannot differentiate them with the current `DEFINE_REGISTER_NAMES`
    abstraction. Architecturaly, S, D and Q registers are aliases of V registers so
    that's not a problem.
    
    Change-Id: Ic43036117c834070d3311b65c99ad1e24e1f9c3f
    Reviewed-on: https://chromium-review.googlesource.com/c/1445990Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
    Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Commit-Queue: Pierre Langlois <pierre.langlois@arm.com>
    Cr-Commit-Position: refs/heads/master@{#59234}
    77a643e3
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
custom_deps Loading commit data...
docs Loading commit data...
gni Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.clang-tidy Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...