@@ -1810,7 +1810,7 @@ vclsq_s32_(a)
1810
1810
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
1811
1811
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vcls))]
1812
1812
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(cls))]
1813
- pub unsafe fn vcls_u8(a: uint8x8_t) -> uint8x8_t {
1813
+ pub unsafe fn vcls_u8(a: uint8x8_t) -> int8x8_t {
1814
1814
transmute(vcls_s8(transmute(a)))
1815
1815
}
1816
1816
@@ -1820,7 +1820,7 @@ pub unsafe fn vcls_u8(a: uint8x8_t) -> uint8x8_t {
1820
1820
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
1821
1821
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vcls))]
1822
1822
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(cls))]
1823
- pub unsafe fn vclsq_u8(a: uint8x16_t) -> uint8x16_t {
1823
+ pub unsafe fn vclsq_u8(a: uint8x16_t) -> int8x16_t {
1824
1824
transmute(vclsq_s8(transmute(a)))
1825
1825
}
1826
1826
@@ -1830,7 +1830,7 @@ pub unsafe fn vclsq_u8(a: uint8x16_t) -> uint8x16_t {
1830
1830
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
1831
1831
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vcls))]
1832
1832
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(cls))]
1833
- pub unsafe fn vcls_u16(a: uint16x4_t) -> uint16x4_t {
1833
+ pub unsafe fn vcls_u16(a: uint16x4_t) -> int16x4_t {
1834
1834
transmute(vcls_s16(transmute(a)))
1835
1835
}
1836
1836
@@ -1840,7 +1840,7 @@ pub unsafe fn vcls_u16(a: uint16x4_t) -> uint16x4_t {
1840
1840
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
1841
1841
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vcls))]
1842
1842
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(cls))]
1843
- pub unsafe fn vclsq_u16(a: uint16x8_t) -> uint16x8_t {
1843
+ pub unsafe fn vclsq_u16(a: uint16x8_t) -> int16x8_t {
1844
1844
transmute(vclsq_s16(transmute(a)))
1845
1845
}
1846
1846
@@ -1850,7 +1850,7 @@ pub unsafe fn vclsq_u16(a: uint16x8_t) -> uint16x8_t {
1850
1850
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
1851
1851
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vcls))]
1852
1852
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(cls))]
1853
- pub unsafe fn vcls_u32(a: uint32x2_t) -> uint32x2_t {
1853
+ pub unsafe fn vcls_u32(a: uint32x2_t) -> int32x2_t {
1854
1854
transmute(vcls_s32(transmute(a)))
1855
1855
}
1856
1856
@@ -1860,7 +1860,7 @@ pub unsafe fn vcls_u32(a: uint32x2_t) -> uint32x2_t {
1860
1860
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
1861
1861
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vcls))]
1862
1862
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(cls))]
1863
- pub unsafe fn vclsq_u32(a: uint32x4_t) -> uint32x4_t {
1863
+ pub unsafe fn vclsq_u32(a: uint32x4_t) -> int32x4_t {
1864
1864
transmute(vclsq_s32(transmute(a)))
1865
1865
}
1866
1866
@@ -25706,48 +25706,48 @@ mod test {
25706
25706
#[simd_test(enable = "neon")]
25707
25707
unsafe fn test_vcls_u8() {
25708
25708
let a: u8x8 = u8x8::new(0, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
25709
- let e: u8x8 = u8x8 ::new(7, 7, 7, 7, 7, 7, 7, 7);
25710
- let r: u8x8 = transmute(vcls_u8(transmute(a)));
25709
+ let e: i8x8 = i8x8 ::new(7, 7, 7, 7, 7, 7, 7, 7);
25710
+ let r: i8x8 = transmute(vcls_u8(transmute(a)));
25711
25711
assert_eq!(r, e);
25712
25712
}
25713
25713
25714
25714
#[simd_test(enable = "neon")]
25715
25715
unsafe fn test_vclsq_u8() {
25716
25716
let a: u8x16 = u8x16::new(0, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF);
25717
- let e: u8x16 = u8x16 ::new(7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7);
25718
- let r: u8x16 = transmute(vclsq_u8(transmute(a)));
25717
+ let e: i8x16 = i8x16 ::new(7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7);
25718
+ let r: i8x16 = transmute(vclsq_u8(transmute(a)));
25719
25719
assert_eq!(r, e);
25720
25720
}
25721
25721
25722
25722
#[simd_test(enable = "neon")]
25723
25723
unsafe fn test_vcls_u16() {
25724
25724
let a: u16x4 = u16x4::new(0, 0xFF_FF, 0x00, 0x00);
25725
- let e: u16x4 = u16x4 ::new(15, 15, 15, 15);
25726
- let r: u16x4 = transmute(vcls_u16(transmute(a)));
25725
+ let e: i16x4 = i16x4 ::new(15, 15, 15, 15);
25726
+ let r: i16x4 = transmute(vcls_u16(transmute(a)));
25727
25727
assert_eq!(r, e);
25728
25728
}
25729
25729
25730
25730
#[simd_test(enable = "neon")]
25731
25731
unsafe fn test_vclsq_u16() {
25732
25732
let a: u16x8 = u16x8::new(0, 0xFF_FF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
25733
- let e: u16x8 = u16x8 ::new(15, 15, 15, 15, 15, 15, 15, 15);
25734
- let r: u16x8 = transmute(vclsq_u16(transmute(a)));
25733
+ let e: i16x8 = i16x8 ::new(15, 15, 15, 15, 15, 15, 15, 15);
25734
+ let r: i16x8 = transmute(vclsq_u16(transmute(a)));
25735
25735
assert_eq!(r, e);
25736
25736
}
25737
25737
25738
25738
#[simd_test(enable = "neon")]
25739
25739
unsafe fn test_vcls_u32() {
25740
25740
let a: u32x2 = u32x2::new(0, 0xFF_FF_FF_FF);
25741
- let e: u32x2 = u32x2 ::new(31, 31);
25742
- let r: u32x2 = transmute(vcls_u32(transmute(a)));
25741
+ let e: i32x2 = i32x2 ::new(31, 31);
25742
+ let r: i32x2 = transmute(vcls_u32(transmute(a)));
25743
25743
assert_eq!(r, e);
25744
25744
}
25745
25745
25746
25746
#[simd_test(enable = "neon")]
25747
25747
unsafe fn test_vclsq_u32() {
25748
25748
let a: u32x4 = u32x4::new(0, 0xFF_FF_FF_FF, 0x00, 0x00);
25749
- let e: u32x4 = u32x4 ::new(31, 31, 31, 31);
25750
- let r: u32x4 = transmute(vclsq_u32(transmute(a)));
25749
+ let e: i32x4 = i32x4 ::new(31, 31, 31, 31);
25750
+ let r: i32x4 = transmute(vclsq_u32(transmute(a)));
25751
25751
assert_eq!(r, e);
25752
25752
}
25753
25753
0 commit comments