fallback: translate: call llvm.cttz.i8
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.cttz.i8 M |
| Occurrences: | 5 in 5 configs, 4 test files, 3 more counted only |
| Snippet from: | shl-cttz.dd03092579.ll (mutant of shl-cttz.ll) @shl_cttz_constant_i8 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+m,+zbb,+zfinx,+zvkb -O2 -code-model=small -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i8
define i8 @shl_cttz_constant_i8(i8 %y) {
entry:
%cttz = call i8 @llvm.cttz.i8(i8 %y, i1 true)
%res = shl i8 4, %cttz
%B = sdiv i8 %cttz, 0
store i8 %B, ptr @G.1, align 1
ret i8 %res
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.cttz.i8(i8, i1 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+m,+zbb,+zfinx,+zvkb -O2 -code-model=small -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+zbb,+zfinx,+zvkb -O2 -code-model=small -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.cttz.i8: ' %cttz = call i8 @llvm.cttz.i8(i8 %y, i1 true)' (in function: shl_cttz_constant_i8)
warning: Instruction selection used fallback path for shl_cttz_constant_i8
Occurrences (5):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.3928e10b72.ll (mutant of ctlz-cttz-ctpop.ll) | test_cttz_i8_zero_poison | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx,+a -O2 |
| ctlz-cttz-ctpop.4ce524a68a.ll (mutant of ctlz-cttz-ctpop.ll) | test_cttz_i8_zero_poison | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zdinx -O1 |
| rv32xtheadbb.ae6a0a219c.ll (mutant of rv32xtheadbb.ll) | cttz_zero_poison_i8 | -mtriple=riscv32 -mattr=+xtheadbb,+zhinx -O1 -verify-machineinstrs |
| rv64xtheadbb.a964c63ad0.ll (mutant of rv64xtheadbb.ll) | cttz_zero_poison_i8 | -mtriple=riscv64 -mattr=+xtheadbb,+zba,+zhinx -O1 -verify-machineinstrs |
| shl-cttz.dd03092579.ll (mutant of shl-cttz.ll) | shl_cttz_constant_i8 | -mtriple=riscv64 -mattr=+m,+zbb,+zfinx,+zvkb -O2 -code-model=small -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.