mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Set operation actions for load/store nodes in the Mips backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157866 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4d70ceed33
commit
7664f05326
@ -161,6 +161,8 @@ MipsTargetLowering(MipsTargetMachine &TM)
|
||||
setOperationAction(ISD::FCOPYSIGN, MVT::f64, Custom);
|
||||
setOperationAction(ISD::MEMBARRIER, MVT::Other, Custom);
|
||||
setOperationAction(ISD::ATOMIC_FENCE, MVT::Other, Custom);
|
||||
setOperationAction(ISD::LOAD, MVT::i32, Custom);
|
||||
setOperationAction(ISD::STORE, MVT::i32, Custom);
|
||||
|
||||
if (!TM.Options.NoNaNsFPMath) {
|
||||
setOperationAction(ISD::FABS, MVT::f32, Custom);
|
||||
@ -175,6 +177,8 @@ MipsTargetLowering(MipsTargetMachine &TM)
|
||||
setOperationAction(ISD::ConstantPool, MVT::i64, Custom);
|
||||
setOperationAction(ISD::SELECT, MVT::i64, Custom);
|
||||
setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i64, Custom);
|
||||
setOperationAction(ISD::LOAD, MVT::i64, Custom);
|
||||
setOperationAction(ISD::STORE, MVT::i64, Custom);
|
||||
}
|
||||
|
||||
if (!HasMips64) {
|
||||
@ -277,6 +281,13 @@ MipsTargetLowering(MipsTargetMachine &TM)
|
||||
setOperationAction(ISD::BSWAP, MVT::i64, Expand);
|
||||
}
|
||||
|
||||
if (HasMips64) {
|
||||
setLoadExtAction(ISD::SEXTLOAD, MVT::i32, Custom);
|
||||
setLoadExtAction(ISD::ZEXTLOAD, MVT::i32, Custom);
|
||||
setLoadExtAction(ISD::EXTLOAD, MVT::i32, Custom);
|
||||
setTruncStoreAction(MVT::i64, MVT::i32, Custom);
|
||||
}
|
||||
|
||||
setTargetDAGCombine(ISD::ADDE);
|
||||
setTargetDAGCombine(ISD::SUBE);
|
||||
setTargetDAGCombine(ISD::SDIVREM);
|
||||
|
Loading…
x
Reference in New Issue
Block a user