NFC: update clang tests to check ordering and alignment for atomicrmw/cmpxchg.
authorJames Y Knight <jyknight@google.com>
Thu, 11 Feb 2021 22:33:43 +0000 (17:33 -0500)
committerJames Y Knight <jyknight@google.com>
Thu, 11 Feb 2021 22:35:09 +0000 (17:35 -0500)
commit8043d5a9643b5731454fce91fac0018bfddc96d6
tree14c4ba6cf75607123454aec591a15dd552337042
parent5ebbc5802ff3248622506b90e93a93d0eb3bfcee
NFC: update clang tests to check ordering and alignment for atomicrmw/cmpxchg.

The ability to specify alignment was recently added, and it's an
important property which we should ensure is set as expected by
Clang. (Especially before making further changes to Clang's code in
this area.) But, because it's on the end of the lines, the existing
tests all ignore it.

Therefore, update all the tests to also verify the expected alignment
for atomicrmw and cmpxchg. While I was in there, I also updated uses
of 'load atomic' and 'store atomic', and added the memory ordering,
where that was missing.
58 files changed:
clang/test/CodeGen/2008-03-05-syncPtr.c
clang/test/CodeGen/2010-01-13-MemBarrier.c
clang/test/CodeGen/Atomics.c
clang/test/CodeGen/RISCV/riscv-atomics.c
clang/test/CodeGen/X86/x86-atomic-long_double.c
clang/test/CodeGen/X86/x86_64-atomic-128.c
clang/test/CodeGen/arm-atomics-m.c
clang/test/CodeGen/arm-atomics.c
clang/test/CodeGen/arm64-microsoft-intrinsics.c
clang/test/CodeGen/atomic-ops.c
clang/test/CodeGen/atomic.c
clang/test/CodeGen/atomic_ops.c
clang/test/CodeGen/atomics-inlining.c
clang/test/CodeGen/big-atomic-ops.c
clang/test/CodeGen/bittest-intrin.c
clang/test/CodeGen/builtins-nvptx-ptx50.cu
clang/test/CodeGen/builtins-nvptx.c
clang/test/CodeGen/c11atomics-ios.c
clang/test/CodeGen/c11atomics.c
clang/test/CodeGen/code-coverage-tsan.c
clang/test/CodeGen/linux-arm-atomic.c
clang/test/CodeGen/ms-intrinsics-other.c
clang/test/CodeGen/ms-intrinsics.c
clang/test/CodeGen/ms-volatile.c
clang/test/CodeGen/pr45476.cpp
clang/test/CodeGenCXX/atomic-align.cpp
clang/test/CodeGenCXX/atomic-inline.cpp
clang/test/CodeGenCXX/atomic.cpp
clang/test/CodeGenCXX/atomicinit.cpp
clang/test/CodeGenCXX/cxx1z-decomposition.cpp
clang/test/CodeGenCXX/cxx1z-inline-variables.cpp
clang/test/CodeGenCXX/static-init-pnacl.cpp
clang/test/CodeGenCXX/static-init.cpp
clang/test/CodeGenCXX/static-initializer-branch-weights.cpp
clang/test/CodeGenObjC/property-atomic-bool.m
clang/test/CodeGenOpenCL/atomic-ops.cl
clang/test/OpenMP/atomic_capture_codegen.cpp
clang/test/OpenMP/atomic_codegen.cpp
clang/test/OpenMP/atomic_read_codegen.c
clang/test/OpenMP/atomic_update_codegen.cpp
clang/test/OpenMP/atomic_write_codegen.c
clang/test/OpenMP/for_reduction_codegen.cpp
clang/test/OpenMP/parallel_for_lastprivate_conditional.cpp
clang/test/OpenMP/parallel_master_codegen.cpp
clang/test/OpenMP/parallel_reduction_codegen.cpp
clang/test/OpenMP/requires_acq_rel_codegen.cpp
clang/test/OpenMP/requires_relaxed_codegen.cpp
clang/test/OpenMP/requires_seq_cst_codegen.cpp
clang/test/OpenMP/sections_reduction_codegen.cpp
clang/test/OpenMP/target_teams_distribute_parallel_for_reduction_codegen.cpp
clang/test/OpenMP/target_teams_distribute_parallel_for_simd_reduction_codegen.cpp
clang/test/OpenMP/target_teams_distribute_reduction_codegen.cpp
clang/test/OpenMP/target_teams_distribute_simd_reduction_codegen.cpp
clang/test/OpenMP/taskloop_with_atomic_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_reduction_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_simd_reduction_codegen.cpp
clang/test/OpenMP/teams_distribute_reduction_codegen.cpp
clang/test/OpenMP/teams_distribute_simd_reduction_codegen.cpp