fallback: legalize: G_VECREDUCE_AND <N x i32>

Run:main-b577f07195-20261129-101839
Kind:fallback
Category:legalize: G_VECREDUCE_AND <N x i32>
Occurrences:16 in 3 configs, 2 test files
Snippet from:vecreduce-and-constant-fold.ll @test_and_const via llvm-extract
Config:-mtriple=riscv64 -mattr=+v
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @test_and_const() {
  %r = call i32 @llvm.vector.reduce.and.v4i32(<4 x i32> <i32 -1, i32 15, i32 7, i32 3>)
  ret i32 %r
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.and.v4i32(<4 x i32>) #0

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

Reproduce:

llc -mtriple=riscv64 -mattr=+v -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+v -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(i32) = G_VECREDUCE_AND %0:_(<4 x i32>) (in function: test_and_const)
warning: Instruction selection used fallback path for test_and_const

Occurrences (16) (first 15):

InputFunctionConfig
double_reduct.lland_i32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
double_reduct.lland_i32-mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs
vecreduce-and-constant-fold.lltest_and_const-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.lltest_and_const_wide-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.lltest_and_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.lltest_and_poison-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.lltest_and_undef-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.321de015c3.ll (mutant of vecreduce-and-constant-fold.ll)test_and_const-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.321de015c3.ll (mutant of vecreduce-and-constant-fold.ll)test_and_const_wide-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.321de015c3.ll (mutant of vecreduce-and-constant-fold.ll)test_and_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.5c1100570b.ll (mutant of vecreduce-and-constant-fold.ll)test_and_const_wide-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.5c1100570b.ll (mutant of vecreduce-and-constant-fold.ll)test_and_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.5c1100570b.ll (mutant of vecreduce-and-constant-fold.ll)test_and_undef-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.a8c20ff4de.ll (mutant of vecreduce-and-constant-fold.ll)test_and_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-and-constant-fold.a8c20ff4de.ll (mutant of vecreduce-and-constant-fold.ll)test_and_poison-mtriple=riscv64 -mattr=+v

Generated 2026-11-29 14:49 UTC.