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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.experimental.constrained.trunc.v16f32 M
Occurrences:4 in 4 configs, 1 test files, 11 more counted only
Snippet from:fixed-vectors-ftrunc-constrained-sdnode.f8d2a61c16.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll) @trunc_v16f32 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zihintpause -O3 -code-model=small
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i8
@G.2 = external global i8

; Function Attrs: strictfp
define <16 x float> @trunc_v16f32(<16 x float> %x) #0 {
  %LGV = load i8, ptr @G.1, align 1
  %B = and i8 %LGV, -128
  %a = call <16 x float> @llvm.experimental.constrained.trunc.v16f32(<16 x float> %x, metadata !"fpexcept.strict")
  store i8 %B, ptr @G.2, align 1
  ret <16 x float> %a
}

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

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

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zihintpause -O3 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zihintpause -O3 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
fixed-vectors-ftrunc-constrained-sdnode.7fccb39f15.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v16f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O2
fixed-vectors-ftrunc-constrained-sdnode.9a958eaade.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v16f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O2 -code-model=medium
fixed-vectors-ftrunc-constrained-sdnode.cf2adfce10.ll (mutant of fixed-vectors-ftrunc-constrained-sdnode.ll)trunc_v16f32-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_v16f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zihintpause -O3 -code-model=small

Generated 2026-11-29 14:49 UTC.