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

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

Snippet:

@G = external global <2 x i64>
@G.1 = external global <2 x i64>

define <vscale x 2 x i16> @reverse_nxv2i16(<vscale x 2 x i16> %a) {
  %LGV = load <2 x i64>, ptr @G, align 16
  %res = call <vscale x 2 x i16> @llvm.vector.reverse.nxv2i16(<vscale x 2 x i16> %a)
  %B = shl <2 x i64> splat (i64 -1), %LGV
  store <2 x i64> %B, ptr @G.1, align 16
  ret <vscale x 2 x i16> %res
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+zvkb -O3 -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,+zvkb -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
named-vector-shuffle-reverse.beb2cb208f.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv2i16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfh,+zvfbfmin,+zvkb -O3
named-vector-shuffle-reverse.d0b82a29d2.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv2i16-mtriple=riscv64 -riscv-v-vector-bits-max=256 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfhmin,+zvfbfmin,+zicond -O0
named-vector-shuffle-reverse.fcc6b24070.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv2i16-mtriple=riscv64 -riscv-v-vector-bits-max=256 -verify-machineinstrs -mattr=+m,+v,+d,+zvfhmin,+zvfbfmin,+zvfh -O2

Generated 2026-11-29 14:49 UTC.