fallback: translate: call llvm.bswap.nxv64i16

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.bswap.nxv64i16 M
Occurrences:3 in 3 configs, 1 test files, 11 more counted only
Snippet from:bswap-vp.98fd5606e5.ll (mutant of bswap-vp.ll) @vp_bswap_nxv64i16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvkb,+m,+zbs,+c -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i64

define <vscale x 64 x i16> @vp_bswap_nxv64i16(<vscale x 64 x i16> %va, <vscale x 64 x i1> %m, i32 zeroext %evl) {
  %LGV = load i64, ptr @G, align 4
  %C = icmp sgt i64 42, %LGV
  %v = call <vscale x 64 x i16> @llvm.bswap.nxv64i16(<vscale x 64 x i16> %va)
  store i1 %C, ptr poison, align 1
  ret <vscale x 64 x i16> %v
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 64 x i16> @llvm.bswap.nxv64i16(<vscale x 64 x i16>) #0

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

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvkb,+m,+zbs,+c -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvkb,+m,+zbs,+c -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.bswap.nxv64i16: '  %v = call <vscale x 64 x i16> @llvm.bswap.nxv64i16(<vscale x 64 x i16> %va)' (in function: vp_bswap_nxv64i16)
warning: Instruction selection used fallback path for vp_bswap_nxv64i16

Occurrences (3):

InputFunctionConfig
bswap-vp.584958e16f.ll (mutant of bswap-vp.ll)vp_bswap_nxv64i16_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+m -O1
bswap-vp.6a94fc6821.ll (mutant of bswap-vp.ll)vp_bswap_nxv64i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+m -O0
bswap-vp.98fd5606e5.ll (mutant of bswap-vp.ll)vp_bswap_nxv64i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvkb,+m,+zbs,+c -O2

Generated 2026-11-29 14:49 UTC.