fallback: translate: call llvm.cttz.nxv16i64

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.cttz.nxv16i64 M
Occurrences:3 in 3 configs, 1 test files, 6 more counted only
Snippet from:cttz-vp.4fa03c3885.ll (mutant of cttz-vp.ll) @vp_cttz_nxv16i64 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvbb,+m -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 16 x i64> @vp_cttz_nxv16i64(<vscale x 16 x i64> %va, <vscale x 16 x i1> %m, i32 zeroext %evl) {
  %v = call <vscale x 16 x i64> @llvm.cttz.nxv16i64(<vscale x 16 x i64> %va, i1 false)
  %B = add <vscale x 16 x i64> %v, %v
  ret <vscale x 16 x i64> %B
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 16 x i64> @llvm.cttz.nxv16i64(<vscale x 16 x i64>, i1 immarg) #0

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvbb,+m -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvbb,+m -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.cttz.nxv16i64: '  %v = call <vscale x 16 x i64> @llvm.cttz.nxv16i64(<vscale x 16 x i64> %va, i1 false)' (in function: vp_cttz_nxv16i64)
warning: Instruction selection used fallback path for vp_cttz_nxv16i64

Occurrences (3):

InputFunctionConfig
cttz-vp.01e8dd9d38.ll (mutant of cttz-vp.ll)vp_cttz_nxv16i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvbb -O1
cttz-vp.36ad18df4b.ll (mutant of cttz-vp.ll)vp_cttz_zero_undef_nxv16i64_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvbb,+m,+zcb -O0
cttz-vp.4fa03c3885.ll (mutant of cttz-vp.ll)vp_cttz_nxv16i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvbb,+m -O3

Generated 2026-11-29 14:49 UTC.