Skip to content

Commit 5a27ac6

Browse files
adamgemmellAmanieu
authored andcommitted
Mark Neon f16 vectors as unstable
1 parent b23ee82 commit 5a27ac6

File tree

1 file changed

+9
-4
lines changed
  • crates/core_arch/src/arm_shared/neon

1 file changed

+9
-4
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ types! {
6262
pub struct int16x4_t(4 x pub(crate) i16);
6363
/// Arm-specific 64-bit wide vector of four packed `u16`.
6464
pub struct uint16x4_t(4 x pub(crate) u16);
65-
// Arm-specific 64-bit wide vector of four packed `f16`.
66-
pub struct float16x4_t(4 x pub(crate) f16);
6765
/// Arm-specific 64-bit wide vector of four packed `p16`.
6866
pub struct poly16x4_t(4 x pub(crate) p16);
6967
/// Arm-specific 64-bit wide vector of two packed `i32`.
@@ -89,8 +87,6 @@ types! {
8987
pub struct int16x8_t(8 x pub(crate) i16);
9088
/// Arm-specific 128-bit wide vector of eight packed `u16`.
9189
pub struct uint16x8_t(8 x pub(crate) u16);
92-
// Arm-specific 128-bit wide vector of eight packed `f16`.
93-
pub struct float16x8_t(8 x pub(crate) f16);
9490
/// Arm-specific 128-bit wide vector of eight packed `p16`.
9591
pub struct poly16x8_t(8 x pub(crate) p16);
9692
/// Arm-specific 128-bit wide vector of four packed `i32`.
@@ -107,6 +103,15 @@ types! {
107103
pub struct poly64x2_t(2 x pub(crate) p64);
108104
}
109105

106+
types! {
107+
#![unstable(feature = "stdarch_neon_f16", issue = "136306")]
108+
109+
/// Arm-specific 64-bit wide vector of four packed `f16`.
110+
pub struct float16x4_t(4 x pub(crate) f16);
111+
/// Arm-specific 128-bit wide vector of eight packed `f16`.
112+
pub struct float16x8_t(8 x pub(crate) f16);
113+
}
114+
110115
/// Arm-specific type containing two `int8x8_t` vectors.
111116
#[repr(C)]
112117
#[derive(Copy, Clone, Debug)]

0 commit comments

Comments
 (0)