fallback: legalize: G_LOAD <N x i1>,p0

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_LOAD <N x i1>,p0 M
Occurrences:6 in 4 configs, 3 test files, 36 more counted only
Snippet from:fixed-vectors-zext-vp-mask.d76c1bbe1b.ll (mutant of fixed-vectors-zext-vp-mask.ll) @vzext_v4i32_v4i1_unmasked via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+zfh -O3 -code-model=medium -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

define <4 x i32> @vzext_v4i32_v4i1_unmasked(<4 x i1> %va, i32 zeroext %evl) {
  %C = fcmp false float 1.401300e-45, 4.200000e+01
  %v = zext <4 x i1> %va to <4 x i32>
  store i1 %C, ptr @G.1, align 1
  ret <4 x i32> %v
}

Reproduce:

llc -mtriple=riscv32 -mattr=+m,+zfh -O3 -code-model=medium -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+zfh -O3 -code-model=medium -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %0:_(<4 x i1>) = G_LOAD %3:_(p0) :: (load (<4 x i1>)) (in function: vzext_v4i32_v4i1_unmasked)
warning: Instruction selection used fallback path for vzext_v4i32_v4i1_unmasked

Occurrences (6):

InputFunctionConfig
fixed-vectors-sext-vp-mask.a75c13b199.ll (mutant of fixed-vectors-sext-vp-mask.ll)vsext_v4i64_v4i1_unmasked-mtriple=riscv32 -O1 -verify-machineinstrs
fixed-vectors-zext-vp-mask.751a422e48.ll (mutant of fixed-vectors-zext-vp-mask.ll)vzext_v4i16_v4i1-mtriple=riscv64 -mattr=+m -O2 -verify-machineinstrs
fixed-vectors-zext-vp-mask.751a422e48.ll (mutant of fixed-vectors-zext-vp-mask.ll)vzext_v4i32_v4i1-mtriple=riscv64 -mattr=+m -O2 -verify-machineinstrs
fixed-vectors-zext-vp-mask.d76c1bbe1b.ll (mutant of fixed-vectors-zext-vp-mask.ll)vzext_v4i32_v4i1_unmasked-mtriple=riscv32 -mattr=+m,+zfh -O3 -code-model=medium -verify-machineinstrs
fixed-vectors-zext-vp-mask.d76c1bbe1b.ll (mutant of fixed-vectors-zext-vp-mask.ll)vzext_v4i64_v4i1-mtriple=riscv32 -mattr=+m,+zfh -O3 -code-model=medium -verify-machineinstrs
rv64zbb.424bd574f0.ll (mutant of rv64zbb.ll)ctpop_v2i64_ult_two-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zbs -O3

Generated 2026-11-29 14:49 UTC.