fallback: legalize: G_INTRINSIC <N x i64>,<N x i1>

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:legalize: G_INTRINSIC <N x i64>,<N x i1>
Occurrences:20 in 4 configs, 3 test files
Snippet from:vp-cttz-elts.ll @fixed_v2i64 via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @fixed_v2i64(<2 x i64> %src, <2 x i1> %m, i32 %evl) {
  %r = call i32 @llvm.vp.cttz.elts.i32.v2i64(<2 x i64> %src, i1 false, <2 x i1> %m, i32 %evl)
  ret i32 %r
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vp.cttz.elts.i32.v2i64(<2 x i64>, i1 immarg, <2 x i1>, i32) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(i32) = G_INTRINSIC intrinsic(@llvm.vp.cttz.elts), %0:_(<2 x i64>), 0, %1:_(<2 x i1>), %2:_(i32) (in function: fixed_v2i64)
warning: Instruction selection used fallback path for fixed_v2i64

Occurrences (20) (first 15):

InputFunctionConfig
vector-extract-last-active.llextract_last_i64-mtriple=riscv32 -mattr=+v,+zvfh -verify-machineinstrs
vector-extract-last-active.llextract_last_i64-mtriple=riscv64 -mattr=+v,+zvfh -verify-machineinstrs
vp-cttz-elts.llfixed_v2i64-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vp-cttz-elts.llfixed_v2i64_zero_poison-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vp-cttz-elts.llfixed_v2i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs
vp-cttz-elts.llfixed_v2i64_zero_poison-mtriple=riscv64 -mattr=+v -verify-machineinstrs
fixed-vectors-reduction-int-vp.07d36ae9a7.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_umax_v4i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs
fixed-vectors-reduction-int-vp.141973b1f3.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_umax_v4i64-mtriple=riscv32 -mattr=+v -verify-machineinstrs
fixed-vectors-reduction-int-vp.3da2791b30.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_smin_v2i64-mtriple=riscv32 -mattr=+v -verify-machineinstrs
fixed-vectors-reduction-int-vp.78cfbb9d97.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_smin_v2i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs
fixed-vectors-reduction-int-vp.7dfdbcef0c.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_add_v2i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs
fixed-vectors-reduction-int-vp.7dfdbcef0c.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_or_v4i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs
fixed-vectors-reduction-int-vp.90cb0c0b9e.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_add_v2i64-mtriple=riscv32 -mattr=+v -verify-machineinstrs
fixed-vectors-reduction-int-vp.90cb0c0b9e.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_or_v4i64-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vp-cttz-elts.176445f42e.ll (mutant of vp-cttz-elts.ll)fixed_v2i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.