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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vector.reverse.nxv1i16 M
Occurrences:3 in 3 configs, 1 test files, 6 more counted only
Snippet from:named-vector-shuffle-reverse.bb329ea52a.ll (mutant of named-vector-shuffle-reverse.ll) @reverse_nxv1i16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfhmin,+zvfbfmin,+zvbb -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global double
@G.1 = external global i1

define <vscale x 1 x i16> @reverse_nxv1i16(<vscale x 1 x i16> %a) {
  %LGV = load double, ptr @G, align 8
  %C = fcmp oge double %LGV, f0x7FEFFFFFFFFFFFFF
  %res = call <vscale x 1 x i16> @llvm.vector.reverse.nxv1i16(<vscale x 1 x i16> %a)
  store i1 %C, ptr @G.1, align 1
  ret <vscale x 1 x i16> %res
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
named-vector-shuffle-reverse.41e58da6eb.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv1i16-mtriple=riscv64 -riscv-v-vector-bits-max=512 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin -O3
named-vector-shuffle-reverse.bb329ea52a.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv1i16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfhmin,+zvfbfmin,+zvbb -O2
named-vector-shuffle-reverse.df9a335038.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv1i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+f,+d,+zvfhmin,+zvfbfmin,+xtheadba -O2

Generated 2026-11-29 14:49 UTC.