fallback: legalize: G_INTRINSIC_ROUNDEVEN <N x f16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_INTRINSIC_ROUNDEVEN <N x f16> M
Occurrences:9 in 6 configs, 2 test files, 25 more counted only
Snippet from:fixed-vectors-froundeven.79ea27eaca.ll (mutant of fixed-vectors-froundeven.ll) @roundeven_v8f16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <8 x half> @roundeven_v8f16(<8 x half> %x) {
  %A = alloca <8 x i8>, align 8
  store <8 x i8> poison, ptr %A, align 8
  %a = call <8 x half> @llvm.roundeven.v8f16(<8 x half> %x)
  %B = sub <8 x i8> zeroinitializer, splat (i8 -1)
  store <8 x i8> %B, ptr %A, align 8
  ret <8 x half> %a
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (9):

InputFunctionConfig
fixed-vectors-froundeven.03d2a6b3ef.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v2f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v,+zicsr -O2
fixed-vectors-froundeven.03d2a6b3ef.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v32f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v,+zicsr -O2
fixed-vectors-froundeven.79ea27eaca.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v8f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin -O3
fixed-vectors-froundeven.93fc16fe96.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O1
fixed-vectors-roundeven-vp.946b5f7cc8.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v8f16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zve32x -O3
fixed-vectors-roundeven-vp.946b5f7cc8.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v16f16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zve32x -O3
fixed-vectors-roundeven-vp.b4f4f381e7.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v2f16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O0
fixed-vectors-roundeven-vp.d8ce73e528.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v2f16_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+a -O3
fixed-vectors-roundeven-vp.d8ce73e528.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v8f16_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+a -O3

Generated 2026-11-29 14:49 UTC.