fallback: translate: call llvm.bswap.nxv64i16

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.bswap.nxv64i16 M
Occurrences:3 in 3 configs, 1 test files, 4 more counted only
Snippet from:bswap-vp.6bada27442.ll (mutant of bswap-vp.ll) @vp_bswap_nxv64i16_unmasked via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvkb -O3 -code-model=small
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 64 x i16> @vp_bswap_nxv64i16_unmasked(<vscale x 64 x i16> %va, i32 zeroext %evl) {
  %A = alloca i1, align 1
  store i1 poison, ptr %A, align 1
  %v = call <vscale x 64 x i16> @llvm.bswap.nxv64i16(<vscale x 64 x i16> %va)
  %C = icmp sgt i32 %evl, 65536
  store i1 %C, ptr %A, 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 -O3 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvkb -O3 -code-model=small -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_unmasked)
warning: Instruction selection used fallback path for vp_bswap_nxv64i16_unmasked

Occurrences (3):

InputFunctionConfig
bswap-vp.33ed25240e.ll (mutant of bswap-vp.ll)vp_bswap_nxv64i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvkb,+m,+zfh -O0
bswap-vp.6bada27442.ll (mutant of bswap-vp.ll)vp_bswap_nxv64i16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvkb -O3 -code-model=small
bswap-vp.fcfe87a46c.ll (mutant of bswap-vp.ll)vp_bswap_nxv64i16_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvkb,+m,+zicsr -O3

Generated 2026-11-29 14:49 UTC.