Home | History | Annotate | Download | only in SystemZ

Lines Matching full:swap

1 ; Test 32-bit compare and swap.
6 define i32 @f1(i32 %cmp, i32 %swap, i32 *%src) {
10 %val = cmpxchg i32 *%src, i32 %cmp, i32 %swap seq_cst
15 define i32 @f2(i32 %cmp, i32 %swap, i32 *%src) {
20 %val = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst
25 define i32 @f3(i32 %cmp, i32 %swap, i32 *%src) {
30 %val = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst
35 define i32 @f4(i32 %cmp, i32 %swap, i32 *%src) {
40 %val = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst
46 define i32 @f5(i32 %cmp, i32 %swap, i32 *%src) {
52 %val = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst
57 define i32 @f6(i32 %cmp, i32 %swap, i32 *%src) {
62 %val = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst
67 define i32 @f7(i32 %cmp, i32 %swap, i32 *%src) {
72 %val = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst
78 define i32 @f8(i32 %cmp, i32 %swap, i32 *%src) {
84 %val = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst
89 define i32 @f9(i32 %cmp, i32 %swap, i64 %src, i64 %index) {
96 %val = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst
101 define i32 @f10(i32 %cmp, i32 %swap, i64 %src, i64 %index) {
109 %val = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst
114 define i32 @f11(i32 %dummy, i32 %swap, i32 *%ptr) {
119 %val = cmpxchg i32 *%ptr, i32 1001, i32 %swap seq_cst
123 ; Check that a constant %swap value is loaded into a register first.
126 ; CHECK: lhi [[SWAP:%r[0-9]+]], 1002
127 ; CHECK: cs %r2, [[SWAP]], 0(%r3)