Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use separators, not spaces, between operands #332

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

ThinkOpenly
Copy link
Contributor

In model/riscv_insts_zfa.sail, there are quite a few cases where spaces (spc()) are utilized instead of separators (sep()) between operands:

mapping clause assembly = RISCV_FMAXM_D(rs2, rs1, rd)
  <-> "fmaxm.d" ^ spc() ^ freg_name(rd)
                ^ spc() ^ freg_name(rs1)
                ^ spc() ^ freg_name(rs2)

In the assembly representation, spaces are between the mnemonic and its operands, and separators are between operands.

Fix the errant cases.

In `model/riscv_insts_zfa.sail`, there are quite a few cases where
spaces (`spc()`) are utilized instead of separators (`sep()`) between operands:
```
mapping clause assembly = RISCV_FMAXM_D(rs2, rs1, rd)
  <-> "fmaxm.d" ^ spc() ^ freg_name(rd)
                ^ spc() ^ freg_name(rs1)
                ^ spc() ^ freg_name(rs2)
```

In the assembly representation, spaces are between the mnemonic and
its operands, and separators are between operands.

Fix the errant cases.

Signed-off-by: Paul A. Clarke <pclarke@ventanamicro.com>
@github-actions
Copy link

Unit Test Results

712 tests  ±0   712 ✔️ ±0   0s ⏱️ ±0s
    6 suites ±0       0 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit f521b55. ± Comparison against base commit 69af65c.

@arichardson
Copy link
Collaborator

This PR is trivial and has a positive review. Is there any reason it's not been merged after 2 weeks?

@billmcspadden-riscv
Copy link
Collaborator

billmcspadden-riscv commented Nov 9, 2023 via email

@billmcspadden-riscv billmcspadden-riscv merged commit 46750ee into riscv:master Nov 10, 2023
2 checks passed
@ThinkOpenly ThinkOpenly deleted the spc-sep branch August 6, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants