fallback: translate: call llvm.experimental.cttz.elts.i32.nxv4i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.experimental.cttz.elts.i32.nxv4i32 M |
| Occurrences: | 3 in 2 configs, 1 test files, 9 more counted only |
| Snippet from: | cttz-elts.1f3ba17428.ll (mutant of cttz-elts.ll) @ctz_nxv4i32 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+v -O0 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: vscale_range(2,1024)
define i32 @ctz_nxv4i32(<vscale x 4 x i32> %a) #0 {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%C = fcmp true float +inf, 0.000000e+00
%res = call i32 @llvm.experimental.cttz.elts.i32.nxv4i32(<vscale x 4 x i32> %a, i1 false)
store i1 %C, ptr %A, align 1
ret i32 %res
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.experimental.cttz.elts.i32.nxv4i32(<vscale x 4 x i32>, i1 immarg) #1
attributes #0 = { vscale_range(2,1024) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+v -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+v -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.experimental.cttz.elts.i32.nxv4i32: ' %res = call i32 @llvm.experimental.cttz.elts.i32.nxv4i32(<vscale x 4 x i32> %a, i1 false)' (in function: ctz_nxv4i32)
warning: Instruction selection used fallback path for ctz_nxv4i32
Occurrences (3):
| Input | Function | Config |
|---|
| cttz-elts.1f3ba17428.ll (mutant of cttz-elts.ll) | ctz_nxv4i32 | -mtriple=riscv32 -mattr=+v -O0 -verify-machineinstrs |
| cttz-elts.586108ff8f.ll (mutant of cttz-elts.ll) | ctz_nxv4i32 | -mtriple=riscv64 -mattr=+v,+c -O3 -verify-machineinstrs |
| cttz-elts.9c220b0c5b.ll (mutant of cttz-elts.ll) | ctz_nxv4i32 | -mtriple=riscv32 -mattr=+v -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.