Lines Matching full:swap
1 ; Test 64-bit compare and swap.
6 define i64 @f1(i64 %cmp, i64 %swap, i64 *%src) {
10 %val = cmpxchg i64 *%src, i64 %cmp, i64 %swap seq_cst
15 define i64 @f2(i64 %cmp, i64 %swap, i64 *%src) {
20 %val = cmpxchg i64 *%ptr, i64 %cmp, i64 %swap seq_cst
26 define i64 @f3(i64 %cmp, i64 %swap, i64 *%src) {
32 %val = cmpxchg i64 *%ptr, i64 %cmp, i64 %swap seq_cst
37 define i64 @f4(i64 %cmp, i64 %swap, i64 *%src) {
42 %val = cmpxchg i64 *%ptr, i64 %cmp, i64 %swap seq_cst
47 define i64 @f5(i64 %cmp, i64 %swap, i64 *%src) {
52 %val = cmpxchg i64 *%ptr, i64 %cmp, i64 %swap seq_cst
58 define i64 @f6(i64 %cmp, i64 %swap, i64 *%src) {
64 %val = cmpxchg i64 *%ptr, i64 %cmp, i64 %swap seq_cst
69 define i64 @f7(i64 %cmp, i64 %swap, i64 %src, i64 %index) {
76 %val = cmpxchg i64 *%ptr, i64 %cmp, i64 %swap seq_cst
81 define i64 @f8(i64 %dummy, i64 %swap, i64 *%ptr) {
86 %val = cmpxchg i64 *%ptr, i64 1001, i64 %swap seq_cst
90 ; Check that a constant %swap value is loaded into a register first.
93 ; CHECK: lghi [[SWAP:%r[0-9]+]], 1002
94 ; CHECK: csg %r2, [[SWAP]], 0(%r3)