[clang] [clang] allow fetch_{min, max} for atomic pointer types (PR #182699)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 22 04:38:56 PDT 2026
================
@@ -747,9 +747,13 @@ void test_c11_minmax(_Atomic(int) * si, _Atomic(unsigned) * ui, _Atomic(short) *
// CHECK: atomicrmw min ptr {{.*}} acquire, align 8
*sll = __c11_atomic_fetch_min(sll, 42, memory_order_acquire);
+ // CHECK: atomicrmw umax ptr {{.*}} acquire, align 4
+ __c11_atomic_fetch_max(aip, ip, memory_order_acquire);
----------------
huixie90 wrote:
added
https://github.com/llvm/llvm-project/pull/182699
More information about the cfe-commits
mailing list