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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_INTRINSIC_LRINT <N x i32>,<N x f32> M
Occurrences:5 in 4 configs, 2 test files, 28 more counted only
Snippet from:fixed-vectors-lrint.d89205616c.ll (mutant of fixed-vectors-lrint.ll) @lrint_v2f32 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+zvfhmin,+zvfbfmin -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <2 x i32> @lrint_v2f32(<2 x float> %x) {
  %a = call <2 x i32> @llvm.lrint.v2i32.v2f32(<2 x float> %x)
  %B = and i16 -1, -32768
  store i16 %B, ptr poison, align 2
  ret <2 x i32> %a
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.lrint.v2i32.v2f32(<2 x float>) #0

attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

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

Local llc output:

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

Occurrences (5):

InputFunctionConfig
fixed-vectors-lrint-vp.31f18678fb.ll (mutant of fixed-vectors-lrint-vp.ll)lrint_v8f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d -O2
fixed-vectors-lrint-vp.31f18678fb.ll (mutant of fixed-vectors-lrint-vp.ll)lrint_v16f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d -O2
fixed-vectors-lrint.73fa0f355e.ll (mutant of fixed-vectors-lrint.ll)lrint_v16f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O2 -code-model=small
fixed-vectors-lrint.ac05ac6542.ll (mutant of fixed-vectors-lrint.ll)lrint_v2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O3
fixed-vectors-lrint.d89205616c.ll (mutant of fixed-vectors-lrint.ll)lrint_v2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+zvfhmin,+zvfbfmin -O0

Generated 2026-11-29 14:49 UTC.