fallback: translate: zext i8~
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: zext i8~ M |
| Occurrences: | 4 in 4 configs, 2 test files, 14 more counted only |
| Snippet from: | clmulr.f4dda22212.ll (mutant of clmulr.ll) @clmulr_i4 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbs,+zfinx -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i4 @clmulr_i4(i4 %a, i4 %b) #0 {
%a.ext = zext i4 %a to i8
%B = urem i4 %a, %b
%b.ext = zext i4 %B to i8
%clmul = call i8 @llvm.clmul.i8(i8 %a.ext, i8 %b.ext)
%res.ext = lshr i8 %clmul, 3
%res = trunc i8 %res.ext to i4
ret i4 %res
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.clmul.i8(i8, i8) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbs,+zfinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbs,+zfinx -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: zext: ' %a.ext = zext i4 %a to i8' (in function: clmulr_i4)
warning: Instruction selection used fallback path for clmulr_i4
Occurrences (4):
| Input | Function | Config |
|---|
| clmulh.1c8d6d2323.ll (mutant of clmulh.ll) | clmulh_i4 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbs,+zdinx,+zbb -O3 |
| clmulh.ebef8a798d.ll (mutant of clmulh.ll) | clmulh_i4 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbc,+zdinx -O0 -code-model=medium |
| clmulr.5ca9ade9cd.ll (mutant of clmulr.ll) | clmulr_i4 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx -O2 -code-model=medium |
| clmulr.f4dda22212.ll (mutant of clmulr.ll) | clmulr_i4 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbs,+zfinx -O2 |
Generated 2026-11-29 14:49 UTC.