fallback: translate: call llvm.fshl.i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.fshl.i64 M |
| Occurrences: | 3 in 2 configs, 2 test files, 2 more counted only |
| Snippet from: | zicond-opts.46d4dddc16.ll (mutant of zicond-opts.ll) @rotate_l_eqz via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+b,+zicond,+zhinx,+zicsr -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i64 @rotate_l_eqz(i64 %x, i64 %rot.amt, i1 %cond) {
%1 = call i64 @llvm.fshl.i64(i64 %x, i64 %x, i64 %rot.amt)
%2 = select i1 %cond, i64 %1, i64 %x
%C = icmp ule i64 %1, %rot.amt
store i1 %C, ptr poison, align 1
ret i64 %2
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.fshl.i64(i64, i64, i64) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+b,+zicond,+zhinx,+zicsr -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+b,+zicond,+zhinx,+zicsr -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.fshl.i64: ' %1 = call i64 @llvm.fshl.i64(i64 %x, i64 %x, i64 %rot.amt)' (in function: rotate_l_eqz)
warning: Instruction selection used fallback path for rotate_l_eqz
Occurrences (3):
| Input | Function | Config |
|---|
| rv32zbb-zbkb.75039987c8.ll (mutant of rv32zbb-zbkb.ll) | rol_i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+xtheadba,+zhinx -O2 |
| rv32zbb-zbkb.75039987c8.ll (mutant of rv32zbb-zbkb.ll) | rori_i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+xtheadba,+zhinx -O2 |
| zicond-opts.46d4dddc16.ll (mutant of zicond-opts.ll) | rotate_l_eqz | -mtriple=riscv32 -verify-machineinstrs -mattr=+b,+zicond,+zhinx,+zicsr -O2 |
Generated 2026-11-29 14:49 UTC.