fallback: legalize: G_EXTRACT_VECTOR_ELT s32,<4 x s32>

Run:explore-04ca53e65f-20261014-114124
Kind:fallback
Category:legalize: G_EXTRACT_VECTOR_ELT s32,<4 x s32>
Occurrences:17 in 8 configs, 5 test files
Snippet from:reduction-formation.ll @reduce_sum_4xi32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @reduce_sum_4xi32(<4 x i32> %v) {
  %e0 = extractelement <4 x i32> %v, i32 0
  %e1 = extractelement <4 x i32> %v, i32 1
  %e2 = extractelement <4 x i32> %v, i32 2
  %e3 = extractelement <4 x i32> %v, i32 3
  %add0 = add i32 %e0, %e1
  %add1 = add i32 %add0, %e2
  %add2 = add i32 %add1, %e3
  ret i32 %add2
}

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %8:_(s32) = G_EXTRACT_VECTOR_ELT %0:_(<4 x s32>), %9:_(s32) (in function: reduce_sum_4xi32)
warning: Instruction selection used fallback path for reduce_sum_4xi32

Occurrences (17):

InputFunctionConfig
double_reduct.llfmul_f32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
double_reduct.llmul_i32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
reduction-formation.llreduce_sum_4xi32-mtriple=riscv32 -verify-machineinstrs
reduction-formation.llreduce_xor_4xi32-mtriple=riscv32 -verify-machineinstrs
reduction-formation.llreduce_or_4xi32-mtriple=riscv32 -verify-machineinstrs
double_reduct.e90c0d89de.ll (mutant of double_reduct.ll)fmul_f32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
forced-atomics.50db03b0a6.ll (mutant of forced-atomics.ll)rmw64_add_seq_cst-mtriple=riscv32 -mattr=+forced-atomics,+no-trailing-seq-cst-fence
forced-atomics.6065c7b73f.ll (mutant of forced-atomics.ll)rmw64_add_seq_cst-mtriple=riscv32
forced-atomics.8b2ed01ce1.ll (mutant of forced-atomics.ll)rmw64_add_seq_cst-mtriple=riscv32 -mattr=+forced-atomics
forced-atomics.cc3918992c.ll (mutant of forced-atomics.ll)rmw64_add_seq_cst-mtriple=riscv32 -mattr=+no-trailing-seq-cst-fence
inline-asm-d-abi-names.10894c06dd.ll (mutant of inline-asm-d-abi-names.ll)explicit_register_fs5-mtriple=riscv32 -mattr=+f,+d -target-abi ilp32d -verify-machineinstrs
inline-asm-f-abi-names.b316c3b4a4.ll (mutant of inline-asm-f-abi-names.ll)explicit_register_fs5-mtriple=riscv32 -mattr=+f -target-abi ilp32f -verify-machineinstrs
reduction-formation.3782f20c39.ll (mutant of reduction-formation.ll)reduce_sum_4xi32-mtriple=riscv32 -verify-machineinstrs
reduction-formation.5fc0fb3d39.ll (mutant of reduction-formation.ll)reduce_or_4xi32-mtriple=riscv32 -verify-machineinstrs
reduction-formation.b541594d5e.ll (mutant of reduction-formation.ll)reduce_xor_4xi32-mtriple=riscv32 -verify-machineinstrs
reduction-formation.bc2018a11a.ll (mutant of reduction-formation.ll)reduce_sum_4xi32-mtriple=riscv32 -verify-machineinstrs
reduction-formation.bc2018a11a.ll (mutant of reduction-formation.ll)reduce_xor_4xi32-mtriple=riscv32 -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.