Browse Source

cranelift: Add `znver4` arch preset (#8502)

pull/8505/head
Elias Kauppi 6 months ago
committed by GitHub
parent
commit
9ce1a5dcab
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 14
      cranelift/codegen/meta/src/isa/x86.rs

14
cranelift/codegen/meta/src/isa/x86.rs

@ -373,11 +373,23 @@ pub(crate) fn define() -> TargetIsa {
"Zen (second generation) microarchitecture.",
preset!(znver1),
);
settings.add_preset(
let znver3 = settings.add_preset(
"znver3",
"Zen (third generation) microarchitecture.",
preset!(znver2),
);
settings.add_preset(
"znver4",
"Zen (fourth generation) microarchitecture.",
preset!(
znver3
&& has_avx512bitalg
&& has_avx512dq
&& has_avx512f
&& has_avx512vbmi
&& has_avx512vl
),
);
// Generic

Loading…
Cancel
Save