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

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

Snippet:

; Function Attrs: strictfp
define <4 x half> @trunc_v4f16(<4 x half> %x) #0 {
  %A = alloca i1, align 1
  store i1 poison, ptr %A, align 1
  %a = call <4 x half> @llvm.experimental.constrained.trunc.v4f16(<4 x half> %x, metadata !"fpexcept.strict")
  %C = icmp ne i64 42, 1
  store i1 %C, ptr %A, 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=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zve32x -O3 -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,+zve32x -O3 -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 (5):

InputFunctionConfig
fixed-vectors-ftrunc-constrained-sdnode.090e02d15e.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zve32x -O3
fixed-vectors-ftrunc-constrained-sdnode.b49b940d95.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+c -O1
fixed-vectors-ftrunc-constrained-sdnode.be5712c1bb.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.c1447e3d5f.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+m -O2
fixed-vectors-ftrunc-constrained-sdnode.fb95868fcb.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zicsr -O0 -code-model=medium

Generated 2026-11-29 14:49 UTC.