fallback: translate: fptrunc double

Run:explore-04ca53e65f-20261014-114124
Kind:fallback
Category:translate: fptrunc double
Occurrences:22 in 14 configs, 3 test files
Snippet from:bfloat-convert.ll @fcvt_bf16_d via llvm-extract
Config:-mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi ilp32d
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

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

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (22):

InputFunctionConfig
bf16-promote.lltest_fptrunc_double-mtriple=riscv32 -mattr=+d -target-abi=ilp32d
bf16-promote.lltest_fptrunc_double-mtriple=riscv64 -mattr=+d -target-abi=lp64d
bfloat-convert.llfcvt_bf16_d-mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi ilp32d
bfloat-convert.llfcvt_bf16_d-mtriple=riscv32 -mattr=+d,+zfbfmin -verify-machineinstrs -target-abi ilp32d
bfloat-convert.llfcvt_bf16_d-mtriple=riscv32 -mattr=+zfbfmin -verify-machineinstrs -target-abi ilp32f
bfloat-convert.llfcvt_bf16_d-mtriple=riscv64 -mattr=+d -verify-machineinstrs -target-abi lp64d
bfloat-convert.llfcvt_bf16_d-mtriple=riscv64 -mattr=+d,+zfbfmin -verify-machineinstrs -target-abi lp64d
bfloat-convert.llfcvt_bf16_d-mtriple=riscv64 -mattr=+zfbfmin -verify-machineinstrs -target-abi lp64f
bfloat.lldouble_to_bfloat-mtriple=riscv32 -mattr=+d -target-abi=ilp32 -verify-machineinstrs
bfloat.lldouble_to_bfloat-mtriple=riscv32 -mattr=+d -target-abi=ilp32d -verify-machineinstrs
bfloat.lldouble_to_bfloat-mtriple=riscv32 -verify-machineinstrs
bfloat.lldouble_to_bfloat-mtriple=riscv64 -mattr=+d -target-abi=lp64 -verify-machineinstrs
bfloat.lldouble_to_bfloat-mtriple=riscv64 -mattr=+d -target-abi=lp64d -verify-machineinstrs
bfloat.lldouble_to_bfloat-mtriple=riscv64 -verify-machineinstrs
bf16-promote.1389cd9d43.ll (mutant of bf16-promote.ll)test_fptrunc_double-mtriple=riscv32 -mattr=+d -target-abi=ilp32d
bf16-promote.b0e12ad786.ll (mutant of bf16-promote.ll)test_fptrunc_double-mtriple=riscv64 -mattr=+d -target-abi=lp64d
bfloat.2500ebdc7a.ll (mutant of bfloat.ll)double_to_bfloat-mtriple=riscv64 -mattr=+d -target-abi=lp64 -verify-machineinstrs
bfloat.3601a1aa6c.ll (mutant of bfloat.ll)double_to_bfloat-mtriple=riscv32 -verify-machineinstrs
bfloat.4a6d052848.ll (mutant of bfloat.ll)double_to_bfloat-mtriple=riscv64 -verify-machineinstrs
bfloat.7e764475e2.ll (mutant of bfloat.ll)double_to_bfloat-mtriple=riscv64 -mattr=+d -target-abi=lp64d -verify-machineinstrs
bfloat.7f073c948b.ll (mutant of bfloat.ll)double_to_bfloat-mtriple=riscv32 -mattr=+d -target-abi=ilp32 -verify-machineinstrs
bfloat.89596d883f.ll (mutant of bfloat.ll)double_to_bfloat-mtriple=riscv32 -mattr=+d -target-abi=ilp32d -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.