fallback: legalize: G_INTRINSIC_ROUNDEVEN <N x f16>

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

Snippet:

@G.2 = external global <8 x i8>

define <32 x half> @roundeven_v32f16(<32 x half> %x) {
  %LGV = load <8 x i8>, ptr @G.2, align 8
  %B = add <8 x i8> splat (i8 127), %LGV
  %a = call <32 x half> @llvm.roundeven.v32f16(<32 x half> %x)
  store <8 x i8> %B, ptr @G.2, align 8
  ret <32 x half> %a
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %63:_(<32 x f16>) = G_INTRINSIC_ROUNDEVEN %0:_ (in function: roundeven_v32f16)
warning: Instruction selection used fallback path for roundeven_v32f16

Occurrences (3):

InputFunctionConfig
fixed-vectors-froundeven.263cfc6c02.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v32f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O1
fixed-vectors-roundeven-vp.957615b186.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v4f16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v -O0
fixed-vectors-roundeven-vp.957615b186.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v8f16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v -O0

Generated 2026-11-29 14:49 UTC.