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

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: 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 break; 711 break;
712 case kArmVsqrtF32: 712 case kArmVsqrtF32:
713 __ vsqrt(i.OutputFloat32Register(), i.InputFloat32Register(0)); 713 __ vsqrt(i.OutputFloat32Register(), i.InputFloat32Register(0));
714 break; 714 break;
715 case kArmVabsF32: 715 case kArmVabsF32:
716 __ vabs(i.OutputFloat32Register(), i.InputFloat32Register(0)); 716 __ vabs(i.OutputFloat32Register(), i.InputFloat32Register(0));
717 break; 717 break;
718 case kArmVnegF32: 718 case kArmVnegF32:
719 __ vneg(i.OutputFloat32Register(), i.InputFloat32Register(0)); 719 __ vneg(i.OutputFloat32Register(), i.InputFloat32Register(0));
720 break; 720 break;
721 case kArmVrintmF32:
722 __ vrintm(i.OutputFloat32Register(), i.InputFloat32Register(0));
723 break;
721 case kArmVcmpF64: 724 case kArmVcmpF64:
722 if (instr->InputAt(1)->IsDoubleRegister()) { 725 if (instr->InputAt(1)->IsDoubleRegister()) {
723 __ VFPCompareAndSetFlags(i.InputFloat64Register(0), 726 __ VFPCompareAndSetFlags(i.InputFloat64Register(0),
724 i.InputFloat64Register(1)); 727 i.InputFloat64Register(1));
725 } else { 728 } else {
726 DCHECK(instr->InputAt(1)->IsImmediate()); 729 DCHECK(instr->InputAt(1)->IsImmediate());
727 // 0.0 is the only immediate supported by vcmp instructions. 730 // 0.0 is the only immediate supported by vcmp instructions.
728 DCHECK(i.InputDouble(1) == 0.0); 731 DCHECK(i.InputDouble(1) == 0.0);
729 __ VFPCompareAndSetFlags(i.InputFloat64Register(0), i.InputDouble(1)); 732 __ VFPCompareAndSetFlags(i.InputFloat64Register(0), i.InputDouble(1));
730 } 733 }
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 padding_size -= v8::internal::Assembler::kInstrSize; 1355 padding_size -= v8::internal::Assembler::kInstrSize;
1353 } 1356 }
1354 } 1357 }
1355 } 1358 }
1356 1359
1357 #undef __ 1360 #undef __
1358 1361
1359 } // namespace compiler 1362 } // namespace compiler
1360 } // namespace internal 1363 } // namespace internal
1361 } // namespace v8 1364 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698