mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Add a couple asserts so it will be easier to debug if we accidentally pass indexed loads/stores to the legalizer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a9a4f5eda8
commit
b91b6001a6
@ -293,6 +293,8 @@ SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) {
|
||||
static void ExpandUnalignedStore(StoreSDNode *ST, SelectionDAG &DAG,
|
||||
const TargetLowering &TLI,
|
||||
SelectionDAGLegalize *DAGLegalize) {
|
||||
assert(ST->getAddressingMode() == ISD::UNINDEXED &&
|
||||
"unaligned indexed stores not implemented!");
|
||||
SDValue Chain = ST->getChain();
|
||||
SDValue Ptr = ST->getBasePtr();
|
||||
SDValue Val = ST->getValue();
|
||||
@ -413,6 +415,8 @@ static void
|
||||
ExpandUnalignedLoad(LoadSDNode *LD, SelectionDAG &DAG,
|
||||
const TargetLowering &TLI,
|
||||
SDValue &ValResult, SDValue &ChainResult) {
|
||||
assert(LD->getAddressingMode() == ISD::UNINDEXED &&
|
||||
"unaligned indexed loads not implemented!");
|
||||
SDValue Chain = LD->getChain();
|
||||
SDValue Ptr = LD->getBasePtr();
|
||||
EVT VT = LD->getValueType(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user