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

Side by Side Diff: src/compiler/s390/code-generator-s390.cc

Issue 2160573003: S390: Fix convertion from int32 to float32 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: more fix Created 4 years, 5 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 | src/s390/assembler-s390.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 __ b(Condition(1), &conversion_done); // special case 1624 __ b(Condition(1), &conversion_done); // special case
1625 __ LoadImmP(i.OutputRegister(1), Operand(1)); 1625 __ LoadImmP(i.OutputRegister(1), Operand(1));
1626 __ bind(&conversion_done); 1626 __ bind(&conversion_done);
1627 } 1627 }
1628 #endif 1628 #endif
1629 break; 1629 break;
1630 } 1630 }
1631 case kS390_Float32ToInt32: { 1631 case kS390_Float32ToInt32: {
1632 bool check_conversion = (i.OutputCount() > 1); 1632 bool check_conversion = (i.OutputCount() > 1);
1633 __ ConvertFloat32ToInt32(i.InputDoubleRegister(0), i.OutputRegister(0), 1633 __ ConvertFloat32ToInt32(i.InputDoubleRegister(0), i.OutputRegister(0),
1634 kScratchDoubleReg); 1634 kScratchDoubleReg, kRoundToZero);
1635 if (check_conversion) { 1635 if (check_conversion) {
1636 Label conversion_done; 1636 Label conversion_done;
1637 __ LoadImmP(i.OutputRegister(1), Operand::Zero()); 1637 __ LoadImmP(i.OutputRegister(1), Operand::Zero());
1638 __ b(Condition(1), &conversion_done); // special case 1638 __ b(Condition(1), &conversion_done); // special case
1639 __ LoadImmP(i.OutputRegister(1), Operand(1)); 1639 __ LoadImmP(i.OutputRegister(1), Operand(1));
1640 __ bind(&conversion_done); 1640 __ bind(&conversion_done);
1641 } 1641 }
1642 break; 1642 break;
1643 } 1643 }
1644 case kS390_Float32ToUint32: { 1644 case kS390_Float32ToUint32: {
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
2361 padding_size -= 2; 2361 padding_size -= 2;
2362 } 2362 }
2363 } 2363 }
2364 } 2364 }
2365 2365
2366 #undef __ 2366 #undef __
2367 2367
2368 } // namespace compiler 2368 } // namespace compiler
2369 } // namespace internal 2369 } // namespace internal
2370 } // namespace v8 2370 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/s390/assembler-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698