It turns out that the AIX kernel is defining int instead of unsigned int for fetch_and_add.
Legacy XL also defines this to be signed.
https://www.ibm.com/docs/en/aix/7.2?topic=f-fetch-add-kernel-services
So update the type for compat.
Paths
| Differential D106920
[AIX] Update fetch_and_add type ClosedPublic Authored by jsji on Jul 27 2021, 2:59 PM.
Details
Summary It turns out that the AIX kernel is defining int instead of unsigned int for fetch_and_add. Legacy XL also defines this to be signed. https://www.ibm.com/docs/en/aix/7.2?topic=f-fetch-add-kernel-services So update the type for compat.
Diff Detail
Event TimelineHerald added subscribers: steven.zhang, kbarton, nemanjai. · View Herald TranscriptJul 27 2021, 2:59 PM This revision is now accepted and ready to land.Jul 27 2021, 3:08 PM This revision was landed with ongoing or failed builds.Jul 27 2021, 3:13 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 362193 clang/include/clang/Basic/BuiltinsPPC.def
clang/test/CodeGen/builtins-ppc-xlcompat-fetch-error.c
clang/test/CodeGen/builtins-ppc-xlcompat-fetch.c
|