10 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s2 3typedef unsigned __INT32_TYPE__ uint32_t;4 5unsigned t(uint32_t *ptr, uint32_t val) {6 // CHECK: @t7 // CHECK: atomicrmw xchg ptr {{.*}} seq_cst, align 48 return __sync_lock_test_and_set(ptr, val);9}10