Skip to content

Commit 764bdc3

Browse files
committed
extract s390x vector and friends to their own rust feature
1 parent 8a1b399 commit 764bdc3

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
@@ -1956,6 +1956,7 @@ symbols! {
19561956
rwpi,
19571957
s,
19581958
s390x_target_feature,
1959+
s390x_target_feature_vector,
19591960
safety,
19601961
sanitize,
19611962
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
@@ -845,20 +845,20 @@ const IBMZ_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
845845
("message-security-assist-extension8", Unstable(sym::s390x_target_feature), &["message-security-assist-extension3"]),
846846
("message-security-assist-extension9", Unstable(sym::s390x_target_feature), &["message-security-assist-extension3", "message-security-assist-extension4"]),
847847
("message-security-assist-extension12", Unstable(sym::s390x_target_feature), &[]),
848-
("miscellaneous-extensions-2", Unstable(sym::s390x_target_feature), &[]),
849-
("miscellaneous-extensions-3", Unstable(sym::s390x_target_feature), &[]),
850-
("miscellaneous-extensions-4", Unstable(sym::s390x_target_feature), &[]),
851-
("nnp-assist", Unstable(sym::s390x_target_feature), &["vector"]),
848+
("miscellaneous-extensions-2", Unstable(sym::s390x_target_feature_vector), &[]),
849+
("miscellaneous-extensions-3", Unstable(sym::s390x_target_feature_vector), &[]),
850+
("miscellaneous-extensions-4", Unstable(sym::s390x_target_feature_vector), &[]),
851+
("nnp-assist", Unstable(sym::s390x_target_feature_vector), &["vector"]),
852852
("soft-float", Forbidden { reason: "currently unsupported ABI-configuration feature" }, &[]),
853853
("transactional-execution", Unstable(sym::s390x_target_feature), &[]),
854-
("vector", Unstable(sym::s390x_target_feature), &[]),
855-
("vector-enhancements-1", Unstable(sym::s390x_target_feature), &["vector"]),
856-
("vector-enhancements-2", Unstable(sym::s390x_target_feature), &["vector-enhancements-1"]),
857-
("vector-enhancements-3", Unstable(sym::s390x_target_feature), &["vector-enhancements-2"]),
858-
("vector-packed-decimal", Unstable(sym::s390x_target_feature), &["vector"]),
859-
("vector-packed-decimal-enhancement", Unstable(sym::s390x_target_feature), &["vector-packed-decimal"]),
860-
("vector-packed-decimal-enhancement-2", Unstable(sym::s390x_target_feature), &["vector-packed-decimal-enhancement"]),
861-
("vector-packed-decimal-enhancement-3", Unstable(sym::s390x_target_feature), &["vector-packed-decimal-enhancement-2"]),
854+
("vector", Unstable(sym::s390x_target_feature_vector), &[]),
855+
("vector-enhancements-1", Unstable(sym::s390x_target_feature_vector), &["vector"]),
856+
("vector-enhancements-2", Unstable(sym::s390x_target_feature_vector), &["vector-enhancements-1"]),
857+
("vector-enhancements-3", Unstable(sym::s390x_target_feature_vector), &["vector-enhancements-2"]),
858+
("vector-packed-decimal", Unstable(sym::s390x_target_feature_vector), &["vector"]),
859+
("vector-packed-decimal-enhancement", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal"]),
860+
("vector-packed-decimal-enhancement-2", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal-enhancement"]),
861+
("vector-packed-decimal-enhancement-3", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal-enhancement-2"]),
862862
// tidy-alphabetical-end
863863
];
864864

library/core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
#![feature(riscv_target_feature)]
203203
#![feature(rtm_target_feature)]
204204
#![feature(s390x_target_feature)]
205+
#![feature(s390x_target_feature_vector)]
205206
#![feature(wasm_target_feature)]
206207
#![feature(x86_amx_intrinsics)]
207208
// 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
@@ -12,7 +12,7 @@
1212
//@[z13_no_vector] compile-flags: --target s390x-unknown-linux-gnu -C target-cpu=z13 -C target-feature=-vector --cfg no_vector
1313
//@[z13_no_vector] needs-llvm-components: systemz
1414

15-
#![feature(no_core, lang_items, repr_simd, s390x_target_feature)]
15+
#![feature(no_core, lang_items, repr_simd, s390x_target_feature_vector)]
1616
#![no_core]
1717
#![crate_type = "lib"]
1818
#![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, intrinsics, repr_simd)]
9+
#![feature(s390x_target_feature_vector, simd_ffi, 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
@@ -10,7 +10,7 @@
1010
//@[z13_soft_float] needs-llvm-components: systemz
1111
//[z13_soft_float]~? WARN must be disabled to ensure that the ABI of the current target can be implemented correctly
1212

13-
#![feature(no_core, repr_simd, s390x_target_feature)]
13+
#![feature(no_core, repr_simd, s390x_target_feature_vector)]
1414
#![no_core]
1515
#![crate_type = "lib"]
1616
#![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)