fallback: legalize: G_INTRINSIC_ROUNDEVEN <N x f16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_INTRINSIC_ROUNDEVEN <N x f16> M
Occurrences:6 in 4 configs, 2 test files, 13 more counted only
Snippet from:fixed-vectors-roundeven-vp.4d813f6ffd.ll (mutant of fixed-vectors-roundeven-vp.ll) @vp_roundeven_v2f16_unmasked via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <2 x half> @vp_roundeven_v2f16_unmasked(<2 x half> %va, i32 zeroext %evl) {
  %C = icmp eq i32 %evl, %evl
  %v = call <2 x half> @llvm.roundeven.v2f16(<2 x half> %va)
  store i1 %C, ptr poison, align 1
  ret <2 x half> %v
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x half> @llvm.roundeven.v2f16(<2 x half>) #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: %7:_(<2 x f16>) = G_INTRINSIC_ROUNDEVEN %0:_ (in function: vp_roundeven_v2f16_unmasked)
warning: Instruction selection used fallback path for vp_roundeven_v2f16_unmasked

Occurrences (6):

InputFunctionConfig
fixed-vectors-froundeven.2e30b01c37.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v,+c -O3
fixed-vectors-froundeven.2e30b01c37.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v8f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v,+c -O3
fixed-vectors-froundeven.fa5b625baf.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v32f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v -O2
fixed-vectors-roundeven-vp.22bd3b6940.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v4f16_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O2
fixed-vectors-roundeven-vp.22bd3b6940.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v16f16_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O2
fixed-vectors-roundeven-vp.4d813f6ffd.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v2f16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O0

Generated 2026-11-29 14:49 UTC.