• Miran.Karic's avatar
    MIPS64: Fix optimizations to li macro. · 2751ca49
    Miran.Karic authored
    An optimization in li checks if a value has all their "n" LSBs set to
    one, and their "64-n" MSBs set to zero. This is done by checking
    base::bits::IsPowerOfTwo(value + 1), but this doesn't cover the case
    when only MSB is zero, and other bits are one. Added another check that
    covers the missing case, this also fixes Dsubu test.
    
    BUG=
    TEST=cctest/test-assembler-mips/Dsubu
    
    Change-Id: I97b8fb4984af3b7f974ba901e3a1a9c89e925805
    Reviewed-on: https://chromium-review.googlesource.com/598228Reviewed-by: 's avatarIvica Bogosavljevic <ivica.bogosavljevic@imgtec.com>
    Commit-Queue: Miran Karić <Miran.Karic@imgtec.com>
    Cr-Commit-Position: refs/heads/master@{#47134}
    2751ca49
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer 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...
preparser Loading commit data...
promises-aplus Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...