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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.experimental.constrained.trunc.v16f16 M
Occurrences:7 in 7 configs, 1 test files, 7 more counted only
Snippet from:fixed-vectors-ftrunc-constrained-sdnode.68a449e124.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll) @trunc_v16f16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i1

; Function Attrs: strictfp
define <16 x half> @trunc_v16f16(<16 x half> %x) #0 {
  %a = call <16 x half> @llvm.experimental.constrained.trunc.v16f16(<16 x half> %x, metadata !"fpexcept.strict")
  %C = icmp sgt i128 0, 0
  store i1 %C, ptr @G.2, align 1
  ret <16 x half> %a
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (7):

InputFunctionConfig
fixed-vectors-ftrunc-constrained-sdnode.02e77ffc36.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v16f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v -O1
fixed-vectors-ftrunc-constrained-sdnode.0cb30d5756.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v16f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+a -O1
fixed-vectors-ftrunc-constrained-sdnode.65006b9202.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v16f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zvbb -O0
fixed-vectors-ftrunc-constrained-sdnode.68a449e124.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v16f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O2
fixed-vectors-ftrunc-constrained-sdnode.75b373a50d.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v16f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zba -O1
fixed-vectors-ftrunc-constrained-sdnode.789280b2f3.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v16f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfhmin -O0
fixed-vectors-ftrunc-constrained-sdnode.91b36bd6e0.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v16f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O2

Generated 2026-11-29 14:49 UTC.