[LoongArch] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros
authorBrad Smith <brad@comstyle.com>
Fri, 6 Jan 2023 01:18:59 +0000 (20:18 -0500)
committerBrad Smith <brad@comstyle.com>
Fri, 6 Jan 2023 01:21:22 +0000 (20:21 -0500)
commitf70d17fc2c10381682123c5f8766bd59c27dfbdd
tree3a36e5033493e90fb70577b144d89b7b97cab24a
parent1b8224537070337c2d983a204a08eb27bac1ded6
[LoongArch] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros

Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros

Reviewed By: SixWeining, MaskRay

Differential Revision: https://reviews.llvm.org/D141070
clang/lib/Basic/Targets/LoongArch.cpp
clang/test/Preprocessor/init-loongarch.c
clang/test/Preprocessor/predefined-arch-macros.c