mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
[PATCH] PowerPC: Expand load extend vector operations
This patch expands the SEXTLOAD, ZEXTLOAD, and EXTLOAD operations for vector types when altivec is enabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -361,6 +361,16 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
|
||||
setOperationAction(ISD::CTLZ_ZERO_UNDEF, VT, Expand);
|
||||
setOperationAction(ISD::CTTZ, VT, Expand);
|
||||
setOperationAction(ISD::CTTZ_ZERO_UNDEF, VT, Expand);
|
||||
setOperationAction(ISD::SIGN_EXTEND_INREG, VT, Expand);
|
||||
|
||||
for (unsigned j = (unsigned)MVT::FIRST_VECTOR_VALUETYPE;
|
||||
j <= (unsigned)MVT::LAST_VECTOR_VALUETYPE; ++j) {
|
||||
MVT::SimpleValueType InnerVT = (MVT::SimpleValueType)j;
|
||||
setTruncStoreAction(VT, InnerVT, Expand);
|
||||
}
|
||||
setLoadExtAction(ISD::SEXTLOAD, VT, Expand);
|
||||
setLoadExtAction(ISD::ZEXTLOAD, VT, Expand);
|
||||
setLoadExtAction(ISD::EXTLOAD, VT, Expand);
|
||||
}
|
||||
|
||||
for (unsigned i = (unsigned)MVT::FIRST_FP_VECTOR_VALUETYPE;
|
||||
|
||||
Reference in New Issue
Block a user