Skip to content

Commit b2437fe

Browse files
Rollup merge of rust-lang#154950 - davidtwco:scalable-no-cfg, r=RalfJung
library: no `cfg(target_arch)` on scalable intrinsics These intrinsics don't technically need to be limited to a specific architecture, they'll probably only make sense to use on AArch64, but this just makes it harder to use them in stdarch where it is appropriate (such as on `arm64ec`): requiring a rustc patch to land and be on nightly before stdarch work can proceed. So let's just not `cfg` them at all, they're perma-unstable anyway. Fixes CI failure in rust-lang/stdarch#2071
2 parents e87b91b + 86f9e83 commit b2437fe

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

library/core/src/intrinsics/simd/scalable.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
/// * Not be `NaN`
2020
/// * Not be infinite
2121
/// * Be representable in the return type, after truncating off its fractional part
22-
#[cfg(target_arch = "aarch64")]
2322
#[rustc_intrinsic]
2423
#[rustc_nounwind]
2524
pub unsafe fn sve_cast<T, U>(x: T) -> U;
@@ -31,7 +30,6 @@ pub unsafe fn sve_cast<T, U>(x: T) -> U;
3130
/// type `SVec`.
3231
///
3332
/// Corresponds to Clang's `__builtin_sve_svcreate2*` builtins.
34-
#[cfg(target_arch = "aarch64")]
3533
#[rustc_nounwind]
3634
#[rustc_intrinsic]
3735
pub unsafe fn sve_tuple_create2<SVec, SVecTup>(x0: SVec, x1: SVec) -> SVecTup;
@@ -43,7 +41,6 @@ pub unsafe fn sve_tuple_create2<SVec, SVecTup>(x0: SVec, x1: SVec) -> SVecTup;
4341
/// type `SVec`.
4442
///
4543
/// Corresponds to Clang's `__builtin_sve_svcreate3*` builtins.
46-
#[cfg(target_arch = "aarch64")]
4744
#[rustc_intrinsic]
4845
#[rustc_nounwind]
4946
pub unsafe fn sve_tuple_create3<SVec, SVecTup>(x0: SVec, x1: SVec, x2: SVec) -> SVecTup;
@@ -55,7 +52,6 @@ pub unsafe fn sve_tuple_create3<SVec, SVecTup>(x0: SVec, x1: SVec, x2: SVec) ->
5552
/// type `SVec`.
5653
///
5754
/// Corresponds to Clang's `__builtin_sve_svcreate4*` builtins.
58-
#[cfg(target_arch = "aarch64")]
5955
#[rustc_intrinsic]
6056
#[rustc_nounwind]
6157
pub unsafe fn sve_tuple_create4<SVec, SVecTup>(x0: SVec, x1: SVec, x2: SVec, x3: SVec) -> SVecTup;
@@ -71,7 +67,6 @@ pub unsafe fn sve_tuple_create4<SVec, SVecTup>(x0: SVec, x1: SVec, x2: SVec, x3:
7167
/// # Safety
7268
///
7369
/// `IDX` must be in-bounds of the tuple.
74-
#[cfg(target_arch = "aarch64")]
7570
#[rustc_intrinsic]
7671
#[rustc_nounwind]
7772
pub unsafe fn sve_tuple_get<SVecTup, SVec, const IDX: i32>(tuple: SVecTup) -> SVec;
@@ -87,7 +82,6 @@ pub unsafe fn sve_tuple_get<SVecTup, SVec, const IDX: i32>(tuple: SVecTup) -> SV
8782
/// # Safety
8883
///
8984
/// `IDX` must be in-bounds of the tuple.
90-
#[cfg(target_arch = "aarch64")]
9185
#[rustc_intrinsic]
9286
#[rustc_nounwind]
9387
pub unsafe fn sve_tuple_set<SVecTup, SVec, const IDX: i32>(tuple: SVecTup, x: SVec) -> SVecTup;

0 commit comments

Comments
 (0)