fallback: translate: call llvm.fshr.i64

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

Snippet:

@G = external global i1

; Function Attrs: nounwind
define i64 @rori_i64_fshr(i64 %a) #0 {
  %1 = tail call i64 @llvm.fshr.i64(i64 %a, i64 %a, i64 63)
  %B = or i1 false, true
  store i1 %B, ptr @G, align 1
  ret i64 %1
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.fshr.i64(i64, i64, i64) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.fshr.i64: '  %1 = tail call i64 @llvm.fshr.i64(i64 %a, i64 %a, i64 63)' (in function: rori_i64_fshr)
warning: Instruction selection used fallback path for rori_i64_fshr

Occurrences (3):

InputFunctionConfig
rv32zbb-zbkb.d23324a6e7.ll (mutant of rv32zbb-zbkb.ll)ror_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O0
rv64zbb-zbkb.1014b16c20.ll (mutant of rv64zbb-zbkb.ll)rori_i64_fshr-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zvkb,+zfinx -O3
rv64zbb-zbkb.c230a69095.ll (mutant of rv64zbb-zbkb.ll)rori_i64_fshr-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O2

Generated 2026-11-29 14:49 UTC.