fallback: translate: sext i8
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: sext i8 M |
| Occurrences: | 4 in 4 configs, 3 test files, 14 more counted only |
| Snippet from: | avgceils.db9cab8316.ll (mutant of avgceils.ll) @test_ext_i8 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 -code-model=small |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i8
; Function Attrs: nounwind
define i8 @test_ext_i8(i8 %a0, i8 %a1) #0 {
%x0 = sext i8 %a0 to i16
%x1 = sext i8 %a1 to i16
%sum = add i16 %x0, %x1
%sum1 = add i16 %sum, 1
%shift = ashr i16 %sum1, 1
%res = trunc i16 %shift to i8
store i8 %res, ptr @G.1, align 1
ret i8 %res
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: sext: ' %x0 = sext i8 %a0 to i16' (in function: test_ext_i8)
warning: Instruction selection used fallback path for test_ext_i8
Occurrences (4):
| Input | Function | Config |
|---|
| abds-neg.0064b04e74.ll (mutant of abds-neg.ll) | abd_ext_i8_i16 | -mtriple=riscv32 -mattr=+zbb,+zfinx -O3 -verify-machineinstrs |
| abds.a8d6297eee.ll (mutant of abds.ll) | abd_ext_i8_i16 | -mtriple=riscv32 -mattr=+xtheadba,+zdinx -O3 -verify-machineinstrs |
| abds.f45c605090.ll (mutant of abds.ll) | abd_ext_i8_undef | -mtriple=riscv32 -mattr=+zbb,+zdinx -O1 -verify-machineinstrs |
| avgceils.db9cab8316.ll (mutant of avgceils.ll) | test_ext_i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 -code-model=small |
Generated 2026-11-29 14:49 UTC.