llvm-capstone/clang/test/SemaCUDA
Fangrui Song fed564432c
[Sema] atomic_compare_exchange: check failure memory order (#74959)
For

`__atomic_compare_exchange{,_n}/__c11_atomic_compare_exchange_{strong,weak}`,
GCC checks both the success memory order and the failure memory order
under the default -Winvalid-memory-model ("memory model" is confusing
here and "memory order" is much more common in the atomic context).

* The failure memory order, if a constant, must be one of
  relaxed/consume/acquire/seq_cst.

Clang checks just the success memory order under the default
-Watomic-memory-ordering. This patch checks the failure memory order.
2023-12-14 11:03:28 -08:00
..
Inputs [CUDA][HIP] Fix init var diag in temmplate (#69081) 2023-10-17 10:00:32 -04:00
add-inline-in-definition.cu
addr-of-overloaded-fn.cu
alias.cu [NVPTX] Fix missed test after adding alias support for NVPTX 2023-08-07 14:35:02 -05:00
allow-int128.cu CUDA/HIP: Allow __int128 on the host side 2022-01-04 16:09:26 -08:00
amdgpu-attrs.cu
amdgpu-bf16.cu [Clang][BFloat16] Upgrade __bf16 to arithmetic type, change mangling, and extend excess precision support 2023-05-27 13:33:50 +08:00
amdgpu-f128.cu
amdgpu-size_t.cu
amdgpu-windows-vectorcall.cu Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606) 2023-09-07 23:18:30 -04:00
asm_delayed_diags.cu
asm-constraints-device.cu
asm-constraints-mixed.cu
atomic-ops.cu [Sema] atomic_compare_exchange: check failure memory order (#74959) 2023-12-14 11:03:28 -08:00
attr-declspec.cu Use functions with prototypes when appropriate; NFC 2022-02-07 09:25:01 -05:00
attributes-on-non-cuda.cu Use functions with prototypes when appropriate; NFC 2022-02-07 09:25:01 -05:00
autoret-global.cu
bad-attributes.cu
bad-calls-on-same-line.cu
bf16.cu [Clang][BFloat16] Upgrade __bf16 to arithmetic type, change mangling, and extend excess precision support 2023-05-27 13:33:50 +08:00
builtin-mangled-name.cu
builtins-unsafe-atomics-gfx90a.cu [HIP] Relax conditions for address space cast in builtin args 2021-10-15 15:35:52 -06:00
builtins.cu [NVPTX/CUDA] added an optional src_size argument to __nvvm_cp_async* 2023-05-19 10:59:36 -07:00
call-device-fn-from-host.cu
call-host-fn-from-device.cu Revert "[CUDA][HIP] make trivial ctor/dtor host device (#72394)" 2023-11-22 21:20:53 -05:00
call-kernel-from-kernel.cu
call-stack-for-deferred-err.cu Diagnose use of VLAs in C++ by default 2023-10-20 13:10:03 -04:00
config-type.cu
const-var.cu [CUDA][HIP] Do not treat host var address as constant in device compilation 2022-01-28 16:04:52 -05:00
constexpr-ctor.cu
constexpr-var.cu [CUDA][HIP] Do not promote constexpr var with non-constant initializer 2022-02-15 15:15:55 -05:00
constexpr-variables.cu
cuda-builtin-vars.cu
cuda-inherits-calling-conv.cu
cxx11-kernel-call.cu
default-ctor.cu Revert "[CUDA][HIP] make trivial ctor/dtor host device (#72394)" 2023-11-22 21:20:53 -05:00
deferred-diags-limit.cu
deferred-diags.cu
deferred-oeverload.cu
dependent-device-var.cu
device-use-host-var.cu [clang][TypePrinter] Teach isSubstitutedDefaultArgument about integral types 2022-12-16 11:38:51 +00:00
device-var-init.cu [CUDA][HIP] Fix init var diag in temmplate (#69081) 2023-10-17 10:00:32 -04:00
error-includes-mode.cu
exceptions.cu
extern-shared.cu
float16.cu
fp16-arg-return.cu [HIP] Fix regression about __fp16 args and return value 2023-08-01 11:29:19 -04:00
function-overload.cu Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606) 2023-09-07 23:18:30 -04:00
function-target.cu
function-template-overload.cu
global-initializers.cu Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606) 2023-09-07 23:18:30 -04:00
gnu-inline.cu
host-device-constexpr.cu
implicit-copy.cu
implicit-device-lambda.cu
implicit-host-device-fun.cu [CUDA][HIP] Make template implicitly host device (#70369) 2023-11-09 20:36:38 -05:00
implicit-intrinsic.cu
implicit-member-target-collision-cxx11.cu Revert "[CUDA][HIP] make trivial ctor/dtor host device (#72394)" 2023-11-22 21:20:53 -05:00
implicit-member-target-collision.cu Revert "[CUDA][HIP] make trivial ctor/dtor host device (#72394)" 2023-11-22 21:20:53 -05:00
implicit-member-target-inherited.cu Revert "[CUDA][HIP] make trivial ctor/dtor host device (#72394)" 2023-11-22 21:20:53 -05:00
implicit-member-target.cu Revert "[CUDA][HIP] make trivial ctor/dtor host device (#72394)" 2023-11-22 21:20:53 -05:00
inherited-ctor.cu
kernel-call.cu
lambda.cu
launch_bounds_sm_90.cu Reland [NVPTX] Add support for maxclusterrank in launch_bounds (#66496) (#67667) 2023-09-29 08:39:31 +02:00
launch_bounds.cu Reland [NVPTX] Add support for maxclusterrank in launch_bounds (#66496) (#67667) 2023-09-29 08:39:31 +02:00
lit.local.cfg [NFC][Py Reformat] Reformat python files in clang and clang-tools-extra 2023-05-23 08:29:52 +02:00
managed-var.cu
member-init.cu [CUDA][HIP] Fix overloading resolution of delete operator 2023-08-08 09:50:24 -04:00
method-target.cu
neon-attrs.cu [Clang][AArch64] Add fix vector types to header into SVE (#73258) 2023-12-13 08:59:41 +00:00
no-call-stack-for-immediate-errs.cu Diagnose use of VLAs in C++ by default 2023-10-20 13:10:03 -04:00
no-destructor-overload.cu
no-host-device-constexpr.cu
noinline.cu Fix test; we now expect a pedantic warning 2022-05-11 06:52:21 -04:00
openmp-parallel.cu [CUDA][HIP] Fix delete operator for -fopenmp 2022-04-19 14:28:03 -04:00
openmp-static-func.cu
openmp-target.cu [OpenMP] Update the default version of OpenMP to 5.1 2023-06-15 12:41:09 +05:30
overloaded-delete.cu
pr27778.cu
pr54537.cu [CUDA] Don't call inferCUDATargetForImplicitSpecialMember too early. 2022-03-31 13:49:12 -07:00
qualifiers.cu
reference-to-kernel-fn.cu
spirv-int128.cu CUDA/HIP: Allow __int128 on the host side 2022-01-04 16:09:26 -08:00
static-device-var.cu
template-arg-deduction.cu [CUDA][HIP] Fix template argument deduction 2023-08-08 17:39:01 -04:00
trace-through-global.cu
trivial-ctor-dtor.cu [CUDA][HIP] allow trivial ctor/dtor in device var init (#73140) 2023-12-01 16:24:01 -05:00
union-init.cu
usual-deallocators.cu
vararg.cu
vla.cu Diagnose use of VLAs in C++ by default 2023-10-20 13:10:03 -04:00
windows-calling-conv.cu Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606) 2023-09-07 23:18:30 -04:00