fallback: translate: call llvm.cttz.i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.cttz.i32 M |
| Occurrences: | 7 in 7 configs, 3 test files, 22 more counted only |
| Snippet from: | shl-cttz.e804079217.ll (mutant of shl-cttz.ll) @shl_cttz_constant_i32 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:
define i32 @shl_cttz_constant_i32(i32 %y) {
entry:
%cttz = call i32 @llvm.cttz.i32(i32 %y, i1 true)
%res = shl i32 4, %cttz
%C = icmp ult i32 %y, %res
store i1 %C, ptr poison, align 1
ret i32 %res
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.cttz.i32(i32, 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.i32: ' %cttz = call i32 @llvm.cttz.i32(i32 %y, i1 true)' (in function: shl_cttz_constant_i32)
warning: Instruction selection used fallback path for shl_cttz_constant_i32
Occurrences (7):
| Input | Function | Config |
|---|
| ctz_zero_return_test.5069b9b159.ll (mutant of ctz_zero_return_test.ll) | ctz5 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zdinx -O1 |
| ctz_zero_return_test.5149c0af8f.ll (mutant of ctz_zero_return_test.ll) | ctz5 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O0 |
| ctz_zero_return_test.73478d2db2.ll (mutant of ctz_zero_return_test.ll) | ctz6 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+xtheadba -O1 |
| ctz_zero_return_test.8465971602.ll (mutant of ctz_zero_return_test.ll) | ctz1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zcb,+zfinx -O3 |
| ctz_zero_return_test.861e681972.ll (mutant of ctz_zero_return_test.ll) | ctz5 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 |
| rv64zbb.a819d486e4.ll (mutant of rv64zbb.ll) | findFirstSet_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0 |
| shl-cttz.e804079217.ll (mutant of shl-cttz.ll) | shl_cttz_constant_i32 | -mtriple=riscv64 -mattr=+m,+zbb,+zba,+zdinx -O3 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.