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

Unified Diff: src/IceRegistersMIPS32.h

Issue 2316933002: [SubZero] Implement GP to/from FP moves for MIPS (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase to master Created 4 years, 3 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 | « src/IceInstMIPS32.cpp ('k') | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceRegistersMIPS32.h
diff --git a/src/IceRegistersMIPS32.h b/src/IceRegistersMIPS32.h
index 221356b83c6b0478db2542aa4af0b22f9d2e4c47..2880b74227e9d9a62bbeb121f15e4db92f61acd4 100644
--- a/src/IceRegistersMIPS32.h
+++ b/src/IceRegistersMIPS32.h
@@ -72,8 +72,11 @@ static inline GPRRegister getEncodedGPR(RegNumT RegNum) {
}
static inline bool isGPRReg(RegNumT RegNum) {
- return (int(Reg_GPR_First) <= int(RegNum)) &&
- (unsigned(RegNum) <= Reg_GPR_Last);
+ bool IsGPR = ((int(Reg_GPR_First) <= int(RegNum)) &&
+ (unsigned(RegNum) <= Reg_GPR_Last)) ||
+ ((int(Reg_I64PAIR_First) <= int(RegNum)) &&
+ (unsigned(RegNum) <= Reg_I64PAIR_Last));
+ return IsGPR;
}
static inline FPRRegister getEncodedFPR(RegNumT RegNum) {
« no previous file with comments | « src/IceInstMIPS32.cpp ('k') | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698