fallback: legalize: G_CTLZ <N x i64>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_CTLZ <N x i64> M |
| Occurrences: | 3 in 3 configs, 1 test files, 7 more counted only |
| Snippet from: | fixed-vectors-ctlz.8e81d91ca0.ll (mutant of fixed-vectors-ctlz.ll) @ctlz_zero_poison_v2i64 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zbb -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define void @ctlz_zero_poison_v2i64(ptr %x, ptr %y) #0 {
%a = load <2 x i64>, ptr %x, align 16
%c = call <2 x i64> @llvm.ctlz.v2i64(<2 x i64> %a, i1 true)
%B = sdiv <2 x i64> %a, splat (i64 1)
store <2 x i64> %c, ptr %x, align 16
store <2 x i64> %B, ptr poison, align 16
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i64> @llvm.ctlz.v2i64(<2 x i64>, i1 immarg) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zbb -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zbb -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %3:_(<2 x i64>) = G_CTLZ %2:_(<2 x i64>) (in function: ctlz_zero_poison_v2i64)
warning: Instruction selection used fallback path for ctlz_zero_poison_v2i64
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-ctlz.10ca67a269.ll (mutant of fixed-vectors-ctlz.ll) | ctlz_v4i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zbb -O1 |
| fixed-vectors-ctlz.8e81d91ca0.ll (mutant of fixed-vectors-ctlz.ll) | ctlz_zero_poison_v2i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zbb -O3 |
| fixed-vectors-ctlz.e79a860489.ll (mutant of fixed-vectors-ctlz.ll) | ctlz_zero_poison_v2i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64f,+zvl128b,+f,+zbb,+zbkb -O3 |
Generated 2026-11-29 14:49 UTC.