ppc: replace constant subtarget numbers with macros

This commit is contained in:
Nguyen Anh Quynh 2014-01-15 16:48:48 +08:00
parent 136e2df38c
commit 57c50d4845

View File

@ -6,55 +6,57 @@
|* *|
\*===----------------------------------------------------------------------===*/
/* Capstone Disassembler Engine */
/* Capstone Disassembly Engine, http://www.capstone-engine.org */
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> */
#ifdef GET_SUBTARGETINFO_ENUM
#undef GET_SUBTARGETINFO_ENUM
const uint64_t PPC_DeprecatedDST = 1ULL << 0;
const uint64_t PPC_DeprecatedMFTB = 1ULL << 1;
const uint64_t PPC_Directive32 = 1ULL << 2;
const uint64_t PPC_Directive64 = 1ULL << 3;
const uint64_t PPC_Directive440 = 1ULL << 4;
const uint64_t PPC_Directive601 = 1ULL << 5;
const uint64_t PPC_Directive602 = 1ULL << 6;
const uint64_t PPC_Directive603 = 1ULL << 7;
const uint64_t PPC_Directive604 = 1ULL << 8;
const uint64_t PPC_Directive620 = 1ULL << 9;
const uint64_t PPC_Directive750 = 1ULL << 10;
const uint64_t PPC_Directive970 = 1ULL << 11;
const uint64_t PPC_Directive7400 = 1ULL << 12;
const uint64_t PPC_DirectiveA2 = 1ULL << 13;
const uint64_t PPC_DirectiveE500mc = 1ULL << 14;
const uint64_t PPC_DirectiveE5500 = 1ULL << 15;
const uint64_t PPC_DirectivePwr3 = 1ULL << 16;
const uint64_t PPC_DirectivePwr4 = 1ULL << 17;
const uint64_t PPC_DirectivePwr5 = 1ULL << 18;
const uint64_t PPC_DirectivePwr5x = 1ULL << 19;
const uint64_t PPC_DirectivePwr6 = 1ULL << 20;
const uint64_t PPC_DirectivePwr6x = 1ULL << 21;
const uint64_t PPC_DirectivePwr7 = 1ULL << 22;
const uint64_t PPC_Feature64Bit = 1ULL << 23;
const uint64_t PPC_Feature64BitRegs = 1ULL << 24;
const uint64_t PPC_FeatureAltivec = 1ULL << 25;
const uint64_t PPC_FeatureBookE = 1ULL << 26;
const uint64_t PPC_FeatureFCPSGN = 1ULL << 27;
const uint64_t PPC_FeatureFPCVT = 1ULL << 28;
const uint64_t PPC_FeatureFPRND = 1ULL << 29;
const uint64_t PPC_FeatureFRE = 1ULL << 30;
const uint64_t PPC_FeatureFRES = 1ULL << 31;
const uint64_t PPC_FeatureFRSQRTE = 1ULL << 32;
const uint64_t PPC_FeatureFRSQRTES = 1ULL << 33;
const uint64_t PPC_FeatureFSqrt = 1ULL << 34;
const uint64_t PPC_FeatureISEL = 1ULL << 35;
const uint64_t PPC_FeatureLDBRX = 1ULL << 36;
const uint64_t PPC_FeatureLFIWAX = 1ULL << 37;
const uint64_t PPC_FeatureMFOCRF = 1ULL << 38;
const uint64_t PPC_FeaturePOPCNTD = 1ULL << 39;
const uint64_t PPC_FeatureQPX = 1ULL << 40;
const uint64_t PPC_FeatureRecipPrec = 1ULL << 41;
const uint64_t PPC_FeatureSTFIWX = 1ULL << 42;
const uint64_t PPC_FeatureVSX = 1ULL << 43;
#define PPC_DeprecatedDST (1ULL << 0)
#define PPC_DeprecatedMFTB (1ULL << 1)
#define PPC_Directive32 (1ULL << 2)
#define PPC_Directive64 (1ULL << 3)
#define PPC_Directive440 (1ULL << 4)
#define PPC_Directive601 (1ULL << 5)
#define PPC_Directive602 (1ULL << 6)
#define PPC_Directive603 (1ULL << 7)
#define PPC_Directive604 (1ULL << 8)
#define PPC_Directive620 (1ULL << 9)
#define PPC_Directive750 (1ULL << 10)
#define PPC_Directive970 (1ULL << 11)
#define PPC_Directive7400 (1ULL << 12)
#define PPC_DirectiveA2 (1ULL << 13)
#define PPC_DirectiveE500mc (1ULL << 14)
#define PPC_DirectiveE5500 (1ULL << 15)
#define PPC_DirectivePwr3 (1ULL << 16)
#define PPC_DirectivePwr4 (1ULL << 17)
#define PPC_DirectivePwr5 (1ULL << 18)
#define PPC_DirectivePwr5x (1ULL << 19)
#define PPC_DirectivePwr6 (1ULL << 20)
#define PPC_DirectivePwr6x (1ULL << 21)
#define PPC_DirectivePwr7 (1ULL << 22)
#define PPC_Feature64Bit (1ULL << 23)
#define PPC_Feature64BitRegs (1ULL << 24)
#define PPC_FeatureAltivec (1ULL << 25)
#define PPC_FeatureBookE (1ULL << 26)
#define PPC_FeatureFCPSGN (1ULL << 27)
#define PPC_FeatureFPCVT (1ULL << 28)
#define PPC_FeatureFPRND (1ULL << 29)
#define PPC_FeatureFRE (1ULL << 30)
#define PPC_FeatureFRES (1ULL << 31)
#define PPC_FeatureFRSQRTE (1ULL << 32)
#define PPC_FeatureFRSQRTES (1ULL << 33)
#define PPC_FeatureFSqrt (1ULL << 34)
#define PPC_FeatureISEL (1ULL << 35)
#define PPC_FeatureLDBRX (1ULL << 36)
#define PPC_FeatureLFIWAX (1ULL << 37)
#define PPC_FeatureMFOCRF (1ULL << 38)
#define PPC_FeaturePOPCNTD (1ULL << 39)
#define PPC_FeatureQPX (1ULL << 40)
#define PPC_FeatureRecipPrec (1ULL << 41)
#define PPC_FeatureSTFIWX (1ULL << 42)
#define PPC_FeatureVSX (1ULL << 43)
#endif // GET_SUBTARGETINFO_ENUM