[AIX] Update fetch_and_add type
authorJinsong Ji <jji@us.ibm.com>
Tue, 27 Jul 2021 22:10:33 +0000 (22:10 +0000)
committerJinsong Ji <jji@us.ibm.com>
Tue, 27 Jul 2021 22:13:29 +0000 (22:13 +0000)
commitedbdf8e5b5aad9f1d7f12dd4025d6811a6fff0b2
tree3fcfa14fe483e19c8212974d3912496c426b555f
parent935dea2cb2f3266bdb7bd7ae669dd8220820052b
[AIX] Update fetch_and_add type

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.

Reviewed By: hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D106920
clang/include/clang/Basic/BuiltinsPPC.def
clang/test/CodeGen/builtins-ppc-xlcompat-fetch-error.c
clang/test/CodeGen/builtins-ppc-xlcompat-fetch.c