fallback: legalize: G_UNMERGE_VALUES <N x i8>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_UNMERGE_VALUES <N x i8> M
Occurrences:3 in 3 configs, 2 test files, 2 more counted only
Snippet from:calling-conv-p-ext-vector.29a94a29aa.ll (mutant of calling-conv-p-ext-vector.ll) @test_call_v4i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+m,+zbkb -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i32

declare <4 x i8> @external_v4i8(<4 x i8>, <4 x i8>)

define <4 x i8> @test_call_v4i8(<4 x i8> %a, <4 x i8> %b) {
  %LGV = load i32, ptr @G.2, align 4
  %res = call <4 x i8> @external_v4i8(<4 x i8> %b, <4 x i8> %a)
  %B = sub i32 1, %LGV
  store i32 %B, ptr @G.2, align 4
  ret <4 x i8> %res
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %51:_(i8), %52:_(i8), %53:_(i8), %54:_(i8), %55:_(i8), %56:_(i8), %57:_(i8), %58:_(i8) = G_UNMERGE_VALUES %4:_(<8 x i8>) (in function: test_call_v4i8)
warning: Instruction selection used fallback path for test_call_v4i8

Occurrences (3):

InputFunctionConfig
calling-conv-p-ext-vector.29a94a29aa.ll (mutant of calling-conv-p-ext-vector.ll)test_call_v4i8-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+m,+zbkb -O0
calling-conv-p-ext-vector.6133507c22.ll (mutant of calling-conv-p-ext-vector.ll)test_call_v4i8-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+m,+zbb,+zfhmin -O0
rvp-fastcc.cb93dac543.ll (mutant of rvp-fastcc.ll)caller_v4i8-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+zicond,+zihintpause -O0

Generated 2026-11-29 14:49 UTC.