================
@@ -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);
----------------
Artem-B wrote:

I wish the tests captured instruction arguments, too.  Hard to tell what the 
final instruction looks like exactly and whether we've passed it the right 
arguments in the right order. 

I.e. the check for `__c11_atomic_fetch_max(aip, ip, memory_order_acquire);` and 
`__c11_atomic_fetch_max(ui, 42, memory_order_acquire);` looks exactly the same.

https://github.com/llvm/llvm-project/pull/182699
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to