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

Side by Side Diff: src/s390/simulator-s390.cc

Issue 2661133004: S390: Minor DCHECK_OPCODE fix (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdarg.h> 5 #include <stdarg.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <cmath> 7 #include <cmath>
8 8
9 #if V8_TARGET_ARCH_S390 9 #if V8_TARGET_ARCH_S390
10 10
(...skipping 11622 matching lines...) Expand 10 before | Expand all | Expand 10 after
11633 static_cast<uint64_t>(r1_val) * static_cast<uint64_t>(mem_val); 11633 static_cast<uint64_t>(r1_val) * static_cast<uint64_t>(mem_val);
11634 uint32_t high_bits = product >> 32; 11634 uint32_t high_bits = product >> 32;
11635 r1_val = high_bits; 11635 r1_val = high_bits;
11636 uint32_t low_bits = product & 0x00000000FFFFFFFF; 11636 uint32_t low_bits = product & 0x00000000FFFFFFFF;
11637 set_low_register(r1, high_bits); 11637 set_low_register(r1, high_bits);
11638 set_low_register(r1 + 1, low_bits); 11638 set_low_register(r1 + 1, low_bits);
11639 return length; 11639 return length;
11640 } 11640 }
11641 11641
11642 EVALUATE(DL) { 11642 EVALUATE(DL) {
11643 DCHECK_OPCODE(ML); 11643 DCHECK_OPCODE(DL);
11644 DECODE_RXY_A_INSTRUCTION(r1, x2, b2, d2); 11644 DECODE_RXY_A_INSTRUCTION(r1, x2, b2, d2);
11645 int64_t x2_val = (x2 == 0) ? 0 : get_register(x2); 11645 int64_t x2_val = (x2 == 0) ? 0 : get_register(x2);
11646 int64_t b2_val = (b2 == 0) ? 0 : get_register(b2); 11646 int64_t b2_val = (b2 == 0) ? 0 : get_register(b2);
11647 DCHECK(r1 % 2 == 0); 11647 DCHECK(r1 % 2 == 0);
11648 uint32_t mem_val = ReadWU(b2_val + x2_val + d2, instr); 11648 uint32_t mem_val = ReadWU(b2_val + x2_val + d2, instr);
11649 uint32_t r1_val = get_low_register<uint32_t>(r1 + 1); 11649 uint32_t r1_val = get_low_register<uint32_t>(r1 + 1);
11650 uint64_t quotient = 11650 uint64_t quotient =
11651 static_cast<uint64_t>(r1_val) / static_cast<uint64_t>(mem_val); 11651 static_cast<uint64_t>(r1_val) / static_cast<uint64_t>(mem_val);
11652 uint64_t remainder = 11652 uint64_t remainder =
11653 static_cast<uint64_t>(r1_val) % static_cast<uint64_t>(mem_val); 11653 static_cast<uint64_t>(r1_val) % static_cast<uint64_t>(mem_val);
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
12815 return 0; 12815 return 0;
12816 } 12816 }
12817 12817
12818 #undef EVALUATE 12818 #undef EVALUATE
12819 12819
12820 } // namespace internal 12820 } // namespace internal
12821 } // namespace v8 12821 } // namespace v8
12822 12822
12823 #endif // USE_SIMULATOR 12823 #endif // USE_SIMULATOR
12824 #endif // V8_TARGET_ARCH_S390 12824 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698