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

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

Issue 1406293003: [x64] Make use of vucomiss and vucomisd when AVX is enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebaseline 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 | « no previous file | 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 } 778 }
779 break; 779 break;
780 case kX64Popcnt32: 780 case kX64Popcnt32:
781 if (instr->InputAt(0)->IsRegister()) { 781 if (instr->InputAt(0)->IsRegister()) {
782 __ Popcntl(i.OutputRegister(), i.InputRegister(0)); 782 __ Popcntl(i.OutputRegister(), i.InputRegister(0));
783 } else { 783 } else {
784 __ Popcntl(i.OutputRegister(), i.InputOperand(0)); 784 __ Popcntl(i.OutputRegister(), i.InputOperand(0));
785 } 785 }
786 break; 786 break;
787 case kSSEFloat32Cmp: 787 case kSSEFloat32Cmp:
788 ASSEMBLE_SSE_BINOP(ucomiss); 788 ASSEMBLE_SSE_BINOP(Ucomiss);
789 break; 789 break;
790 case kSSEFloat32Add: 790 case kSSEFloat32Add:
791 ASSEMBLE_SSE_BINOP(addss); 791 ASSEMBLE_SSE_BINOP(addss);
792 break; 792 break;
793 case kSSEFloat32Sub: 793 case kSSEFloat32Sub:
794 ASSEMBLE_SSE_BINOP(subss); 794 ASSEMBLE_SSE_BINOP(subss);
795 break; 795 break;
796 case kSSEFloat32Mul: 796 case kSSEFloat32Mul:
797 ASSEMBLE_SSE_BINOP(mulss); 797 ASSEMBLE_SSE_BINOP(mulss);
798 break; 798 break;
(...skipping 23 matching lines...) Expand all
822 case kSSEFloat32Max: 822 case kSSEFloat32Max:
823 ASSEMBLE_SSE_BINOP(maxss); 823 ASSEMBLE_SSE_BINOP(maxss);
824 break; 824 break;
825 case kSSEFloat32Min: 825 case kSSEFloat32Min:
826 ASSEMBLE_SSE_BINOP(minss); 826 ASSEMBLE_SSE_BINOP(minss);
827 break; 827 break;
828 case kSSEFloat32ToFloat64: 828 case kSSEFloat32ToFloat64:
829 ASSEMBLE_SSE_UNOP(Cvtss2sd); 829 ASSEMBLE_SSE_UNOP(Cvtss2sd);
830 break; 830 break;
831 case kSSEFloat64Cmp: 831 case kSSEFloat64Cmp:
832 ASSEMBLE_SSE_BINOP(ucomisd); 832 ASSEMBLE_SSE_BINOP(Ucomisd);
833 break; 833 break;
834 case kSSEFloat64Add: 834 case kSSEFloat64Add:
835 ASSEMBLE_SSE_BINOP(addsd); 835 ASSEMBLE_SSE_BINOP(addsd);
836 break; 836 break;
837 case kSSEFloat64Sub: 837 case kSSEFloat64Sub:
838 ASSEMBLE_SSE_BINOP(subsd); 838 ASSEMBLE_SSE_BINOP(subsd);
839 break; 839 break;
840 case kSSEFloat64Mul: 840 case kSSEFloat64Mul:
841 ASSEMBLE_SSE_BINOP(mulsd); 841 ASSEMBLE_SSE_BINOP(mulsd);
842 break; 842 break;
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1826 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1827 __ Nop(padding_size); 1827 __ Nop(padding_size);
1828 } 1828 }
1829 } 1829 }
1830 1830
1831 #undef __ 1831 #undef __
1832 1832
1833 } // namespace compiler 1833 } // namespace compiler
1834 } // namespace internal 1834 } // namespace internal
1835 } // namespace v8 1835 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698