Skip to content

Commit 32605d8

Browse files
committed
Implement simd_round_ties_even for miri, cg_clif and cg_gcc
1 parent 8b24077 commit 32605d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/intrinsics/simd.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,8 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
495495
| sym::simd_flog
496496
| sym::simd_flog10
497497
| sym::simd_flog2
498-
| sym::simd_round => {
498+
| sym::simd_round
499+
| sym::simd_round_ties_even => {
499500
intrinsic_args!(fx, args => (a); intrinsic);
500501

501502
if !a.layout().ty.is_simd() {
@@ -526,6 +527,8 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
526527
(sym::simd_flog2, types::F64) => "log2",
527528
(sym::simd_round, types::F32) => "roundf",
528529
(sym::simd_round, types::F64) => "round",
530+
(sym::simd_round_ties_even, types::F32) => "rintf",
531+
(sym::simd_round_ties_even, types::F64) => "rint",
529532
_ => unreachable!("{:?}", intrinsic),
530533
};
531534
fx.lib_call(

0 commit comments

Comments
 (0)