projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb8ac2d
)
set register class properly for mips16 here
author
Reed Kotler
<rkotler@mips.com>
Thu, 20 Dec 2012 06:06:35 +0000
(06:06 +0000)
committer
Reed Kotler
<rkotler@mips.com>
Thu, 20 Dec 2012 06:06:35 +0000
(06:06 +0000)
llvm-svn: 170669
llvm/lib/Target/Mips/MipsISelLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/Mips/MipsISelLowering.cpp
b/llvm/lib/Target/Mips/MipsISelLowering.cpp
index
e3abd3e
..
dd44adb
100644
(file)
--- a/
llvm/lib/Target/Mips/MipsISelLowering.cpp
+++ b/
llvm/lib/Target/Mips/MipsISelLowering.cpp
@@
-3099,7
+3099,8
@@
MipsTargetLowering::LowerFormalArguments(SDValue Chain,
const TargetRegisterClass *RC;
if (RegVT == MVT::i32)
- RC = &Mips::CPURegsRegClass;
+ RC = Subtarget->inMips16Mode()? &Mips::CPU16RegsRegClass :
+ &Mips::CPURegsRegClass;
else if (RegVT == MVT::i64)
RC = &Mips::CPU64RegsRegClass;
else if (RegVT == MVT::f32)