fallback: legalize: G_CTLZ <N x i32>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_CTLZ <N x i32> M |
| Occurrences: | 6 in 4 configs, 1 test files, 4 more counted only |
| Snippet from: | fixed-vectors-ctlz.ffd4632b17.ll (mutant of fixed-vectors-ctlz.ll) @ctlz_v8i32 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+d,+zbb,+zcb -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i128
; Function Attrs: nounwind
define void @ctlz_v8i32(ptr %x, ptr %y) #0 {
%LGV = load i128, ptr @G, align 4
%G = getelementptr ptr, ptr %x, i128 %LGV
%a = load <8 x i32>, ptr %x, align 32
%c = call <8 x i32> @llvm.ctlz.v8i32(<8 x i32> %a, i1 false)
store <8 x i32> %c, ptr %x, align 32
store ptr %G, ptr poison, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x i32> @llvm.ctlz.v8i32(<8 x i32>, i1 immarg) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+d,+zbb,+zcb -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+d,+zbb,+zcb -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %9:_(<8 x i32>) = G_CTLZ %8:_(<8 x i32>) (in function: ctlz_v8i32)
warning: Instruction selection used fallback path for ctlz_v8i32
Occurrences (6):
| Input | Function | Config |
|---|
| fixed-vectors-ctlz.10ca67a269.ll (mutant of fixed-vectors-ctlz.ll) | ctlz_zero_poison_v8i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zbb -O1 |
| fixed-vectors-ctlz.7738146dc6.ll (mutant of fixed-vectors-ctlz.ll) | ctlz_v8i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+d,+zbb -O0 |
| fixed-vectors-ctlz.7738146dc6.ll (mutant of fixed-vectors-ctlz.ll) | ctlz_zero_poison_v8i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+d,+zbb -O0 |
| fixed-vectors-ctlz.c65a532ab0.ll (mutant of fixed-vectors-ctlz.ll) | ctlz_zero_poison_v8i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zbb -O1 |
| fixed-vectors-ctlz.ffd4632b17.ll (mutant of fixed-vectors-ctlz.ll) | ctlz_v8i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+d,+zbb,+zcb -O1 |
| fixed-vectors-ctlz.ffd4632b17.ll (mutant of fixed-vectors-ctlz.ll) | ctlz_zero_poison_v4i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+d,+zbb,+zcb -O1 |
Generated 2026-11-29 14:49 UTC.