mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 21:29:28 +00:00
Folding table additions and fixes for AVX.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148467 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a7700a3fa
commit
40385c8104
@ -516,9 +516,7 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
|
||||
{ X86::VPABSDrr128, X86::VPABSDrm128, TB_ALIGN_16 },
|
||||
{ X86::VPABSWrr128, X86::VPABSWrm128, TB_ALIGN_16 },
|
||||
{ X86::VPERMILPDri, X86::VPERMILPDmi, TB_ALIGN_16 },
|
||||
{ X86::VPERMILPDYri, X86::VPERMILPDYmi, TB_ALIGN_16 },
|
||||
{ X86::VPERMILPSri, X86::VPERMILPSmi, TB_ALIGN_16 },
|
||||
{ X86::VPERMILPSYri, X86::VPERMILPSYmi, TB_ALIGN_16 },
|
||||
{ X86::VPSHUFDri, X86::VPSHUFDmi, TB_ALIGN_16 },
|
||||
{ X86::VPSHUFHWri, X86::VPSHUFHWmi, TB_ALIGN_16 },
|
||||
{ X86::VPSHUFLWri, X86::VPSHUFLWmi, TB_ALIGN_16 },
|
||||
@ -535,16 +533,26 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
|
||||
// AVX 256-bit foldable instructions
|
||||
{ X86::VMOVAPDYrr, X86::VMOVAPDYrm, TB_ALIGN_32 },
|
||||
{ X86::VMOVAPSYrr, X86::VMOVAPSYrm, TB_ALIGN_32 },
|
||||
{ X86::VMOVDQAYrr, X86::VMOVDQAYrm, TB_ALIGN_16 },
|
||||
{ X86::VMOVDQAYrr, X86::VMOVDQAYrm, TB_ALIGN_32 },
|
||||
{ X86::VMOVUPDYrr, X86::VMOVUPDYrm, 0 },
|
||||
{ X86::VMOVUPSYrr, X86::VMOVUPSYrm, 0 },
|
||||
{ X86::VPERMILPDYri, X86::VPERMILPDYmi, TB_ALIGN_32 },
|
||||
{ X86::VPERMILPSYri, X86::VPERMILPSYmi, TB_ALIGN_32 },
|
||||
// AVX2 foldable instructions
|
||||
{ X86::VPABSBrr256, X86::VPABSBrm256, TB_ALIGN_16 },
|
||||
{ X86::VPABSDrr256, X86::VPABSDrm256, TB_ALIGN_16 },
|
||||
{ X86::VPABSWrr256, X86::VPABSWrm256, TB_ALIGN_16 },
|
||||
{ X86::VPSHUFDYri, X86::VPSHUFDYmi, TB_ALIGN_16 },
|
||||
{ X86::VPSHUFHWYri, X86::VPSHUFHWYmi, TB_ALIGN_16 },
|
||||
{ X86::VPSHUFLWYri, X86::VPSHUFLWYmi, TB_ALIGN_16 }
|
||||
{ X86::VPABSBrr256, X86::VPABSBrm256, TB_ALIGN_32 },
|
||||
{ X86::VPABSDrr256, X86::VPABSDrm256, TB_ALIGN_32 },
|
||||
{ X86::VPABSWrr256, X86::VPABSWrm256, TB_ALIGN_32 },
|
||||
{ X86::VPSHUFDYri, X86::VPSHUFDYmi, TB_ALIGN_32 },
|
||||
{ X86::VPSHUFHWYri, X86::VPSHUFHWYmi, TB_ALIGN_32 },
|
||||
{ X86::VPSHUFLWYri, X86::VPSHUFLWYmi, TB_ALIGN_32 },
|
||||
{ X86::VRCPPSYr, X86::VRCPPSYm, TB_ALIGN_32 },
|
||||
{ X86::VRCPPSYr_Int, X86::VRCPPSYm_Int, TB_ALIGN_32 },
|
||||
{ X86::VRSQRTPSYr, X86::VRSQRTPSYm, TB_ALIGN_32 },
|
||||
{ X86::VRSQRTPSYr_Int, X86::VRSQRTPSYm_Int, TB_ALIGN_32 },
|
||||
{ X86::VSQRTPDYr, X86::VSQRTPDYm, TB_ALIGN_32 },
|
||||
{ X86::VSQRTPDYr_Int, X86::VSQRTPDYm_Int, TB_ALIGN_32 },
|
||||
{ X86::VSQRTPSYr, X86::VSQRTPSYm, TB_ALIGN_32 },
|
||||
{ X86::VSQRTPSYr_Int, X86::VSQRTPSYm_Int, TB_ALIGN_32 },
|
||||
};
|
||||
|
||||
for (unsigned i = 0, e = array_lengthof(OpTbl1); i != e; ++i) {
|
||||
@ -1035,6 +1043,10 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
|
||||
{ X86::VPCMPGTQYrr, X86::VPCMPGTQYrm, TB_ALIGN_32 },
|
||||
{ X86::VPCMPGTWYrr, X86::VPCMPGTWYrm, TB_ALIGN_32 },
|
||||
{ X86::VPERM2I128rr, X86::VPERM2I128rm, TB_ALIGN_32 },
|
||||
{ X86::VPERMDYrr, X86::VPERMDYrm, TB_ALIGN_32 },
|
||||
{ X86::VPERMPDYrr, X86::VPERMPDYrm, TB_ALIGN_32 },
|
||||
{ X86::VPERMPSYrr, X86::VPERMPSYrm, TB_ALIGN_32 },
|
||||
{ X86::VPERMQYrr, X86::VPERMQYrm, TB_ALIGN_32 },
|
||||
{ X86::VPHADDDrr256, X86::VPHADDDrm256, TB_ALIGN_32 },
|
||||
{ X86::VPHADDSWrr256, X86::VPHADDSWrm256, TB_ALIGN_32 },
|
||||
{ X86::VPHADDWrr256, X86::VPHADDWrm256, TB_ALIGN_32 },
|
||||
|
Loading…
Reference in New Issue
Block a user