fallback: translate: call llvm.cttz.i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.cttz.i64 M |
| Occurrences: | 3 in 3 configs, 2 test files, 4 more counted only |
| Snippet from: | shl-cttz.e5c7e3dc1e.ll (mutant of shl-cttz.ll) @shl_cttz_i64 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+m,+zbb,+a,+zhinx -O3 -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i64 @shl_cttz_i64(i64 %x, i64 %y) {
entry:
%cttz = call i64 @llvm.cttz.i64(i64 %y, i1 true)
%res = shl i64 %x, %cttz
%B = srem i64 %res, %y
ret i64 %B
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.cttz.i64(i64, i1 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+m,+zbb,+a,+zhinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+zbb,+a,+zhinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.cttz.i64: ' %cttz = call i64 @llvm.cttz.i64(i64 %y, i1 true)' (in function: shl_cttz_i64)
warning: Instruction selection used fallback path for shl_cttz_i64
Occurrences (3):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.f4b41a7b28.ll (mutant of ctlz-cttz-ctpop.ll) | test_cttz_i64_zero_poison | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zvkb -O1 |
| shl-cttz.73ab93622c.ll (mutant of shl-cttz.ll) | shl_cttz_i64 | -mtriple=riscv64 -mattr=+m,+zdinx,+a -O3 -verify-machineinstrs |
| shl-cttz.e5c7e3dc1e.ll (mutant of shl-cttz.ll) | shl_cttz_i64 | -mtriple=riscv32 -mattr=+m,+zbb,+a,+zhinx -O3 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.