Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(912)

Unified Diff: src/s390/assembler-s390.cc

Issue 2743803002: s390: implement atomic exchange on TF (Closed)
Patch Set: small fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/s390/assembler-s390.h ('k') | src/s390/disasm-s390.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/s390/assembler-s390.cc
diff --git a/src/s390/assembler-s390.cc b/src/s390/assembler-s390.cc
index c07ef2a1baf035aecf4ab0ce09aaedd311531c1d..9d0cc216555a7559590afc00616728da705086af 100644
--- a/src/s390/assembler-s390.cc
+++ b/src/s390/assembler-s390.cc
@@ -1804,6 +1804,21 @@ void Assembler::lmg(Register r1, Register r2, const MemOperand& src) {
rsy_form(LMG, r1, r2, src.rb(), src.offset());
}
+// 32-bit Compare and Swap
+void Assembler::cs(Register r1, Register r2, const MemOperand& src) {
+ rs_form(CS, r1, r2, src.rb(), src.offset());
+}
+
+// 32-bit Compare and Swap
+void Assembler::csy(Register r1, Register r2, const MemOperand& src) {
+ rsy_form(CSY, r1, r2, src.rb(), src.offset());
+}
+
+// 64-bit Compare and Swap
+void Assembler::csg(Register r1, Register r2, const MemOperand& src) {
+ rsy_form(CSG, r1, r2, src.rb(), src.offset());
+}
+
// Move integer (32)
void Assembler::mvhi(const MemOperand& opnd1, const Operand& i2) {
sil_form(MVHI, opnd1.getBaseRegister(), opnd1.getDisplacement(), i2);
« no previous file with comments | « src/s390/assembler-s390.h ('k') | src/s390/disasm-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698