| 1 |
if (TARGET_64BIT) |
| 2 |
ADD_TARGET_INFO ("target_arch", "x86_64"); |
| 3 |
else |
| 4 |
ADD_TARGET_INFO ("target_arch", "x86"); |
| 5 |
|
| 6 |
// features officially "stabilised" in rustc |
| 7 |
if (TARGET_MMX) |
| 8 |
ADD_TARGET_INFO ("target_feature", "mmx"); |
| 9 |
if (TARGET_SSE) |
| 10 |
ADD_TARGET_INFO ("target_feature", "sse"); |
| 11 |
if (TARGET_SSE2) |
| 12 |
ADD_TARGET_INFO ("target_feature", "sse2"); |
| 13 |
if (TARGET_SSE3) |
| 14 |
ADD_TARGET_INFO ("target_feature", "sse3"); |
| 15 |
if (TARGET_SSSE3) |
| 16 |
ADD_TARGET_INFO ("target_feature", "ssse3"); |
| 17 |
if (TARGET_SSE4_1) |
| 18 |
ADD_TARGET_INFO ("target_feature", "sse4.1"); |
| 19 |
if (TARGET_SSE4_2) |
| 20 |
ADD_TARGET_INFO ("target_feature", "sse4.2"); |
| 21 |
if (TARGET_AES) |
| 22 |
ADD_TARGET_INFO ("target_feature", "aes"); |
| 23 |
if (TARGET_SHA) |
| 24 |
ADD_TARGET_INFO ("target_feature", "sha"); |
| 25 |
if (TARGET_AVX) |
| 26 |
ADD_TARGET_INFO ("target_feature", "avx"); |
| 27 |
if (TARGET_AVX2) |
| 28 |
ADD_TARGET_INFO ("target_feature", "avx2"); |
| 29 |
if (TARGET_AVX512F) |
| 30 |
ADD_TARGET_INFO ("target_feature", "avx512f"); |
| 31 |
if (TARGET_AVX512CD) |
| 32 |
ADD_TARGET_INFO ("target_feature", "avx512cd"); |
| 33 |
if (TARGET_AVX512DQ) |
| 34 |
ADD_TARGET_INFO ("target_feature", "avx512dq"); |
| 35 |
if (TARGET_AVX512BW) |
| 36 |
ADD_TARGET_INFO ("target_feature", "avx512bw"); |
| 37 |
if (TARGET_AVX512VL) |
| 38 |
ADD_TARGET_INFO ("target_feature", "avx512vl"); |
| 39 |
if (TARGET_AVX512VBMI) |
| 40 |
ADD_TARGET_INFO ("target_feature", "avx512vbmi"); |
| 41 |
if (TARGET_AVX512IFMA) |
| 42 |
ADD_TARGET_INFO ("target_feature", "avx512ifma"); |
| 43 |
if (TARGET_AVX512VPOPCNTDQ) |
| 44 |
ADD_TARGET_INFO ("target_feature", "avx512vpopcntdq"); |
| 45 |
if (TARGET_FMA) |
| 46 |
ADD_TARGET_INFO ("target_feature", "fma"); |
| 47 |
if (TARGET_RTM) |
| 48 |
ADD_TARGET_INFO ("target_feature", "rtm"); |
| 49 |
if (TARGET_SSE4A) |
| 50 |
ADD_TARGET_INFO ("target_feature", "sse4a"); |
| 51 |
if (TARGET_BMI) |
| 52 |
{ |
| 53 |
ADD_TARGET_INFO ("target_feature", "bmi1"); |
| 54 |
ADD_TARGET_INFO ("target_feature", "bmi"); |
| 55 |
} |
| 56 |
if (TARGET_BMI2) |
| 57 |
ADD_TARGET_INFO ("target_feature", "bmi2"); |
| 58 |
if (TARGET_LZCNT) |
| 59 |
ADD_TARGET_INFO ("target_feature", "lzcnt"); |
| 60 |
if (TARGET_TBM) |
| 61 |
ADD_TARGET_INFO ("target_feature", "tbm"); |
| 62 |
if (TARGET_POPCNT) |
| 63 |
ADD_TARGET_INFO ("target_feature", "popcnt"); |
| 64 |
if (TARGET_RDRND) |
| 65 |
{ |
| 66 |
ADD_TARGET_INFO ("target_feature", "rdrand"); |
| 67 |
ADD_TARGET_INFO ("target_feature", "rdrnd"); |
| 68 |
} |
| 69 |
if (TARGET_F16C) |
| 70 |
ADD_TARGET_INFO ("target_feature", "f16c"); |
| 71 |
if (TARGET_RDSEED) |
| 72 |
ADD_TARGET_INFO ("target_feature", "rdseed"); |
| 73 |
if (TARGET_ADX) |
| 74 |
ADD_TARGET_INFO ("target_feature", "adx"); |
| 75 |
if (TARGET_FXSR) |
| 76 |
ADD_TARGET_INFO ("target_feature", "fxsr"); |
| 77 |
if (TARGET_XSAVE) |
| 78 |
ADD_TARGET_INFO ("target_feature", "xsave"); |
| 79 |
if (TARGET_XSAVEOPT) |
| 80 |
ADD_TARGET_INFO ("target_feature", "xsaveopt"); |
| 81 |
if (TARGET_XSAVEC) |
| 82 |
ADD_TARGET_INFO ("target_feature", "xsavec"); |
| 83 |
if (TARGET_XSAVES) |
| 84 |
ADD_TARGET_INFO ("target_feature", "xsaves"); |
| 85 |
if (TARGET_VPCLMULQDQ) |
| 86 |
{ |
| 87 |
ADD_TARGET_INFO ("target_feature", "pclmulqdq"); |
| 88 |
ADD_TARGET_INFO ("target_feature", "vpclmulqdq"); |
| 89 |
} |
| 90 |
if (TARGET_CMPXCHG16B) |
| 91 |
ADD_TARGET_INFO ("target_feature", "cmpxchg16b"); |
| 92 |
if (TARGET_MOVBE) |
| 93 |
ADD_TARGET_INFO ("target_feature", "movbe"); |