fallback: translate: call llvm.experimental.cttz.elts.i64.nxv16i1

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.experimental.cttz.elts.i64.nxv16i1 M
Occurrences:4 in 4 configs, 1 test files, 8 more counted only
Snippet from:cttz-elts.0d4f5ef957.ll (mutant of cttz-elts.ll) @i64_ctz_nxv16i1 via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -O0 -code-model=medium -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i64 @i64_ctz_nxv16i1(<vscale x 16 x i1> %pg, <vscale x 16 x i1> %a) {
  %res = call i64 @llvm.experimental.cttz.elts.i64.nxv16i1(<vscale x 16 x i1> %a, i1 true)
  %B = mul i64 %res, 9223372036854775807
  ret i64 %B
}

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

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

Reproduce:

llc -mtriple=riscv32 -mattr=+v -O0 -code-model=medium -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+v -O0 -code-model=medium -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.experimental.cttz.elts.i64.nxv16i1: '  %res = call i64 @llvm.experimental.cttz.elts.i64.nxv16i1(<vscale x 16 x i1> %a, i1 true)' (in function: i64_ctz_nxv16i1)
warning: Instruction selection used fallback path for i64_ctz_nxv16i1

Occurrences (4):

InputFunctionConfig
cttz-elts.0d4f5ef957.ll (mutant of cttz-elts.ll)i64_ctz_nxv16i1-mtriple=riscv32 -mattr=+v -O0 -code-model=medium -verify-machineinstrs
cttz-elts.3c05901df7.ll (mutant of cttz-elts.ll)i64_ctz_nxv16i1_range-mtriple=riscv64 -mattr=+v -O2 -verify-machineinstrs
cttz-elts.a49a0b626d.ll (mutant of cttz-elts.ll)i64_ctz_nxv16i1_range-mtriple=riscv64 -mattr=+v,+c -O3 -verify-machineinstrs
cttz-elts.ebb59f5da0.ll (mutant of cttz-elts.ll)i64_ctz_nxv16i1-mtriple=riscv32 -mattr=+v -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.