@@ -487,20 +487,19 @@ fn to_gcc_opt_level(optlevel: Option<OptLevel>) -> OptimizationLevel {
487487
488488/// Returns the features that should be set in `cfg(target_feature)`.
489489fn target_config ( sess : & Session , target_info : & LockedTargetInfo ) -> TargetConfig {
490- let ( unstable_target_features, target_features) =
491- target_features:: cfg ( sess, /* FIXME: we ignore `-Ctarget-feature` */ "" , |feature| {
492- // TODO: we disable Neon for now since we don't support the LLVM intrinsics for it.
493- if feature == "neon" {
494- return false ;
495- }
496- target_info. cpu_supports ( feature)
497- /*
498- adx, aes, avx, avx2, avx512bf16, avx512bitalg, avx512bw, avx512cd, avx512dq, avx512er, avx512f, avx512fp16, avx512ifma,
499- avx512pf, avx512vbmi, avx512vbmi2, avx512vl, avx512vnni, avx512vp2intersect, avx512vpopcntdq,
500- bmi1, bmi2, cmpxchg16b, ermsb, f16c, fma, fxsr, gfni, lzcnt, movbe, pclmulqdq, popcnt, rdrand, rdseed, rtm,
501- sha, sse, sse2, sse3, sse4.1, sse4.2, sse4a, ssse3, tbm, vaes, vpclmulqdq, xsave, xsavec, xsaveopt, xsaves
502- */
503- } ) ;
490+ let ( unstable_target_features, target_features) = target_features:: cfg ( sess, |feature| {
491+ // TODO: we disable Neon for now since we don't support the LLVM intrinsics for it.
492+ if feature == "neon" {
493+ return false ;
494+ }
495+ target_info. cpu_supports ( feature)
496+ /*
497+ adx, aes, avx, avx2, avx512bf16, avx512bitalg, avx512bw, avx512cd, avx512dq, avx512er, avx512f, avx512fp16, avx512ifma,
498+ avx512pf, avx512vbmi, avx512vbmi2, avx512vl, avx512vnni, avx512vp2intersect, avx512vpopcntdq,
499+ bmi1, bmi2, cmpxchg16b, ermsb, f16c, fma, fxsr, gfni, lzcnt, movbe, pclmulqdq, popcnt, rdrand, rdseed, rtm,
500+ sha, sse, sse2, sse3, sse4.1, sse4.2, sse4a, ssse3, tbm, vaes, vpclmulqdq, xsave, xsavec, xsaveopt, xsaves
501+ */
502+ } ) ;
504503
505504 TargetConfig {
506505 target_features,
0 commit comments