fallback: translate: lshr i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: lshr i32 M |
| Occurrences: | 7 in 7 configs, 7 test files, 173 more counted only |
| Snippet from: | selectcc-to-shiftand.ae9276f6f5.ll (mutant of selectcc-to-shiftand.ll) @not_neg_sel_same_variable via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zhinx -O0 -code-model=medium -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i32 @not_neg_sel_same_variable(i32 signext %a) {
%B = lshr i32 %a, -1
%tmp = icmp sgt i32 %a, 0
%min = select i1 %tmp, i32 %a, i32 0
store i32 %B, ptr poison, align 4
ret i32 %min
}
Reproduce:
llc -mtriple=riscv32 -mattr=+zhinx -O0 -code-model=medium -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zhinx -O0 -code-model=medium -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: lshr: ' %B = lshr i32 %a, -1' (in function: not_neg_sel_same_variable)
warning: Instruction selection used fallback path for not_neg_sel_same_variable
Occurrences (7):
| Input | Function | Config |
|---|
| bswap-bitreverse.6deb6270b5.ll (mutant of bswap-bitreverse.ll) | pr55484 | -mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+zhinx -O3 -code-model=medium |
| half-intrinsics.9d5cb0b7ef.ll (mutant of half-intrinsics.ll) | log2_f16 | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zdinx,+zbkb -O2 -code-model=small |
| rv32zbb.cb8b42065f.ll (mutant of rv32zbb.ll) | sexth_extract_i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3 |
| rv64xtheadbb.a573ce3ef4.ll (mutant of rv64xtheadbb.ll) | cttz_zero_poison_i32 | -mtriple=riscv64 -mattr=+xtheadbb,+zhinx -O2 -verify-machineinstrs |
| rvp-scalar.efcc168f4c.ll (mutant of rvp-scalar.ll) | ssh1sadd_i32_addself | -mtriple=riscv64 -mattr=+experimental-p,+zfinx -O3 -verify-machineinstrs |
| select-zbb.e84a9e4e5e.ll (mutant of select-zbb.ll) | select_smin_2 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zicond,+zfinx -O1 |
| selectcc-to-shiftand.ae9276f6f5.ll (mutant of selectcc-to-shiftand.ll) | not_neg_sel_same_variable | -mtriple=riscv32 -mattr=+zhinx -O0 -code-model=medium -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.