Skip to content

Commit 0e3fe2e

Browse files
committed
Add tracking issue for ARM CRC32 intrinsics
1 parent 8ec0726 commit 0e3fe2e

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

crates/core_arch/src/aarch64/crc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use stdarch_test::assert_instr;
1515
#[inline]
1616
#[target_feature(enable = "crc")]
1717
#[cfg_attr(test, assert_instr(crc32x))]
18+
#[unstable(feature = "stdarch_arm_crc32", issue = "117215")]
1819
pub unsafe fn __crc32d(crc: u32, data: u64) -> u32 {
1920
crc32x_(crc, data)
2021
}
@@ -25,6 +26,7 @@ pub unsafe fn __crc32d(crc: u32, data: u64) -> u32 {
2526
#[inline]
2627
#[target_feature(enable = "crc")]
2728
#[cfg_attr(test, assert_instr(crc32cx))]
29+
#[unstable(feature = "stdarch_arm_crc32", issue = "117215")]
2830
pub unsafe fn __crc32cd(crc: u32, data: u64) -> u32 {
2931
crc32cx_(crc, data)
3032
}

crates/core_arch/src/aarch64/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mod tme;
1717
pub use self::tme::*;
1818

1919
mod crc;
20+
#[unstable(feature = "stdarch_arm_crc32", issue = "117215")]
2021
pub use self::crc::*;
2122

2223
mod prefetch;

crates/core_arch/src/arm_shared/crc.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use stdarch_test::assert_instr;
3030
#[target_feature(enable = "crc")]
3131
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
3232
#[cfg_attr(test, assert_instr(crc32b))]
33+
#[unstable(feature = "stdarch_arm_crc32", issue = "117215")]
3334
pub unsafe fn __crc32b(crc: u32, data: u8) -> u32 {
3435
crc32b_(crc, data as u32)
3536
}
@@ -41,6 +42,7 @@ pub unsafe fn __crc32b(crc: u32, data: u8) -> u32 {
4142
#[target_feature(enable = "crc")]
4243
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
4344
#[cfg_attr(test, assert_instr(crc32h))]
45+
#[unstable(feature = "stdarch_arm_crc32", issue = "117215")]
4446
pub unsafe fn __crc32h(crc: u32, data: u16) -> u32 {
4547
crc32h_(crc, data as u32)
4648
}
@@ -52,6 +54,7 @@ pub unsafe fn __crc32h(crc: u32, data: u16) -> u32 {
5254
#[target_feature(enable = "crc")]
5355
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
5456
#[cfg_attr(test, assert_instr(crc32w))]
57+
#[unstable(feature = "stdarch_arm_crc32", issue = "117215")]
5558
pub unsafe fn __crc32w(crc: u32, data: u32) -> u32 {
5659
crc32w_(crc, data)
5760
}
@@ -63,6 +66,7 @@ pub unsafe fn __crc32w(crc: u32, data: u32) -> u32 {
6366
#[target_feature(enable = "crc")]
6467
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
6568
#[cfg_attr(test, assert_instr(crc32cb))]
69+
#[unstable(feature = "stdarch_arm_crc32", issue = "117215")]
6670
pub unsafe fn __crc32cb(crc: u32, data: u8) -> u32 {
6771
crc32cb_(crc, data as u32)
6872
}
@@ -74,6 +78,7 @@ pub unsafe fn __crc32cb(crc: u32, data: u8) -> u32 {
7478
#[target_feature(enable = "crc")]
7579
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
7680
#[cfg_attr(test, assert_instr(crc32ch))]
81+
#[unstable(feature = "stdarch_arm_crc32", issue = "117215")]
7782
pub unsafe fn __crc32ch(crc: u32, data: u16) -> u32 {
7883
crc32ch_(crc, data as u32)
7984
}
@@ -85,6 +90,7 @@ pub unsafe fn __crc32ch(crc: u32, data: u16) -> u32 {
8590
#[target_feature(enable = "crc")]
8691
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
8792
#[cfg_attr(test, assert_instr(crc32cw))]
93+
#[unstable(feature = "stdarch_arm_crc32", issue = "117215")]
8894
pub unsafe fn __crc32cw(crc: u32, data: u32) -> u32 {
8995
crc32cw_(crc, data)
9096
}

crates/core_arch/src/arm_shared/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ pub use self::barrier::*;
5959
mod hints;
6060
pub use self::hints::*;
6161

62-
#[cfg(any(target_arch = "aarch64", target_feature = "v7", doc))]
6362
mod crc;
64-
#[cfg(any(target_arch = "aarch64", target_feature = "v7", doc))]
63+
#[unstable(feature = "stdarch_arm_crc32", issue = "117215")]
6564
pub use crc::*;
6665

6766
// NEON intrinsics are currently broken on big-endian, so don't expose them. (#1484)

0 commit comments

Comments
 (0)