fallback: legalize: G_FPTOSI <N x i8>,<N x f64>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_FPTOSI <N x i8>,<N x f64> M
Occurrences:8 in 8 configs, 2 test files, 62 more counted only
Snippet from:fixed-vectors-fp2i.b54e32eaa7.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v2f64_v2i8 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i64

define void @fp2si_v2f64_v2i8(ptr %x, ptr %y) {
  %LGV = load i64, ptr @G, align 4
  %C = icmp ne i64 %LGV, 1
  %a = load <2 x double>, ptr %x, align 16
  %d = fptosi <2 x double> %a to <2 x i8>
  store <2 x i8> %d, ptr %y, align 2
  store i1 %C, ptr poison, align 1
  ret void
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(<2 x i8>) = G_FPTOSI %6:_(<2 x f64>) (in function: fp2si_v2f64_v2i8)
warning: Instruction selection used fallback path for fp2si_v2f64_v2i8

Occurrences (8):

InputFunctionConfig
fixed-vectors-fp2i.1adc2e152b.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f64_v8i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zbb,+zihintpause -O2
fixed-vectors-fp2i.790791f4d8.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f64_v2i8-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+d,+zvbb -O0
fixed-vectors-fp2i.8f6edd8204.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f64_v8i8-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O0 -code-model=small
fixed-vectors-fp2i.b54e32eaa7.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f64_v2i8-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O2
fixed-vectors-fp2i.d28155469b.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f64_v8i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f -O2
fixed-vectors-fp2i.f3e9b83ecc.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f64_v2i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O2
fixed-vectors-fptosi-vp.54767446bf.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i8_v4f64_unmasked-mtriple=riscv64 -mattr=+m -O0 -verify-machineinstrs
fixed-vectors-fptosi-vp.d0c3c5bc3b.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i8_v4f64-mtriple=riscv64 -mattr=+m,+zvfhmin -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.