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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: ashr <vscale x N x i1> M
Occurrences:8 in 8 configs, 8 test files, 80 more counted only
Snippet from:vlm.e432341dfb.ll (mutant of vlm.ll) @intrinsic_vlm_v_nxv64i1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zicsr -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define <vscale x 64 x i1> @intrinsic_vlm_v_nxv64i1(ptr %0, i32 %1) #0 {
entry:
  %a = call <vscale x 64 x i1> @llvm.riscv.vlm.nxv64i1.p0.i32(ptr %0, i32 %1)
  %B = ashr <vscale x 64 x i1> %a, zeroinitializer
  ret <vscale x 64 x i1> %B
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <vscale x 64 x i1> @llvm.riscv.vlm.nxv64i1.p0.i32(ptr captures(none), i32) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }

Reproduce:

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

Local llc output:

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

Occurrences (8):

InputFunctionConfig
vdiv-vp.e5fb85c39a.ll (mutant of vdiv-vp.ll)vdiv_vv_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+m -O3
vdivu-vp.75a7d71749.ll (mutant of vdivu-vp.ll)vdivu_vv_nxv8i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3
vlm.e432341dfb.ll (mutant of vlm.ll)intrinsic_vlm_v_nxv64i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zicsr -O2
vlseg-rv64.496859bb30.ll (mutant of vlseg-rv64.ll)test_vlseg8_mask_nxv1f16_triscv.vector.tuple_nxv2i8_8t-mtriple=riscv64 -verify-machineinstrs -mattr=+zve64d,+f,+d,+zvfh,+zvfbfmin -O3
vmaxu-vp.8ec26c792b.ll (mutant of vmaxu-vp.ll)vmaxu_vx_nxv32i32_evl_nx8-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+xtheadba -O2
vp-reverse-float.0f04912210.ll (mutant of vp-reverse-float.ll)test_vp_reverse_nxv32bf16_masked-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+f,+d,+v,+zvfhmin,+zvfbfmin,+zbb -O0
vpload.2c503daaf4.ll (mutant of vpload.ll)vpload_nxv1i16-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+v -O0
vreductions-mask-vp.6bfd2bf814.ll (mutant of vreductions-mask-vp.ll)vpreduce_and_nxv32i1-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+c -O1

Generated 2026-11-29 14:49 UTC.