fallback: translate: call llvm.experimental.cttz.elts.i32.nxv4i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.experimental.cttz.elts.i32.nxv4i32 M
Occurrences:4 in 4 configs, 1 test files, 3 more counted only
Snippet from:cttz-elts.a49a0b626d.ll (mutant of cttz-elts.ll) @ctz_nxv4i32 via llvm-extract
Config:-mtriple=riscv64 -mattr=+v,+c -O3 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: vscale_range(2,1024)
define i32 @ctz_nxv4i32(<vscale x 4 x i32> %a) #0 {
  %C = icmp ule i16 0, 1
  %res = call i32 @llvm.experimental.cttz.elts.i32.nxv4i32(<vscale x 4 x i32> %a, i1 false)
  store i1 %C, ptr poison, align 1
  ret i32 %res
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.experimental.cttz.elts.i32.nxv4i32(<vscale x 4 x i32>, i1 immarg) #1

attributes #0 = { vscale_range(2,1024) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

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

Occurrences (4):

InputFunctionConfig
cttz-elts.1852356ab9.ll (mutant of cttz-elts.ll)ctz_nxv4i32-mtriple=riscv64 -mattr=+v -O1 -verify-machineinstrs
cttz-elts.3a08af8b22.ll (mutant of cttz-elts.ll)ctz_nxv4i32-mtriple=riscv32 -mattr=+v -O0 -verify-machineinstrs
cttz-elts.a49a0b626d.ll (mutant of cttz-elts.ll)ctz_nxv4i32-mtriple=riscv64 -mattr=+v,+c -O3 -verify-machineinstrs
cttz-elts.c4ea66abe0.ll (mutant of cttz-elts.ll)ctz_nxv4i32-mtriple=riscv32 -mattr=+v,+zbb -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.