Lines Matching defs:val
6 int val = 1;
13 old = __sync_fetch_and_add(&val, 1);
14 // CHECK: atomicrmw add i32* %val, i32 1 seq_cst
19 old = __sync_fetch_and_min(&val, 3);
20 // CHECK: atomicrmw min i32* %val, i32 3 seq_cst
22 old = __sync_fetch_and_max(&val, 4);
23 // CHECK: atomicrmw max i32* %val, i32 4 seq_cst
31 old = __sync_lock_test_and_set(&val, 7);
32 // CHECK: atomicrmw xchg i32* %val, i32 7 seq_cst
34 old = __sync_swap(&val, 8);
35 // CHECK: atomicrmw xchg i32* %val, i32 8 seq_cst
37 old = __sync_val_compare_and_swap(&val, 4, 1976);
38 // CHECK: cmpxchg i32* %val, i32 4, i32 1976 seq_cst
40 old = __sync_bool_compare_and_swap(&val, 4, 1976);
41 // CHECK: cmpxchg i32* %val, i32 4, i32 1976 seq_cst
43 old = __sync_fetch_and_and(&val, 0x9);
44 // CHECK: atomicrmw and i32* %val, i32 9 seq_cst
46 old = __sync_fetch_and_or(&val, 0xa);
47 // CHECK: atomicrmw or i32* %val, i32 10 seq_cst
49 old = __sync_fetch_and_xor(&val, 0xb);
50 // CHECK: atomicrmw xor i32* %val, i32 11 seq_cst
52 old = __sync_add_and_fetch(&val, 1);
53 // CHECK: atomicrmw add i32* %val, i32 1 seq_cst
55 old = __sync_sub_and_fetch(&val, 2);
56 // CHECK: atomicrmw sub i32* %val, i32 2 seq_cst
78 __sync_lock_release(&val);