fallback: translate: call llvm.ctpop.v2i64

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.ctpop.v2i64 M
Occurrences:3 in 3 configs, 1 test files, 3 more counted only
Snippet from:rv32zbb.e961d9da23.ll (mutant of rv32zbb.ll) @ctpop_v2i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define <2 x i64> @ctpop_v2i64(<2 x i64> %a) #0 {
  %1 = call <2 x i64> @llvm.ctpop.v2i64(<2 x i64> %a)
  %B = xor <2 x i64> %1, zeroinitializer
  ret <2 x i64> %B
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i64> @llvm.ctpop.v2i64(<2 x i64>) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.ctpop.v2i64: '  %1 = call <2 x i64> @llvm.ctpop.v2i64(<2 x i64> %a)' (in function: ctpop_v2i64)
warning: Instruction selection used fallback path for ctpop_v2i64

Occurrences (3):

InputFunctionConfig
rv32zbb.43a1e579f1.ll (mutant of rv32zbb.ll)ctpop_v2i64_ult_two-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx,+zdinx -O2
rv32zbb.97d366bcc3.ll (mutant of rv32zbb.ll)ctpop_v2i64_eq_one-mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x,+zdinx -O0
rv32zbb.e961d9da23.ll (mutant of rv32zbb.ll)ctpop_v2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O1

Generated 2026-11-29 14:49 UTC.