@@ -29,97 +29,7 @@ along with GCC; see the file COPYING3. If not see
2929void
3030ix86_rust_target_cpu_info (void )
3131{
32- if (TARGET_64BIT)
33- rust_add_target_info (" target_arch" , " x86_64" );
34- else
35- rust_add_target_info (" target_arch" , " x86" );
36-
37- // features officially "stabilised" in rustc
38- if (TARGET_MMX)
39- rust_add_target_info (" target_feature" , " mmx" );
40- if (TARGET_SSE)
41- rust_add_target_info (" target_feature" , " sse" );
42- if (TARGET_SSE2)
43- rust_add_target_info (" target_feature" , " sse2" );
44- if (TARGET_SSE3)
45- rust_add_target_info (" target_feature" , " sse3" );
46- if (TARGET_SSSE3)
47- rust_add_target_info (" target_feature" , " ssse3" );
48- if (TARGET_SSE4_1)
49- rust_add_target_info (" target_feature" , " sse4.1" );
50- if (TARGET_SSE4_2)
51- rust_add_target_info (" target_feature" , " sse4.2" );
52- if (TARGET_AES)
53- rust_add_target_info (" target_feature" , " aes" );
54- if (TARGET_SHA)
55- rust_add_target_info (" target_feature" , " sha" );
56- if (TARGET_AVX)
57- rust_add_target_info (" target_feature" , " avx" );
58- if (TARGET_AVX2)
59- rust_add_target_info (" target_feature" , " avx2" );
60- if (TARGET_AVX512F)
61- rust_add_target_info (" target_feature" , " avx512f" );
62- if (TARGET_AVX512CD)
63- rust_add_target_info (" target_feature" , " avx512cd" );
64- if (TARGET_AVX512DQ)
65- rust_add_target_info (" target_feature" , " avx512dq" );
66- if (TARGET_AVX512BW)
67- rust_add_target_info (" target_feature" , " avx512bw" );
68- if (TARGET_AVX512VL)
69- rust_add_target_info (" target_feature" , " avx512vl" );
70- if (TARGET_AVX512VBMI)
71- rust_add_target_info (" target_feature" , " avx512vbmi" );
72- if (TARGET_AVX512IFMA)
73- rust_add_target_info (" target_feature" , " avx512ifma" );
74- if (TARGET_AVX512VPOPCNTDQ)
75- rust_add_target_info (" target_feature" , " avx512vpopcntdq" );
76- if (TARGET_FMA)
77- rust_add_target_info (" target_feature" , " fma" );
78- if (TARGET_RTM)
79- rust_add_target_info (" target_feature" , " rtm" );
80- if (TARGET_SSE4A)
81- rust_add_target_info (" target_feature" , " sse4a" );
82- if (TARGET_BMI)
83- {
84- rust_add_target_info (" target_feature" , " bmi1" );
85- rust_add_target_info (" target_feature" , " bmi" );
86- }
87- if (TARGET_BMI2)
88- rust_add_target_info (" target_feature" , " bmi2" );
89- if (TARGET_LZCNT)
90- rust_add_target_info (" target_feature" , " lzcnt" );
91- if (TARGET_TBM)
92- rust_add_target_info (" target_feature" , " tbm" );
93- if (TARGET_POPCNT)
94- rust_add_target_info (" target_feature" , " popcnt" );
95- if (TARGET_RDRND)
96- {
97- rust_add_target_info (" target_feature" , " rdrand" );
98- rust_add_target_info (" target_feature" , " rdrnd" );
99- }
100- if (TARGET_F16C)
101- rust_add_target_info (" target_feature" , " f16c" );
102- if (TARGET_RDSEED)
103- rust_add_target_info (" target_feature" , " rdseed" );
104- if (TARGET_ADX)
105- rust_add_target_info (" target_feature" , " adx" );
106- if (TARGET_FXSR)
107- rust_add_target_info (" target_feature" , " fxsr" );
108- if (TARGET_XSAVE)
109- rust_add_target_info (" target_feature" , " xsave" );
110- if (TARGET_XSAVEOPT)
111- rust_add_target_info (" target_feature" , " xsaveopt" );
112- if (TARGET_XSAVEC)
113- rust_add_target_info (" target_feature" , " xsavec" );
114- if (TARGET_XSAVES)
115- rust_add_target_info (" target_feature" , " xsaves" );
116- if (TARGET_VPCLMULQDQ)
117- {
118- rust_add_target_info (" target_feature" , " pclmulqdq" );
119- rust_add_target_info (" target_feature" , " vpclmulqdq" );
120- }
121- if (TARGET_CMPXCHG16B)
122- rust_add_target_info (" target_feature" , " cmpxchg16b" );
123- if (TARGET_MOVBE)
124- rust_add_target_info (" target_feature" , " movbe" );
32+ #define ADD_TARGET_INFO rust_add_target_info
33+ #include " i386-rust-and-jit.inc"
34+ #undef ADD_TARGET_INFO
12535}
0 commit comments