fallback: legalize: G_INTRINSIC_ROUNDEVEN <N x f64>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_INTRINSIC_ROUNDEVEN <N x f64> M
Occurrences:3 in 2 configs, 1 test files, 14 more counted only
Snippet from:fixed-vectors-froundeven.bd93687ca2.ll (mutant of fixed-vectors-froundeven.ll) @roundeven_v4f64 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfa -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define <4 x double> @roundeven_v4f64(<4 x double> %x) {
  %LGV = load i1, ptr @G, align 1
  %B = or i1 %LGV, true
  %a = call <4 x double> @llvm.roundeven.v4f64(<4 x double> %x)
  store i1 %B, ptr @G, align 1
  ret <4 x double> %a
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x double> @llvm.roundeven.v4f64(<4 x double>) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %10:_(<4 x f64>) = G_INTRINSIC_ROUNDEVEN %0:_ (in function: roundeven_v4f64)
warning: Instruction selection used fallback path for roundeven_v4f64

Occurrences (3):

InputFunctionConfig
fixed-vectors-froundeven.168fce448c.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v8f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin -O2
fixed-vectors-froundeven.bd93687ca2.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v4f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfa -O1
fixed-vectors-froundeven.bd93687ca2.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v8f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfa -O1

Generated 2026-11-29 14:49 UTC.