Skip to content

Commit d4574d2

Browse files
committed
Fix last armv7 intriniscs, hopefully
1 parent f96b107 commit d4574d2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,7 @@ pub unsafe fn vsubq_f32(a: float32x4_t, b: float32x4_t) -> float32x4_t {
22812281
#[inline]
22822282
#[target_feature(enable = "neon")]
22832283
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
2284-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("uhsub.u8"))]
2284+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vhsub.u8"))]
22852285
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(uhsub))]
22862286
pub unsafe fn vhsub_u8(a: uint8x8_t, b: uint8x8_t) -> uint8x8_t {
22872287
#[allow(improper_ctypes)]
@@ -2297,7 +2297,7 @@ vhsub_u8_(a, b)
22972297
#[inline]
22982298
#[target_feature(enable = "neon")]
22992299
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
2300-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("uhsub.u8"))]
2300+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vhsub.u8"))]
23012301
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(uhsub))]
23022302
pub unsafe fn vhsubq_u8(a: uint8x16_t, b: uint8x16_t) -> uint8x16_t {
23032303
#[allow(improper_ctypes)]
@@ -2313,7 +2313,7 @@ vhsubq_u8_(a, b)
23132313
#[inline]
23142314
#[target_feature(enable = "neon")]
23152315
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
2316-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("uhsub.u16"))]
2316+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vhsub.u16"))]
23172317
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(uhsub))]
23182318
pub unsafe fn vhsub_u16(a: uint16x4_t, b: uint16x4_t) -> uint16x4_t {
23192319
#[allow(improper_ctypes)]
@@ -2329,7 +2329,7 @@ vhsub_u16_(a, b)
23292329
#[inline]
23302330
#[target_feature(enable = "neon")]
23312331
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
2332-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("uhsub.u16"))]
2332+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vhsub.u16"))]
23332333
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(uhsub))]
23342334
pub unsafe fn vhsubq_u16(a: uint16x8_t, b: uint16x8_t) -> uint16x8_t {
23352335
#[allow(improper_ctypes)]
@@ -2345,7 +2345,7 @@ vhsubq_u16_(a, b)
23452345
#[inline]
23462346
#[target_feature(enable = "neon")]
23472347
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
2348-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("uhsub.u32"))]
2348+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vhsub.u32"))]
23492349
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(uhsub))]
23502350
pub unsafe fn vhsub_u32(a: uint32x2_t, b: uint32x2_t) -> uint32x2_t {
23512351
#[allow(improper_ctypes)]
@@ -2361,7 +2361,7 @@ vhsub_u32_(a, b)
23612361
#[inline]
23622362
#[target_feature(enable = "neon")]
23632363
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
2364-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("uhsub.u32"))]
2364+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vhsub.u32"))]
23652365
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(uhsub))]
23662366
pub unsafe fn vhsubq_u32(a: uint32x4_t, b: uint32x4_t) -> uint32x4_t {
23672367
#[allow(improper_ctypes)]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ pub unsafe fn vgetq_lane_u16(v: uint16x8_t, imm5: i32) -> u16 {
12101210
#[target_feature(enable = "neon")]
12111211
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
12121212
#[rustc_args_required_const(1)]
1213-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vmov.u32", imm5 = 2))]
1213+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vmov.32", imm5 = 2))]
12141214
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov, imm5 = 2))]
12151215
pub unsafe fn vgetq_lane_u32(v: uint32x4_t, imm5: i32) -> u32 {
12161216
if (imm5) < 0 || (imm5) > 3 {
@@ -1225,7 +1225,7 @@ pub unsafe fn vgetq_lane_u32(v: uint32x4_t, imm5: i32) -> u32 {
12251225
#[target_feature(enable = "neon")]
12261226
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
12271227
#[rustc_args_required_const(1)]
1228-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("mov.u8", imm5 = 2))]
1228+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vmov.32", imm5 = 2))]
12291229
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(umov, imm5 = 2))]
12301230
pub unsafe fn vget_lane_u8(v: uint8x8_t, imm5: i32) -> u8 {
12311231
if (imm5) < 0 || (imm5) > 7 {

crates/stdarch-gen/neon.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ a = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
456456
b = 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2
457457
validate 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7
458458

459-
arm = uhsub.s
459+
arm = vhsub.s
460460
aarch64 = uhsub
461461
link-arm = vhsubu._EXT_
462462
link-aarch64 = uhsub._EXT_

0 commit comments

Comments
 (0)