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

Unified Diff: src/mips/macro-assembler-mips.h

Issue 1628453002: MIPS: Use PC realitive instructions on r6. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
Index: src/mips/macro-assembler-mips.h
diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h
index 5cfbb3143ae3a684f6f8e6005067748bce9b7808..30066cce1e3d943f4ef93f15a6b21fd3f6cee461 100644
--- a/src/mips/macro-assembler-mips.h
+++ b/src/mips/macro-assembler-mips.h
@@ -642,6 +642,20 @@ class MacroAssembler: public Assembler {
// ---------------------------------------------------------------------------
+ // PC relative instructions.
+
+ void Addiupc(Register rs, int32_t imm21) {
+ DCHECK_EQ(imm21 & 3, 0);
+ addiupc(rs, imm21 >> 2);
+ }
+
+ void Lwpc(Register rs, int32_t imm21) {
+ DCHECK_EQ(imm21 & 3, 0);
+ lwpc(rs, imm21 >> 2);
+ }
+
+
+ // ---------------------------------------------------------------------------
// Pseudo-instructions.
void mov(Register rd, Register rt) { or_(rd, rt, zero_reg); }

Powered by Google App Engine
This is Rietveld 408576698