mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
Set register class of a register according to value of HasMips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140570 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8b4198da9d
commit
f40de9d287
@ -2268,7 +2268,7 @@ MipsTargetLowering::LowerFormalArguments(SDValue Chain,
|
||||
else if (RegVT == MVT::f32)
|
||||
RC = Mips::FGR32RegisterClass;
|
||||
else if (RegVT == MVT::f64)
|
||||
RC = Mips::AFGR64RegisterClass;
|
||||
RC = HasMips64 ? Mips::FGR64RegisterClass : Mips::AFGR64RegisterClass;
|
||||
else
|
||||
llvm_unreachable("RegVT not supported by FormalArguments Lowering");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user