Skip to content

Commit 1df3a8c

Browse files
committed
run core float tests on f16, f128 as well
1 parent 7f834b7 commit 1df3a8c

File tree

1 file changed

+6
-0
lines changed
  • library/coretests/tests/num

1 file changed

+6
-0
lines changed

library/coretests/tests/num/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,13 @@ macro_rules! float_const_assert {
10851085
};
10861086
}
10871087

1088+
#[cfg(any(miri, target_has_reliable_f16_math))]
1089+
test_float!(f16, float_assert, f16);
1090+
test_float!(f16_const, float_const_assert, f16);
10881091
test_float!(f32, float_assert, f32);
10891092
test_float!(f32_const, float_const_assert, f32);
10901093
test_float!(f64, float_assert, f64);
10911094
test_float!(f64_const, float_const_assert, f64);
1095+
#[cfg(any(miri, target_has_reliable_f128_math))]
1096+
test_float!(f128, float_assert, f128);
1097+
test_float!(f128_const, float_const_assert, f128);

0 commit comments

Comments
 (0)