fallback: legalize: G_AND <4 x s32>

Run:explore-04ca53e65f-20261014-114124
Kind:fallback
Category:legalize: G_AND <4 x s32> NEW
Occurrences:12 in 9 configs, 5 test files
Snippet from:addimm-mulimm.0063d83ccf.ll (mutant of addimm-mulimm.ll) @add_mul_combine_reject_c1 via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -mattr=+m,+zba -verify-machineinstrs
Local check:reproduces at 04ca53e65f
Compiler Explorer:https://godbolt.org/z/sq3fM7K4T (llc-assertions-trunk, checked 2026-10-14 11:49 UTC): G reproduces

Snippet:

define <4 x i32> @add_mul_combine_reject_c1(<4 x i32> %LGV) {
  %B = and <4 x i32> zeroinitializer, %LGV
  ret <4 x i32> %B
}

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv64 -mattr=+m,+zba -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*03remark: <unknown>:0:0: unable to legalize instruction: %5:_(<4 x s32>) = G_AND %3:_, %0:_ (in function: add_mul_combine_reject_c1)
warning: Instruction selection used fallback path for add_mul_combine_reject_c1
SelectionDAG (control)-mtriple=riscv64 -mattr=+m,+zba -verify-machineinstrs -global-isel=003-

Reproduce:

llc -mtriple=riscv64 -mattr=+m,+zba -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+zba -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(<4 x s32>) = G_AND %3:_, %0:_ (in function: add_mul_combine_reject_c1)
warning: Instruction selection used fallback path for add_mul_combine_reject_c1

Occurrences (12):

InputFunctionConfig
abds.30cba4bc24.ll (mutant of abds.ll)abd_ext_i64-mtriple=riscv32 -mattr=+zbb
abds.31b1b0d6e9.ll (mutant of abds.ll)abd_ext_i64-mtriple=riscv64
abds.53a7575e60.ll (mutant of abds.ll)abd_ext_i64-mtriple=riscv64 -mattr=+zbb
abds.885a0c0fdd.ll (mutant of abds.ll)abd_ext_i64-mtriple=riscv32
addimm-mulimm.0063d83ccf.ll (mutant of addimm-mulimm.ll)add_mul_combine_reject_c1-mtriple=riscv64 -mattr=+m,+zba -verify-machineinstrs
addimm-mulimm.3fb0e8cd1a.ll (mutant of addimm-mulimm.ll)add_mul_combine_reject_c1-mtriple=riscv32 -mattr=+m,+zba -verify-machineinstrs
overflow-intrinsics.035880be5c.ll (mutant of overflow-intrinsics.ll)uaddo6_xor_commuted-mtriple=riscv32 -verify-machineinstrs
overflow-intrinsics.a7ccae183d.ll (mutant of overflow-intrinsics.ll)uaddo6_xor_commuted-mtriple=riscv64 -verify-machineinstrs
reduction-formation.05728b89ef.ll (mutant of reduction-formation.ll)reduce_sum_4xi32-mtriple=riscv64 -verify-machineinstrs
reduction-formation.fc38de47d4.ll (mutant of reduction-formation.ll)reduce_sum_4xi32-mtriple=riscv32 -verify-machineinstrs
xqcilsm-memset.27c0bfbcba.ll (mutant of xqcilsm-memset.ll)test4a-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcilsm
xqcilsm-memset.5a6e6add35.ll (mutant of xqcilsm-memset.ll)test4a-mtriple=riscv32 -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.