fallback: translate: fptrunc float

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:translate: fptrunc float
Occurrences:48 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 bc8218b282
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 (48):

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.6ffc6d614b.ll (mutant of bf16-promote.ll)test_fptrunc_float-mtriple=riscv32 -mattr=+d -target-abi=ilp32d
bf16-promote.9d8eef37c6.ll (mutant of bf16-promote.ll)test_fptrunc_float-mtriple=riscv64 -mattr=+d -target-abi=lp64d
bfloat-convert.27342a9f3e.ll (mutant of bfloat-convert.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+d,+zfbfmin -verify-machineinstrs -target-abi ilp32d
bfloat-convert.4b91337379.ll (mutant of bfloat-convert.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+d -verify-machineinstrs -target-abi lp64d
bfloat-convert.7639f6cb49.ll (mutant of bfloat-convert.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+d,+zfbfmin -verify-machineinstrs -target-abi lp64d
bfloat-convert.93b9b665bb.ll (mutant of bfloat-convert.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+zfbfmin -verify-machineinstrs -target-abi ilp32f
bfloat-convert.9c47f7348b.ll (mutant of bfloat-convert.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+zfbfmin -verify-machineinstrs -target-abi lp64f
bfloat-convert.a065cb1608.ll (mutant of bfloat-convert.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi ilp32d
bfloat.2fbc2ea3a9.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv64 -mattr=+d -target-abi=lp64 -verify-machineinstrs
bfloat.38f5d75bfc.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv32 -verify-machineinstrs
bfloat.58599e460f.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv64 -verify-machineinstrs
bfloat.87a8fac342.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv64 -mattr=+d -target-abi=lp64d -verify-machineinstrs
bfloat.98865955f5.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv32 -mattr=+d -target-abi=ilp32 -verify-machineinstrs
bfloat.eaaeeb33c6.ll (mutant of bfloat.ll)float_to_bfloat-mtriple=riscv32 -mattr=+d -target-abi=ilp32d -verify-machineinstrs
xandesbfhcvt.07be0a1750.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+zfh,+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.1cedb999c8.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+zfh,+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.21b7d95dfb.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+zfh,+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.2481f45a23.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.3e1e0fc3fb.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.408acd7b98.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.43cf28414d.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+zfh,+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.51fe92e66b.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.a524f4c31a.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+zfh,+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.a5ff1323f3.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.aa54549e46.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+zfh,+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.c4031a198b.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.cf0a723aaa.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv32 -mattr=+xandesbfhcvt -target-abi ilp32f -verify-machineinstrs
xandesbfhcvt.d835f72a24.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.e3b0f53a4a.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+zfh,+xandesbfhcvt -target-abi lp64f -verify-machineinstrs
xandesbfhcvt.ec37bad8fc.ll (mutant of xandesbfhcvt.ll)fcvt_bf16_s-mtriple=riscv64 -mattr=+zfh,+xandesbfhcvt -target-abi lp64f -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.