fallback: translate: extractelement <N x i32>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: extractelement <N x i32> M
Occurrences:3 in 3 configs, 3 test files, 39 more counted only
Snippet from:reduction-formation.af75091b8d.ll (mutant of reduction-formation.ll) @reduce_sum_4xi32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zihintpause -O0
Local check:reproduces at b577f07195
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
  %C = icmp sgt <4 x i32> splat (i32 2147483647), splat (i32 -2147483648)
  %add2 = add i32 %add1, %e3
  store <4 x i1> %C, ptr poison, align 1
  ret i32 %add2
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: extractelement: '  %e0 = extractelement <4 x i32> %v, i32 0' (in function: reduce_sum_4xi32)
warning: Instruction selection used fallback path for reduce_sum_4xi32

Occurrences (3):

InputFunctionConfig
half-convert-strict.e01169ff67.ll (mutant of half-convert-strict.ll)fcvt_q_h-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation -mattr=+zhinxmin -O0 -code-model=small
reduction-formation.af75091b8d.ll (mutant of reduction-formation.ll)reduce_sum_4xi32-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zihintpause -O0
xqccmp-callee-saved-gprs.d0e41a8929.ll (mutant of xqccmp-callee-saved-gprs.ll)caller-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O3

Generated 2026-11-29 14:49 UTC.