fallback: translate: call llvm.ctpop.nxv16i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.ctpop.nxv16i64 M |
| Occurrences: | 3 in 2 configs, 1 test files, 6 more counted only |
| Snippet from: | ctpop-vp.67d958b46d.ll (mutant of ctpop-vp.ll) @vp_ctpop_nxv16i64 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+f -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.3 = external global i1
define <vscale x 16 x i64> @vp_ctpop_nxv16i64(<vscale x 16 x i64> %va, <vscale x 16 x i1> %m, i32 zeroext %evl) {
%v = call <vscale x 16 x i64> @llvm.ctpop.nxv16i64(<vscale x 16 x i64> %va)
%C = fcmp ult bfloat 0.000000e+00, 4.200000e+01
store i1 %C, ptr @G.3, 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=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+f -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+f -O2 -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)
warning: Instruction selection used fallback path for vp_ctpop_nxv16i64
Occurrences (3):
| Input | Function | Config |
|---|
| ctpop-vp.44975b9ecc.ll (mutant of ctpop-vp.ll) | vp_ctpop_nxv16i64_unmasked | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+m,+zbkb,+zve32x -O1 -code-model=small |
| ctpop-vp.67d958b46d.ll (mutant of ctpop-vp.ll) | vp_ctpop_nxv16i64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+f -O2 |
| ctpop-vp.67d958b46d.ll (mutant of ctpop-vp.ll) | vp_ctpop_nxv16i64_unmasked | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+f -O2 |
Generated 2026-11-29 14:49 UTC.