fallback: translate: call llvm.experimental.constrained.trunc.v4f16

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.experimental.constrained.trunc.v4f16 M
Occurrences:8 in 8 configs, 1 test files, 5 more counted only
Snippet from:fixed-vectors-ftrunc-constrained-sdnode.b338b170a2.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll) @trunc_v4f16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+v,+zvkb -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: strictfp
define <4 x half> @trunc_v4f16(<4 x half> %x) #0 {
  %C = fcmp ord float 0.000000e+00, 1.000000e+00
  %a = call <4 x half> @llvm.experimental.constrained.trunc.v4f16(<4 x half> %x, metadata !"fpexcept.strict")
  store i1 %C, ptr poison, align 1
  ret <4 x half> %a
}

; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare <4 x half> @llvm.experimental.constrained.trunc.v4f16(<4 x half>, metadata) #1

attributes #0 = { strictfp }
attributes #1 = { nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.experimental.constrained.trunc.v4f16: '  %a = call <4 x half> @llvm.experimental.constrained.trunc.v4f16(<4 x half> %x, metadata !"fpexcept.strict")' (in function: trunc_v4f16)
warning: Instruction selection used fallback path for trunc_v4f16

Occurrences (8):

InputFunctionConfig
fixed-vectors-ftrunc-constrained-sdnode.1d5dac40bc.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v -O3
fixed-vectors-ftrunc-constrained-sdnode.2b7ab62622.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+c -O3
fixed-vectors-ftrunc-constrained-sdnode.6442454430.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zbb -O1 -code-model=medium
fixed-vectors-ftrunc-constrained-sdnode.86e35120fc.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v -O1
fixed-vectors-ftrunc-constrained-sdnode.b338b170a2.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+v,+zvkb -O1
fixed-vectors-ftrunc-constrained-sdnode.d61ac558cd.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zvbb,+zfa -O2
fixed-vectors-ftrunc-constrained-sdnode.defeb56e3e.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zbkb -O2
fixed-vectors-ftrunc-constrained-sdnode.ea580e9842.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zfhmin,+f -O0

Generated 2026-11-29 14:49 UTC.