fallback: legalize: G_CLMULR
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_CLMULR M |
| Occurrences: | 3 in 2 configs, 2 test files, 47 more counted only |
| Snippet from: | rv32zbc-intrinsic.07eae31ed4.ll (mutant of rv32zbc-intrinsic.ll) @clmul32r via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i32
; Function Attrs: nounwind
define i32 @clmul32r(i32 %a, i32 %b) #0 {
%tmp = call i32 @llvm.riscv.clmulr.i32(i32 %a, i32 %b)
%B = mul i32 %b, %a
store i32 %B, ptr @G.1, align 4
ret i32 %tmp
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.riscv.clmulr.i32(i32, i32) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %2:_(i32) = G_CLMULR %0:_, %1:_ (in function: clmul32r)
warning: Instruction selection used fallback path for clmul32r
Occurrences (3):
| Input | Function | Config |
|---|
| rv32zbc-intrinsic.07eae31ed4.ll (mutant of rv32zbc-intrinsic.ll) | clmul32r | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb -O0 |
| rv64zbc-intrinsic.a202e8a011.ll (mutant of rv64zbc-intrinsic.ll) | clmul64r | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb -O0 |
| rv64zbc-intrinsic.a202e8a011.ll (mutant of rv64zbc-intrinsic.ll) | clmul32r | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb -O0 |
Generated 2026-11-29 14:49 UTC.