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

Unified Diff: src/mips64/macro-assembler-mips64.cc

Issue 1714283002: MIPS64: Fix 'MIPS: use DAHI/DATH for li macro on mips64r6.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/macro-assembler-mips64.cc
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc
index fcc602bbffd4a816b61cefd53e276090814b6e7c..96e42b36a69013fc67cc43def3d8b34bacfced0d 100644
--- a/src/mips64/macro-assembler-mips64.cc
+++ b/src/mips64/macro-assembler-mips64.cc
@@ -1378,15 +1378,9 @@ void MacroAssembler::li(Register rd, Operand j, LiFlags mode) {
} else {
if (kArchVariant == kMips64r6) {
int64_t imm = j.imm64_;
- bool lui_emited = false;
- if (((imm >> kLuiShift) & kImm16Mask) != 0) {
- lui(rd, (imm >> kLuiShift) & kImm16Mask);
- lui_emited = true;
- }
+ lui(rd, (imm >> kLuiShift) & kImm16Mask);
if ((imm & kImm16Mask) != 0) {
ori(rd, rd, (imm & kImm16Mask));
- } else if (!lui_emited) {
- or_(rd, zero_reg, zero_reg);
}
balazs.kilvady 2016/02/23 19:56:23 If I got it correctly at late evening then you use
Alan Li 2016/02/25 03:05:40 Done.
if ((imm >> 31) & 0x1) {
balazs.kilvady 2016/02/23 19:56:23 Don't we have kImm32Mask? If not yet then I think
Alan Li 2016/02/25 03:05:39 Consolidated into shiftAndFixSignExtension. On 20
imm = (imm >> 32) + 1;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698