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

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

Issue 1837263003: S390: Fix SQEBR sim to treat operands as float32 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « src/s390/disasm-s390.cc ('k') | 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 3419 matching lines...) Expand 10 before | Expand all | Expand 10 after
3430 } else if (op == CFDBR) { 3430 } else if (op == CFDBR) {
3431 DecodeFourByteFloatingPointRound(instr); 3431 DecodeFourByteFloatingPointRound(instr);
3432 } else if (op == CGDBR) { 3432 } else if (op == CGDBR) {
3433 DecodeFourByteFloatingPointRound(instr); 3433 DecodeFourByteFloatingPointRound(instr);
3434 } else if (op == CGEBR) { 3434 } else if (op == CGEBR) {
3435 DecodeFourByteFloatingPointRound(instr); 3435 DecodeFourByteFloatingPointRound(instr);
3436 } else if (op == SQDBR) { 3436 } else if (op == SQDBR) {
3437 r1_val = std::sqrt(r2_val); 3437 r1_val = std::sqrt(r2_val);
3438 set_d_register_from_double(r1, r1_val); 3438 set_d_register_from_double(r1, r1_val);
3439 } else if (op == SQEBR) { 3439 } else if (op == SQEBR) {
3440 r1_val = std::sqrt(r2_val); 3440 fr1_val = std::sqrt(fr2_val);
3441 set_d_register_from_float32(r1, r1_val); 3441 set_d_register_from_float32(r1, fr1_val);
3442 } else if (op == CFEBR) { 3442 } else if (op == CFEBR) {
3443 DecodeFourByteFloatingPointRound(instr); 3443 DecodeFourByteFloatingPointRound(instr);
3444 } else if (op == LCDBR) { 3444 } else if (op == LCDBR) {
3445 r1_val = -r2_val; 3445 r1_val = -r2_val;
3446 set_d_register_from_double(r1, r1_val); 3446 set_d_register_from_double(r1, r1_val);
3447 if (r2_val != r2_val) { // input is NaN 3447 if (r2_val != r2_val) { // input is NaN
3448 condition_reg_ = CC_OF; 3448 condition_reg_ = CC_OF;
3449 } else if (r2_val == 0) { 3449 } else if (r2_val == 0) {
3450 condition_reg_ = CC_EQ; 3450 condition_reg_ = CC_EQ;
3451 } else if (r2_val < 0) { 3451 } else if (r2_val < 0) {
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after
5039 uintptr_t address = *stack_slot; 5039 uintptr_t address = *stack_slot;
5040 set_register(sp, current_sp + sizeof(uintptr_t)); 5040 set_register(sp, current_sp + sizeof(uintptr_t));
5041 return address; 5041 return address;
5042 } 5042 }
5043 5043
5044 } // namespace internal 5044 } // namespace internal
5045 } // namespace v8 5045 } // namespace v8
5046 5046
5047 #endif // USE_SIMULATOR 5047 #endif // USE_SIMULATOR
5048 #endif // V8_TARGET_ARCH_S390 5048 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/disasm-s390.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698