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

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

Snippet:

; Function Attrs: strictfp
define <2 x double> @trunc_v2f64(<2 x double> %x) #0 {
  %a = call <2 x double> @llvm.experimental.constrained.trunc.v2f64(<2 x double> %x, metadata !"fpexcept.strict")
  %B = sub i128 1, 1
  store i128 %B, ptr poison, align 4
  ret <2 x double> %a
}

; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare <2 x double> @llvm.experimental.constrained.trunc.v2f64(<2 x double>, 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 -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 -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (6):

InputFunctionConfig
fixed-vectors-ftrunc-constrained-sdnode.4b5fc0f2d9.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v2f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfhmin -O3
fixed-vectors-ftrunc-constrained-sdnode.9a958eaade.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v2f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O2 -code-model=medium
fixed-vectors-ftrunc-constrained-sdnode.c2f8da6f25.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v2f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O0
fixed-vectors-ftrunc-constrained-sdnode.cac5e0e2e6.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v2f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+v,+m -O3
fixed-vectors-ftrunc-constrained-sdnode.cf2adfce10.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v2f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v -O0
fixed-vectors-ftrunc-constrained-sdnode.f8d2a61c16.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v2f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zihintpause -O3 -code-model=small

Generated 2026-11-29 14:49 UTC.