fallback: translate: fptrunc float

Run:explore-04ca53e65f-20261014-114124
Kind:fallback
Category:translate: fptrunc float
Occurrences:32 in 18 configs, 4 test files
Snippet from:xandesbfhcvt.ll @fcvt_bf16_s via llvm-extract
Config:-mtriple=riscv32 -mattr=+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define bfloat @fcvt_bf16_s(float %a) #0 {
  %1 = fptrunc float %a to bfloat
  ret bfloat %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -mattr=+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: fptrunc: '  %1 = fptrunc float %a to bfloat' (in function: fcvt_bf16_s)
warning: Instruction selection used fallback path for fcvt_bf16_s

Occurrences (32):

InputFunctionConfig
bf16-promote.lltest_fptrunc_float-mtriple=riscv32 -mattr=+d -target-abi=ilp32d
bf16-promote.lltest_fptrunc_float-mtriple=riscv64 -mattr=+d -target-abi=lp64d
bfloat-convert.llfcvt_bf16_s-mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi ilp32d
bfloat-convert.llfcvt_bf16_s-mtriple=riscv32 -mattr=+d,+zfbfmin -verify-machineinstrs -target-abi ilp32d
bfloat-convert.llfcvt_bf16_s-mtriple=riscv32 -mattr=+zfbfmin -verify-machineinstrs -target-abi ilp32f
bfloat-convert.llfcvt_bf16_s-mtriple=riscv64 -mattr=+d -verify-machineinstrs -target-abi lp64d
bfloat-convert.llfcvt_bf16_s-mtriple=riscv64 -mattr=+d,+zfbfmin -verify-machineinstrs -target-abi lp64d
bfloat-convert.llfcvt_bf16_s-mtriple=riscv64 -mattr=+zfbfmin -verify-machineinstrs -target-abi lp64f
bfloat.llfloat_to_bfloat-mtriple=riscv32 -mattr=+d -target-abi=ilp32 -verify-machineinstrs
bfloat.llfloat_to_bfloat-mtriple=riscv32 -mattr=+d -target-abi=ilp32d -verify-machineinstrs
bfloat.llfloat_to_bfloat-mtriple=riscv32 -verify-machineinstrs
bfloat.llfloat_to_bfloat-mtriple=riscv64 -mattr=+d -target-abi=lp64 -verify-machineinstrs
bfloat.llfloat_to_bfloat-mtriple=riscv64 -mattr=+d -target-abi=lp64d -verify-machineinstrs
bfloat.llfloat_to_bfloat-mtriple=riscv64 -verify-machineinstrs
xandesbfhcvt.llfcvt_bf16_s-mtriple=riscv32 -mattr=+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.llfcvt_bf16_s-mtriple=riscv32 -mattr=+zfh,+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.llfcvt_bf16_s-mtriple=riscv64 -mattr=+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.llfcvt_bf16_s-mtriple=riscv64 -mattr=+zfh,+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
bf16-promote.6b07635496.ll (mutant of bf16-promote.ll)test_fptrunc_float-mtriple=riscv32 -mattr=+d -target-abi=ilp32d
bf16-promote.7cb6423f5c.ll (mutant of bf16-promote.ll)test_fptrunc_float-mtriple=riscv64 -mattr=+d -target-abi=lp64d
bfloat.3a6c02ab01.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv32 -verify-machineinstrs
bfloat.6514321f1a.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv64 -mattr=+d -target-abi=lp64d -verify-machineinstrs
bfloat.af332a99a4.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv32 -mattr=+d -target-abi=ilp32d -verify-machineinstrs
bfloat.b0b73bde5d.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv64 -mattr=+d -target-abi=lp64 -verify-machineinstrs
bfloat.e6b61ccbe0.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv32 -mattr=+d -target-abi=ilp32 -verify-machineinstrs
bfloat.f7cf1f5894.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv64 -verify-machineinstrs
xandesbfhcvt.306b20264d.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.4637de43b1.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+zfh,+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.9382953bb2.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+zfh,+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.c796a8d9a8.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.e0ebd4322c.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+zfh,+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.f2318a97d9.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+zfh,+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.