projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add MIPS accumulator and DSP control registers.
[oota-llvm.git]
/
lib
/
Target
/
Mips
/
MipsRegisterInfo.cpp
diff --git
a/lib/Target/Mips/MipsRegisterInfo.cpp
b/lib/Target/Mips/MipsRegisterInfo.cpp
index 79a142a619b5230f7c20ff1e8c88f73cf4cc895f..4614dcb9801db71ea732897f826dc32f6c3bfded 100644
(file)
--- a/
lib/Target/Mips/MipsRegisterInfo.cpp
+++ b/
lib/Target/Mips/MipsRegisterInfo.cpp
@@
-123,6
+123,9
@@
getReservedRegs(const MachineFunction &MF) const {
Reserved.set(Mips::HWR29);
Reserved.set(Mips::HWR29_64);
+ // Reserve DSP control register.
+ Reserved.set(Mips::DSPCtrl);
+
// Reserve RA if in mips16 mode.
if (Subtarget.inMips16Mode()) {
Reserved.set(Mips::RA);