Skip to content

Commit bd0b8f6

Browse files
committed
extract s390x vector and friends to their own rust feature
1 parent 22a86f8 commit bd0b8f6

File tree

11 files changed

+22
-18
lines changed

11 files changed

+22
-18
lines changed

compiler/rustc_feature/src/unstable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ declare_features! (
333333
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
334334
(unstable, rtm_target_feature, "1.35.0", Some(44839)),
335335
(unstable, s390x_target_feature, "1.82.0", Some(44839)),
336+
(unstable, s390x_target_feature_vector, "CURRENT_RUSTC_VERSION", Some(145649)),
336337
(unstable, sparc_target_feature, "1.84.0", Some(132783)),
337338
(unstable, wasm_target_feature, "1.30.0", Some(44839)),
338339
(unstable, x87_target_feature, "1.85.0", Some(44839)),

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,6 +1942,7 @@ symbols! {
19421942
rwpi,
19431943
s,
19441944
s390x_target_feature,
1945+
s390x_target_feature_vector,
19451946
safety,
19461947
sanitize,
19471948
sanitizer_cfi_generalize_pointers,

compiler/rustc_target/src/target_features.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -802,19 +802,19 @@ const IBMZ_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
802802
("message-security-assist-extension8", Unstable(sym::s390x_target_feature), &["message-security-assist-extension3"]),
803803
("message-security-assist-extension9", Unstable(sym::s390x_target_feature), &["message-security-assist-extension3", "message-security-assist-extension4"]),
804804
("message-security-assist-extension12", Unstable(sym::s390x_target_feature), &[]),
805-
("miscellaneous-extensions-2", Unstable(sym::s390x_target_feature), &[]),
806-
("miscellaneous-extensions-3", Unstable(sym::s390x_target_feature), &[]),
807-
("miscellaneous-extensions-4", Unstable(sym::s390x_target_feature), &[]),
808-
("nnp-assist", Unstable(sym::s390x_target_feature), &["vector"]),
805+
("miscellaneous-extensions-2", Unstable(sym::s390x_target_feature_vector), &[]),
806+
("miscellaneous-extensions-3", Unstable(sym::s390x_target_feature_vector), &[]),
807+
("miscellaneous-extensions-4", Unstable(sym::s390x_target_feature_vector), &[]),
808+
("nnp-assist", Unstable(sym::s390x_target_feature_vector), &["vector"]),
809809
("transactional-execution", Unstable(sym::s390x_target_feature), &[]),
810-
("vector", Unstable(sym::s390x_target_feature), &[]),
811-
("vector-enhancements-1", Unstable(sym::s390x_target_feature), &["vector"]),
812-
("vector-enhancements-2", Unstable(sym::s390x_target_feature), &["vector-enhancements-1"]),
813-
("vector-enhancements-3", Unstable(sym::s390x_target_feature), &["vector-enhancements-2"]),
814-
("vector-packed-decimal", Unstable(sym::s390x_target_feature), &["vector"]),
815-
("vector-packed-decimal-enhancement", Unstable(sym::s390x_target_feature), &["vector-packed-decimal"]),
816-
("vector-packed-decimal-enhancement-2", Unstable(sym::s390x_target_feature), &["vector-packed-decimal-enhancement"]),
817-
("vector-packed-decimal-enhancement-3", Unstable(sym::s390x_target_feature), &["vector-packed-decimal-enhancement-2"]),
810+
("vector", Unstable(sym::s390x_target_feature_vector), &[]),
811+
("vector-enhancements-1", Unstable(sym::s390x_target_feature_vector), &["vector"]),
812+
("vector-enhancements-2", Unstable(sym::s390x_target_feature_vector), &["vector-enhancements-1"]),
813+
("vector-enhancements-3", Unstable(sym::s390x_target_feature_vector), &["vector-enhancements-2"]),
814+
("vector-packed-decimal", Unstable(sym::s390x_target_feature_vector), &["vector"]),
815+
("vector-packed-decimal-enhancement", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal"]),
816+
("vector-packed-decimal-enhancement-2", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal-enhancement"]),
817+
("vector-packed-decimal-enhancement-3", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal-enhancement-2"]),
818818
// tidy-alphabetical-end
819819
];
820820

library/core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
#![feature(riscv_target_feature)]
201201
#![feature(rtm_target_feature)]
202202
#![feature(s390x_target_feature)]
203+
#![feature(s390x_target_feature_vector)]
203204
#![feature(wasm_target_feature)]
204205
#![feature(x86_amx_intrinsics)]
205206
// tidy-alphabetical-end

library/stdarch/crates/core_arch/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
arm_target_feature,
2323
mips_target_feature,
2424
powerpc_target_feature,
25-
s390x_target_feature,
25+
s390x_target_feature_vector,
2626
loongarch_target_feature,
2727
wasm_target_feature,
2828
abi_unadjusted,

tests/assembly-llvm/s390x-vector-abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//@[z13_no_vector] compile-flags: --target s390x-unknown-linux-gnu -C target-cpu=z13 -C target-feature=-vector --cfg no_vector
1212
//@[z13_no_vector] needs-llvm-components: systemz
1313

14-
#![feature(no_core, lang_items, repr_simd, s390x_target_feature)]
14+
#![feature(no_core, lang_items, repr_simd, s390x_target_feature_vector)]
1515
#![no_core]
1616
#![crate_type = "lib"]
1717
#![allow(non_camel_case_types)]

tests/codegen-llvm/s390x-simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#![crate_type = "rlib"]
88
#![feature(no_core, asm_experimental_arch)]
9-
#![feature(s390x_target_feature, simd_ffi, link_llvm_intrinsics, repr_simd)]
9+
#![feature(s390x_target_feature_vector, simd_ffi, link_llvm_intrinsics, repr_simd)]
1010
#![no_core]
1111

1212
extern crate minicore;

tests/codegen-llvm/simd/extract-insert-dyn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
repr_simd,
66
arm_target_feature,
77
mips_target_feature,
8-
s390x_target_feature,
8+
s390x_target_feature_vector,
99
riscv_target_feature
1010
)]
1111
#![no_std]

tests/ui/abi/simd-abi-checks-s390x.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//@[z13_soft_float] compile-flags: --target s390x-unknown-linux-gnu -C target-cpu=z13 -C target-feature=-vector,+soft-float
1010
//@[z13_soft_float] needs-llvm-components: systemz
1111

12-
#![feature(no_core, repr_simd, s390x_target_feature)]
12+
#![feature(no_core, repr_simd, s390x_target_feature_vector)]
1313
#![no_core]
1414
#![crate_type = "lib"]
1515
#![allow(non_camel_case_types, improper_ctypes_definitions)]

tests/ui/target-feature/gate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// gate-test-lahfsahf_target_feature
1818
// gate-test-prfchw_target_feature
1919
// gate-test-s390x_target_feature
20+
// gate-test-s390x_target_feature_vector
2021
// gate-test-sparc_target_feature
2122
// gate-test-x87_target_feature
2223
// gate-test-m68k_target_feature

0 commit comments

Comments
 (0)