fallback: legalize: G_LSHR <8 x s8>

Run:explore-04ca53e65f-20261014-114124
Kind:fallback
Category:legalize: G_LSHR <8 x s8>
Occurrences:8 in 4 configs, 4 test files
Snippet from:rvp-simd-64.ll @test_psrli_b via llvm-extract
Config:-mtriple=riscv64 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <8 x i8> @test_psrli_b(<8 x i8> %a) {
  %res = lshr <8 x i8> %a, splat (i8 2)
  ret <8 x i8> %res
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %3:_(<8 x s8>) = G_LSHR %0:_, %1:_(<8 x s8>) (in function: test_psrli_b)
warning: Instruction selection used fallback path for test_psrli_b

Occurrences (8):

InputFunctionConfig
rvp-simd-64.lltest_psrli_b-mtriple=riscv64 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-simd-64.lltest_psrl_bs-mtriple=riscv64 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-simd-64.lltest_psrl_bs_mask-mtriple=riscv64 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-simd-64.lltest_pudiv_mulhu_b-mtriple=riscv64 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
mem.3d96152d8b.ll (mutant of mem.ll)sw-mtriple=riscv32 -verify-machineinstrs
mem64.9f562570cd.ll (mutant of mem64.ll)sh-mtriple=riscv64 -verify-machineinstrs
rv64zbb.47d6c9aecb.ll (mutant of rv64zbb.ll)sub_if_uge_C_swapped_nsw_i7-mtriple=riscv64 -mattr=+zbb -verify-machineinstrs
rv64zbb.d05f22ebdc.ll (mutant of rv64zbb.ll)sub_if_uge_C_swapped_nsw_i7-mtriple=riscv64 -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.