fallback: legalize: G_INTRINSIC_ROUNDEVEN <N x f32>

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

Snippet:

@G.1 = external global i8

define <16 x float> @roundeven_v16f32(<16 x float> %x) {
  %LGV1 = load i8, ptr @G.1, align 1
  %B = add i8 -1, %LGV1
  %a = call <16 x float> @llvm.roundeven.v16f32(<16 x float> %x)
  store i8 %B, ptr @G.1, align 1
  ret <16 x float> %a
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <16 x float> @llvm.roundeven.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=+zvfh -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %30:_(<16 x f32>) = G_INTRINSIC_ROUNDEVEN %0:_ (in function: roundeven_v16f32)
warning: Instruction selection used fallback path for roundeven_v16f32

Occurrences (3):

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

Generated 2026-11-29 14:49 UTC.