File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ pub unsafe fn issue_75761() {
9898
9999macro_rules! check {
100100 ( $func: ident $ty: ident $class: ident $mov: literal $modifier: literal) => {
101- // FIXME(f16_f128 ): Change back to `$func(x: $ty) -> $ty` once arm64ec can pass and return
102- // `f16` and ` f128` without LLVM erroring.
101+ // FIXME(f128 ): Change back to `$func(x: $ty) -> $ty` once arm64ec can pass and return
102+ // `f128` without LLVM erroring.
103103 // LLVM issue: <https://github.com/llvm/llvm-project/issues/94434>
104104 #[ no_mangle]
105105 pub unsafe fn $func( inp: & $ty, out: & mut $ty) {
@@ -117,7 +117,7 @@ macro_rules! check {
117117
118118macro_rules! check_reg {
119119 ( $func: ident $ty: ident $reg: tt $mov: literal) => {
120- // FIXME(f16_f128 ): See FIXME in `check!`
120+ // FIXME(f128 ): See FIXME in `check!`
121121 #[ no_mangle]
122122 pub unsafe fn $func( inp: & $ty, out: & mut $ty) {
123123 let x = * inp;
Original file line number Diff line number Diff line change 22//@ revisions: opt noopt ctfe
33//@[opt] compile-flags: -O
44//@[noopt] compile-flags: -Zmir-opt-level=0
5+ //@ min-llvm-version: 22
6+ //@ compile-flags: --check-cfg=cfg(target_has_reliable_f16)
57// ignore-tidy-linelength
8+ #![ feature( cfg_target_has_reliable_f16_f128) ]
9+ #![ cfg_attr( target_has_reliable_f16, feature( f16) ) ]
610
711// This tests the float classification functions, for regular runtime code and for const evaluation.
812
@@ -50,6 +54,13 @@ macro_rules! assert_test {
5054
5155macro_rules! suite {
5256 ( $tyname: ident => $( $tt: tt ) * ) => {
57+ #[ cfg( target_has_reliable_f16) ]
58+ fn f16( ) {
59+ #[ allow( unused) ]
60+ type $tyname = f16;
61+ suite_inner!( f16 => $( $tt) * ) ;
62+ }
63+
5364 fn f32 ( ) {
5465 #[ allow( unused) ]
5566 type $tyname = f32 ;
@@ -121,7 +132,9 @@ suite! { T => // type alias for the type we are testing
121132}
122133
123134fn main ( ) {
135+ #[ cfg( target_has_reliable_f16) ]
136+ f16 ( ) ;
124137 f32 ( ) ;
125138 f64 ( ) ;
126- // FIXME(f16_f128 ): also test f16 and f128
139+ // FIXME(f128 ): also test f128
127140}
You can’t perform that action at this time.
0 commit comments