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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vector.reverse.nxv16i16 M
Occurrences:3 in 3 configs, 1 test files, 4 more counted only
Snippet from:named-vector-shuffle-reverse.b5e15baf72.ll (mutant of named-vector-shuffle-reverse.ll) @reverse_nxv16i16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+zicond -O3 -code-model=small
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global <8 x i8>

define <vscale x 16 x i16> @reverse_nxv16i16(<vscale x 16 x i16> %a) {
  %LGV = load <8 x i8>, ptr @G.3, align 8
  %B = add <8 x i8> splat (i8 16), %LGV
  %res = call <vscale x 16 x i16> @llvm.vector.reverse.nxv16i16(<vscale x 16 x i16> %a)
  store <8 x i8> %B, ptr poison, align 8
  ret <vscale x 16 x i16> %res
}

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

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+zicond -O3 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+zicond -O3 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
named-vector-shuffle-reverse.0905d01bdf.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv16i16-mtriple=riscv32 -riscv-v-vector-bits-max=512 -verify-machineinstrs -mattr=+m,+v,+f,+zvfhmin,+zvfbfmin -O3 -code-model=small
named-vector-shuffle-reverse.b5e15baf72.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv16i16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+zicond -O3 -code-model=small
named-vector-shuffle-reverse.c4b3c3d719.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv16i16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfhmin,+zvfbfmin -O1

Generated 2026-11-29 14:49 UTC.