Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Issue 2845043002: MIPS: Fix Subu and add optimization (Closed)

Created:
3 years, 8 months ago by miran.karic
Modified:
3 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

MIPS: Fix Subu and add optimization For int16 imm values Subu would emit addiu with -imm value, but doing this with min_int16 would overflow and produce incorrect result. This is fixed by checking if -imm is int16. A test for this case is created. An optimization is also added for values imm where we cannot just emit addiu and loading -imm to a register takes one instruction using ori. Then instead of loading imm with lui;ori and subtracting with subu, we can load -imm with ori and add with addu. BUG= TEST=cctest/test-assembler-mips/Subu Review-Url: https://codereview.chromium.org/2845043002 Cr-Commit-Position: refs/heads/master@{#44932} Committed: https://chromium.googlesource.com/v8/v8/+/de14ba9fd2292a20f6b14d9cb7e0a625b855cfe0

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add test labels to an array #

Patch Set 3 : Move testcases to an array #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -1 line) Patch
M src/mips/macro-assembler-mips.cc View 1 chunk +6 lines, -1 line 0 comments Download
M test/cctest/test-assembler-mips.cc View 1 2 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
miran.karic
PTAL
3 years, 8 months ago (2017-04-27 08:53:43 UTC) #2
Ilija.Pavlovic1
lgtm
3 years, 8 months ago (2017-04-27 09:16:19 UTC) #4
ivica.bogosavljevic
https://codereview.chromium.org/2845043002/diff/1/test/cctest/test-assembler-mips.cc File test/cctest/test-assembler-mips.cc (right): https://codereview.chromium.org/2845043002/diff/1/test/cctest/test-assembler-mips.cc#newcode5528 test/cctest/test-assembler-mips.cc:5528: Label start1, start2, start3, start4, start5, start6; I think ...
3 years, 8 months ago (2017-04-27 09:18:28 UTC) #6
miran.karic
PTAL https://codereview.chromium.org/2845043002/diff/1/test/cctest/test-assembler-mips.cc File test/cctest/test-assembler-mips.cc (right): https://codereview.chromium.org/2845043002/diff/1/test/cctest/test-assembler-mips.cc#newcode5528 test/cctest/test-assembler-mips.cc:5528: Label start1, start2, start3, start4, start5, start6; On ...
3 years, 7 months ago (2017-04-27 11:05:06 UTC) #7
ivica.bogosavljevic
lgtm
3 years, 7 months ago (2017-04-27 12:30:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2845043002/40001
3 years, 7 months ago (2017-04-27 12:32:35 UTC) #11
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 12:56:57 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/de14ba9fd2292a20f6b14d9cb7e0a625b85...

Powered by Google App Engine
This is Rietveld 408576698