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

Compile ac_math with clang #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nkkav
Copy link
Contributor

@nkkav nkkav commented Mar 12, 2021

A set of changes to make ac_math based code (e.g., the test drivers under tests) to work with clang-8, clang-9 and clang-10 (other clang versions will likely work but are not tested).

Local testing used GCC_EXEC = clang++ and ran all ac_math tests which concluded with

=============================================================================
  Testbench finished. Maximum errors observed across all data type / bit-width variations:
    max_error_fixed       = 0.0994861
    cmplx_max_error_fixed = 2.23468
    max_error_float       = 0.100706
  ac_sqrt_pwl - PASSED
=============================================================================

meaning the last test (as well as all the previous tests) passed.

The changes are known to work a number of g++ versions (all versions tested) but they have not been tested with the EDG compiler frontend.

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.

None yet

1 participant