mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
Refactoring of formal parameter flags. Enable properly use of
zext/sext/aext stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -341,9 +341,11 @@ IA64TargetLowering::LowerCallTo(SDOperand Chain,
|
||||
case MVT::i32: {
|
||||
//promote to 64-bits, sign/zero extending based on type
|
||||
//of the argument
|
||||
ISD::NodeType ExtendKind = ISD::ZERO_EXTEND;
|
||||
if (Args[i].isSigned)
|
||||
ISD::NodeType ExtendKind = ISD::ANY_EXTEND;
|
||||
if (Args[i].isSExt)
|
||||
ExtendKind = ISD::SIGN_EXTEND;
|
||||
else if (Args[i].isZExt)
|
||||
ExtendKind = ISD::ZERO_EXTEND;
|
||||
Val = DAG.getNode(ExtendKind, MVT::i64, Val);
|
||||
// XXX: fall through
|
||||
}
|
||||
|
Reference in New Issue
Block a user