From 2b8085a3f5ab8520f963e57aac97aa1451173bdf Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sun, 3 May 2009 13:11:48 +0000 Subject: [PATCH] Hanle i8 returns llvm-svn: 70742 --- lib/Target/MSP430/MSP430CallingConv.td | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Target/MSP430/MSP430CallingConv.td b/lib/Target/MSP430/MSP430CallingConv.td index e5826982279..ad27cc9122a 100644 --- a/lib/Target/MSP430/MSP430CallingConv.td +++ b/lib/Target/MSP430/MSP430CallingConv.td @@ -13,6 +13,9 @@ // MSP430 Return Value Calling Convention //===----------------------------------------------------------------------===// def RetCC_MSP430 : CallingConv<[ + // i8 are returned in registers R15B, R14B, R13B, R12B + CCIfType<[i8], CCAssignToReg<[R15B, R14B, R13B, R12B]>>, + // i16 are returned in registers R15, R14, R13, R12 CCIfType<[i16], CCAssignToReg<[R15W, R14W, R13W, R12W]>> ]>;