fallback: legalize: G_INTRINSIC <N x i1>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_INTRINSIC <N x i1>
Occurrences:40 in 6 configs, 4 test files
Snippet from:cttz-elts-scalarize.ll @v4i1 via llvm-extract
Config:-mtriple=riscv32
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @v4i1(<4 x i1> %x) {
  %y = call i32 @llvm.experimental.cttz.elts.i32.v4i1(<4 x i1> %x, i1 false)
  ret i32 %y
}

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

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

Reproduce:

llc -mtriple=riscv32 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %2:_(i32) = G_INTRINSIC intrinsic(@llvm.experimental.cttz.elts), %0:_(<4 x i1>), 0 (in function: v4i1)
warning: Instruction selection used fallback path for v4i1

Occurrences (40) (first 15):

InputFunctionConfig
cttz-elts-scalarize.llv4i1-mtriple=riscv32
cttz-elts-scalarize.llv4i1_zero_is_poison-mtriple=riscv32
cttz-elts-scalarize.llv4i1-mtriple=riscv64
cttz-elts-scalarize.llv4i1_zero_is_poison-mtriple=riscv64
fixed-vectors-cttz-elts.llctz_v2048i1-mtriple=riscv32 -mattr=+v
fixed-vectors-cttz-elts.llctz_v2i1_poison-mtriple=riscv32 -mattr=+v
fixed-vectors-cttz-elts.llctz_v2048i1-mtriple=riscv64 -mattr=+v
fixed-vectors-cttz-elts.llctz_v2i1_poison-mtriple=riscv64 -mattr=+v
cttz-elts-scalarize.5d0a76662f.ll (mutant of cttz-elts-scalarize.ll)v4i1-mtriple=riscv32
cttz-elts-scalarize.9b7bdfeefb.ll (mutant of cttz-elts-scalarize.ll)v4i1_zero_is_poison-mtriple=riscv32
cttz-elts-scalarize.d5486e4a5b.ll (mutant of cttz-elts-scalarize.ll)v4i1-mtriple=riscv64
cttz-elts-scalarize.d5486e4a5b.ll (mutant of cttz-elts-scalarize.ll)v4i1_zero_is_poison-mtriple=riscv64
cttz-elts-scalarize.e065f143fb.ll (mutant of cttz-elts-scalarize.ll)v4i1_zero_is_poison-mtriple=riscv64
cttz-elts-scalarize.e7d66c0a69.ll (mutant of cttz-elts-scalarize.ll)v4i1-mtriple=riscv64
cttz-elts-scalarize.eb6b8a3158.ll (mutant of cttz-elts-scalarize.ll)v4i1-mtriple=riscv32

Generated 2026-11-29 14:49 UTC.