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

add fcvt testcases #483

Closed
wants to merge 1 commit into from
Closed

add fcvt testcases #483

wants to merge 1 commit into from

Conversation

Pagerd
Copy link
Contributor

@Pagerd Pagerd commented Jul 30, 2024

Description

  • Add floating-to-float conversions in Zfh tests

Related Issues

#458

Ratified/Unratified Extensions

  • [✓] Ratified

List Extensions

  • Zfh

Reference Model Used

  • [✓] SAIL

Mandatory Checklist:

  • All tests are compliant with the test-format spec present in this repo ?
  • Ran the new tests on RISCOF with SAIL/Spike as reference model successfully ?
  • Ran the new tests on RISCOF in coverage mode
  • Link to Google-Drive folder containing the new coverage reports): < coverage reports >
  • Link to PR in RISCV-ISAC from which the reports were generated : < SPECIFY HERE >
  • Changelog entry created with a minor patch

Optional Checklist:

  • RISCV-V CTG PR link if tests were generated using it : < SPECIFY HERE >
  • Were the tests hand-written/modified ?
  • Have you run these on any hard DUT model ? Please specify name and provide link if possible in the description
  • If you have modified arch_test.h Please provide a detailed description of the changes in the Description section above.

@allenjbaum
Copy link
Collaborator

allenjbaum commented Aug 22, 2024 via email

@Pagerd
Copy link
Contributor Author

Pagerd commented Sep 10, 2024

update the coverage reports

@allenjbaum
Copy link
Collaborator

I'm not seeing a pointer to the .cgf files, as requested. Am I just missing it somewhere?

@Pagerd
Copy link
Contributor Author

Pagerd commented Sep 12, 2024

Sorry about missing .cgf files, I have uploaded a new compressed package in google drive

@allenjbaum
Copy link
Collaborator

We have a little problem here. You did include the tests, the test results, you've added the coverpoints, but       you didn't include the coverage report.
IF you had, you may have noticed that there is a lot of missing coverage, because you just copied a particular integer coverage file - and these ops all involve floating point numbers.     There is no coverage for floating point values at all, in either integer or float point formats.
You need to go back and look at how other floating point tests have defined their cover points, and how integer tests have, and craft coverpoints that match the opcodes you're testing, e.g.      for int->float conversions, you want integer value  around powers of 2 +/- offsets that will cause different roundings that bump the exponent up or down (including to infinity or to zero).    (and you want to test the ops with all the different rounding modes)
   for float-> int, you want to to something similar: test floats that are near min/max integer values (including around +/-zero) +/-small offsets, and a few others (Naans, infinity,)
The cgf file you chose is incomplete (e.g. it tests max positive/negative value, 0, 1... but never -1, which is an enormous coverage miss. Also not your fault, but all those coverpoints need to be rewritten/augmented.That cgf also includes reference to rs3, which don't even exist in the operations you're testing, so you'll never get full coverage, another reason you'll need to be more careful crafting the coverpoints.
The FP tests check for FP values in categories such as ibm_b23, and can be found reasonably well documented in the ISAC repoThere should be an equivalent for the Int dataset so the definitions don't have to get repeated over&over- also not your problem.

@allenjbaum
Copy link
Collaborator

Oh, also, this won't get merged into main, it must be merged into the dev branch

@Pagerd
Copy link
Contributor Author

Pagerd commented Sep 13, 2024

I understand, pr will be temporarily closed until i resolve these problem

@Pagerd Pagerd closed this Sep 13, 2024
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.

2 participants