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

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

Issue 1835973003: S390: Impl Left/Right Logical/Arith Shift Pair (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update srda and srdl disasm format 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/disasm-s390.cc ('k') | src/s390/simulator-s390.cc » ('j') | 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 79447bf91abe685b5f82323a1875ecd6b3e55b56..c0939356642a200ce082902693f19a57b4f8742b 100644
--- a/src/s390/macro-assembler-s390.cc
+++ b/src/s390/macro-assembler-s390.cc
@@ -892,51 +892,61 @@ void MacroAssembler::ConvertDoubleToUnsignedInt64(
void MacroAssembler::ShiftLeftPair(Register dst_low, Register dst_high,
Register src_low, Register src_high,
Register scratch, Register shift) {
- DCHECK(!AreAliased(dst_low, src_high, shift));
- DCHECK(!AreAliased(dst_high, src_low, shift));
- UNIMPLEMENTED();
+ LoadRR(r0, src_high);
+ LoadRR(r1, src_low);
+ sldl(r0, shift, Operand::Zero());
+ LoadRR(dst_high, r0);
+ LoadRR(dst_low, r1);
}
void MacroAssembler::ShiftLeftPair(Register dst_low, Register dst_high,
Register src_low, Register src_high,
uint32_t shift) {
- DCHECK(!AreAliased(dst_low, src_high));
- DCHECK(!AreAliased(dst_high, src_low));
- UNIMPLEMENTED();
- Label less_than_32;
- Label done;
+ LoadRR(r0, src_high);
+ LoadRR(r1, src_low);
+ sldl(r0, r0, Operand(shift));
+ LoadRR(dst_high, r0);
+ LoadRR(dst_low, r1);
}
void MacroAssembler::ShiftRightPair(Register dst_low, Register dst_high,
Register src_low, Register src_high,
Register scratch, Register shift) {
- DCHECK(!AreAliased(dst_low, src_high, shift));
- DCHECK(!AreAliased(dst_high, src_low, shift));
- UNIMPLEMENTED();
+ LoadRR(r0, src_high);
+ LoadRR(r1, src_low);
+ srdl(r0, shift, Operand::Zero());
+ LoadRR(dst_high, r0);
+ LoadRR(dst_low, r1);
}
void MacroAssembler::ShiftRightPair(Register dst_low, Register dst_high,
Register src_low, Register src_high,
uint32_t shift) {
- DCHECK(!AreAliased(dst_low, src_high));
- DCHECK(!AreAliased(dst_high, src_low));
- UNIMPLEMENTED();
+ LoadRR(r0, src_high);
+ LoadRR(r1, src_low);
+ srdl(r0, r0, Operand(shift));
+ LoadRR(dst_high, r0);
+ LoadRR(dst_low, r1);
}
void MacroAssembler::ShiftRightArithPair(Register dst_low, Register dst_high,
Register src_low, Register src_high,
Register scratch, Register shift) {
- DCHECK(!AreAliased(dst_low, src_high, shift));
- DCHECK(!AreAliased(dst_high, src_low, shift));
- UNIMPLEMENTED();
+ LoadRR(r0, src_high);
+ LoadRR(r1, src_low);
+ srda(r0, shift, Operand::Zero());
+ LoadRR(dst_high, r0);
+ LoadRR(dst_low, r1);
}
void MacroAssembler::ShiftRightArithPair(Register dst_low, Register dst_high,
Register src_low, Register src_high,
uint32_t shift) {
- DCHECK(!AreAliased(dst_low, src_high));
- DCHECK(!AreAliased(dst_high, src_low));
- UNIMPLEMENTED();
+ LoadRR(r0, src_high);
+ LoadRR(r1, src_low);
+ srdl(r0, r0, Operand(shift));
+ LoadRR(dst_high, r0);
+ LoadRR(dst_low, r1);
}
#endif
« no previous file with comments | « src/s390/disasm-s390.cc ('k') | src/s390/simulator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698