Skip to content

Commit 48260eb

Browse files
committed
Fix some Arm instruction assertion tests
1 parent 7426ad5 commit 48260eb

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9487,7 +9487,7 @@ pub fn vdivq_f64(a: float64x2_t, b: float64x2_t) -> float64x2_t {
94879487
#[target_feature(enable = "neon,fp16")]
94889488
#[unstable(feature = "stdarch_neon_f16", issue = "136306")]
94899489
#[cfg(not(target_arch = "arm64ec"))]
9490-
#[cfg_attr(test, assert_instr(nop))]
9490+
#[cfg_attr(test, assert_instr(fdiv))]
94919491
pub fn vdivh_f16(a: f16, b: f16) -> f16 {
94929492
a / b
94939493
}
@@ -14829,7 +14829,7 @@ pub fn vmuld_lane_f64<const LANE: i32>(a: f64, b: float64x1_t) -> f64 {
1482914829
#[target_feature(enable = "neon,fp16")]
1483014830
#[unstable(feature = "stdarch_neon_f16", issue = "136306")]
1483114831
#[cfg(not(target_arch = "arm64ec"))]
14832-
#[cfg_attr(test, assert_instr(nop))]
14832+
#[cfg_attr(test, assert_instr(fmul))]
1483314833
pub fn vmulh_f16(a: f16, b: f16) -> f16 {
1483414834
a * b
1483514835
}
@@ -26719,7 +26719,7 @@ pub fn vsubq_f64(a: float64x2_t, b: float64x2_t) -> float64x2_t {
2671926719
#[inline]
2672026720
#[target_feature(enable = "neon")]
2672126721
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
26722-
#[cfg_attr(test, assert_instr(nop))]
26722+
#[cfg_attr(test, assert_instr(sub))]
2672326723
pub fn vsubd_s64(a: i64, b: i64) -> i64 {
2672426724
a.wrapping_sub(b)
2672526725
}
@@ -26728,7 +26728,7 @@ pub fn vsubd_s64(a: i64, b: i64) -> i64 {
2672826728
#[inline]
2672926729
#[target_feature(enable = "neon")]
2673026730
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
26731-
#[cfg_attr(test, assert_instr(nop))]
26731+
#[cfg_attr(test, assert_instr(sub))]
2673226732
pub fn vsubd_u64(a: u64, b: u64) -> u64 {
2673326733
a.wrapping_sub(b)
2673426734
}
@@ -26738,7 +26738,7 @@ pub fn vsubd_u64(a: u64, b: u64) -> u64 {
2673826738
#[target_feature(enable = "neon,fp16")]
2673926739
#[unstable(feature = "stdarch_neon_f16", issue = "136306")]
2674026740
#[cfg(not(target_arch = "arm64ec"))]
26741-
#[cfg_attr(test, assert_instr(nop))]
26741+
#[cfg_attr(test, assert_instr(fsub))]
2674226742
pub fn vsubh_f16(a: f16, b: f16) -> f16 {
2674326743
a - b
2674426744
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8310,7 +8310,7 @@ pub fn vcreate_p64(a: u64) -> poly64x1_t {
83108310
#[inline]
83118311
#[target_feature(enable = "neon")]
83128312
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
8313-
# [cfg_attr (all (test , target_arch = "arm") , assert_instr (vcvt . f16 . f32))]
8313+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vcvt))]
83148314
#[cfg_attr(
83158315
all(test, any(target_arch = "aarch64", target_arch = "arm64ec")),
83168316
assert_instr(fcvtn)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5669,7 +5669,7 @@ intrinsics:
56695669
- *neon-fp16
56705670
- *neon-unstable-f16
56715671
- *target-not-arm64ec
5672-
assert_instr: [nop]
5672+
assert_instr: [fdiv]
56735673
safety: safe
56745674
types:
56755675
- [f16, 'h']
@@ -5694,7 +5694,7 @@ intrinsics:
56945694
arguments: ["a: {type[1]}", "b: {type[1]}"]
56955695
return_type: "{type[1]}"
56965696
attr: [*neon-stable]
5697-
assert_instr: [nop]
5697+
assert_instr: [sub]
56985698
safety: safe
56995699
types:
57005700
- ['d_s64', 'i64']
@@ -5710,7 +5710,7 @@ intrinsics:
57105710
- *neon-fp16
57115711
- *neon-unstable-f16
57125712
- *target-not-arm64ec
5713-
assert_instr: [nop]
5713+
assert_instr: [fsub]
57145714
safety: safe
57155715
types:
57165716
- ['h_f16', 'f16']
@@ -11271,7 +11271,7 @@ intrinsics:
1127111271
- *neon-fp16
1127211272
- *neon-unstable-f16
1127311273
- *target-not-arm64ec
11274-
assert_instr: [nop]
11274+
assert_instr: [fmul]
1127511275
safety: safe
1127611276
types:
1127711277
- [f16, 'h']

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10732,7 +10732,7 @@ intrinsics:
1073210732
return_type: "{neon_type[1]}"
1073310733
attr:
1073410734
- *neon-v7
10735-
- FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [vcvt.f16.f32]]}]]
10735+
- FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [vcvt]]}]]
1073610736
- FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [fcvtn]]}]]
1073710737
- *arm-fp16
1073810738
- *neon-unstable-f16

0 commit comments

Comments
 (0)