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

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

Issue 1421733003: [x64] Make MathMinMax use AVX instructions when available. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('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 (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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 impl(opcode, dst, src1, src2); \ 1318 impl(opcode, dst, src1, src2); \
1319 } 1319 }
1320 1320
1321 AVX_SP_3(vadd, 0x58); 1321 AVX_SP_3(vadd, 0x58);
1322 AVX_SP_3(vsub, 0x5c); 1322 AVX_SP_3(vsub, 0x5c);
1323 AVX_SP_3(vmul, 0x59); 1323 AVX_SP_3(vmul, 0x59);
1324 AVX_SP_3(vdiv, 0x5e); 1324 AVX_SP_3(vdiv, 0x5e);
1325 AVX_SP_3(vmin, 0x5d); 1325 AVX_SP_3(vmin, 0x5d);
1326 AVX_SP_3(vmax, 0x5f); 1326 AVX_SP_3(vmax, 0x5f);
1327 AVX_P_3(vand, 0x54); 1327 AVX_P_3(vand, 0x54);
1328 AVX_P_3(vor, 0x56);
1328 AVX_P_3(vxor, 0x57); 1329 AVX_P_3(vxor, 0x57);
1329 AVX_3(vpcmpeqd, 0x76, vpd); 1330 AVX_3(vpcmpeqd, 0x76, vpd);
1330 AVX_3(vcvtsd2ss, 0x5a, vsd); 1331 AVX_3(vcvtsd2ss, 0x5a, vsd);
1331 1332
1332 #undef AVX_3 1333 #undef AVX_3
1333 #undef AVX_S_3 1334 #undef AVX_S_3
1334 #undef AVX_P_3 1335 #undef AVX_P_3
1335 #undef AVX_SP_3 1336 #undef AVX_SP_3
1336 1337
1337 void vpsrlq(XMMRegister dst, XMMRegister src, byte imm8) { 1338 void vpsrlq(XMMRegister dst, XMMRegister src, byte imm8) {
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
2143 Assembler* assembler_; 2144 Assembler* assembler_;
2144 #ifdef DEBUG 2145 #ifdef DEBUG
2145 int space_before_; 2146 int space_before_;
2146 #endif 2147 #endif
2147 }; 2148 };
2148 2149
2149 } // namespace internal 2150 } // namespace internal
2150 } // namespace v8 2151 } // namespace v8
2151 2152
2152 #endif // V8_X64_ASSEMBLER_X64_H_ 2153 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/x64/disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698