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

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:translate: call llvm.experimental.constrained.trunc.v4f32 M
Occurrences:2 in 2 configs, 1 test files
Snippet from:fixed-vectors-ftrunc-constrained-sdnode.b8ee9e697b.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll) @trunc_v4f32 via llvm-extract
Config:-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <4 x i1>

; Function Attrs: strictfp
define <4 x float> @trunc_v4f32(<4 x float> %x) #0 {
  %a = call <4 x float> @llvm.experimental.constrained.trunc.v4f32(<4 x float> %x, metadata !"fpexcept.strict")
  %C = fcmp ord <4 x float> %x, %x
  store <4 x i1> %C, ptr @G, align 1
  ret <4 x float> %a
}

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

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

Reproduce:

llc -mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+d,+zvfh,+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.experimental.constrained.trunc.v4f32: '  %a = call <4 x float> @llvm.experimental.constrained.trunc.v4f32(<4 x float> %x, metadata !"fpexcept.strict")' (in function: trunc_v4f32)
warning: Instruction selection used fallback path for trunc_v4f32

Occurrences (2):

InputFunctionConfig
fixed-vectors-ftrunc-constrained-sdnode.b8ee9e697b.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f32-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
fixed-vectors-ftrunc-constrained-sdnode.cfa7efc0b3.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v4f32-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.