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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.experimental.cttz.elts.i64.nxv8i16 M
Occurrences:4 in 4 configs, 1 test files, 9 more counted only
Snippet from:cttz-elts.c32fd22f2b.ll (mutant of cttz-elts.ll) @ctz_nxv8i1_no_range via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -O3 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i64

define i64 @ctz_nxv8i1_no_range(<vscale x 8 x i16> %a) {
  %LGV = load i64, ptr @G.2, align 4
  %res = call i64 @llvm.experimental.cttz.elts.i64.nxv8i16(<vscale x 8 x i16> %a, i1 false)
  %B = and i64 %res, %LGV
  ret i64 %B
}

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

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

Reproduce:

llc -mtriple=riscv32 -mattr=+v -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+v -O3 -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.nxv8i16: '  %res = call i64 @llvm.experimental.cttz.elts.i64.nxv8i16(<vscale x 8 x i16> %a, i1 false)' (in function: ctz_nxv8i1_no_range)
warning: Instruction selection used fallback path for ctz_nxv8i1_no_range

Occurrences (4):

InputFunctionConfig
cttz-elts.bd41e90e3d.ll (mutant of cttz-elts.ll)ctz_nxv8i1_no_range-mtriple=riscv32 -mattr=+v,+zfa -O2 -verify-machineinstrs
cttz-elts.c32fd22f2b.ll (mutant of cttz-elts.ll)ctz_nxv8i1_no_range-mtriple=riscv32 -mattr=+v -O3 -verify-machineinstrs
cttz-elts.e437451d4e.ll (mutant of cttz-elts.ll)ctz_nxv8i1_no_range-mtriple=riscv64 -mattr=+v -O2 -verify-machineinstrs
cttz-elts.fb8685b4f5.ll (mutant of cttz-elts.ll)ctz_nxv8i1_no_range-mtriple=riscv32 -mattr=+v -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.