fallback: translate: insertelement <N x i32>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: insertelement <N x i32> M
Occurrences:5 in 5 configs, 5 test files, 31 more counted only
Snippet from:fixed-vectors-vxor-vp.3bf9483517.ll (mutant of fixed-vectors-vxor-vp.ll) @vxor_vx_v2i32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i32

define <2 x i32> @vxor_vx_v2i32(<2 x i32> %va, i32 %b, <2 x i1> %m, i32 zeroext %evl) {
  %elt.head = insertelement <2 x i32> poison, i32 %b, i32 0
  %vb = shufflevector <2 x i32> %elt.head, <2 x i32> poison, <2 x i32> zeroinitializer
  %v = xor <2 x i32> %va, %vb
  %B = srem i32 -2147483648, 0
  store i32 %B, ptr @G.2, align 4
  ret <2 x i32> %v
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: insertelement: '  %elt.head = insertelement <2 x i32> poison, i32 %b, i32 0' (in function: vxor_vx_v2i32)
warning: Instruction selection used fallback path for vxor_vx_v2i32

Occurrences (5):

InputFunctionConfig
fixed-vectors-reduction-int-vp.6f87b15804.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_xor_v4i8-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2
fixed-vectors-vssubu-vp.c9872a6b3a.ll (mutant of fixed-vectors-vssubu-vp.ll)vssubu_vx_v16i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O3
fixed-vectors-vxor-vp.3bf9483517.ll (mutant of fixed-vectors-vxor-vp.ll)vxor_vx_v2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1
machinelicm-address-pseudos.ed6448c961.ll (mutant of machinelicm-address-pseudos.ll)test_la-mtriple=riscv64 -relocation-model=pic -verify-machineinstrs -mattr=+fusion-auipc-addi,+zhinx -O1
rvp-narrowing-shift-trunc.52f4175fbc.ll (mutant of rvp-narrowing-shift-trunc.ll)trunc_ashr_v2i32_to_v2i16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbb,+zhinx -O0

Generated 2026-11-29 14:49 UTC.