We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 14134c1 + 7a53ba2 commit 2c219ceCopy full SHA for 2c219ce
src/intrinsics/simd.rs
@@ -348,6 +348,7 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
348
| sym::simd_bswap
349
| sym::simd_bitreverse
350
| sym::simd_ctlz
351
+ | sym::simd_ctpop
352
| sym::simd_cttz => {
353
intrinsic_args!(fx, args => (a); intrinsic);
354
@@ -367,6 +368,7 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
367
368
(ty::Uint(_) | ty::Int(_), sym::simd_bswap) => fx.bcx.ins().bswap(lane),
369
(ty::Uint(_) | ty::Int(_), sym::simd_bitreverse) => fx.bcx.ins().bitrev(lane),
370
(ty::Uint(_) | ty::Int(_), sym::simd_ctlz) => fx.bcx.ins().clz(lane),
371
+ (ty::Uint(_) | ty::Int(_), sym::simd_ctpop) => fx.bcx.ins().popcnt(lane),
372
(ty::Uint(_) | ty::Int(_), sym::simd_cttz) => fx.bcx.ins().ctz(lane),
373
374
_ => unreachable!(),
0 commit comments