• Miran.Karic's avatar
    MIPS64: Add optimizations to li and Dsubu macro. · 37b461a9
    Miran.Karic authored
    Here we optimize Dsubu by instead of loading imm and subtracting, we
    load -imm and perform addition when loading -imm takes less instructions
    than loading imm. Similarily li is optimized by loading -imm and
    performing addition or loading ~imm and inverting bits using nor when
    one of these loads takes two instructions less than loading imm, saving
    at least one instruction. Tests are adjusted to cover these
    optimizations.
    
    BUG=
    TEST=cctest/test-assembler-mips/li_macro
         cctest/test-assembler-mips/Dsubu
    
    Review-Url: https://codereview.chromium.org/2909913002
    Cr-Commit-Position: refs/heads/master@{#46001}
    37b461a9
Name
Last commit
Last update
..
OWNERS Loading commit data...
assembler-mips64-inl.h Loading commit data...
assembler-mips64.cc Loading commit data...
assembler-mips64.h Loading commit data...
code-stubs-mips64.cc Loading commit data...
code-stubs-mips64.h Loading commit data...
codegen-mips64.cc Loading commit data...
codegen-mips64.h Loading commit data...
constants-mips64.cc Loading commit data...
constants-mips64.h Loading commit data...
cpu-mips64.cc Loading commit data...
deoptimizer-mips64.cc Loading commit data...
disasm-mips64.cc Loading commit data...
frames-mips64.cc Loading commit data...
frames-mips64.h Loading commit data...
interface-descriptors-mips64.cc Loading commit data...
macro-assembler-mips64.cc Loading commit data...
macro-assembler-mips64.h Loading commit data...
simulator-mips64.cc Loading commit data...
simulator-mips64.h Loading commit data...