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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: urem <vscale x N x i1> M
Occurrences:8 in 8 configs, 7 test files, 85 more counted only
Snippet from:cttz-elts.e437451d4e.ll (mutant of cttz-elts.ll) @i64_ctz_nxv16i1 via llvm-extract
Config:-mtriple=riscv64 -mattr=+v -O2 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i64 @i64_ctz_nxv16i1(<vscale x 16 x i1> %pg, <vscale x 16 x i1> %a) {
  %B = urem <vscale x 16 x i1> %a, zeroinitializer
  %res = call i64 @llvm.experimental.cttz.elts.i64.nxv16i1(<vscale x 16 x i1> %a, i1 true)
  store <vscale x 16 x i1> %B, ptr poison, align 2
  ret i64 %res
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.experimental.cttz.elts.i64.nxv16i1(<vscale x 16 x i1>, i1 immarg) #0

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

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

Local llc output:

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

Occurrences (8):

InputFunctionConfig
cttz-elts.e437451d4e.ll (mutant of cttz-elts.ll)i64_ctz_nxv16i1-mtriple=riscv64 -mattr=+v -O2 -verify-machineinstrs
narrow-shl-cst.1a042d7662.ll (mutant of narrow-shl-cst.ll)test14-mtriple=riscv32 -mattr=+zve32x,+zfhmin -O0 -verify-machineinstrs
vluxseg-rv64.347ba5745b.ll (mutant of vluxseg-rv64.ll)test_vluxseg4_mask_nxv4f32_triscv.vector.tuple_nxv16i8_4t_nxv4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+zve64d,+f,+d,+zvfbfmin,+v -O0
vmerge.ff329dba9f.ll (mutant of vmerge.ll)intrinsic_vmerge_vxm_nxv16i16_nxv16i16_i16-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32d -mattr=+v,+zvfhmin,+zvfbfmin,+zfh -O0
vp-vector-interleaved-access.2b81bef39e.ll (mutant of vp-vector-interleaved-access.ll)gap_mask_load_factor4_mask-mtriple=riscv64 -mattr=+v,+m,+zvfh -O3 -verify-machineinstrs
vpstore.9ffb1faddb.ll (mutant of vpstore.ll)vpstore_nxv4f64-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin,+v -O3
vreductions-mask-vp.5aaf3d279c.ll (mutant of vreductions-mask-vp.ll)vpreduce_smax_nxv1i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh -O0
vreductions-mask-vp.e1fea281c6.ll (mutant of vreductions-mask-vp.ll)vpreduce_umin_nxv16i1-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0

Generated 2026-11-29 14:49 UTC.