1 ; RUN: llvm-as < %s | llvm-bcanalyzer -dump | FileCheck %s
2 ; Make sure the names of atomics are known
5 ; CHECK: INST_STOREATOMIC
6 ; CHECK: INST_LOADATOMIC
8 define void @atomics(i32* %ptr) {
9 store atomic i32 0, i32* %ptr monotonic, align 4
10 %load = load atomic i32, i32* %ptr monotonic, align 4
11 %xchg = cmpxchg i32* %ptr, i32 0, i32 5 acquire monotonic