fallback: translate: call llvm.vector.reverse.nxv8bf16

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vector.reverse.nxv8bf16 M
Occurrences:4 in 4 configs, 1 test files, 5 more counted only
Snippet from:named-vector-shuffle-reverse.58448428d4.ll (mutant of named-vector-shuffle-reverse.ll) @reverse_nxv8bf16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+zbs -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i64

define <vscale x 8 x bfloat> @reverse_nxv8bf16(<vscale x 8 x bfloat> %a) {
  %LGV = load i64, ptr @G.1, align 4
  %C = icmp ult i64 1, %LGV
  %res = call <vscale x 8 x bfloat> @llvm.vector.reverse.nxv8bf16(<vscale x 8 x bfloat> %a)
  store i1 %C, ptr poison, align 1
  ret <vscale x 8 x bfloat> %res
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 8 x bfloat> @llvm.vector.reverse.nxv8bf16(<vscale x 8 x bfloat>) #0

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+zbs -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+zbs -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vector.reverse.nxv8bf16: '  %res = call <vscale x 8 x bfloat> @llvm.vector.reverse.nxv8bf16(<vscale x 8 x bfloat> %a)' (in function: reverse_nxv8bf16)
warning: Instruction selection used fallback path for reverse_nxv8bf16

Occurrences (4):

InputFunctionConfig
named-vector-shuffle-reverse.0236b191b0.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv8bf16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfhmin,+zvfbfmin,+zfh -O3
named-vector-shuffle-reverse.34f6a037be.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv8bf16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+d,+zvfh,+zvfbfmin -O3
named-vector-shuffle-reverse.364aface5b.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv8bf16-mtriple=riscv64 -riscv-v-vector-bits-max=256 -verify-machineinstrs -mattr=+v,+f,+d,+zvfhmin,+zvfbfmin -O0
named-vector-shuffle-reverse.58448428d4.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv8bf16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+zbs -O1

Generated 2026-11-29 14:49 UTC.