-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
[PPC64] Add support for gcc > 12 and clang > 12 #1520
Conversation
mtl1979
commented
Jun 11, 2023
•
edited
Loading
edited
- Use endianess-specific built-in function for gcc < 12 and clang
- Fix build with clang 13, 14, 15 and 16
- Fix detection for availability of Power9 intrinsics
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #1520 +/- ##
===========================================
- Coverage 83.90% 82.85% -1.06%
===========================================
Files 132 133 +1
Lines 10848 10964 +116
Branches 2792 2823 +31
===========================================
- Hits 9102 9084 -18
- Misses 1046 1121 +75
- Partials 700 759 +59
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Hmm I feel like just bumping the gcc version here is not the best answer. I would like to know what gas is doing with {endian} in their intrinsic. Is it possible we just need to just use one of the two now? Given the intrinsic is supposed to give you the instruction it's thinly veiling I wouldn't love that but it makes some sense maybe. I'd also be curious what clang generates. |
The latest code is basically using just code that is equivalent to one of the intrinsics. The code would get really ugly if we test endianess later in the file just for gcc < 12. The "old" version didn't support compiling with clang, so there isn't anything to compare against... |
00ac94c
to
47d776a
Compare
14496b7
to
0c81bf8
Compare
* Add support for cross-compiling using clang 13 and later for PowerPC64 little-endian and big-endian * Fix detection for availability of Power9 intrinsics