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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vector.reverse.nxv4i32 M
Occurrences:4 in 4 configs, 1 test files, 5 more counted only
Snippet from:named-vector-shuffle-reverse.da90fa0e3d.ll (mutant of named-vector-shuffle-reverse.ll) @reverse_nxv4i32 via llvm-extract
Config:-mtriple=riscv64 -riscv-v-vector-bits-max=512 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfhmin,+zvfbfmin,+zba -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global i64

define <vscale x 4 x i32> @reverse_nxv4i32(<vscale x 4 x i32> %a) {
  %A = alloca i1, align 1
  store i1 poison, ptr %A, align 1
  %LGV = load i64, ptr @G.3, align 4
  %res = call <vscale x 4 x i32> @llvm.vector.reverse.nxv4i32(<vscale x 4 x i32> %a)
  %C = icmp slt i64 42, %LGV
  store i1 %C, ptr %A, align 1
  ret <vscale x 4 x i32> %res
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
named-vector-shuffle-reverse.29201987ae.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv4i32-mtriple=riscv64 -riscv-v-vector-bits-max=512 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfhmin,+zvfbfmin -O2
named-vector-shuffle-reverse.364f8e096f.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv4i32-mtriple=riscv64 -riscv-v-vector-bits-max=512 -verify-machineinstrs -mattr=+m,+v,+d,+zvfh,+zvfbfmin,+zve32x -O1
named-vector-shuffle-reverse.a933bfb3ff.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv4i32-mtriple=riscv32 -riscv-v-vector-bits-max=512 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfhmin,+zvfbfmin,+zfh -O3
named-vector-shuffle-reverse.da90fa0e3d.ll (mutant of named-vector-shuffle-reverse.ll)reverse_nxv4i32-mtriple=riscv64 -riscv-v-vector-bits-max=512 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zvfhmin,+zvfbfmin,+zba -O2

Generated 2026-11-29 14:49 UTC.