llvm-project/clang/test
Kai Luo e4ed93cb25 [PowerPC] Implement XL compatible behavior of __compare_and_swap
According to https://www.ibm.com/docs/en/xl-c-and-cpp-aix/16.1?topic=functions-compare-swap-compare-swaplp
XL's `__compare_and_swap` has a weird behavior that

> In either case, the contents of the memory location specified by addr are copied into the memory location specified by old_val_addr.

(unlike c11 `atomic_compare_exchange` specified in http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf)

This patch let clang's implementation follow this behavior.

Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D106344
2021-07-23 01:16:02 +00:00
..
APINotes
ARCMT
AST Fix an accepts-invalid issue with [[]] attributes in the type position in C 2021-07-01 12:41:18 -04:00
ASTMerge
Analysis [analyzer] Fix for faulty namespace test in SmartPtrModelling 2021-07-21 18:23:35 +05:30
CXX [clang] C++98 implicit moves are back with a vengeance 2021-07-13 19:16:49 +02:00
ClangScanDeps [clang-scan-deps] ignore top-level module dependencies that aren't actually imported 2021-07-20 11:11:28 -07:00
CodeCompletion [clang][PreProcessor] Cutoff parsing after hitting completion point 2021-05-10 11:24:27 +02:00
CodeGen [PowerPC] Implement XL compatible behavior of __compare_and_swap 2021-07-23 01:16:02 +00:00
CodeGenCUDA [Internalize] Preserve variables externally initialized. 2021-07-08 10:48:19 -04:00
CodeGenCXX [DebugInfo] Add -fno-ctor-homing for as counterpart to -fuse-ctor-homing 2021-07-22 14:52:36 -07:00
CodeGenCoroutines [Coroutines] Run coroutine passes by default 2021-07-15 14:33:40 +08:00
CodeGenHIP
CodeGenObjC [clang][darwin] add support for Mac Catalyst availability 2021-07-20 12:51:57 -07:00
CodeGenObjCXX Reapply [IR] Don't mark mustprogress as type attribute 2021-07-09 20:57:44 +02:00
CodeGenOpenCL [OpenCL] Add support of __opencl_c_program_scope_global_variables feature macro 2021-07-15 17:21:19 +03:00
CodeGenOpenCLCXX [C++][Sema] Ignore top-level qualifiers in casts 2021-07-05 12:22:08 +01:00
CodeGenSYCL [SYCL] Fix __builtin_sycl_unique_stable_name to work on windows/spir 2021-06-02 13:16:14 -07:00
Coverage Add a target triple to fix failures on MS build bots. 2021-06-30 17:27:26 -07:00
CoverageMapping [clang] remove an incremental build workaround 2021-05-05 12:21:56 -04:00
Driver [AIX] Generate large code model relocations when mcmodel=medium on AIX 2021-07-22 15:47:22 -04:00
FixIt [clang][darwin] add support for Mac Catalyst availability 2021-07-20 12:51:57 -07:00
Format Remove redundant test that was causing intermittent build bot failures. 2021-06-15 12:46:03 -07:00
Frontend Improve clang -Wframe-larger-than= diagnostic 2021-06-22 11:20:49 -07:00
Headers [WebAssembly][NFC] Update test expectations labels after db7efcab7d 2021-07-22 16:31:12 -07:00
Import
Index [clang] RecursiveASTVisitor visits ObjCPropertyRefExpr's class receiver 2021-06-01 14:45:25 -04:00
Integration
InterfaceStubs [ifs][elfabi] Merge llvm-ifs/elfabi tools 2021-07-19 11:23:19 -07:00
Interpreter Reland "[clang-repl] Allow passing in code as positional arguments." 2021-07-10 17:54:00 +00:00
Layout [PowerPC][AIX] Fix Zero-width bit fields wrt MaxFieldAlign. 2021-07-12 15:31:15 -04:00
Lexer [clang] add C++ feature test macro for P2266 simpler implicit move 2021-06-26 23:05:23 +02:00
Misc [OpenCL] Add support of __opencl_c_read_write_images feature macro 2021-07-13 15:38:23 +03:00
Modules Support for merging UsingPackDecls across modules. 2021-07-01 18:43:49 -07:00
OpenMP [OPENMP]Fix PR49787: Codegen for calling __tgt_target_teams_nowait_mapper has too few arguments. 2021-07-22 08:44:37 -07:00
PCH [clang] Fix ternary operator in the second for loop statement 2021-05-16 10:42:52 -07:00
Parser Revert "Revert "Temporarily do not drop volatile stores before unreachable"" 2021-07-09 11:44:34 -04:00
ParserSYCL Reimplement __builtin_unique_stable_name- 2021-05-27 07:12:20 -07:00
Preprocessor [AIX] Define __LONGDOUBLE64 macro 2021-07-22 16:05:14 -04:00
Profile Revert test fixups after e9a9c85098 (which reverted a14fc74). 2021-06-04 10:42:25 -04:00
Refactor
Rewriter
Sema Correctly diagnose taking the address of a register variable in C 2021-07-22 14:53:23 -04:00
SemaCUDA [HIP] Defer operator overloading errors 2021-06-23 23:39:59 -04:00
SemaCXX PR51158: Don't emit -Wswitch or -Wcovered-switch-default for empty enums 2021-07-22 14:51:56 -07:00
SemaObjC [clang][darwin] add support for Mac Catalyst availability 2021-07-20 12:51:57 -07:00
SemaObjCXX [clang] C++98 implicit moves are back with a vengeance 2021-07-13 19:16:49 +02:00
SemaOpenCL [OpenCL][NFC] Refactors lang version check in test. 2021-07-22 16:47:38 +01:00
SemaOpenCLCXX [C++][Sema] Ignore top-level qualifiers in casts 2021-07-05 12:22:08 +01:00
SemaSYCL Replace 'magic static' with a member variable for SCYL kernel names 2021-05-27 13:46:31 -07:00
SemaTemplate Print default template argument if manually specified in typedef declaration. 2021-06-29 14:57:26 +00:00
TableGen
Templight
Tooling
Unit
VFS
clang-rename
utils/update_cc_test_checks [UpdateCCTestChecks] Implement --global-hex-value-regex 2021-07-20 11:23:20 -04:00
.clang-format
CMakeLists.txt Fix utils/update_cc_test_checks/check-globals.test on stand-alone builds 2021-07-13 10:47:30 -07:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [clang-repl] Recommit "Land initial infrastructure for incremental parsing" 2021-05-13 06:30:29 +00:00
lit.site.cfg.py.in Fix utils/update_cc_test_checks/check-globals.test on stand-alone builds 2021-07-13 10:47:30 -07:00
make_test_dirs.pl