Skip to content

Commit 0645ac3

Browse files
committed
extract s390x vector and friends to their own rust feature
1 parent 642c19b commit 0645ac3

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
@@ -343,6 +343,7 @@ declare_features! (
343343
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
344344
(unstable, rtm_target_feature, "1.35.0", Some(44839)),
345345
(unstable, s390x_target_feature, "1.82.0", Some(44839)),
346+
(unstable, s390x_target_feature_vector, "CURRENT_RUSTC_VERSION", Some(145649)),
346347
(unstable, sparc_target_feature, "1.84.0", Some(132783)),
347348
(unstable, wasm_target_feature, "1.30.0", Some(44839)),
348349
(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
@@ -2000,6 +2000,7 @@ symbols! {
20002000
s,
20012001
s390x,
20022002
s390x_target_feature,
2003+
s390x_target_feature_vector,
20032004
safety,
20042005
sanitize,
20052006
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
@@ -844,20 +844,20 @@ const IBMZ_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
844844
("message-security-assist-extension8", Unstable(sym::s390x_target_feature), &["message-security-assist-extension3"]),
845845
("message-security-assist-extension9", Unstable(sym::s390x_target_feature), &["message-security-assist-extension3", "message-security-assist-extension4"]),
846846
("message-security-assist-extension12", Unstable(sym::s390x_target_feature), &[]),
847-
("miscellaneous-extensions-2", Unstable(sym::s390x_target_feature), &[]),
848-
("miscellaneous-extensions-3", Unstable(sym::s390x_target_feature), &[]),
849-
("miscellaneous-extensions-4", Unstable(sym::s390x_target_feature), &[]),
850-
("nnp-assist", Unstable(sym::s390x_target_feature), &["vector"]),
847+
("miscellaneous-extensions-2", Unstable(sym::s390x_target_feature_vector), &[]),
848+
("miscellaneous-extensions-3", Unstable(sym::s390x_target_feature_vector), &[]),
849+
("miscellaneous-extensions-4", Unstable(sym::s390x_target_feature_vector), &[]),
850+
("nnp-assist", Unstable(sym::s390x_target_feature_vector), &["vector"]),
851851
("soft-float", Forbidden { reason: "currently unsupported ABI-configuration feature" }, &[]),
852852
("transactional-execution", Unstable(sym::s390x_target_feature), &[]),
853-
("vector", Unstable(sym::s390x_target_feature), &[]),
854-
("vector-enhancements-1", Unstable(sym::s390x_target_feature), &["vector"]),
855-
("vector-enhancements-2", Unstable(sym::s390x_target_feature), &["vector-enhancements-1"]),
856-
("vector-enhancements-3", Unstable(sym::s390x_target_feature), &["vector-enhancements-2"]),
857-
("vector-packed-decimal", Unstable(sym::s390x_target_feature), &["vector"]),
858-
("vector-packed-decimal-enhancement", Unstable(sym::s390x_target_feature), &["vector-packed-decimal"]),
859-
("vector-packed-decimal-enhancement-2", Unstable(sym::s390x_target_feature), &["vector-packed-decimal-enhancement"]),
860-
("vector-packed-decimal-enhancement-3", Unstable(sym::s390x_target_feature), &["vector-packed-decimal-enhancement-2"]),
853+
("vector", Unstable(sym::s390x_target_feature_vector), &[]),
854+
("vector-enhancements-1", Unstable(sym::s390x_target_feature_vector), &["vector"]),
855+
("vector-enhancements-2", Unstable(sym::s390x_target_feature_vector), &["vector-enhancements-1"]),
856+
("vector-enhancements-3", Unstable(sym::s390x_target_feature_vector), &["vector-enhancements-2"]),
857+
("vector-packed-decimal", Unstable(sym::s390x_target_feature_vector), &["vector"]),
858+
("vector-packed-decimal-enhancement", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal"]),
859+
("vector-packed-decimal-enhancement-2", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal-enhancement"]),
860+
("vector-packed-decimal-enhancement-3", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal-enhancement-2"]),
861861
// tidy-alphabetical-end
862862
];
863863

library/core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
#![feature(riscv_target_feature)]
205205
#![feature(rtm_target_feature)]
206206
#![feature(s390x_target_feature)]
207+
#![feature(s390x_target_feature_vector)]
207208
#![feature(wasm_target_feature)]
208209
#![feature(x86_amx_intrinsics)]
209210
// 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
@@ -14,7 +14,7 @@
1414
//[z13_no_vector,z13_soft_float]~? WARN unstable feature specified for `-Ctarget-feature`
1515
//[z13_soft_float]~? WARN target feature `soft-float` cannot be enabled with `-Ctarget-feature`
1616

17-
#![feature(no_core, repr_simd, s390x_target_feature)]
17+
#![feature(no_core, repr_simd, s390x_target_feature_vector)]
1818
#![no_core]
1919
#![crate_type = "lib"]
2020
#![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)