fallback: translate: call llvm.cttz.i64
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.cttz.i64 M |
| Occurrences: | 4 in 4 configs, 3 test files, 4 more counted only |
| Snippet from: | shl-cttz.e804079217.ll (mutant of shl-cttz.ll) @shl_cttz_constant_i64 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+m,+zbb,+zba,+zdinx -O3 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.6 = external global i1
define i64 @shl_cttz_constant_i64(i64 %y) {
entry:
%cttz = call i64 @llvm.cttz.i64(i64 %y, i1 true)
%C = icmp ule i8 16, 42
%res = shl i64 4, %cttz
store i1 %C, ptr @G.6, align 1
ret i64 %res
}
; 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,+zba,+zdinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+zbb,+zba,+zdinx -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_constant_i64)
warning: Instruction selection used fallback path for shl_cttz_constant_i64
Occurrences (4):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.58559c0d47.ll (mutant of ctlz-cttz-ctpop.ll) | test_cttz_i64_zero_poison | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3 |
| ctz_zero_return_test.861e681972.ll (mutant of ctz_zero_return_test.ll) | ctz4 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 |
| ctz_zero_return_test.bad0516f7f.ll (mutant of ctz_zero_return_test.ll) | ctz4 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O1 |
| shl-cttz.e804079217.ll (mutant of shl-cttz.ll) | shl_cttz_constant_i64 | -mtriple=riscv64 -mattr=+m,+zbb,+zba,+zdinx -O3 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.