fallback: translate: call llvm.ctpop.nxv16i64
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.ctpop.nxv16i64 M |
| Occurrences: | 3 in 3 configs, 1 test files, 6 more counted only |
| Snippet from: | ctpop-vp.2ed88cba84.ll (mutant of ctpop-vp.ll) @vp_ctpop_nxv16i64_unmasked via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+m,+zfa -O3 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <vscale x 16 x i64> @vp_ctpop_nxv16i64_unmasked(<vscale x 16 x i64> %va, i32 zeroext %evl) {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%v = call <vscale x 16 x i64> @llvm.ctpop.nxv16i64(<vscale x 16 x i64> %va)
%C = icmp ugt i32 %evl, %evl
store i1 %C, ptr %A, align 1
ret <vscale x 16 x i64> %v
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 16 x i64> @llvm.ctpop.nxv16i64(<vscale x 16 x i64>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+m,+zfa -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+m,+zfa -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.ctpop.nxv16i64: ' %v = call <vscale x 16 x i64> @llvm.ctpop.nxv16i64(<vscale x 16 x i64> %va)' (in function: vp_ctpop_nxv16i64_unmasked)
warning: Instruction selection used fallback path for vp_ctpop_nxv16i64_unmasked
Occurrences (3):
| Input | Function | Config |
|---|
| ctpop-vp.21bc5e91dc.ll (mutant of ctpop-vp.ll) | vp_ctpop_nxv16i64_unmasked | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvbb,+m,+zvfh -O2 |
| ctpop-vp.2ed88cba84.ll (mutant of ctpop-vp.ll) | vp_ctpop_nxv16i64_unmasked | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+m,+zfa -O3 |
| ctpop-vp.cd7bf93738.ll (mutant of ctpop-vp.ll) | vp_ctpop_nxv16i64_unmasked | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvbb,+m -O3 |
Generated 2026-11-29 14:49 UTC.