fallback: translate: call llvm.ctpop.i32
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.ctpop.i32 M |
| Occurrences: | 4 in 3 configs, 3 test files, 4 more counted only |
| Snippet from: | ctlz-cttz-ctpop.9626e10360.ll (mutant of ctlz-cttz-ctpop.ll) @test_ctpop_i32 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zfinx -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i1
; Function Attrs: nounwind
define i32 @test_ctpop_i32(i32 %a) #0 {
%1 = call i32 @llvm.ctpop.i32(i32 %a)
%C = icmp ugt i32 %1, %1
store i1 %C, ptr @G.1, align 1
ret i32 %1
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zfinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zfinx -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.ctpop.i32: ' %1 = call i32 @llvm.ctpop.i32(i32 %a)' (in function: test_ctpop_i32)
warning: Instruction selection used fallback path for test_ctpop_i32
Occurrences (4):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.9626e10360.ll (mutant of ctlz-cttz-ctpop.ll) | test_ctpop_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zfinx -O2 |
| ctlz-cttz-ctpop.9626e10360.ll (mutant of ctlz-cttz-ctpop.ll) | test_parity_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zfinx -O2 |
| rv32zbb.27565bba2a.ll (mutant of rv32zbb.ll) | ctpop32_ne_one_nonzero | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx -O3 |
| xcvbitmanip.1b7fbd7f2e.ll (mutant of xcvbitmanip.ll) | ctpop_i32_ne_one | -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zfinx -O3 |
Generated 2026-11-29 14:49 UTC.