Skip to content

Commit 2e4824d

Browse files
committed
float: Enable some f16 and f128 rounding tests on miri
The rounding tests are now supported, so there is no longer any reason to skip these.
1 parent 04570ba commit 2e4824d

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

library/coretests/tests/floats/f128.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ fn test_classify() {
246246
}
247247

248248
#[test]
249-
#[cfg(not(miri))]
250249
#[cfg(target_has_reliable_f128_math)]
251250
fn test_floor() {
252251
assert_eq!(1.0f128.floor(), 1.0f128);
@@ -262,7 +261,6 @@ fn test_floor() {
262261
}
263262

264263
#[test]
265-
#[cfg(not(miri))]
266264
#[cfg(target_has_reliable_f128_math)]
267265
fn test_ceil() {
268266
assert_eq!(1.0f128.ceil(), 1.0f128);
@@ -278,7 +276,6 @@ fn test_ceil() {
278276
}
279277

280278
#[test]
281-
#[cfg(not(miri))]
282279
#[cfg(target_has_reliable_f128_math)]
283280
fn test_round() {
284281
assert_eq!(2.5f128.round(), 3.0f128);
@@ -295,7 +292,6 @@ fn test_round() {
295292
}
296293

297294
#[test]
298-
#[cfg(not(miri))]
299295
#[cfg(target_has_reliable_f128_math)]
300296
fn test_round_ties_even() {
301297
assert_eq!(2.5f128.round_ties_even(), 2.0f128);
@@ -312,7 +308,6 @@ fn test_round_ties_even() {
312308
}
313309

314310
#[test]
315-
#[cfg(not(miri))]
316311
#[cfg(target_has_reliable_f128_math)]
317312
fn test_trunc() {
318313
assert_eq!(1.0f128.trunc(), 1.0f128);
@@ -328,7 +323,6 @@ fn test_trunc() {
328323
}
329324

330325
#[test]
331-
#[cfg(not(miri))]
332326
#[cfg(target_has_reliable_f128_math)]
333327
fn test_fract() {
334328
assert_eq!(1.0f128.fract(), 0.0f128);
@@ -344,7 +338,6 @@ fn test_fract() {
344338
}
345339

346340
#[test]
347-
#[cfg(not(miri))]
348341
#[cfg(target_has_reliable_f128_math)]
349342
fn test_abs() {
350343
assert_eq!(f128::INFINITY.abs(), f128::INFINITY);

library/coretests/tests/floats/f16.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ fn test_classify() {
232232
}
233233

234234
#[test]
235-
#[cfg(not(miri))]
236235
#[cfg(target_has_reliable_f16_math)]
237236
fn test_floor() {
238237
assert_eq!(1.0f16.floor(), 1.0f16);
@@ -248,7 +247,6 @@ fn test_floor() {
248247
}
249248

250249
#[test]
251-
#[cfg(not(miri))]
252250
#[cfg(target_has_reliable_f16_math)]
253251
fn test_ceil() {
254252
assert_eq!(1.0f16.ceil(), 1.0f16);
@@ -264,7 +262,6 @@ fn test_ceil() {
264262
}
265263

266264
#[test]
267-
#[cfg(not(miri))]
268265
#[cfg(target_has_reliable_f16_math)]
269266
fn test_round() {
270267
assert_eq!(2.5f16.round(), 3.0f16);
@@ -281,7 +278,6 @@ fn test_round() {
281278
}
282279

283280
#[test]
284-
#[cfg(not(miri))]
285281
#[cfg(target_has_reliable_f16_math)]
286282
fn test_round_ties_even() {
287283
assert_eq!(2.5f16.round_ties_even(), 2.0f16);
@@ -298,7 +294,6 @@ fn test_round_ties_even() {
298294
}
299295

300296
#[test]
301-
#[cfg(not(miri))]
302297
#[cfg(target_has_reliable_f16_math)]
303298
fn test_trunc() {
304299
assert_eq!(1.0f16.trunc(), 1.0f16);
@@ -314,7 +309,6 @@ fn test_trunc() {
314309
}
315310

316311
#[test]
317-
#[cfg(not(miri))]
318312
#[cfg(target_has_reliable_f16_math)]
319313
fn test_fract() {
320314
assert_eq!(1.0f16.fract(), 0.0f16);
@@ -330,7 +324,6 @@ fn test_fract() {
330324
}
331325

332326
#[test]
333-
#[cfg(not(miri))]
334327
#[cfg(target_has_reliable_f16_math)]
335328
fn test_abs() {
336329
assert_eq!(f16::INFINITY.abs(), f16::INFINITY);

0 commit comments

Comments
 (0)