fallback: translate: call llvm.fshr.i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.fshr.i32 M
Occurrences:3 in 3 configs, 3 test files, 10 more counted only
Snippet from:rv64zbb-zbkb.e4ed7c6eb7.ll (mutant of rv64zbb-zbkb.ll) @ror_i32_nosext via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define void @ror_i32_nosext(i32 signext %a, i32 signext %b, ptr %x) #0 {
  %1 = tail call i32 @llvm.fshr.i32(i32 %a, i32 %a, i32 %b)
  %B = and i32 %1, -2147483648
  store i32 %B, ptr %x, align 4
  ret void
}

; 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=+zhinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2 -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 %a, i32 %a, i32 %b)' (in function: ror_i32_nosext)
warning: Instruction selection used fallback path for ror_i32_nosext

Occurrences (3):

InputFunctionConfig
rv32zbb-zbkb.aac2a7a185.ll (mutant of rv32zbb-zbkb.ll)rori_i32_fshr-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3 -code-model=small
rv64zbb-zbkb.1014b16c20.ll (mutant of rv64zbb-zbkb.ll)ror_i32_neg_constant_rhs-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zvkb,+zfinx -O3
rv64zbb-zbkb.e4ed7c6eb7.ll (mutant of rv64zbb-zbkb.ll)ror_i32_nosext-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2

Generated 2026-11-29 14:49 UTC.