fallback: legalize: G_INTRINSIC_ROUNDEVEN <N x f32>

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

Snippet:

@G.1 = external global bfloat

define <2 x float> @vp_roundeven_v2f32_unmasked(<2 x float> %va, i32 zeroext %evl) {
  %A = alloca bfloat, align 2
  store bfloat poison, ptr %A, align 2
  %LGV = load bfloat, ptr @G.1, align 2
  %C = fcmp ult bfloat %LGV, +qnan
  %B2 = frem bfloat %LGV, %LGV
  %B = lshr i8 0, 0
  %v = call <2 x float> @llvm.roundeven.v2f32(<2 x float> %va)
  store i8 %B, ptr poison, align 1
  store i1 %C, ptr poison, align 1
  store bfloat %B2, ptr %A, align 2
  ret <2 x float> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
fixed-vectors-froundeven.72450bd4d3.ll (mutant of fixed-vectors-froundeven.ll)roundeven_v2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin,+zfh -O0
fixed-vectors-roundeven-vp.22bd3b6940.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v2f32_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O2
fixed-vectors-roundeven-vp.88582909fd.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v2f32_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O2
fixed-vectors-roundeven-vp.88582909fd.ll (mutant of fixed-vectors-roundeven-vp.ll)vp_roundeven_v8f32_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O2

Generated 2026-11-29 14:49 UTC.