fallback: legalize: G_UDIV <16 x s32>

Run:main-bc8218b282-20261015-074651
Kind:fallback
Category:legalize: G_UDIV <16 x s32> NEW
Occurrences:2 in 2 configs, 1 test files
Snippet from:fastcc-int.249e9c170d.ll (mutant of fastcc-int.ll) @caller via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <16 x i32>
@G.1 = external global <16 x i32>

; Function Attrs: nounwind
declare fastcc i32 @callee(<16 x i32>) #0

; Function Attrs: nounwind
define i32 @caller(<16 x i32> %A) #0 {
  %LGV = load <16 x i32>, ptr @G, align 64
  %B = udiv <16 x i32> %A, %LGV
  %C = call fastcc i32 @callee(<16 x i32> %A)
  store <16 x i32> %B, ptr @G.1, align 64
  ret i32 %C
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %4:_(<16 x s32>) = G_UDIV %0:_, %2:_ (in function: caller)
warning: Instruction selection used fallback path for caller

Occurrences (2):

InputFunctionConfig
fastcc-int.249e9c170d.ll (mutant of fastcc-int.ll)caller-mtriple=riscv32 -verify-machineinstrs
fastcc-int.c2837fdadb.ll (mutant of fastcc-int.ll)caller-mtriple=riscv64 -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.