fallback: translate: zext i8
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: zext i8 M |
| Occurrences: | 6 in 6 configs, 4 test files, 83 more counted only |
| Snippet from: | avgflooru.4c133d0c01.ll (mutant of avgflooru.ll) @test_ext_i8 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O3 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
; Function Attrs: nounwind
define i8 @test_ext_i8(i8 %a0, i8 %a1) #0 {
%x0 = zext i8 %a0 to i16
%x1 = zext i8 %a1 to i16
%sum = add i16 %x0, %x1
%C = icmp sle i16 %sum, %sum
%shift = lshr i16 %sum, 1
%res = trunc i16 %shift to i8
store i1 %C, ptr @G, align 1
ret i8 %res
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: zext: ' %x0 = zext i8 %a0 to i16' (in function: test_ext_i8)
warning: Instruction selection used fallback path for test_ext_i8
Occurrences (6):
| Input | Function | Config |
|---|
| avgflooru.4c133d0c01.ll (mutant of avgflooru.ll) | test_ext_i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O3 |
| clmulh.165d663f4e.ll (mutant of clmulh.ll) | clmulh_i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O0 |
| clmulh.e39523d926.ll (mutant of clmulh.ll) | commutative_clmulh_i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbc,+zfinx -O2 |
| clmulh.ebef8a798d.ll (mutant of clmulh.ll) | commutative_clmulh_i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbc,+zdinx -O0 -code-model=medium |
| libcall-tail-calls.5ed37468d1.ll (mutant of libcall-tail-calls.ll) | udiv8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 |
| pr190868.ade6e0d7d2.ll (mutant of pr190868.ll) | snippet2_i8 | -mtriple=riscv64 -mattr=+m,+zhinx -O2 -code-model=medium -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.