Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

[question] Does V extension implies F and D? #906

Open
WojciechMula opened this issue Jul 20, 2023 · 4 comments
Open

[question] Does V extension implies F and D? #906

WojciechMula opened this issue Jul 20, 2023 · 4 comments

Comments

@WojciechMula
Copy link

I cannot locate any mention of it, but Spike code suggests these two are mandatory; riscv/isa_parser.cc:

    switch (*p) {
      case 'p': extension_table[EXT_ZBPBO] = true;
                extension_table[EXT_ZPN] = true;
                extension_table[EXT_ZPSFOPERAND] = true;
                extension_table[EXT_ZMMUL] = true; break;
      case 'v': // even rv32iv implies double float
      case 'q': extension_table['D'] = true;
                // Fall through
      case 'd': extension_table['F'] = true;
    }
@asb
Copy link

asb commented Jul 20, 2023

Yes, V implies F and D. V requires Zve64d, and that in turn requires D.

@WojciechMula
Copy link
Author

Thank you!

@topperc
Copy link
Contributor

topperc commented Jul 20, 2023

This is documented in "18. Standard Vector Extensions" section of the vector spec.

The V extension depends upon the F and D extensions...

@WojciechMula
Copy link
Author

@topperc I overlooked that... sorry for the buzz.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants