repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2010-01-13-MemBarrier.c
blob
1c60bb7056c42a664c700e7c8949618cdf1e2429
1
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2
3
typedef
unsigned
__INT32_TYPE__
uint32_t
;
4
5
unsigned
t
(
uint32_t
*
ptr
,
uint32_t
val
) {
6
// CHECK: @t
7
// CHECK: atomicrmw xchg ptr {{.*}} seq_cst, align 4
8
return
__sync_lock_test_and_set
(
ptr
,
val
);
9
}