fallback: legalize: G_CTTZ <N x i32>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_CTTZ <N x i32> M |
| Occurrences: | 6 in 3 configs, 1 test files, 6 more counted only |
| Snippet from: | fixed-vectors-cttz.4b325eba2f.ll (mutant of fixed-vectors-cttz.ll) @cttz_v8i32 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zbb,+zbs -O3 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define void @cttz_v8i32(ptr %x, ptr %y) #0 {
%G = getelementptr ptr, ptr %y, i1 true
%a = load <8 x i32>, ptr %x, align 32
%c = call <8 x i32> @llvm.cttz.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.cttz.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,+zve64x,+zvl128b,+zbb,+zbs -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zbb,+zbs -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %5:_(<8 x i32>) = G_CTTZ %4:_(<8 x i32>) (in function: cttz_v8i32)
warning: Instruction selection used fallback path for cttz_v8i32
Occurrences (6):
| Input | Function | Config |
|---|
| fixed-vectors-cttz.4b325eba2f.ll (mutant of fixed-vectors-cttz.ll) | cttz_v8i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zbb,+zbs -O3 |
| fixed-vectors-cttz.4b325eba2f.ll (mutant of fixed-vectors-cttz.ll) | cttz_zero_poison_v4i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zbb,+zbs -O3 |
| fixed-vectors-cttz.62269543c1.ll (mutant of fixed-vectors-cttz.ll) | cttz_v4i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64f,+zvl128b,+f,+zbb -O3 |
| fixed-vectors-cttz.62269543c1.ll (mutant of fixed-vectors-cttz.ll) | cttz_v8i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64f,+zvl128b,+f,+zbb -O3 |
| fixed-vectors-cttz.a442b4aaf4.ll (mutant of fixed-vectors-cttz.ll) | cttz_zero_poison_v4i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+d,+zbb -O3 |
| fixed-vectors-cttz.a442b4aaf4.ll (mutant of fixed-vectors-cttz.ll) | cttz_zero_poison_v8i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+d,+zbb -O3 |
Generated 2026-11-29 14:49 UTC.