fallback: translate: call llvm.cttz.i16
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.cttz.i16 M |
| Occurrences: | 3 in 3 configs, 2 test files, 4 more counted only |
| Snippet from: | shl-cttz.50767b167f.ll (mutant of shl-cttz.ll) @shl_cttz_constant_i16 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+m,+zbb,+zbkb,+zhinx -O3 -code-model=small -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i16 @shl_cttz_constant_i16(i16 %y) {
entry:
%cttz = call i16 @llvm.cttz.i16(i16 %y, i1 true)
%B = shl i16 %y, %cttz
%res = shl i16 4, %B
ret i16 %res
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.cttz.i16(i16, i1 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+m,+zbb,+zbkb,+zhinx -O3 -code-model=small -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+zbb,+zbkb,+zhinx -O3 -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.i16: ' %cttz = call i16 @llvm.cttz.i16(i16 %y, i1 true)' (in function: shl_cttz_constant_i16)
warning: Instruction selection used fallback path for shl_cttz_constant_i16
Occurrences (3):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.9626e10360.ll (mutant of ctlz-cttz-ctpop.ll) | test_cttz_i16_zero_poison | -mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zfinx -O2 |
| shl-cttz.25d4d80c2e.ll (mutant of shl-cttz.ll) | shl_cttz_i16 | -mtriple=riscv32 -mattr=+m,+zbb,+zfinx -O2 -verify-machineinstrs |
| shl-cttz.50767b167f.ll (mutant of shl-cttz.ll) | shl_cttz_constant_i16 | -mtriple=riscv64 -mattr=+m,+zbb,+zbkb,+zhinx -O3 -code-model=small -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.