fallback: legalize: G_PHI <N x f32>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_PHI <N x f32> M
Occurrences:4 in 4 configs, 4 test files, 86 more counted only
Snippet from:fixed-vectors-masked-load-fp.a638b865e3.ll (mutant of fixed-vectors-masked-load-fp.ll) @masked_load_v7f32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+zicond -O0 -code-model=small
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global double
@G.2 = external global i1

define <7 x float> @masked_load_v7f32(ptr %a, <7 x i1> %mask) {
  %LGV = load double, ptr @G.1, align 8
  %load = call <7 x float> @llvm.masked.load.v7f32.p0(ptr align 8 %a, <7 x i1> %mask, <7 x float> poison)
  %C = fcmp false double %LGV, f0x7FEFFFFFFFFFFFFF
  store i1 %C, ptr @G.2, align 1
  ret <7 x float> %load
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <7 x float> @llvm.masked.load.v7f32.p0(ptr captures(none), <7 x i1>, <7 x float>) #0

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+zicond -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+zicond -O0 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %69:_(<7 x f32>) = G_PHI %67:_(<7 x f32>), %bb.14, %60:_(<7 x f32>), %bb.13 (in function: masked_load_v7f32)
warning: Instruction selection used fallback path for masked_load_v7f32

Occurrences (4):

InputFunctionConfig
fixed-vectors-masked-load-fp.a638b865e3.ll (mutant of fixed-vectors-masked-load-fp.ll)masked_load_v7f32-mtriple=riscv64 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+zicond -O0 -code-model=small
float-convert.5336bd03.4390f218.60ff9ca0.d6d6e1e1.bada506d.d1499f0e.acb42fbb71.ll (mutant of float-convert.5336bd03.4390f218.60ff9ca0.d6d6e1e1.bada506d.d1499f0e.ll)fcvt_wu_s_i16-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64f -mattr=+zvkb,+zvfh,+a,+zbs,+zbb,+zvbb -O1
jumptable-section.17570cbf7b.ll (mutant of jumptable-section.ll)jt-mtriple=riscv64 -mattr=+zicond -O0 -code-model=medium -verify-machineinstrs
mem.8f2b3cb5.3a22d576.3abd03e7.4021074a.dfe216c105.ll (mutant of mem.8f2b3cb5.3a22d576.3abd03e7.4021074a.ll)load_sext_zext_anyext_i1_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zicond,+zfhmin,+zvfh,+zve64d,+zfh -O3

Generated 2026-11-29 14:49 UTC.