fallback: translate: call llvm.cttz.nxv16i64

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

Snippet:

@G.2 = external global i32

define <vscale x 16 x i64> @vp_cttz_nxv16i64_unmasked(<vscale x 16 x i64> %va, i32 zeroext %evl) {
  %A = alloca <vscale x 16 x i64>, align 128
  store <vscale x 16 x i64> poison, ptr %A, align 128
  %LGV = load i32, ptr @G.2, align 4
  %v = call <vscale x 16 x i64> @llvm.cttz.nxv16i64(<vscale x 16 x i64> %va, i1 false)
  %I = insertelement <vscale x 16 x i64> %va, i64 -1, i32 %LGV
  store <vscale x 16 x i64> %I, ptr %A, align 128
  ret <vscale x 16 x i64> %v
}

; 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 -O0 -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 -O0 -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_unmasked)
warning: Instruction selection used fallback path for vp_cttz_nxv16i64_unmasked

Occurrences (3):

InputFunctionConfig
cttz-vp.080bccd5da.ll (mutant of cttz-vp.ll)vp_cttz_nxv16i64_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+m,+zcb -O3
cttz-vp.679d23bcc1.ll (mutant of cttz-vp.ll)vp_cttz_nxv16i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+m -O2
cttz-vp.6a971f04c1.ll (mutant of cttz-vp.ll)vp_cttz_nxv16i64_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvbb,+m -O0

Generated 2026-11-29 14:49 UTC.