summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/MSP430RegisterInfo.td
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:02:04 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:02:04 +0000
commit1df221f2bb8e8380e255d1bec73ab07b388d01a2 (patch)
tree25feae768943a171215f858d0786a4c95c52cc15 /lib/Target/MSP430/MSP430RegisterInfo.td
parent09c42f509a10e1725f52ebac36d38deee194b526 (diff)
downloadllvm-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.td')
-rw-r--r--lib/Target/MSP430/MSP430RegisterInfo.td8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/MSP430/MSP430RegisterInfo.td b/lib/Target/MSP430/MSP430RegisterInfo.td
index 27a9842cfa..fd78161620 100644
--- a/lib/Target/MSP430/MSP430RegisterInfo.td
+++ b/lib/Target/MSP430/MSP430RegisterInfo.td
@@ -37,7 +37,9 @@ def R13 : MSP430Reg<13, "R13">;
def R14 : MSP430Reg<14, "R14">;
def R15 : MSP430Reg<15, "R15">;
-def MSP430Regs : RegisterClass<"MSP430", [i16], 16,
+// FIXME: we need subregs & special handling for 8 bit stuff
+
+def GR16 : RegisterClass<"MSP430", [i16], 16,
// Volatile registers
[R12, R13, R14, R15, R11, R10, R9, R8, R7, R6, R5,
// Frame pointer, sometimes allocable
@@ -49,8 +51,8 @@ def MSP430Regs : RegisterClass<"MSP430", [i16], 16,
iterator allocation_order_end(const MachineFunction &MF) const;
}];
let MethodBodies = [{
- MSP430RegsClass::iterator
- MSP430RegsClass::allocation_order_end(const MachineFunction &MF) const {
+ GR16Class::iterator
+ GR16Class::allocation_order_end(const MachineFunction &MF) const {
const TargetMachine &TM = MF.getTarget();
const TargetRegisterInfo *RI = TM.getRegisterInfo();
// Depending on whether the function uses frame pointer or not, last 5 or 4