fallback: legalize: G_SELECT <N x i64>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_SELECT <N x i64> M
Occurrences:4 in 2 configs, 1 test files, 8 more counted only
Snippet from:fixed-vectors-select-int.46bd997db9.ll (mutant of fixed-vectors-select-int.ll) @select_v2i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global float
@G.3 = external global i1

define <2 x i64> @select_v2i64(i1 zeroext %c, <2 x i64> %a, <2 x i64> %b) {
  %LGV = load float, ptr @G.2, align 4
  %C = fcmp uno float 0.000000e+00, %LGV
  %v = select i1 %c, <2 x i64> %a, <2 x i64> %b
  store i1 %C, ptr @G.3, align 1
  ret <2 x i64> %v
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %12:_(<2 x i64>) = G_SELECT %32:_(i32), %1:_, %2:_ (in function: select_v2i64)
warning: Instruction selection used fallback path for select_v2i64

Occurrences (4):

InputFunctionConfig
fixed-vectors-select-int.46bd997db9.ll (mutant of fixed-vectors-select-int.ll)select_v2i64-mtriple=riscv32 -verify-machineinstrs -O0
fixed-vectors-select-int.46bd997db9.ll (mutant of fixed-vectors-select-int.ll)select_v4i64-mtriple=riscv32 -verify-machineinstrs -O0
fixed-vectors-select-int.925b8913eb.ll (mutant of fixed-vectors-select-int.ll)select_v2i64-mtriple=riscv64 -verify-machineinstrs -O3
fixed-vectors-select-int.925b8913eb.ll (mutant of fixed-vectors-select-int.ll)select_v8i64-mtriple=riscv64 -verify-machineinstrs -O3

Generated 2026-11-29 14:49 UTC.