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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vector.reverse.nxv2bf16 M
Occurrences:3 in 3 configs, 1 test files, 3 more counted only
Snippet from:named-vector-shuffle-reverse.aec30bc1ed.ll (mutant of named-vector-shuffle-reverse.ll) @reverse_nxv2bf16 via llvm-extract
Config:-mtriple=riscv64 -riscv-v-vector-bits-max=256 -verify-machineinstrs -mattr=+m,+v,+f,+zvfhmin,+zvfbfmin -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global double

define <vscale x 2 x bfloat> @reverse_nxv2bf16(<vscale x 2 x bfloat> %a) {
  %LGV = load double, ptr @G, align 8
  %B = fdiv double +qnan, %LGV
  %res = call <vscale x 2 x bfloat> @llvm.vector.reverse.nxv2bf16(<vscale x 2 x bfloat> %a)
  store double %B, ptr @G, align 8
  ret <vscale x 2 x bfloat> %res
}

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

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

Reproduce:

llc -mtriple=riscv64 -riscv-v-vector-bits-max=256 -verify-machineinstrs -mattr=+m,+v,+f,+zvfhmin,+zvfbfmin -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -riscv-v-vector-bits-max=256 -verify-machineinstrs -mattr=+m,+v,+f,+zvfhmin,+zvfbfmin -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
named-vector-shuffle-reverse.2824bb5b5b.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv2bf16-mtriple=riscv64 -riscv-v-vector-bits-max=512 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin -O1
named-vector-shuffle-reverse.aec30bc1ed.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv2bf16-mtriple=riscv64 -riscv-v-vector-bits-max=256 -verify-machineinstrs -mattr=+m,+v,+f,+zvfhmin,+zvfbfmin -O1
named-vector-shuffle-reverse.bcbe0c7081.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv2bf16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+a -O3

Generated 2026-11-29 14:49 UTC.