Fix off-by-one IsGPR().

f0 was being counted as a GPR, due to the check in IsGPR().  Correct it by
looking at the precise GPR range.

llvm-svn: 228547
This commit is contained in:
Justin Hibbits 2015-02-08 21:23:23 +00:00
parent baf0a2415c
commit 5c0b98e205
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ g_reg_sets_powerpc[k_num_register_sets] =
bool RegisterContextPOSIX_powerpc::IsGPR(unsigned reg)
{
return reg <= k_num_gpr_registers_powerpc; // GPR's come first.
return (reg >= k_first_gpr_powerpc) && (reg <= k_last_gpr_powerpc); // GPR's come first.
}
bool