fallback: legalize: G_IMPLICIT_DEF <N x i64>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_IMPLICIT_DEF <N x i64> M
Occurrences:3 in 3 configs, 3 test files, 274 more counted only
Snippet from:shlimm-addimm.661c27e6b6.ll (mutant of shlimm-addimm.ll) @shl5_add47968_a via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @shl5_add47968_a(i32 %x) {
  %A = alloca <2 x i64>, align 16
  store <2 x i64> poison, ptr %A, align 16
  %B = or <2 x i64> splat (i64 -1), zeroinitializer
  %tmp0 = shl i32 %x, 5
  %tmp1 = add i32 %tmp0, 47968
  store <2 x i64> %B, ptr %A, align 16
  ret i32 %tmp1
}

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: %2:_(<2 x i64>) = G_IMPLICIT_DEF (in function: shl5_add47968_a)
warning: Instruction selection used fallback path for shl5_add47968_a

Occurrences (3):

InputFunctionConfig
callee-saved-gprs.68654f9b94.ll (mutant of callee-saved-gprs.ll)callee-mtriple=riscv64 -target-abi lp64f -verify-machineinstrs -mattr=+f,+v,+zbb -O0
div-pow2.a6caa983c3.ll (mutant of div-pow2.ll)sdiv32_pow2_negative_65536-mtriple=riscv64 -verify-machineinstrs -mattr=+zvbb -O0
shlimm-addimm.661c27e6b6.ll (mutant of shlimm-addimm.ll)shl5_add47968_a-mtriple=riscv32 -verify-machineinstrs -O0

Generated 2026-11-29 14:49 UTC.