lowRISC / lowRISC/lowrisc-toolchains

Binutils is missing pseudo-instructions for unratified `Zbp` instructions

Open
#101 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
49
Forks
22
Avg merge
2d 5h
Merged PRs (30d)
2

Description

Binutils is missing the following pseudo-instructions for the unratified Zbp instructions:

  • rev{,2,4,8,16,32}{,.p,.n,.b,.h,.w} which are pseudo-instructions for grevi (except for rev8 which became a ratified instruction in Zbb)
  • orc{,2,4,8,16,32}, orc.p, orc{,2}.n,orc{,2,4}.b, orc{,2,4,8}.h, orc{2,4,8,16}.w which are pseudo-instructions for gorci (except for orc.b which became a ratified instruction in Zbb)
  • {,un}zip{,2,4,8,16}, {,un}zip.n, {,un}zip{,2}.b, {,un}zip{,2,4}.h, {,un}zip{,2,4,8}.w which are pseudo-instructions for shfli/unshfli (except for zip/unzip which became ratified instructions in Zbkb)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Binutils assembler handling for the existing grevi, gorci, shfli, and unshfli instructions. Compare the listed Zbp pseudo-instructions with the ratified Zbb and Zbkb exceptions, then identify the relevant assembler tests. Done means the requested aliases assemble correctly while the listed ratified instructions remain handled as specified.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.