fallback: translate: sub <N x i8>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: sub <N x i8> M
Occurrences:6 in 6 configs, 4 test files, 21 more counted only
Snippet from:rvp-avgsub.a74b21ba13.ll (mutant of rvp-avgsub.ll) @sub_lshr_v8i8_noflags via llvm-extract
Config:-mtriple=riscv64 -mattr=+zdinx -O2 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.5 = external global <8 x i8>

define <8 x i8> @sub_lshr_v8i8_noflags(<8 x i8> %a, <8 x i8> %b) {
  %d = sub <8 x i8> %a, %b
  %r = lshr <8 x i8> %d, splat (i8 1)
  %B = xor <8 x i8> %d, %r
  store <8 x i8> %B, ptr @G.5, align 8
  ret <8 x i8> %r
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sub: '  %d = sub <8 x i8> %a, %b' (in function: sub_lshr_v8i8_noflags)
warning: Instruction selection used fallback path for sub_lshr_v8i8_noflags

Occurrences (6):

InputFunctionConfig
memmove.d0cd25d13c.ll (mutant of memmove.ll)unaligned_memmove16-mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs
rv64-double-convert.653a462734.ll (mutant of rv64-double-convert.ll)fptosi_sat_f64_to_i128-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx,+zicsr -O3
rvp-avgsub.9e23e16c71.ll (mutant of rvp-avgsub.ll)sub_nsw_ashr_v8i8-mtriple=riscv64 -mattr=+experimental-p,+zbb,+zhinx -O0 -verify-machineinstrs
rvp-avgsub.a3b90adca0.ll (mutant of rvp-avgsub.ll)sub_lshr_v8i8_noflags-mtriple=riscv64 -mattr=+experimental-p,+zhinx -O0 -code-model=small -verify-machineinstrs
rvp-avgsub.a74b21ba13.ll (mutant of rvp-avgsub.ll)sub_lshr_v8i8_noflags-mtriple=riscv64 -mattr=+zdinx -O2 -verify-machineinstrs
umulh.764463017f.ll (mutant of umulh.ll)umulh_v8i8-mtriple=riscv64 -mattr=+zfinx,+a -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.