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

Update links and current statuses (batch 2022-02-20) #18

Merged

Conversation

a4lg
Copy link
Contributor

@a4lg a4lg commented Feb 20, 2022

This is preparation for my upcoming proposals. Before proposals, we can clean this document to reflect latest statuses of GNU/LLVM toolchains and other external documents.

  1. It updates links to external documents.
  2. It reflects (not all but some of) current toolchain/ISA statuses:
    • "G" is either "IMAFD" or "IMAFD_Zicsr_Zifencei" (depending on the target ISA)
    • Because disassemblers assume availability of "Zicsr", "RV32/64GC" instead of "RV32/64 IMAFDC" would be better.
    • Because "Zicsr" and "Zmmul" extensions are at least frozen, there's no need for "fine-grained information about a target" TODO.
    • Both GNU and LLVM toolchains support parsing extension versions.

@TommyMurphyTM1234
Copy link

  • "G" is either "IMAFD" or "IMAFD_Zicsr_Zifencei" (depending on the target ISA)

Surely it's only the latter?

@a4lg
Copy link
Contributor Author

a4lg commented Feb 20, 2022

@TommyMurphyTM1234

  • "IMAFD" on version 2.2 or before
  • "IMAFD_Zicsr_Zifencei" on version 20190608 or later

Copy link
Collaborator

@kito-cheng kito-cheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Comment on lines +56 to +58
e.g. `-march=rv64g`. A target `-march` which includes floating point
instructions implies a hardfloat calling convention, but can be overridden
using the `-mabi` flag (see the next section).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although isn't true for GNU toolchain (-march implied -mabi), but that's out of scope for this patch, and not introduced by your change, so I think that could fixed later.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created an issue (#20) for this.
So we can ignore that here.

README.mkd Outdated

The ISA subset naming conventions are described in Chapter 22 of the RISC-V
ISA, e.g. "rv32imafd". The abbreviation "g" can be used to represent either
`IMAFD` (when targeting RISC-V ISA specification version 2.2 or before) or

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "or before" -> "or earlier"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would work. I'm not a native speaker so this kind of feedback is always helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reflected your comment in the document (before → earlier). Thanks!

a4lg added 6 commits April 23, 2022 17:16
Expansion of "g" now depends on the target ISA version:

-   "IMAFD" : version 2.2 or earlier
-   "IMAFD_Zicsr_Zifencei" : version 20190608 or later
This commit removes an entry from "Issues for consideration" of the
"-march" section describing fine-grained architectures.

*   On RISC-V ISA specification version 20190608 or later, instructions
    including (but not limited to) `rdcycle` is splitted to separate
    extension `Zicsr`.
*   `Zmmul` extension (`M` extension with division) is frozen and being
    voted for ratification.
This is because G is changed to include `Zicsr` and `Zifencei`
extensions.
GNU toolchain and LLVM both support RISC-V extension version numbers.
This commit reflects this fact.
@a4lg a4lg force-pushed the update-links-and-statuses20220220 branch from 420134c to 5ca5b4b Compare April 23, 2022 08:17
Copy link
Collaborator

@cmuellner cmuellner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
@kito-cheng any objections? If not, I will merge this within the next 2 days.

@kito-cheng
Copy link
Collaborator

@cmuellner OK to me, thanks :)

@cmuellner cmuellner merged commit c630709 into riscv-non-isa:master May 9, 2022
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.

5 participants