Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/SystemZ/atomicrmw-xchg-04.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | afa8332a0e37 |
children |
comparison
equal
deleted
inserted
replaced
120:1172e4bd9c6f | 121:803732b1fca8 |
---|---|
75 | 75 |
76 ; Check exchange of a constant. We should force it into a register and | 76 ; Check exchange of a constant. We should force it into a register and |
77 ; use the sequence above. | 77 ; use the sequence above. |
78 define i64 @f7(i64 %dummy, i64 *%ptr) { | 78 define i64 @f7(i64 %dummy, i64 *%ptr) { |
79 ; CHECK-LABEL: f7: | 79 ; CHECK-LABEL: f7: |
80 ; CHECK: llilf [[VALUE:%r[0-9+]]], 3000000000 | 80 ; CHECK-DAG: llilf [[VALUE:%r[0-9+]]], 3000000000 |
81 ; CHECK: lg %r2, 0(%r3) | 81 ; CHECK-DAG: lg %r2, 0(%r3) |
82 ; CHECK: [[LABEL:\.[^:]*]]: | 82 ; CHECK: [[LABEL:\.[^:]*]]: |
83 ; CHECK: csg %r2, [[VALUE]], 0(%r3) | 83 ; CHECK: csg %r2, [[VALUE]], 0(%r3) |
84 ; CHECK: jl [[LABEL]] | 84 ; CHECK: jl [[LABEL]] |
85 ; CHECK: br %r14 | 85 ; CHECK: br %r14 |
86 %res = atomicrmw xchg i64 *%ptr, i64 3000000000 seq_cst | 86 %res = atomicrmw xchg i64 *%ptr, i64 3000000000 seq_cst |