mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
set register class properly for mips16 here
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170669 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
399532b25a
commit
bacbf1c2cb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user