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

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

Issue 677433002: Add floor, ceil, round (truncate) instructions for ia32, x64 (if SSE4.1) and (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address changes and fix compilation on mac. Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/arm/instruction-codes-arm.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 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), 356 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()),
357 0, 2); 357 0, 2);
358 // Move the result in the double result register. 358 // Move the result in the double result register.
359 __ MovFromFloatResult(i.OutputFloat64Register()); 359 __ MovFromFloatResult(i.OutputFloat64Register());
360 DCHECK_EQ(LeaveCC, i.OutputSBit()); 360 DCHECK_EQ(LeaveCC, i.OutputSBit());
361 break; 361 break;
362 } 362 }
363 case kArmVsqrtF64: 363 case kArmVsqrtF64:
364 __ vsqrt(i.OutputFloat64Register(), i.InputFloat64Register(0)); 364 __ vsqrt(i.OutputFloat64Register(), i.InputFloat64Register(0));
365 break; 365 break;
366 case kArmVfloorF64:
367 __ vrintm(i.OutputFloat64Register(), i.InputFloat64Register(0));
368 break;
369 case kArmVceilF64:
370 __ vrintp(i.OutputFloat64Register(), i.InputFloat64Register(0));
371 break;
372 case kArmVroundTruncateF64:
373 __ vrintz(i.OutputFloat64Register(), i.InputFloat64Register(0));
374 break;
375 case kArmVroundTiesAwayF64:
376 __ vrinta(i.OutputFloat64Register(), i.InputFloat64Register(0));
377 break;
366 case kArmVnegF64: 378 case kArmVnegF64:
367 __ vneg(i.OutputFloat64Register(), i.InputFloat64Register(0)); 379 __ vneg(i.OutputFloat64Register(), i.InputFloat64Register(0));
368 break; 380 break;
369 case kArmVcvtF32F64: { 381 case kArmVcvtF32F64: {
370 __ vcvt_f32_f64(i.OutputFloat32Register(), i.InputFloat64Register(0)); 382 __ vcvt_f32_f64(i.OutputFloat32Register(), i.InputFloat64Register(0));
371 DCHECK_EQ(LeaveCC, i.OutputSBit()); 383 DCHECK_EQ(LeaveCC, i.OutputSBit());
372 break; 384 break;
373 } 385 }
374 case kArmVcvtF64F32: { 386 case kArmVcvtF64F32: {
375 __ vcvt_f64_f32(i.OutputFloat64Register(), i.InputFloat32Register(0)); 387 __ vcvt_f64_f32(i.OutputFloat64Register(), i.InputFloat32Register(0));
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 } 942 }
931 } 943 }
932 MarkLazyDeoptSite(); 944 MarkLazyDeoptSite();
933 } 945 }
934 946
935 #undef __ 947 #undef __
936 948
937 } // namespace compiler 949 } // namespace compiler
938 } // namespace internal 950 } // namespace internal
939 } // namespace v8 951 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698