mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
Do not promote float params to double in varargs
calls here. This was done earlier for params in the varargs part of the params; any float params that survive to here are in the non-varargs part, and must not be promoted. llvm-svn: 48310
This commit is contained in:
parent
35cb7960e3
commit
6424bd0b11
@ -1898,12 +1898,6 @@ SDOperand PPCTargetLowering::LowerCALL(SDOperand Op, SelectionDAG &DAG,
|
||||
break;
|
||||
case MVT::f32:
|
||||
case MVT::f64:
|
||||
if (isVarArg) {
|
||||
// Float varargs need to be promoted to double.
|
||||
if (Arg.getValueType() == MVT::f32)
|
||||
Arg = DAG.getNode(ISD::FP_EXTEND, MVT::f64, Arg);
|
||||
}
|
||||
|
||||
if (FPR_idx != NumFPRs) {
|
||||
RegsToPass.push_back(std::make_pair(FPR[FPR_idx++], Arg));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user