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

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

Issue 1391963005: [x64] Use vmovapd and vmovsd when AVX is enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win compile. 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/compiler/x64/code-generator-x64.cc ('k') | src/x64/assembler-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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 } 1260 }
1261 void vfnmsub213ss(XMMRegister dst, XMMRegister src1, const Operand& src2) { 1261 void vfnmsub213ss(XMMRegister dst, XMMRegister src1, const Operand& src2) {
1262 vfmass(0xaf, dst, src1, src2); 1262 vfmass(0xaf, dst, src1, src2);
1263 } 1263 }
1264 void vfnmsub231ss(XMMRegister dst, XMMRegister src1, const Operand& src2) { 1264 void vfnmsub231ss(XMMRegister dst, XMMRegister src1, const Operand& src2) {
1265 vfmass(0xbf, dst, src1, src2); 1265 vfmass(0xbf, dst, src1, src2);
1266 } 1266 }
1267 void vfmass(byte op, XMMRegister dst, XMMRegister src1, XMMRegister src2); 1267 void vfmass(byte op, XMMRegister dst, XMMRegister src1, XMMRegister src2);
1268 void vfmass(byte op, XMMRegister dst, XMMRegister src1, const Operand& src2); 1268 void vfmass(byte op, XMMRegister dst, XMMRegister src1, const Operand& src2);
1269 1269
1270 void vmovapd(XMMRegister dst, XMMRegister src);
1271 void vmovsd(XMMRegister dst, const Operand& src) {
1272 vsd(0x10, dst, xmm0, src);
1273 }
1274 void vmovsd(XMMRegister dst, XMMRegister src) { vsd(0x10, dst, xmm0, src); }
1275 void vmovsd(const Operand& dst, XMMRegister src) {
1276 vsd(0x11, src, xmm0, dst);
1277 }
1270 void vaddsd(XMMRegister dst, XMMRegister src1, XMMRegister src2) { 1278 void vaddsd(XMMRegister dst, XMMRegister src1, XMMRegister src2) {
1271 vsd(0x58, dst, src1, src2); 1279 vsd(0x58, dst, src1, src2);
1272 } 1280 }
1273 void vaddsd(XMMRegister dst, XMMRegister src1, const Operand& src2) { 1281 void vaddsd(XMMRegister dst, XMMRegister src1, const Operand& src2) {
1274 vsd(0x58, dst, src1, src2); 1282 vsd(0x58, dst, src1, src2);
1275 } 1283 }
1276 void vsubsd(XMMRegister dst, XMMRegister src1, XMMRegister src2) { 1284 void vsubsd(XMMRegister dst, XMMRegister src1, XMMRegister src2) {
1277 vsd(0x5c, dst, src1, src2); 1285 vsd(0x5c, dst, src1, src2);
1278 } 1286 }
1279 void vsubsd(XMMRegister dst, XMMRegister src1, const Operand& src2) { 1287 void vsubsd(XMMRegister dst, XMMRegister src1, const Operand& src2) {
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
2104 Assembler* assembler_; 2112 Assembler* assembler_;
2105 #ifdef DEBUG 2113 #ifdef DEBUG
2106 int space_before_; 2114 int space_before_;
2107 #endif 2115 #endif
2108 }; 2116 };
2109 2117
2110 } // namespace internal 2118 } // namespace internal
2111 } // namespace v8 2119 } // namespace v8
2112 2120
2113 #endif // V8_X64_ASSEMBLER_X64_H_ 2121 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698