Lines Matching refs:swap
1 ; Test 32-bit compare and swap.
6 define i32 @f1(i32 %cmp, i32 %swap, i32 *%src) {
10 %pair = cmpxchg i32 *%src, i32 %cmp, i32 %swap seq_cst seq_cst
16 define i32 @f2(i32 %cmp, i32 %swap, i32 *%src) {
21 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
27 define i32 @f3(i32 %cmp, i32 %swap, i32 *%src) {
32 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
38 define i32 @f4(i32 %cmp, i32 %swap, i32 *%src) {
43 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
50 define i32 @f5(i32 %cmp, i32 %swap, i32 *%src) {
56 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
62 define i32 @f6(i32 %cmp, i32 %swap, i32 *%src) {
67 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
73 define i32 @f7(i32 %cmp, i32 %swap, i32 *%src) {
78 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
85 define i32 @f8(i32 %cmp, i32 %swap, i32 *%src) {
91 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
97 define i32 @f9(i32 %cmp, i32 %swap, i64 %src, i64 %index) {
104 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
110 define i32 @f10(i32 %cmp, i32 %swap, i64 %src, i64 %index) {
118 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
124 define i32 @f11(i32 %dummy, i32 %swap, i32 *%ptr) {
129 %pair = cmpxchg i32 *%ptr, i32 1001, i32 %swap seq_cst seq_cst
134 ; Check that a constant %swap value is loaded into a register first.