Skip to content

Commit 0c27594

Browse files
authored
Merge pull request #1939 from folkertdev/crc-remove-not-arm
crc32: remove `#[cfg(not(target_arch = "arm"))]` from aarch64 crc functions
2 parents 5adf051 + 15bf1ac commit 0c27594

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

crates/core_arch/src/aarch64/neon/generated.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use super::*;
1616
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/__crc32cd)"]
1717
#[inline]
1818
#[target_feature(enable = "crc")]
19-
#[cfg(not(target_arch = "arm"))]
2019
#[cfg_attr(test, assert_instr(crc32cx))]
2120
#[stable(feature = "stdarch_aarch64_crc32", since = "1.80.0")]
2221
pub fn __crc32cd(crc: u32, data: u64) -> u32 {
@@ -33,7 +32,6 @@ pub fn __crc32cd(crc: u32, data: u64) -> u32 {
3332
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/__crc32d)"]
3433
#[inline]
3534
#[target_feature(enable = "crc")]
36-
#[cfg(not(target_arch = "arm"))]
3735
#[cfg_attr(test, assert_instr(crc32x))]
3836
#[stable(feature = "stdarch_aarch64_crc32", since = "1.80.0")]
3937
pub fn __crc32d(crc: u32, data: u64) -> u32 {

crates/stdarch-gen-arm/spec/neon/aarch64.spec.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ auto_llvm_sign_conversion: false
1313
neon-stable: &neon-stable
1414
FnCall: [stable, ['feature = "neon_intrinsics"', 'since = "1.59.0"']]
1515

16-
# #[cfg(not(target_arch = "arm"))]
17-
target-not-arm: &target-not-arm
18-
FnCall: [cfg, [{ FnCall: [not, ['target_arch = "arm"']]}]]
19-
2016
# #[cfg(not(target_arch = "arm64ec"))]
2117
target-not-arm64ec: &target-not-arm64ec
2218
FnCall: [cfg, [{ FnCall: [not, ['target_arch = "arm64ec"']]}]]
@@ -13080,7 +13076,6 @@ intrinsics:
1308013076
return_type: "{type[0]}"
1308113077
attr:
1308213078
- FnCall: [target_feature, ['enable = "crc"']]
13083-
- *target-not-arm
1308413079
- FnCall: [cfg_attr, [test, { FnCall: [assert_instr, ["crc32x"]] }]]
1308513080
- *aarch64-crc-stable
1308613081
safety: safe
@@ -13102,7 +13097,6 @@ intrinsics:
1310213097
return_type: "{type[0]}"
1310313098
attr:
1310413099
- FnCall: [target_feature, ['enable = "crc"']]
13105-
- *target-not-arm
1310613100
- FnCall: [cfg_attr, [test, { FnCall: [assert_instr, ["crc32cx"]] }]]
1310713101
- *aarch64-crc-stable
1310813102
safety: safe

0 commit comments

Comments
 (0)