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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_INTRINSIC_LRINT <N x i32>,<N x f32> M
Occurrences:5 in 5 configs, 2 test files, 46 more counted only
Snippet from:fixed-vectors-lrint.7b1237be58.ll (mutant of fixed-vectors-lrint.ll) @lrint_v16f32 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+c -O1 -code-model=small
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <16 x i32> @lrint_v16f32(<16 x float> %x) {
  %B = fmul <16 x float> %x, %x
  %a = call <16 x i32> @llvm.lrint.v16i32.v16f32(<16 x float> %B)
  ret <16 x i32> %a
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <16 x i32> @llvm.lrint.v16i32.v16f32(<16 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,+d,+zvfhmin,+zvfbfmin,+c -O1 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+c -O1 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
fixed-vectors-lrint-vp.694f609674.ll (mutant of fixed-vectors-lrint-vp.ll)lrint_v4f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zicsr -O3
fixed-vectors-lrint-vp.a35d10b7eb.ll (mutant of fixed-vectors-lrint-vp.ll)lrint_v2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d -O2 -code-model=small
fixed-vectors-lrint-vp.f588f8d0e7.ll (mutant of fixed-vectors-lrint-vp.ll)lrint_v2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d -O2
fixed-vectors-lrint.7b1237be58.ll (mutant of fixed-vectors-lrint.ll)lrint_v16f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+c -O1 -code-model=small
fixed-vectors-lrint.aa6a1e1365.ll (mutant of fixed-vectors-lrint.ll)lrint_v2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+xtheadba -O0

Generated 2026-11-29 14:49 UTC.