fallback: translate: call llvm.fshl.i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.fshl.i32 M
Occurrences:4 in 4 configs, 3 test files, 13 more counted only
Snippet from:rv32zbb-zbkb.58c7bc8071.ll (mutant of rv32zbb-zbkb.ll) @rol_i32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+zicond -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i32 @rol_i32(i32 %a, i32 %b) #0 {
  %or = tail call i32 @llvm.fshl.i32(i32 %a, i32 %a, i32 %b)
  %B = and i32 %or, %or
  ret i32 %B
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+zicond -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+zicond -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.fshl.i32: '  %or = tail call i32 @llvm.fshl.i32(i32 %a, i32 %a, i32 %b)' (in function: rol_i32)
warning: Instruction selection used fallback path for rol_i32

Occurrences (4):

InputFunctionConfig
mul.f8ce9a8574.ll (mutant of mul.ll)mulfshl_demand-mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x,+zfinx -O0
rv32zbb-zbkb.58c7bc8071.ll (mutant of rv32zbb-zbkb.ll)rol_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+zicond -O0
rv64zbb-zbkb.ac3beee776.ll (mutant of rv64zbb-zbkb.ll)rol_i32_nosext-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+c -O1
rv64zbb-zbkb.bdeaefbc7b.ll (mutant of rv64zbb-zbkb.ll)rol_i32_nosext-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zdinx -O3

Generated 2026-11-29 14:49 UTC.