fallback: translate: zext i8~
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: zext i8~ M |
| Occurrences: | 3 in 3 configs, 1 test files, 8 more counted only |
| Snippet from: | clmulh.203ef8f3b6.ll (mutant of clmulh.ll) @clmulh_i4 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbs,+zfinx -O2 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i4 @clmulh_i4(i4 %a, i4 %b) #0 {
%a.ext = zext i4 %a to i8
%b.ext = zext i4 %b to i8
%clmul = call i8 @llvm.clmul.i8(i8 %a.ext, i8 %b.ext)
%res.ext = lshr i8 4, %clmul
%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=+m,+zbs,+zfinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+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: clmulh_i4)
warning: Instruction selection used fallback path for clmulh_i4
Occurrences (3):
| Input | Function | Config |
|---|
| clmulh.03a865cc2c.ll (mutant of clmulh.ll) | clmulh_i4 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zvbc,+zdinx,+xtheadba -O1 |
| clmulh.203ef8f3b6.ll (mutant of clmulh.ll) | clmulh_i4 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbs,+zfinx -O2 |
| clmulh.c4435c597d.ll (mutant of clmulh.ll) | clmulh_i4 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvbc,+zdinx -O0 |
Generated 2026-11-29 14:49 UTC.