fallback: translate: extractelement <N x i32>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: extractelement <N x i32> M
Occurrences:3 in 3 configs, 3 test files, 17 more counted only
Snippet from:ctlz-cttz-ctpop.e4c094593d.ll (mutant of ctlz-cttz-ctpop.ll) @test_cttz_i32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O0 -code-model=medium
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i32 @test_cttz_i32(i32 %a) #0 {
  %E = extractelement <4 x i32> splat (i32 42), i32 %a
  ret i32 %E
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O0 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O0 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: extractelement: '  %E = extractelement <4 x i32> splat (i32 42), i32 %a' (in function: test_cttz_i32)
warning: Instruction selection used fallback path for test_cttz_i32

Occurrences (3):

InputFunctionConfig
calllowering-zfinx-zhinx.f2c3be7af4.ll (mutant of calllowering-zfinx-zhinx.ll)callee_half-mtriple=riscv32 -mattr=+zhinx,+zbs,+zdinx -O2 -verify-machineinstrs
ctlz-cttz-ctpop.e4c094593d.ll (mutant of ctlz-cttz-ctpop.ll)test_cttz_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O0 -code-model=medium
ushl_sat_vec.5ae938c5.76b93c9538.ll (mutant of ushl_sat_vec.5ae938c5.ll)vec_v4i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2

Generated 2026-11-29 14:49 UTC.