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

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

Snippet:

@G.2 = external global i1

; Function Attrs: vscale_range(2,1024)
define i32 @ctz_nxv4i32(<vscale x 4 x i32> %a) #0 {
  %C = icmp slt <8 x i8> splat (i8 1), zeroinitializer
  %res = call i32 @llvm.experimental.cttz.elts.i32.nxv4i32(<vscale x 4 x i32> %a, i1 false)
  %C1 = icmp ugt i1 true, true
  store <8 x i1> %C, ptr poison, align 1
  store i1 %C1, ptr @G.2, 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=riscv32 -mattr=+v -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+v -O2 -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 (3):

InputFunctionConfig
cttz-elts.1134109566.ll (mutant of cttz-elts.ll)ctz_nxv4i32-mtriple=riscv32 -mattr=+v -O2 -verify-machineinstrs
cttz-elts.ec826de83d.ll (mutant of cttz-elts.ll)ctz_nxv4i32-mtriple=riscv64 -mattr=+v -O0 -verify-machineinstrs
cttz-elts.fb8685b4f5.ll (mutant of cttz-elts.ll)ctz_nxv4i32-mtriple=riscv32 -mattr=+v -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.