fallback: legalize: G_CTTZ <N x i8>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_CTTZ <N x i8> M |
| Occurrences: | 3 in 3 configs, 1 test files, 8 more counted only |
| Snippet from: | fixed-vectors-cttz.adf7988969.ll (mutant of fixed-vectors-cttz.ll) @cttz_v16i8 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64f,+zvl128b,+f,+zbb -O2 -code-model=small |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define void @cttz_v16i8(ptr %x, ptr %y) #0 {
%A = alloca ptr, align 8
store ptr poison, ptr %A, align 8
%a = load <16 x i8>, ptr %x, align 16
%G = getelementptr ptr, ptr %x, i128 1
%c = call <16 x i8> @llvm.cttz.v16i8(<16 x i8> %a, i1 false)
store <16 x i8> %c, ptr %x, align 16
store ptr %G, ptr %A, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <16 x i8> @llvm.cttz.v16i8(<16 x i8>, i1 immarg) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64f,+zvl128b,+f,+zbb -O2 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64f,+zvl128b,+f,+zbb -O2 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %7:_(<16 x i8>) = G_CTTZ %4:_(<16 x i8>) (in function: cttz_v16i8)
warning: Instruction selection used fallback path for cttz_v16i8
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-cttz.12120be6ac.ll (mutant of fixed-vectors-cttz.ll) | cttz_zero_poison_v32i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+d,+zbb -O0 |
| fixed-vectors-cttz.1ba60c7d9c.ll (mutant of fixed-vectors-cttz.ll) | cttz_zero_poison_v16i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+d,+zbb -O0 |
| fixed-vectors-cttz.adf7988969.ll (mutant of fixed-vectors-cttz.ll) | cttz_v16i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zve64f,+zvl128b,+f,+zbb -O2 -code-model=small |
Generated 2026-11-29 14:49 UTC.