fallback: translate: extractelement <N x i8>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: extractelement <N x i8> M
Occurrences:5 in 5 configs, 5 test files, 8 more counted only
Snippet from:sext-zext-trunc.e7abe0213d.ll (mutant of sext-zext-trunc.ll) @zext_i1_to_i16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.4 = external global i8

; Function Attrs: nounwind
define i16 @zext_i1_to_i16(i1 %a) #0 {
  %E = extractelement <8 x i8> splat (i8 -1), i1 %a
  %1 = zext i1 %a to i16
  store i8 %E, ptr @G.4, align 1
  ret i16 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: extractelement: '  %E = extractelement <8 x i8> splat (i8 -1), i1 %a' (in function: zext_i1_to_i16)
warning: Instruction selection used fallback path for zext_i1_to_i16

Occurrences (5):

InputFunctionConfig
bswap-bitreverse.a52eedb374.ll (mutant of bswap-bitreverse.ll)test_bswap_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0
half-convert.4f72660311.ll (mutant of half-convert.ll)fcvt_l_h_sat-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1
reserved-regs.84bb2eb694.ll (mutant of reserved-regs.ll)foo-mtriple=riscv32 -verify-machineinstrs -mattr=+reserve-x6,+zhinx -O2
sext-zext-trunc.e7abe0213d.ll (mutant of sext-zext-trunc.ll)zext_i1_to_i16-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O0
umulh.8a4bd48e6d.ll (mutant of umulh.ll)umulh_i32-mtriple=riscv32 -mattr=+m,+zhinx -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.