fallback: translate: call llvm.cttz.i64
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.cttz.i64 M |
| Occurrences: | 4 in 4 configs, 4 test files, 3 more counted only |
| Snippet from: | shl-cttz.dd03092579.ll (mutant of shl-cttz.ll) @shl_cttz_constant_i64 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.2 = external global i64
define i64 @shl_cttz_constant_i64(i64 %y) {
entry:
%cttz = call i64 @llvm.cttz.i64(i64 %y, i1 true)
%B = sub i64 %y, %cttz
%B1 = ashr i64 %y, %B
store i64 %B1, ptr @G.2, align 4
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=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.i64: ' %cttz = call i64 @llvm.cttz.i64(i64 %y, i1 true)' (in function: shl_cttz_constant_i64)
warning: Instruction selection used fallback path for shl_cttz_constant_i64
Occurrences (4):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.353b540913.ll (mutant of ctlz-cttz-ctpop.ll) | test_cttz_i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+a,+zhinx -O3 |
| ctz_zero_return_test.6ad99fb11b.ll (mutant of ctz_zero_return_test.ll) | ctz4 | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zdinx -O3 |
| rv64xtheadbb.17e7422636.ll (mutant of rv64xtheadbb.ll) | cttz_i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+b,+zhinx -O0 -code-model=medium |
| shl-cttz.dd03092579.ll (mutant of shl-cttz.ll) | shl_cttz_constant_i64 | -mtriple=riscv64 -mattr=+m,+zbb,+zfinx,+zvkb -O2 -code-model=small -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.