fallback: translate: ashr <vscale x N x i1>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: ashr <vscale x N x i1> M
Occurrences:11 in 11 configs, 11 test files, 138 more counted only
Snippet from:vwsll-vp.d329413e0c.ll (mutant of vwsll-vp.ll) @vwsll_vx_i16_nxv8i16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 8 x i16> @vwsll_vx_i16_nxv8i16(<vscale x 8 x i8> %a, i16 %b, <vscale x 8 x i1> %m, i32 zeroext %vl) {
  %head = insertelement <vscale x 8 x i16> poison, i16 %b, i32 0
  %B = ashr <vscale x 8 x i1> %m, zeroinitializer
  %splat = shufflevector <vscale x 8 x i16> %head, <vscale x 8 x i16> poison, <vscale x 8 x i32> zeroinitializer
  %x = zext <vscale x 8 x i8> %a to <vscale x 8 x i16>
  %z = shl <vscale x 8 x i16> %x, %splat
  store <vscale x 8 x i1> %B, ptr poison, align 1
  ret <vscale x 8 x i16> %z
}

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: ashr: '  %B = ashr <vscale x 8 x i1> %m, zeroinitializer' (in function: vwsll_vx_i16_nxv8i16)
warning: Instruction selection used fallback path for vwsll_vx_i16_nxv8i16

Occurrences (11):

InputFunctionConfig
ctpop-vp.cd7bf93738.ll (mutant of ctpop-vp.ll)vp_ctpop_nxv4i8-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvbb,+m -O3
strided-vpload.2d4a9a6a94.ll (mutant of strided-vpload.ll)strided_vpload_nxv8bf16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+d,+v,+zvfhmin,+zvfbfmin,+zcb,+zbs -O1
vdivu-vp.d456c20f20.ll (mutant of vdivu-vp.ll)vdivu_vv_nxv4i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+f -O0 -code-model=small
vfncvt-xu-f.fa1b6d2513.ll (mutant of vfncvt-xu-f.ll)intrinsic_vfncvt_mask_xu.f.w_nxv4i16_nxv4f32-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+v,+d -O3
vleff.87f9930186.ll (mutant of vleff.ll)intrinsic_vleff_mask_v_nxv32i8_nxv32i8-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+v,+zvfhmin,+zvfbfmin -O0
vlseg-rv32.95c679c85f.ll (mutant of vlseg-rv32.ll)test_vlseg5_mask_nxv1i16_triscv.vector.tuple_nxv2i8_5t-mtriple=riscv32 -verify-machineinstrs -mattr=+zve64d,+f,+d,+zvfh,+zvfbfmin -O3
vmax-vp.967f43d711.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zicsr -O3
vmin-vp.e32572ad92.ll (mutant of vmin-vp.ll)vmin_vx_nxv4i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vmsltu.b34f4e2b97.ll (mutant of vmsltu.ll)intrinsic_vmsltu_mask_vi_nxv4i64_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vrem-vp.a46e2a041e.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+d -O2
vwsll-vp.d329413e0c.ll (mutant of vwsll-vp.ll)vwsll_vx_i16_nxv8i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3

Generated 2026-11-29 14:49 UTC.