Skip to content

Commit daa1081

Browse files
committed
fixup! Move vector combine intrisics to arm/neon.rs
1 parent 0c663d3 commit daa1081

File tree

1 file changed

+24
-12
lines changed
  • crates/core_arch/src/arm_shared/neon

1 file changed

+24
-12
lines changed

crates/core_arch/src/arm_shared/neon/mod.rs

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6920,7 +6920,8 @@ pub unsafe fn vusmmlaq_s32(a: int32x4_t, b: uint8x16_t, c: int8x16_t) -> int32x4
69206920
#[inline]
69216921
#[target_feature(enable = "neon")]
69226922
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
6923-
#[cfg_attr(test, assert_instr(mov))]
6923+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
6924+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
69246925
pub unsafe fn vcombine_f16 ( low: float16x4_t, high: float16x4_t) -> float16x8_t {
69256926
simd_shuffle8!(low, high, [0, 1, 2, 3, 4, 5, 6, 7])
69266927
}
@@ -6930,7 +6931,8 @@ pub unsafe fn vcombine_f16 ( low: float16x4_t, high: float16x4_t) -> float16x8_
69306931
#[inline]
69316932
#[target_feature(enable = "neon")]
69326933
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
6933-
#[cfg_attr(test, assert_instr(mov))]
6934+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
6935+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
69346936
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
69356937
pub unsafe fn vcombine_f32(low: float32x2_t, high: float32x2_t) -> float32x4_t {
69366938
simd_shuffle4!(low, high, [0, 1, 2, 3])
@@ -6940,7 +6942,8 @@ pub unsafe fn vcombine_f32(low: float32x2_t, high: float32x2_t) -> float32x4_t {
69406942
#[inline]
69416943
#[target_feature(enable = "neon")]
69426944
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
6943-
#[cfg_attr(test, assert_instr(mov))]
6945+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
6946+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
69446947
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
69456948
pub unsafe fn vcombine_p8(low: poly8x8_t, high: poly8x8_t) -> poly8x16_t {
69466949
simd_shuffle16!(
@@ -6964,7 +6967,8 @@ pub unsafe fn vcombine_p16(low: poly16x4_t, high: poly16x4_t) -> poly16x8_t {
69646967
#[inline]
69656968
#[target_feature(enable = "neon")]
69666969
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
6967-
#[cfg_attr(test, assert_instr(mov))]
6970+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
6971+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
69686972
#[cfg_attr(
69696973
target_arch = "aarch64",
69706974
stable(feature = "neon_intrinsics", since = "1.59.0")
@@ -6981,7 +6985,8 @@ pub unsafe fn vcombine_s8(low: int8x8_t, high: int8x8_t) -> int8x16_t {
69816985
#[inline]
69826986
#[target_feature(enable = "neon")]
69836987
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
6984-
#[cfg_attr(test, assert_instr(mov))]
6988+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
6989+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
69856990
#[cfg_attr(
69866991
target_arch = "aarch64",
69876992
stable(feature = "neon_intrinsics", since = "1.59.0")
@@ -6994,7 +6999,8 @@ pub unsafe fn vcombine_s16(low: int16x4_t, high: int16x4_t) -> int16x8_t {
69946999
#[inline]
69957000
#[target_feature(enable = "neon")]
69967001
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
6997-
#[cfg_attr(test, assert_instr(mov))]
7002+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
7003+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
69987004
#[cfg_attr(
69997005
target_arch = "aarch64",
70007006
stable(feature = "neon_intrinsics", since = "1.59.0")
@@ -7007,7 +7013,8 @@ pub unsafe fn vcombine_s32(low: int32x2_t, high: int32x2_t) -> int32x4_t {
70077013
#[inline]
70087014
#[target_feature(enable = "neon")]
70097015
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
7010-
#[cfg_attr(test, assert_instr(mov))]
7016+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
7017+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
70117018
#[cfg_attr(
70127019
target_arch = "aarch64",
70137020
stable(feature = "neon_intrinsics", since = "1.59.0")
@@ -7020,7 +7027,8 @@ pub unsafe fn vcombine_s64(low: int64x1_t, high: int64x1_t) -> int64x2_t {
70207027
#[inline]
70217028
#[target_feature(enable = "neon")]
70227029
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
7023-
#[cfg_attr(test, assert_instr(mov))]
7030+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
7031+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
70247032
#[cfg_attr(
70257033
target_arch = "aarch64",
70267034
stable(feature = "neon_intrinsics", since = "1.59.0")
@@ -7037,7 +7045,8 @@ pub unsafe fn vcombine_u8(low: uint8x8_t, high: uint8x8_t) -> uint8x16_t {
70377045
#[inline]
70387046
#[target_feature(enable = "neon")]
70397047
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
7040-
#[cfg_attr(test, assert_instr(mov))]
7048+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
7049+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
70417050
#[cfg_attr(
70427051
target_arch = "aarch64",
70437052
stable(feature = "neon_intrinsics", since = "1.59.0")
@@ -7050,7 +7059,8 @@ pub unsafe fn vcombine_u16(low: uint16x4_t, high: uint16x4_t) -> uint16x8_t {
70507059
#[inline]
70517060
#[target_feature(enable = "neon")]
70527061
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
7053-
#[cfg_attr(test, assert_instr(mov))]
7062+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
7063+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
70547064
#[cfg_attr(
70557065
target_arch = "aarch64",
70567066
stable(feature = "neon_intrinsics", since = "1.59.0")
@@ -7063,7 +7073,8 @@ pub unsafe fn vcombine_u32(low: uint32x2_t, high: uint32x2_t) -> uint32x4_t {
70637073
#[inline]
70647074
#[target_feature(enable = "neon")]
70657075
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
7066-
#[cfg_attr(test, assert_instr(mov))]
7076+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
7077+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
70677078
#[cfg_attr(
70687079
target_arch = "aarch64",
70697080
stable(feature = "neon_intrinsics", since = "1.59.0")
@@ -7076,7 +7087,8 @@ pub unsafe fn vcombine_u64(low: uint64x1_t, high: uint64x1_t) -> uint64x2_t {
70767087
#[inline]
70777088
#[target_feature(enable = "neon")]
70787089
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
7079-
#[cfg_attr(test, assert_instr(mov))]
7090+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
7091+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov))]
70807092
#[cfg_attr(
70817093
target_arch = "aarch64",
70827094
stable(feature = "neon_intrinsics", since = "1.59.0")

0 commit comments

Comments
 (0)