core: Limit remaining f16 doctests to x86_64 linux · model-checking/verify-rust-std@9efc1cb (original) (raw)
`@@ -353,12 +353,15 @@ impl f16 {
`
353
353
`///
`
354
354
```` /// ```
`355`
`355`
`/// #![feature(f16)]
`
``
`356`
`+
/// # // FIXME(f16_f128): LLVM crashes on s390x, llvm/llvm-project#50374
`
``
`357`
`+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
`
`356`
`358`
`///
`
`357`
`359`
`/// let f = 7.0_f16;
`
`358`
`360`
`/// let g = -7.0_f16;
`
`359`
`361`
`///
`
`360`
`362`
`/// assert!(f.is_sign_positive());
`
`361`
`363`
`/// assert!(!g.is_sign_positive());
`
``
`364`
`+
/// # }
`
`362`
`365`
```` /// ```
363
366
`#[inline]
`
364
367
`#[must_use]
`
`@@ -376,12 +379,15 @@ impl f16 {
`
376
379
`///
`
377
380
```` /// ```
`378`
`381`
`/// #![feature(f16)]
`
``
`382`
`+
/// # // FIXME(f16_f128): LLVM crashes on s390x, llvm/llvm-project#50374
`
``
`383`
`+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
`
`379`
`384`
`///
`
`380`
`385`
`/// let f = 7.0_f16;
`
`381`
`386`
`/// let g = -7.0_f16;
`
`382`
`387`
`///
`
`383`
`388`
`/// assert!(!f.is_sign_negative());
`
`384`
`389`
`/// assert!(g.is_sign_negative());
`
``
`390`
`+
/// # }
`
`385`
`391`
```` /// ```
386
392
`#[inline]
`
387
393
`#[must_use]
`
`@@ -694,9 +700,12 @@ impl f16 {
`
694
700
`///
`
695
701
```` /// ```
`696`
`702`
`/// #![feature(f16)]
`
``
`703`
`+
/// # // FIXME(f16_f128): LLVM crashes on s390x, llvm/llvm-project#50374
`
``
`704`
`+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
`
`697`
`705`
`///
`
`698`
`706`
`/// let bytes = 12.5f16.to_be_bytes();
`
`699`
`707`
`/// assert_eq!(bytes, [0x4a, 0x40]);
`
``
`708`
`+
/// # }
`
`700`
`709`
```` /// ```
701
710
`#[inline]
`
702
711
`#[unstable(feature = "f16", issue = "116909")]
`
`@@ -715,9 +724,12 @@ impl f16 {
`
715
724
`///
`
716
725
```` /// ```
`717`
`726`
`/// #![feature(f16)]
`
``
`727`
`+
/// # // FIXME(f16_f128): LLVM crashes on s390x, llvm/llvm-project#50374
`
``
`728`
`+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
`
`718`
`729`
`///
`
`719`
`730`
`/// let bytes = 12.5f16.to_le_bytes();
`
`720`
`731`
`/// assert_eq!(bytes, [0x40, 0x4a]);
`
``
`732`
`+
/// # }
`
`721`
`733`
```` /// ```
722
734
`#[inline]
`
723
735
`#[unstable(feature = "f16", issue = "116909")]
`
`@@ -742,6 +754,8 @@ impl f16 {
`
742
754
`///
`
743
755
```` /// ```
`744`
`756`
`/// #![feature(f16)]
`
``
`757`
`+
/// # // FIXME(f16_f128): LLVM crashes on s390x, llvm/llvm-project#50374
`
``
`758`
`+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
`
`745`
`759`
`///
`
`746`
`760`
`/// let bytes = 12.5f16.to_ne_bytes();
`
`747`
`761`
`/// assert_eq!(
`
`@@ -752,6 +766,7 @@ impl f16 {
`
`752`
`766`
`/// [0x40, 0x4a]
`
`753`
`767`
`/// }
`
`754`
`768`
`/// );
`
``
`769`
`+
/// # }
`
`755`
`770`
```` /// ```
756
771
`#[inline]
`
757
772
`#[unstable(feature = "f16", issue = "116909")]
`