fallback: translate: call llvm.fshl.i8

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.fshl.i8 M
Occurrences:3 in 3 configs, 1 test files, 7 more counted only
Snippet from:rotl-rotr.97853bca31.ll (mutant of rotl-rotr.ll) @rotl_i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -enable-legalize-types-checking -mattr=+zdinx -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define i8 @rotl_i8(i8 %x, i8 %z) {
  %f = call i8 @llvm.fshl.i8(i8 %x, i8 %x, i8 %z)
  %C = icmp eq i8 %f, 1
  store i1 %C, ptr @G, align 1
  ret i8 %f
}

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

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -enable-legalize-types-checking -mattr=+zdinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -enable-legalize-types-checking -mattr=+zdinx -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.fshl.i8: '  %f = call i8 @llvm.fshl.i8(i8 %x, i8 %x, i8 %z)' (in function: rotl_i8)
warning: Instruction selection used fallback path for rotl_i8

Occurrences (3):

InputFunctionConfig
rotl-rotr.45590ff6c8.ll (mutant of rotl-rotr.ll)rotl_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zcb,+zfinx -O1
rotl-rotr.93bb047cfd.ll (mutant of rotl-rotr.ll)rotl_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zbkb,+zdinx -O0
rotl-rotr.97853bca31.ll (mutant of rotl-rotr.ll)rotl_i8-mtriple=riscv64 -verify-machineinstrs -enable-legalize-types-checking -mattr=+zdinx -O2

Generated 2026-11-29 14:49 UTC.