fallback: legalize: G_CLMUL <N x i32>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_CLMUL <N x i32> M
Occurrences:7 in 7 configs, 1 test files, 19 more counted only
Snippet from:fixed-vectors-clmul.773ab5a435.ll (mutant of fixed-vectors-clmul.ll) @clmul_v8i32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-zvbc32e,+zicsr -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i32

; Function Attrs: nounwind
define <8 x i32> @clmul_v8i32(<8 x i32> %x, <8 x i32> %y) #0 {
  %a = call <8 x i32> @llvm.clmul.v8i32(<8 x i32> %x, <8 x i32> %x)
  %B = lshr i32 0, -1
  store i32 %B, ptr @G, align 4
  ret <8 x i32> %a
}

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

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-zvbc32e,+zicsr -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-zvbc32e,+zicsr -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (7):

InputFunctionConfig
fixed-vectors-clmul.4123664e3a.ll (mutant of fixed-vectors-clmul.ll)clmul_v4i32-mtriple=riscv64 -verify-machineinstrs -O3
fixed-vectors-clmul.773ab5a435.ll (mutant of fixed-vectors-clmul.ll)clmul_v8i32-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-zvbc32e,+zicsr -O1
fixed-vectors-clmul.7f41243070.ll (mutant of fixed-vectors-clmul.ll)clmul_v8i32-mtriple=riscv64 -verify-machineinstrs -O3 -code-model=medium
fixed-vectors-clmul.853dce7060.ll (mutant of fixed-vectors-clmul.ll)clmul_v16i32-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-zvbc32e -O1
fixed-vectors-clmul.b62117cd36.ll (mutant of fixed-vectors-clmul.ll)clmul_v16i32-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-zvbc32e,+zvkb -O3
fixed-vectors-clmul.c45e15dfdd.ll (mutant of fixed-vectors-clmul.ll)clmul_v4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-zvbc32e -O3
fixed-vectors-clmul.e285e0f823.ll (mutant of fixed-vectors-clmul.ll)clmul_v2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zvkb -O2

Generated 2026-11-29 14:49 UTC.