fallback: translate: shufflevector <N x i32>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: shufflevector <N x i32> M
Occurrences:5 in 5 configs, 4 test files, 21 more counted only
Snippet from:rvp-avgsub.9e23e16c71.ll (mutant of rvp-avgsub.ll) @sub_nsw_ashr_v2i32 via llvm-extract
Config:-mtriple=riscv64 -mattr=+experimental-p,+zbb,+zhinx -O0 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <2 x i32> @sub_nsw_ashr_v2i32(<2 x i32> %a, <2 x i32> %b) {
  %S = shufflevector <2 x i32> %a, <2 x i32> %b, <2 x i32> poison
  %d = sub nsw <2 x i32> %a, %b
  %r = ashr <2 x i32> %d, splat (i32 1)
  store <2 x i32> %S, ptr poison, align 8
  ret <2 x i32> %r
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: shufflevector: '  %S = shufflevector <2 x i32> %a, <2 x i32> %b, <2 x i32> poison' (in function: sub_nsw_ashr_v2i32)
warning: Instruction selection used fallback path for sub_nsw_ashr_v2i32

Occurrences (5):

InputFunctionConfig
fastcc-without-f-reg.0fe7967713.ll (mutant of fastcc-without-f-reg.ll)d-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1
fastcc-without-f-reg.d7cb3748fc.ll (mutant of fastcc-without-f-reg.ll)caller_half_32-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O0
fixed-vectors-shuffle-exact-vlen.22a468e3c8.ll (mutant of fixed-vectors-shuffle-exact-vlen.ll)m4_square_num_of_shuffles_in_chunks-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
rvp-avgsub.9e23e16c71.ll (mutant of rvp-avgsub.ll)sub_nsw_ashr_v2i32-mtriple=riscv64 -mattr=+experimental-p,+zbb,+zhinx -O0 -verify-machineinstrs
rvp-simd-64.540e1e4928.ll (mutant of rvp-simd-64.ll)test_ppaireo_v2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+zbb,+zfinx -O3

Generated 2026-11-29 14:49 UTC.