fallback: translate: call llvm.fshr.i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.fshr.i32 M |
| Occurrences: | 3 in 3 configs, 2 test files, 19 more counted only |
| Snippet from: | rv64zbb-zbkb.53f755706b.ll (mutant of rv64zbb-zbkb.ll) @ror_i32_neg_constant_rhs via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define signext i32 @ror_i32_neg_constant_rhs(i32 signext %a) #0 {
%1 = tail call i32 @llvm.fshr.i32(i32 -2, i32 -2, i32 %a)
%B = or i32 %a, %1
ret i32 %B
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshr.i32(i32, i32, i32) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.fshr.i32: ' %1 = tail call i32 @llvm.fshr.i32(i32 -2, i32 -2, i32 %a)' (in function: ror_i32_neg_constant_rhs)
warning: Instruction selection used fallback path for ror_i32_neg_constant_rhs
Occurrences (3):
| Input | Function | Config |
|---|
| rv32zbb-zbkb.241705dd3a.ll (mutant of rv32zbb-zbkb.ll) | rori_i32_fshr | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+m -O2 -code-model=small |
| rv64zbb-zbkb.53f755706b.ll (mutant of rv64zbb-zbkb.ll) | ror_i32_neg_constant_rhs | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0 |
| rv64zbb-zbkb.ac3beee776.ll (mutant of rv64zbb-zbkb.ll) | ror_i32_nosext | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+c -O1 |
Generated 2026-11-29 14:49 UTC.