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

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

Issue 1807013002: S390: [wasm] Int64Lowering of Int64Add (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/macro-assembler-s390.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/s390/macro-assembler-s390.cc
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc
index aede01dade2d1148d0d7587e80b12dde6549b3a4..37db6df1ba46859c5abc311562450d460f38f60e 100644
--- a/src/s390/macro-assembler-s390.cc
+++ b/src/s390/macro-assembler-s390.cc
@@ -4006,6 +4006,39 @@ void MacroAssembler::AddP(const MemOperand& opnd, const Operand& imm) {
// Add Logical Instructions
//----------------------------------------------------------------------------
+// Add Logical With Carry 32-bit (Register dst = Register src1 + Register src2)
+void MacroAssembler::AddLogicalWithCarry32(Register dst, Register src1,
+ Register src2) {
+ if (!dst.is(src2) && !dst.is(src1)) {
+ lr(dst, src1);
+ alcr(dst, src2);
+ } else if (!dst.is(src2)) {
+ // dst == src1
+ DCHECK(dst.is(src1));
+ alcr(dst, src2);
+ } else {
+ // dst == src2
+ DCHECK(dst.is(src2));
+ alcr(dst, src1);
+ }
+}
+
+// Add Logical 32-bit (Register dst = Register src1 + Register src2)
+void MacroAssembler::AddLogical32(Register dst, Register src1, Register src2) {
+ if (!dst.is(src2) && !dst.is(src1)) {
+ lr(dst, src1);
+ alr(dst, src2);
+ } else if (!dst.is(src2)) {
+ // dst == src1
+ DCHECK(dst.is(src1));
+ alr(dst, src2);
+ } else {
+ // dst == src2
+ DCHECK(dst.is(src2));
+ alr(dst, src1);
+ }
+}
+
// Add Logical 32-bit (Register dst = Register dst + Immediate opnd)
void MacroAssembler::AddLogical(Register dst, const Operand& imm) {
alfi(dst, imm);
« no previous file with comments | « src/s390/macro-assembler-s390.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698