fallback: legalize: G_CTTZ <N x i32>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_CTTZ <N x i32> M |
| Occurrences: | 4 in 3 configs, 1 test files, 2 more counted only |
| Snippet from: | fixed-vectors-cttz.8542e0ac4c.ll (mutant of fixed-vectors-cttz.ll) @cttz_zero_poison_v4i32 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvbb,+zbb,+zve32x -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global ptr
@G.2 = external global i1
; Function Attrs: nounwind
define void @cttz_zero_poison_v4i32(ptr %x, ptr %y) #0 {
%C = fcmp uno half 5.960460e-08, 6.550400e+04
%G = getelementptr i1, ptr %x, i1 %C
%a = load <4 x i32>, ptr %x, align 16
%c = call <4 x i32> @llvm.cttz.v4i32(<4 x i32> %a, i1 true)
store <4 x i32> %c, ptr %x, align 16
store i1 %C, ptr @G.2, align 1
store ptr %G, ptr @G.1, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.cttz.v4i32(<4 x i32>, i1 immarg) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvbb,+zbb,+zve32x -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvbb,+zbb,+zve32x -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %8:_(<4 x i32>) = G_CTTZ %7:_(<4 x i32>) (in function: cttz_zero_poison_v4i32)
warning: Instruction selection used fallback path for cttz_zero_poison_v4i32
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-cttz.23b8282ec6.ll (mutant of fixed-vectors-cttz.ll) | cttz_v4i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbb -O0 |
| fixed-vectors-cttz.8542e0ac4c.ll (mutant of fixed-vectors-cttz.ll) | cttz_zero_poison_v4i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvbb,+zbb,+zve32x -O1 |
| fixed-vectors-cttz.ee6374cb24.ll (mutant of fixed-vectors-cttz.ll) | cttz_v8i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64f,+zvl128b,+f,+zbb -O0 -code-model=medium |
| fixed-vectors-cttz.ee6374cb24.ll (mutant of fixed-vectors-cttz.ll) | cttz_zero_poison_v4i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64f,+zvl128b,+f,+zbb -O0 -code-model=medium |
Generated 2026-11-29 14:49 UTC.