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) { |