fallback: legalize: G_FPTOUI <N x i32>,<N x f32>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_FPTOUI <N x i32>,<N x f32> M
Occurrences:4 in 4 configs, 1 test files, 38 more counted only
Snippet from:fixed-vectors-fp2i.c9bbbb909f.ll (mutant of fixed-vectors-fp2i.ll) @fp2ui_v2f32_v2i32 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global <2 x i32>

define void @fp2ui_v2f32_v2i32(ptr %x, ptr %y) {
  %a = load <2 x float>, ptr %x, align 8
  %d = fptoui <2 x float> %a to <2 x i32>
  %B = or <2 x i32> %d, %d
  store <2 x i32> %d, ptr %y, align 8
  store <2 x i32> %B, ptr @G.1, align 8
  ret void
}

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %3:_(<2 x i32>) = G_FPTOUI %2:_(<2 x f32>) (in function: fp2ui_v2f32_v2i32)
warning: Instruction selection used fallback path for fp2ui_v2f32_v2i32

Occurrences (4):

InputFunctionConfig
fixed-vectors-fp2i.32f61dd587.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2f32_v2i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zbb -O1
fixed-vectors-fp2i.c28bd499dd.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v8f32_v8i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zvbb,+zfhmin -O0
fixed-vectors-fp2i.c9bbbb909f.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2f32_v2i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1
fixed-vectors-fp2i.e816cd7321.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2f32_v2i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zbb -O0

Generated 2026-11-29 14:49 UTC.