fallback: translate: add i16
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: add i16 M |
| Occurrences: | 5 in 5 configs, 5 test files, 27 more counted only |
| Snippet from: | lack-of-signed-truncation-check.7084a20b08.ll (mutant of lack-of-signed-truncation-check.ll) @add_ugtcmp_i16_i8 via llvm-extract |
| Config: | -mtriple=riscv32-unknown-linux-gnu -mattr=+zbb,+m,+zfinx -O3 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i16
; Function Attrs: nounwind
define i1 @add_ugtcmp_i16_i8(i16 %x) #0 {
%tmp0 = add i16 %x, 128
%B = sdiv i16 %x, %x
%tmp1 = icmp ugt i16 %tmp0, 255
store i16 %B, ptr @G, align 2
ret i1 %tmp1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32-unknown-linux-gnu -mattr=+zbb,+m,+zfinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32-unknown-linux-gnu -mattr=+zbb,+m,+zfinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: add: ' %tmp0 = add i16 %x, 128' (in function: add_ugtcmp_i16_i8)
warning: Instruction selection used fallback path for add_ugtcmp_i16_i8
Occurrences (5):
| Input | Function | Config |
|---|
| atomic-load-zext.6c9d86412d.ll (mutant of atomic-load-zext.ll) | atomic_load_i16_seq_cst | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+xtheadba -O3 |
| atomic-signext.17ba572e4b.ll (mutant of atomic-signext.ll) | atomicrmw_nand_i16_monotonic | -mtriple=riscv32 -verify-machineinstrs -mattr=+-a,+zaamo,+zalrsc,+zhinx -O1 |
| lack-of-signed-truncation-check.7084a20b08.ll (mutant of lack-of-signed-truncation-check.ll) | add_ugtcmp_i16_i8 | -mtriple=riscv32-unknown-linux-gnu -mattr=+zbb,+m,+zfinx -O3 -verify-machineinstrs |
| rv64-float-convert.7bfb61fe9e.ll (mutant of rv64-float-convert.ll) | fptosi_sat_f32_to_i128 | -mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zfinx,+zbkb,+zicond -O3 -code-model=small |
| rv64zbkb.b27d90835b.ll (mutant of rv64zbkb.ll) | pack_i32_allWUsers | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zihintpause -O0 |
Generated 2026-11-29 14:49 UTC.