diff options
| author | Taiki Endo <te316e89@gmail.com> | 2025-03-20 19:48:02 +0900 |
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2025-03-20 19:48:02 +0900 |
| commit | 8a6f96a4a08df2bbb73ffbb7afb9b94f137bd24b (patch) | |
| tree | 88940fb498f52608132696e2e70f03b228ea0cd1 /compiler/rustc_target/src | |
| parent | 55add8fce38ab100e161d2530a134f645ba78802 (diff) | |
| download | rust-8a6f96a4a08df2bbb73ffbb7afb9b94f137bd24b.tar.gz rust-8a6f96a4a08df2bbb73ffbb7afb9b94f137bd24b.zip | |
rustc_target: Use zvl*b target features in vector ABI check
Diffstat (limited to 'compiler/rustc_target/src')
| -rw-r--r-- | compiler/rustc_target/src/target_features.rs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/compiler/rustc_target/src/target_features.rs b/compiler/rustc_target/src/target_features.rs index e1865c624c4..0e6523f0880 100644 --- a/compiler/rustc_target/src/target_features.rs +++ b/compiler/rustc_target/src/target_features.rs @@ -740,8 +740,20 @@ const ARM_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] = &[(1 const POWERPC_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] = &[(128, "altivec")]; const WASM_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] = &[(128, "simd128")]; const S390X_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] = &[(128, "vector")]; -const RISCV_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] = - &[/*(64, "zvl64b"), */ (128, "v")]; +const RISCV_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] = &[ + (32, "zvl32b"), + (64, "zvl64b"), + (128, "zvl128b"), + (256, "zvl256b"), + (512, "zvl512b"), + (1024, "zvl1024b"), + (2048, "zvl2048b"), + (4096, "zvl4096b"), + (8192, "zvl8192b"), + (16384, "zvl16384b"), + (32768, "zvl32768b"), + (65536, "zvl65536b"), +]; // Always warn on SPARC, as the necessary target features cannot be enabled in Rust at the moment. const SPARC_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] = &[/*(64, "vis")*/]; |
