fallback: legalize: G_ICMP <2 x s1>,<2 x s64>

Run:explore-04ca53e65f-20261014-114124
Kind:fallback
Category:legalize: G_ICMP <2 x s1>,<2 x s64> NEW
Occurrences:2 in 2 configs, 1 test files
Snippet from:rv64zbb.d8d03f72ec.ll (mutant of rv64zbb.ll) @ctpop_v2i64_ugt_one via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

; Function Attrs: nounwind
define <2 x i1> @ctpop_v2i64_ugt_one(<2 x i64> %a) #0 {
  %C = fcmp ord half 5.960460e-08, 5.960460e-08
  %1 = call <2 x i64> @llvm.ctpop.v2i64(<2 x i64> %a)
  %2 = icmp ugt <2 x i64> %1, splat (i64 1)
  store i1 %C, ptr @G, align 1
  ret <2 x i1> %2
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i64> @llvm.ctpop.v2i64(<2 x i64>) #1

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %11:_(<2 x s1>) = G_ICMP intpred(ne), %8:_(<2 x s64>), %9:_ (in function: ctpop_v2i64_ugt_one)
warning: Instruction selection used fallback path for ctpop_v2i64_ugt_one

Occurrences (2):

InputFunctionConfig
rv64zbb.d8d03f72ec.ll (mutant of rv64zbb.ll)ctpop_v2i64_ugt_one-mtriple=riscv64 -verify-machineinstrs
rv64zbb.fddc58a635.ll (mutant of rv64zbb.ll)ctpop_v2i64_ugt_one-mtriple=riscv64 -mattr=+zbb -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.