Skip to content

Commit b9382e9

Browse files
committed
Implement simd_round_ties_even for miri, cg_clif and cg_gcc
1 parent 5b660c5 commit b9382e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/intrinsic/simd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,7 @@ pub fn generic_simd_intrinsic<'a, 'gcc, 'tcx>(
779779
sym::simd_fsin => "sin",
780780
sym::simd_fsqrt => "sqrt",
781781
sym::simd_round => "round",
782+
sym::simd_round_ties_even => "rint",
782783
sym::simd_trunc => "trunc",
783784
_ => return_error!(InvalidMonomorphization::UnrecognizedIntrinsic { span, name }),
784785
};
@@ -826,6 +827,7 @@ pub fn generic_simd_intrinsic<'a, 'gcc, 'tcx>(
826827
| sym::simd_fsin
827828
| sym::simd_fsqrt
828829
| sym::simd_round
830+
| sym::simd_round_ties_even
829831
| sym::simd_trunc
830832
) {
831833
return simd_simple_float_intrinsic(name, in_elem, in_ty, in_len, bx, span, args);

0 commit comments

Comments
 (0)