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

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

Issue 1471913006: [turbofan] Implemented the optional Float32RoundDown operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed a debugging printf. Created 5 years 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
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 "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 break; 719 break;
720 case kArmVsqrtF32: 720 case kArmVsqrtF32:
721 __ vsqrt(i.OutputFloat32Register(), i.InputFloat32Register(0)); 721 __ vsqrt(i.OutputFloat32Register(), i.InputFloat32Register(0));
722 break; 722 break;
723 case kArmVabsF32: 723 case kArmVabsF32:
724 __ vabs(i.OutputFloat32Register(), i.InputFloat32Register(0)); 724 __ vabs(i.OutputFloat32Register(), i.InputFloat32Register(0));
725 break; 725 break;
726 case kArmVnegF32: 726 case kArmVnegF32:
727 __ vneg(i.OutputFloat32Register(), i.InputFloat32Register(0)); 727 __ vneg(i.OutputFloat32Register(), i.InputFloat32Register(0));
728 break; 728 break;
729 case kArmVrintmF32:
730 __ vrintm(i.OutputFloat32Register(), i.InputFloat32Register(0));
731 break;
729 case kArmVcmpF64: 732 case kArmVcmpF64:
730 if (instr->InputAt(1)->IsDoubleRegister()) { 733 if (instr->InputAt(1)->IsDoubleRegister()) {
731 __ VFPCompareAndSetFlags(i.InputFloat64Register(0), 734 __ VFPCompareAndSetFlags(i.InputFloat64Register(0),
732 i.InputFloat64Register(1)); 735 i.InputFloat64Register(1));
733 } else { 736 } else {
734 DCHECK(instr->InputAt(1)->IsImmediate()); 737 DCHECK(instr->InputAt(1)->IsImmediate());
735 // 0.0 is the only immediate supported by vcmp instructions. 738 // 0.0 is the only immediate supported by vcmp instructions.
736 DCHECK(i.InputDouble(1) == 0.0); 739 DCHECK(i.InputDouble(1) == 0.0);
737 __ VFPCompareAndSetFlags(i.InputFloat64Register(0), i.InputDouble(1)); 740 __ VFPCompareAndSetFlags(i.InputFloat64Register(0), i.InputDouble(1));
738 } 741 }
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 padding_size -= v8::internal::Assembler::kInstrSize; 1366 padding_size -= v8::internal::Assembler::kInstrSize;
1364 } 1367 }
1365 } 1368 }
1366 } 1369 }
1367 1370
1368 #undef __ 1371 #undef __
1369 1372
1370 } // namespace compiler 1373 } // namespace compiler
1371 } // namespace internal 1374 } // namespace internal
1372 } // namespace v8 1375 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698