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

i#5365 Fix some tests which fail when build with -O3 #6492

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

jackgallagher-arm
Copy link
Collaborator

  • client.drsyms-test and client.drwrap-test-detach: The tests expect to observe a certain function call a certain sub-function but it doesn't happen when built with optimisation on because the sub-function gets inlined. This is fixed by marking the sub-functions as NOINLINE.

  • client.drx-scattergather and client.drx-scattergather-bbdup: The test clients used with these tests count the number of scatter/gather instructions that are expanded and print the number at the end of the test, which gets checked against a reference value. Building the test app with -O3 causes some code to be auto vectorized so there are additional scatter/gather instructions which throws off the count. I removed this tests from the sve_tests list so it won't be built with -O3.

Issue: #5365

- client.drsyms-test and client.drwrap-test-detach:
    The tests expect to observe a certain function call a certain
    sub-function but it doesn't happen when built with optimisation on
    because the sub-function gets inlined.
    This is fixed by marking the sub-functions as NOINLINE.

- client.drx-scattergather and client.drx-scattergather-bbdup
    The test clients used with these tests count the number of
    scatter/gather instructions that are expanded and print the number
    at the end of the test, which gets checked against a reference
    value. Building the test app with -O3 causes some code to be
    auto vectorized so there are additional scatter/gather instructions
    which throws off the count. I removed this tests from the sve_tests
    list so it won't be built with -O3.

Issue: #5365
@jackgallagher-arm
Copy link
Collaborator Author

The x86-32 failures look like #6417

@AssadHashmi AssadHashmi merged commit d94d8b9 into master Dec 4, 2023
14 of 15 checks passed
@AssadHashmi AssadHashmi deleted the i5365-fix-some-tests-built-with-o3 branch December 4, 2023 17:45
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