Lines Matching refs:atomic
6 ; Sanity tests for atomic stores.
8 ; atomic ops, just some transformations are not allowed across them.
22 store atomic i32 0, i32* @y unordered, align 4
34 %x = load atomic i32* @y seq_cst, align 4
39 ; DSE across seq_cst store (store before atomic store must not be removed)
43 ; CHECK: store atomic i32 2
46 store atomic i32 2, i32* @y seq_cst, align 4
54 ; CHECK-NOT: store atomic
57 store atomic i32 0, i32* @x unordered, align 4
62 ; DSE unordered store overwriting non-atomic store (allowed)
65 ; CHECK: store atomic i32 1
68 store atomic i32 1, i32* @x unordered, align 4
72 ; DSE no-op unordered atomic store (allowed)
78 %x = load atomic i32* @x unordered, align 4
79 store atomic i32 %x, i32* @x unordered, align 4
84 ; to reason about atomic operations).
87 ; CHECK: store atomic
90 store atomic i32 0, i32* %a seq_cst, align 4
95 ; to reason about atomic operations).
99 ; CHECK: load atomic
104 %x = load atomic i32* @x seq_cst, align 4