fallback: legalize: G_FPTRUNC <N x f16>,<N x f64>

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:legalize: G_FPTRUNC <N x f16>,<N x f64>
Occurrences:12 in 2 configs, 1 test files
Snippet from:fixed-vectors-fp-conv.ll @fpround_v2f64_v2f16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @fpround_v2f64_v2f16(ptr %x, ptr %y) {
  %a = load <2 x double>, ptr %x, align 16
  %d = fptrunc <2 x double> %a to <2 x half>
  store <2 x half> %d, ptr %y, align 4
  ret void
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %3:_(<2 x f16>) = G_FPTRUNC %2:_(<2 x f64>) (in function: fpround_v2f64_v2f16)
warning: Instruction selection used fallback path for fpround_v2f64_v2f16

Occurrences (12):

InputFunctionConfig
fixed-vectors-fp-conv.llfpround_v2f64_v2f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.llfpround_v8f64_v8f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.llfpround_v2f64_v2f16-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.llfpround_v8f64_v8f16-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.201f6f38a6.ll (mutant of fixed-vectors-fp-conv.ll)fpround_v2f64_v2f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.347aa5e4a4.ll (mutant of fixed-vectors-fp-conv.ll)fpround_v2f64_v2f16-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.4811e637ec.ll (mutant of fixed-vectors-fp-conv.ll)fpround_v2f64_v2f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.4811e637ec.ll (mutant of fixed-vectors-fp-conv.ll)fpround_v8f64_v8f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.51bb54afbd.ll (mutant of fixed-vectors-fp-conv.ll)fpround_v2f64_v2f16-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.51bb54afbd.ll (mutant of fixed-vectors-fp-conv.ll)fpround_v8f64_v8f16-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.5aed94fac5.ll (mutant of fixed-vectors-fp-conv.ll)fpround_v2f64_v2f16-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-fp-conv.dd5be854c4.ll (mutant of fixed-vectors-fp-conv.ll)fpround_v2f64_v2f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+f,+d -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.