fallback: legalize: G_CLMUL <N x i8>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_CLMUL <N x i8> M
Occurrences:3 in 3 configs, 1 test files, 6 more counted only
Snippet from:fixed-vectors-clmul.8786bd31a8.ll (mutant of fixed-vectors-clmul.ll) @clmul_v4i8 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-zvbc32e,+m -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i8

; Function Attrs: nounwind
define <4 x i8> @clmul_v4i8(<4 x i8> %a, <4 x i8> %b) #0 {
  %B = sub i8 16, 0
  %res = call <4 x i8> @llvm.clmul.v4i8(<4 x i8> %a, <4 x i8> %b)
  store i8 %B, ptr @G, align 1
  ret <4 x i8> %res
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-clmul.2fbb8121d1.ll (mutant of fixed-vectors-clmul.ll)clmul_v4i8-mtriple=riscv64 -verify-machineinstrs -mattr=+zicond -O0
fixed-vectors-clmul.8786bd31a8.ll (mutant of fixed-vectors-clmul.ll)clmul_v4i8-mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-zvbc32e,+m -O3
fixed-vectors-clmul.e08fc3bcf9.ll (mutant of fixed-vectors-clmul.ll)clmul_v4i8-mtriple=riscv32 -verify-machineinstrs -mattr=+m -O1

Generated 2026-11-29 14:49 UTC.