fallback: legalize: G_CLMULR
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_CLMULR M |
| Occurrences: | 3 in 2 configs, 2 test files, 47 more counted only |
| Snippet from: | rv32zbc-intrinsic.d066ffccf9.ll (mutant of rv32zbc-intrinsic.ll) @clmul32r via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i16
@G.2 = external global i1
; Function Attrs: nounwind
define i32 @clmul32r(i32 %a, i32 %b) #0 {
%LGV = load i16, ptr @G.1, align 2
%tmp = call i32 @llvm.riscv.clmulr.i32(i32 %a, i32 %b)
%C = icmp sle i16 42, %LGV
store i1 %C, ptr @G.2, align 1
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 -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %4:_(i32) = G_CLMULR %0:_, %1:_ (in function: clmul32r)
warning: Instruction selection used fallback path for clmul32r
Occurrences (3):
| Input | Function | Config |
|---|
| rv32zbc-intrinsic.d066ffccf9.ll (mutant of rv32zbc-intrinsic.ll) | clmul32r | -mtriple=riscv32 -verify-machineinstrs -O1 |
| rv64zbc-intrinsic.6012bf8350.ll (mutant of rv64zbc-intrinsic.ll) | clmul64r | -mtriple=riscv64 -verify-machineinstrs -O1 |
| rv64zbc-intrinsic.6012bf8350.ll (mutant of rv64zbc-intrinsic.ll) | clmul32r_zext | -mtriple=riscv64 -verify-machineinstrs -O1 |
Generated 2026-11-29 14:49 UTC.