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

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

Snippet:

; Function Attrs: strictfp
define <32 x half> @trunc_v32f16(<32 x half> %x) #0 {
  %C = icmp ugt i8 16, -1
  %a = call <32 x half> @llvm.experimental.constrained.trunc.v32f16(<32 x half> %x, metadata !"fpexcept.strict")
  store i1 %C, ptr poison, align 1
  ret <32 x half> %a
}

; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare <32 x half> @llvm.experimental.constrained.trunc.v32f16(<32 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,+v,+zvbb -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zvbb -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (6):

InputFunctionConfig
fixed-vectors-ftrunc-constrained-sdnode.090e02d15e.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v32f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zve32x -O3
fixed-vectors-ftrunc-constrained-sdnode.4739e0a3dc.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v32f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O2 -code-model=medium
fixed-vectors-ftrunc-constrained-sdnode.65006b9202.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v32f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zvbb -O0
fixed-vectors-ftrunc-constrained-sdnode.75b373a50d.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v32f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zba -O1
fixed-vectors-ftrunc-constrained-sdnode.bffe73e1e2.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v32f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O3 -code-model=small
fixed-vectors-ftrunc-constrained-sdnode.fb95868fcb.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v32f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zicsr -O0 -code-model=medium

Generated 2026-11-29 14:49 UTC.