fallback: translate: call llvm.ctpop.i64
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.ctpop.i64 M |
| Occurrences: | 3 in 3 configs, 2 test files, 7 more counted only |
| Snippet from: | ctlz-cttz-ctpop.ebcfa44a43.ll (mutant of ctlz-cttz-ctpop.ll) @test_parity_i64 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i64 @test_parity_i64(i64 %a) {
%1 = call i64 @llvm.ctpop.i64(i64 %a)
%C = icmp ult i64 %a, %1
%2 = and i64 %1, 1
store i1 %C, ptr poison, align 1
ret i64 %2
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.ctpop.i64(i64) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx -O2 -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_parity_i64)
warning: Instruction selection used fallback path for test_parity_i64
Occurrences (3):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.ebcfa44a43.ll (mutant of ctlz-cttz-ctpop.ll) | test_parity_i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx -O2 |
| ctlz-cttz-ctpop.fa27a93b47.ll (mutant of ctlz-cttz-ctpop.ll) | test_parity_i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zhinx -O2 |
| rv32zbb.151af11365.ll (mutant of rv32zbb.ll) | ctpop_i64_ne_one | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zfinx -O0 |
Generated 2026-11-29 14:49 UTC.