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

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

Issue 1853973002: S390: Use FIEBRA/FIDBRA for FP Floor/Ceil (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/compiler/s390/code-generator-s390.cc ('k') | src/s390/macro-assembler-s390.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/s390/disasm-s390.cc
diff --git a/src/s390/disasm-s390.cc b/src/s390/disasm-s390.cc
index abee2df62fde9792b5c4076a609d9955119a6c11..5bab604b7bf1b4b9a71a5057c9c8491aae32c368 100644
--- a/src/s390/disasm-s390.cc
+++ b/src/s390/disasm-s390.cc
@@ -308,14 +308,18 @@ int Decoder::FormatOption(Instruction* instr, const char* format) {
int Decoder::FormatMask(Instruction* instr, const char* format) {
DCHECK(format[0] == 'm');
int32_t value = 0;
- if ((format[1] == '1')) { // prints the mask format in bit 8-12
+ if ((format[1] == '1')) { // prints the mask format in bits 8-12
value = reinterpret_cast<RRInstruction*>(instr)->R1Value();
out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, "0x%x", value);
return 2;
- } else if (format[1] == '2') { // mask format in bit 16 - 19
+ } else if (format[1] == '2') { // mask format in bits 16-19
value = reinterpret_cast<RXInstruction*>(instr)->B2Value();
out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, "0x%x", value);
return 2;
+ } else if (format[1] == '3') { // mask format in bits 20-23
+ value = reinterpret_cast<RRFInstruction*>(instr)->M4Value();
+ out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, "0x%x", value);
+ return 2;
}
out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, "%d", value);
@@ -991,6 +995,12 @@ bool Decoder::DecodeFourByte(Instruction* instr) {
case FLOGR:
Format(instr, "flogr\t'r5,'r6");
break;
+ case FIEBRA:
+ Format(instr, "fiebra\t'f5,'m2,'f6,'m3");
+ break;
+ case FIDBRA:
+ Format(instr, "fidbra\t'f5,'m2,'f6,'m3");
+ break;
// TRAP4 is used in calling to native function. it will not be generated
// in native code.
case TRAP4: {
« no previous file with comments | « src/compiler/s390/code-generator-s390.cc ('k') | src/s390/macro-assembler-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698