Index: lib/Basic/Targets.cpp =================================================================== --- lib/Basic/Targets.cpp +++ lib/Basic/Targets.cpp @@ -8459,9 +8459,9 @@ ArrayRef getGCCAddlRegNames() const override { static const TargetInfo::AddlRegName AddlRegNames[] = { { { "r26", "r27"}, 26 }, - { { "r28", "r29"}, 27 }, - { { "r30", "r31"}, 28 }, - { { "SPL", "SPH"}, 29 }, + { { "r28", "r29"}, 28 }, + { { "r30", "r31"}, 30 }, + { { "SPL", "SPH"}, 32 }, }; return llvm::makeArrayRef(AddlRegNames); }