fallback: translate: call llvm.ctpop.i64
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.ctpop.i64 M |
| Occurrences: | 5 in 5 configs, 3 test files, 4 more counted only |
| Snippet from: | ctlz-cttz-ctpop.6edf18f673.ll (mutant of ctlz-cttz-ctpop.ll) @test_ctpop_i64 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O2 -code-model=small |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i64 @test_ctpop_i64(i64 %a) #0 {
%1 = call i64 @llvm.ctpop.i64(i64 %a)
%B = shl i64 %1, %1
ret i64 %B
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.ctpop.i64(i64) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O2 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O2 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.ctpop.i64: ' %1 = call i64 @llvm.ctpop.i64(i64 %a)' (in function: test_ctpop_i64)
warning: Instruction selection used fallback path for test_ctpop_i64
Occurrences (5):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.38ee52fa99.ll (mutant of ctlz-cttz-ctpop.ll) | test_parity_i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2 |
| ctlz-cttz-ctpop.6edf18f673.ll (mutant of ctlz-cttz-ctpop.ll) | test_ctpop_i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O2 -code-model=small |
| rv32zbb.0be84b62e5.ll (mutant of rv32zbb.ll) | ctpop_i64_eq_one | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O0 |
| rv32zbb.4550702ed5.ll (mutant of rv32zbb.ll) | ctpop_i64_ne_one | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+xtheadba,+zdinx -O0 |
| rv64zbb.524b232b49.ll (mutant of rv64zbb.ll) | ctpop_i64_ugt_one | -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O3 -code-model=small |
Generated 2026-11-29 14:49 UTC.