fallback: translate: call llvm.trunc.nxv4f16

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:translate: call llvm.trunc.nxv4f16
Occurrences:24 in 6 configs, 2 test files
Snippet from:ftrunc-sdnode.ll @trunc_nxv4f16 via llvm-extract
Config:-mtriple=riscv32 -mattr=+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+v -target-abi=ilp32d -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 4 x half> @trunc_nxv4f16(<vscale x 4 x half> %x) {
  %a = call <vscale x 4 x half> @llvm.trunc.nxv4f16(<vscale x 4 x half> %x)
  ret <vscale x 4 x half> %a
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 4 x half> @llvm.trunc.nxv4f16(<vscale x 4 x half>) #0

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

Reproduce:

llc -mtriple=riscv32 -mattr=+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+v -target-abi=ilp32d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+v -target-abi=ilp32d -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.trunc.nxv4f16: '  %a = call <vscale x 4 x half> @llvm.trunc.nxv4f16(<vscale x 4 x half> %x)' (in function: trunc_nxv4f16)
warning: Instruction selection used fallback path for trunc_nxv4f16

Occurrences (24) (first 15):

InputFunctionConfig
ftrunc-sdnode.lltrunc_nxv4f16-mtriple=riscv32 -mattr=+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+v -target-abi=ilp32d -verify-machineinstrs
ftrunc-sdnode.lltrunc_nxv4f16-mtriple=riscv32 -mattr=+d,+zvfh,+zfbfmin,+zvfbfmin,+v -target-abi=ilp32d -verify-machineinstrs
ftrunc-sdnode.lltrunc_nxv4f16-mtriple=riscv64 -mattr=+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+v -target-abi=lp64d -verify-machineinstrs
ftrunc-sdnode.lltrunc_nxv4f16-mtriple=riscv64 -mattr=+d,+zvfh,+zfbfmin,+zvfbfmin,+v -target-abi=lp64d -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_si8-mtriple=riscv32 -mattr=+zvfh,+v -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_ui8-mtriple=riscv32 -mattr=+zvfh,+v -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_si16-mtriple=riscv32 -mattr=+zvfh,+v -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_ui16-mtriple=riscv32 -mattr=+zvfh,+v -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_si32-mtriple=riscv32 -mattr=+zvfh,+v -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_ui32-mtriple=riscv32 -mattr=+zvfh,+v -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_si64-mtriple=riscv32 -mattr=+zvfh,+v -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_ui64-mtriple=riscv32 -mattr=+zvfh,+v -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_si8-mtriple=riscv64 -mattr=+zvfh,+v -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_ui8-mtriple=riscv64 -mattr=+zvfh,+v -verify-machineinstrs
half-round-conv.lltrunc_nxv4f16_to_si16-mtriple=riscv64 -mattr=+zvfh,+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.