fallback: legalize: G_INTRINSIC <N x i1>
| Run: | main-b577f07195-20261129-101839 |
| 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 b577f07195 |
| 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):
Generated 2026-11-29 14:49 UTC.