Skip to content

Commit bdcd94e

Browse files
committed
Auto merge of #143183 - GuillaumeGomez:rollup-g60lr91, r=GuillaumeGomez
Rollup of 4 pull requests Successful merges: - rust-lang/rust#142078 (Add SIMD funnel shift and round-to-even intrinsics) - rust-lang/rust#142214 (`tests/ui`: A New Order [9/N]) - rust-lang/rust#142417 (`tests/ui`: A New Order [12/N]) - rust-lang/rust#143030 (Fix suggestion spans inside macros for the `unused_must_use` lint) r? `@ghost` `@rustbot` modify labels: rollup
2 parents a827167 + bfcbc7b commit bdcd94e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/intrinsics/simd.rs

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

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

0 commit comments

Comments
 (0)