diff --git a/src/mir/RegAlloc.cpp b/src/mir/RegAlloc.cpp index 6667f033..a8c85d5f 100644 --- a/src/mir/RegAlloc.cpp +++ b/src/mir/RegAlloc.cpp @@ -47,8 +47,8 @@ namespace mir return reg >= PhysReg::S0 && reg <= PhysReg::S31; } - static const int GP_ALLOCATABLE[] = {8, 9, 10, 11, 12, 15, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28}; - static const int GP_NUM_ALLOCATABLE = 16; + static const int GP_ALLOCATABLE[] = {8, 9, 10, 11, 12, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28}; + static const int GP_NUM_ALLOCATABLE = 18; static const int FP_ALLOCATABLE[] = {8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31}; static const int FP_NUM_ALLOCATABLE = 24; static const int FP_CALLER_SAVED[] = {8, 9, 10, 11, 12, 13, 14, 15};