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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_LOAD <N x i1>,p0 M
Occurrences:5 in 2 configs, 2 test files, 64 more counted only
Snippet from:fixed-vectors-zext-vp-mask.6a97ef0fcf.ll (mutant of fixed-vectors-zext-vp-mask.ll) @vzext_v4i16_v4i1_unmasked via llvm-extract
Config:-mtriple=riscv32 -O3 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define <4 x i16> @vzext_v4i16_v4i1_unmasked(<4 x i1> %va, i32 zeroext %evl) {
  %v = zext <4 x i1> %va to <4 x i16>
  %C = fcmp ult half 1.000000e+00, 6.550400e+04
  store i1 %C, ptr @G, align 1
  ret <4 x i16> %v
}

Reproduce:

llc -mtriple=riscv32 -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -O3 -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_v4i16_v4i1_unmasked)
warning: Instruction selection used fallback path for vzext_v4i16_v4i1_unmasked

Occurrences (5):

InputFunctionConfig
fixed-vectors-sext-vp-mask.53fe22233c.ll (mutant of fixed-vectors-sext-vp-mask.ll)vsext_v4i16_v4i1_unmasked-mtriple=riscv32 -mattr=+m -O1 -verify-machineinstrs
fixed-vectors-sext-vp-mask.53fe22233c.ll (mutant of fixed-vectors-sext-vp-mask.ll)vsext_v4i32_v4i1_unmasked-mtriple=riscv32 -mattr=+m -O1 -verify-machineinstrs
fixed-vectors-sext-vp-mask.53fe22233c.ll (mutant of fixed-vectors-sext-vp-mask.ll)vsext_v4i64_v4i1_unmasked-mtriple=riscv32 -mattr=+m -O1 -verify-machineinstrs
fixed-vectors-zext-vp-mask.6a97ef0fcf.ll (mutant of fixed-vectors-zext-vp-mask.ll)vzext_v4i16_v4i1_unmasked-mtriple=riscv32 -O3 -verify-machineinstrs
fixed-vectors-zext-vp-mask.6a97ef0fcf.ll (mutant of fixed-vectors-zext-vp-mask.ll)vzext_v4i32_v4i1_unmasked-mtriple=riscv32 -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.