Skip to content

Commit e9cc306

Browse files
Remove round, trunc tests
There are no platform intrinsics in the rustc for these functions yet, so this removes them as a distinct commit for later reversion.
1 parent 7538ff8 commit e9cc306

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

crates/core_simd/tests/ops_impl/float_macros.rs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -353,42 +353,6 @@ macro_rules! float_tests {
353353
}
354354
}
355355

356-
#[test]
357-
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
358-
fn round_odd_floats() {
359-
for v in slice_chunks(&C) {
360-
let expected = apply_unary_lanewise(v, <$scalar>::round);
361-
assert_biteq!(v.round(), expected);
362-
}
363-
}
364-
365-
#[test]
366-
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
367-
fn round_mode() {
368-
assert_biteq!(core_simd::$vector::splat(1.5).round(), core_simd::$vector::splat(2.0));
369-
assert_biteq!(core_simd::$vector::splat(2.5).round(), core_simd::$vector::splat(3.0));
370-
assert_biteq!(core_simd::$vector::splat(-1.5).round(), core_simd::$vector::splat(-2.0));
371-
assert_biteq!(core_simd::$vector::splat(-2.5).round(), core_simd::$vector::splat(-3.0));
372-
}
373-
374-
#[test]
375-
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
376-
fn trunc_odd_floats() {
377-
for v in slice_chunks(&C) {
378-
let expected = apply_unary_lanewise(v, <$scalar>::trunc);
379-
assert_biteq!(v.trunc(), expected);
380-
}
381-
}
382-
383-
#[test]
384-
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
385-
fn fract_odd_floats() {
386-
for v in slice_chunks(&C) {
387-
let expected = apply_unary_lanewise(v, <$scalar>::fract);
388-
assert_biteq!(v.fract(), expected);
389-
}
390-
}
391-
392356
#[test]
393357
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
394358
fn to_int_unchecked() {

0 commit comments

Comments
 (0)