File tree 1 file changed +2
-0
lines changed
compiler/rustc_codegen_cranelift/src/intrinsics
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
348
348
| sym:: simd_bswap
349
349
| sym:: simd_bitreverse
350
350
| sym:: simd_ctlz
351
+ | sym:: simd_ctpop
351
352
| sym:: simd_cttz => {
352
353
intrinsic_args ! ( fx, args => ( a) ; intrinsic) ;
353
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) ,
368
369
( ty:: Uint ( _) | ty:: Int ( _) , sym:: simd_bitreverse) => fx. bcx . ins ( ) . bitrev ( lane) ,
369
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) ,
370
372
( ty:: Uint ( _) | ty:: Int ( _) , sym:: simd_cttz) => fx. bcx . ins ( ) . ctz ( lane) ,
371
373
372
374
_ => unreachable ! ( ) ,
You can’t perform that action at this time.
0 commit comments