fallback: translate: zext i16
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: zext i16 M |
| Occurrences: | 7 in 7 configs, 6 test files, 66 more counted only |
| Snippet from: | avgceilu.85c020a785.ll (mutant of avgceilu.ll) @test_ext_i16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i1
; Function Attrs: nounwind
define i16 @test_ext_i16(i16 %a0, i16 %a1) #0 {
%x0 = zext i16 %a0 to i32
%x1 = zext i16 %a1 to i32
%sum = add i32 %x0, %x1
%sum1 = add i32 %sum, 1
%C = icmp ule i16 %a1, 42
%shift = lshr i32 %sum1, 1
%res = trunc i32 %shift to i16
store i1 %C, ptr @G.2, align 1
ret i16 %res
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: zext: ' %x0 = zext i16 %a0 to i32' (in function: test_ext_i16)
warning: Instruction selection used fallback path for test_ext_i16
Occurrences (7):
| Input | Function | Config |
|---|
| abdu-neg.dae9771d1a.ll (mutant of abdu-neg.ll) | abd_ext_i16_i32 | -mtriple=riscv32 -mattr=+zhinx -O0 -code-model=medium -verify-machineinstrs |
| abdu.1b8e16c449.ll (mutant of abdu.ll) | abd_ext_i16 | -mtriple=riscv64 -mattr=+zhinx -O0 -verify-machineinstrs |
| avgceilu.85c020a785.ll (mutant of avgceilu.ll) | test_ext_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2 |
| clmulr.0bda1990ef.ll (mutant of clmulr.ll) | clmulr_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O1 |
| sextw-removal.24d3b0db9d.ll (mutant of sextw-removal.ll) | zext_i16_arg | -mtriple=riscv64 -riscv-sextw-removal=0 -mattr=+zba,+zdinx -O2 -verify-machineinstrs |
| sextw-removal.cef0cefce4.ll (mutant of sextw-removal.ll) | zext_i16_arg | -mtriple=riscv64 -mattr=+a,+zhinx -O2 -verify-machineinstrs |
| signed-truncation-check.1a95a034fa.ll (mutant of signed-truncation-check.ll) | add_ugtcmp_i16_i8 | -mtriple=riscv64-unknown-linux-gnu -mattr=+zfinx -O2 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.