summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/MSP430RegisterInfo.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:05:22 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:05:22 +0000
commitcf9adf2cbb8298e83b53d7bee2ddab4c875cb3c5 (patch)
tree3852b9a4c9d29baabe21e52e43e9149bc3ab0eab /lib/Target/MSP430/MSP430RegisterInfo.cpp
parent0fc32dae8f380f57087bf48e4248f1ad3326a1b0 (diff)
downloadllvm-cf9adf2cbb8298e83b53d7bee2ddab4c875cb3c5.tar.gz
llvm-cf9adf2cbb8298e83b53d7bee2ddab4c875cb3c5.tar.bz2
llvm-cf9adf2cbb8298e83b53d7bee2ddab4c875cb3c5.tar.xz
Add 8-bit regclass and pattern for sext_inreg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70721 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430RegisterInfo.cpp')
-rw-r--r--lib/Target/MSP430/MSP430RegisterInfo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Target/MSP430/MSP430RegisterInfo.cpp b/lib/Target/MSP430/MSP430RegisterInfo.cpp
index ff6d531cfd..292dd28129 100644
--- a/lib/Target/MSP430/MSP430RegisterInfo.cpp
+++ b/lib/Target/MSP430/MSP430RegisterInfo.cpp
@@ -31,8 +31,8 @@ MSP430RegisterInfo::MSP430RegisterInfo(const TargetInstrInfo &tii)
const unsigned*
MSP430RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
static const unsigned CalleeSavedRegs[] = {
- MSP430::FP, MSP430::R5, MSP430::R6, MSP430::R7,
- MSP430::R8, MSP430::R9, MSP430::R10, MSP430::R11,
+ MSP430::FPW, MSP430::R5W, MSP430::R6W, MSP430::R7W,
+ MSP430::R8W, MSP430::R9W, MSP430::R10W, MSP430::R11W,
0
};
@@ -57,14 +57,14 @@ MSP430RegisterInfo::getReservedRegs(const MachineFunction &MF) const {
BitVector Reserved(getNumRegs());
// Mark 4 special registers as reserved.
- Reserved.set(MSP430::PC);
- Reserved.set(MSP430::SP);
- Reserved.set(MSP430::SR);
- Reserved.set(MSP430::CG);
+ Reserved.set(MSP430::PCW);
+ Reserved.set(MSP430::SPW);
+ Reserved.set(MSP430::SRW);
+ Reserved.set(MSP430::CGW);
// Mark frame pointer as reserved if needed.
if (hasFP(MF))
- Reserved.set(MSP430::FP);
+ Reserved.set(MSP430::FPW);
return Reserved;
}