Skip to content

Commit efb203c

Browse files
committed
rustc_target: Use zvl*b target features in vector ABI check
1 parent 3f0f641 commit efb203c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

compiler/rustc_target/src/target_features.rs

+14-1
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,20 @@ const POWERPC_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] =
741741
const WASM_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] = &[(128, "simd128")];
742742
const S390X_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] = &[(128, "vector")];
743743
const RISCV_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] =
744-
&[/*(64, "zvl64b"), */ (128, "v")];
744+
&[
745+
(32, "zvl32b"),
746+
(64, "zvl64b"),
747+
(128, "zvl128b"),
748+
(256, "zvl256b"),
749+
(512, "zvl512b"),
750+
(1024, "zvl1024b"),
751+
(2048, "zvl2048b"),
752+
(4096, "zvl4096b"),
753+
(8192, "zvl8192b"),
754+
(16384, "zvl16384b"),
755+
(32768, "zvl32768b"),
756+
(65536, "zvl65536b"),
757+
];
745758
// Always warn on SPARC, as the necessary target features cannot be enabled in Rust at the moment.
746759
const SPARC_FEATURES_FOR_CORRECT_VECTOR_ABI: &'static [(u64, &'static str)] = &[/*(64, "vis")*/];
747760

0 commit comments

Comments
 (0)