fallback: legalize: G_INTRINSIC_LLRINT <N x i64>,<N x f32>

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

Snippet:

define <8 x i64> @llrint_v8i64_v8f32(<8 x float> %x, <8 x i1> %m, i32 zeroext %evl) {
  %A = alloca double, align 8
  store double poison, ptr %A, align 8
  %a = call <8 x i64> @llvm.llrint.v8i64.v8f32(<8 x float> %x)
  %B = fdiv double 4.940660e-324, 0.000000e+00
  store double %B, ptr %A, align 8
  ret <8 x i64> %a
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x i64> @llvm.llrint.v8i64.v8f32(<8 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 -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %17:_(<8 x i64>) = G_INTRINSIC_LLRINT %0:_(<8 x f32>) (in function: llrint_v8i64_v8f32)
warning: Instruction selection used fallback path for llrint_v8i64_v8f32

Occurrences (4):

InputFunctionConfig
fixed-vectors-llrint-vp.0ad4147358.ll (mutant of fixed-vectors-llrint-vp.ll)llrint_v16i64_v16f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zicsr -O0
fixed-vectors-llrint-vp.1b634824ec.ll (mutant of fixed-vectors-llrint-vp.ll)llrint_v2i64_v2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d -O0
fixed-vectors-llrint-vp.1b634824ec.ll (mutant of fixed-vectors-llrint-vp.ll)llrint_v16i64_v16f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d -O0
fixed-vectors-llrint-vp.c71630ed56.ll (mutant of fixed-vectors-llrint-vp.ll)llrint_v8i64_v8f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d -O1

Generated 2026-11-29 14:49 UTC.