mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
minor tweaks, reject vector preinc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31717 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c1d6e1fc9c
commit
2fe4bf453b
@ -874,17 +874,22 @@ bool PPCTargetLowering::getPreIndexedAddressParts(SDNode *N, SDOperand &Base,
|
|||||||
if (!EnablePPCPreinc) return false;
|
if (!EnablePPCPreinc) return false;
|
||||||
|
|
||||||
SDOperand Ptr;
|
SDOperand Ptr;
|
||||||
|
MVT::ValueType VT;
|
||||||
if (LoadSDNode *LD = dyn_cast<LoadSDNode>(N)) {
|
if (LoadSDNode *LD = dyn_cast<LoadSDNode>(N)) {
|
||||||
Ptr = LD->getBasePtr();
|
Ptr = LD->getBasePtr();
|
||||||
|
VT = LD->getValueType(0);
|
||||||
} else if (StoreSDNode *ST = dyn_cast<StoreSDNode>(N)) {
|
} else if (StoreSDNode *ST = dyn_cast<StoreSDNode>(N)) {
|
||||||
ST = ST;
|
ST = ST;
|
||||||
//Ptr = ST->getBasePtr();
|
Ptr = ST->getBasePtr();
|
||||||
//VT = ST->getStoredVT();
|
VT = ST->getStoredVT();
|
||||||
// TODO: handle stores.
|
return false; // TODO: Stores.
|
||||||
return false;
|
|
||||||
} else
|
} else
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// PowerPC doesn't have preinc load/store instructions for vectors.
|
||||||
|
if (MVT::isVector(VT))
|
||||||
|
return false;
|
||||||
|
|
||||||
// TODO: Handle reg+reg.
|
// TODO: Handle reg+reg.
|
||||||
if (!SelectAddressRegImm(Ptr, Offset, Base, DAG))
|
if (!SelectAddressRegImm(Ptr, Offset, Base, DAG))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user