fallback: legalize: G_CLMUL <N x i32>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_CLMUL <N x i32> M
Occurrences:3 in 3 configs, 1 test files, 35 more counted only
Snippet from:fixed-vectors-clmul.9317ea70ea.ll (mutant of fixed-vectors-clmul.ll) @clmul_v16i32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+c -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define <16 x i32> @clmul_v16i32(<16 x i32> %x, <16 x i32> %y) #0 {
  %B = srem <16 x i32> %x, zeroinitializer
  %a = call <16 x i32> @llvm.clmul.v16i32(<16 x i32> %x, <16 x i32> %B)
  ret <16 x i32> %a
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <16 x i32> @llvm.clmul.v16i32(<16 x i32>, <16 x i32>) #1

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %8:_(<16 x i32>) = G_CLMUL %0:_, %7:_ (in function: clmul_v16i32)
warning: Instruction selection used fallback path for clmul_v16i32

Occurrences (3):

InputFunctionConfig
fixed-vectors-clmul.617ef8e848.ll (mutant of fixed-vectors-clmul.ll)clmul_v16i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O2
fixed-vectors-clmul.9317ea70ea.ll (mutant of fixed-vectors-clmul.ll)clmul_v16i32-mtriple=riscv32 -verify-machineinstrs -mattr=+c -O0
fixed-vectors-clmul.c3f77bb1cf.ll (mutant of fixed-vectors-clmul.ll)clmul_v2i32-mtriple=riscv32 -verify-machineinstrs -O3

Generated 2026-11-29 14:49 UTC.