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

Side by Side Diff: src/x64/assembler-x64.cc

Issue 1396283004: Revert of [x64] Use vcvtlsi2sd when AVX is enabled (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/x64/assembler-x64.h ('k') | src/x64/disasm-x64.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/x64/assembler-x64.h" 5 #include "src/x64/assembler-x64.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 3029 matching lines...) Expand 10 before | Expand all | Expand 10 after
3040 EnsureSpace ensure_space(this); 3040 EnsureSpace ensure_space(this);
3041 emit(0xF2); 3041 emit(0xF2);
3042 emit_rex_64(dst, src); 3042 emit_rex_64(dst, src);
3043 emit(0x0F); 3043 emit(0x0F);
3044 emit(0x2C); 3044 emit(0x2C);
3045 emit_sse_operand(dst, src); 3045 emit_sse_operand(dst, src);
3046 } 3046 }
3047 3047
3048 3048
3049 void Assembler::cvtlsi2sd(XMMRegister dst, const Operand& src) { 3049 void Assembler::cvtlsi2sd(XMMRegister dst, const Operand& src) {
3050 DCHECK(!IsEnabled(AVX));
3051 EnsureSpace ensure_space(this); 3050 EnsureSpace ensure_space(this);
3052 emit(0xF2); 3051 emit(0xF2);
3053 emit_optional_rex_32(dst, src); 3052 emit_optional_rex_32(dst, src);
3054 emit(0x0F); 3053 emit(0x0F);
3055 emit(0x2A); 3054 emit(0x2A);
3056 emit_sse_operand(dst, src); 3055 emit_sse_operand(dst, src);
3057 } 3056 }
3058 3057
3059 3058
3060 void Assembler::cvtlsi2sd(XMMRegister dst, Register src) { 3059 void Assembler::cvtlsi2sd(XMMRegister dst, Register src) {
3061 DCHECK(!IsEnabled(AVX));
3062 EnsureSpace ensure_space(this); 3060 EnsureSpace ensure_space(this);
3063 emit(0xF2); 3061 emit(0xF2);
3064 emit_optional_rex_32(dst, src); 3062 emit_optional_rex_32(dst, src);
3065 emit(0x0F); 3063 emit(0x0F);
3066 emit(0x2A); 3064 emit(0x2A);
3067 emit_sse_operand(dst, src); 3065 emit_sse_operand(dst, src);
3068 } 3066 }
3069 3067
3070 3068
3071 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) { 3069 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) {
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
3943 3941
3944 bool RelocInfo::IsInConstantPool() { 3942 bool RelocInfo::IsInConstantPool() {
3945 return false; 3943 return false;
3946 } 3944 }
3947 3945
3948 3946
3949 } // namespace internal 3947 } // namespace internal
3950 } // namespace v8 3948 } // namespace v8
3951 3949
3952 #endif // V8_TARGET_ARCH_X64 3950 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698