fallback: translate: fptrunc float

Run:main-04ca53e65f-20261014-113325
Kind:fallback
Category:translate: fptrunc float
Occurrences:24 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 (24):

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.2b3ba0e3d9.ll (mutant of bf16-promote.ll)test_fptrunc_float-mtriple=riscv64 -mattr=+d -target-abi=lp64d
bf16-promote.65aac7c3b1.ll (mutant of bf16-promote.ll)test_fptrunc_float-mtriple=riscv32 -mattr=+d -target-abi=ilp32d
xandesbfhcvt.17c3aed0df.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.9e0abce959.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.b3abc5fb1b.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+zfh,+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.c830176ca6.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.