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

Run:main-04ca53e65f-20261014-113325
Kind:fallback
Category:legalize: G_EXTRACT_VECTOR_ELT s32,<16 x s32> NEW
Occurrences:1 in 1 configs, 1 test files
Snippet from:fastcc-int.bef819bbe9.ll (mutant of fastcc-int.ll) @callee via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <16 x i32>

; Function Attrs: nounwind
define fastcc i32 @callee(<16 x i32> %A) #0 {
  %B1 = xor <16 x i32> %A, splat (i32 -1)
  %B = extractelement <16 x i32> %B1, i32 0
  %B2 = sub <16 x i32> %A, zeroinitializer
  store <16 x i32> %B2, ptr @G, align 64
  store <16 x i32> %B1, ptr poison, align 64
  ret i32 %B
}

attributes #0 = { nounwind }

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: %24:_(s32) = G_EXTRACT_VECTOR_ELT %23:_(<16 x s32>), %25:_(s32) (in function: callee)
warning: Instruction selection used fallback path for callee

Occurrences (1):

InputFunctionConfig
fastcc-int.bef819bbe9.ll (mutant of fastcc-int.ll)callee-mtriple=riscv32 -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.