diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 13:02:04 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 13:02:04 +0000 |
commit | 1df221f2bb8e8380e255d1bec73ab07b388d01a2 (patch) | |
tree | 25feae768943a171215f858d0786a4c95c52cc15 /lib/Target/MSP430/MSP430RegisterInfo.cpp | |
parent | 09c42f509a10e1725f52ebac36d38deee194b526 (diff) | |
download | llvm-1df221f2bb8e8380e255d1bec73ab07b388d01a2.tar.gz llvm-1df221f2bb8e8380e255d1bec73ab07b388d01a2.tar.bz2 llvm-1df221f2bb8e8380e255d1bec73ab07b388d01a2.tar.xz |
Add code enough for emission of reg-reg and reg-imm moves. This allows us to compile "ret i16 0" properly!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430RegisterInfo.cpp')
-rw-r--r-- | lib/Target/MSP430/MSP430RegisterInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/MSP430/MSP430RegisterInfo.cpp b/lib/Target/MSP430/MSP430RegisterInfo.cpp index 42e98979a8..ff6d531cfd 100644 --- a/lib/Target/MSP430/MSP430RegisterInfo.cpp +++ b/lib/Target/MSP430/MSP430RegisterInfo.cpp @@ -42,10 +42,10 @@ MSP430RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { const TargetRegisterClass* const* MSP430RegisterInfo::getCalleeSavedRegClasses(const MachineFunction *MF) const { static const TargetRegisterClass * const CalleeSavedRegClasses[] = { - &MSP430::MSP430RegsRegClass, &MSP430::MSP430RegsRegClass, - &MSP430::MSP430RegsRegClass, &MSP430::MSP430RegsRegClass, - &MSP430::MSP430RegsRegClass, &MSP430::MSP430RegsRegClass, - &MSP430::MSP430RegsRegClass, &MSP430::MSP430RegsRegClass, + &MSP430::GR16RegClass, &MSP430::GR16RegClass, + &MSP430::GR16RegClass, &MSP430::GR16RegClass, + &MSP430::GR16RegClass, &MSP430::GR16RegClass, + &MSP430::GR16RegClass, &MSP430::GR16RegClass, 0 }; |