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

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

Issue 2767983002: [wasm] Implement wasm x64 I16x8 Ops (Closed)
Patch Set: Bill's review Created 3 years, 8 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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 EnsureSpace ensure_space(this); 928 EnsureSpace ensure_space(this);
929 emit(0xF8); 929 emit(0xF8);
930 } 930 }
931 931
932 932
933 void Assembler::cld() { 933 void Assembler::cld() {
934 EnsureSpace ensure_space(this); 934 EnsureSpace ensure_space(this);
935 emit(0xFC); 935 emit(0xFC);
936 } 936 }
937 937
938
939 void Assembler::cdq() { 938 void Assembler::cdq() {
940 EnsureSpace ensure_space(this); 939 EnsureSpace ensure_space(this);
941 emit(0x99); 940 emit(0x99);
942 } 941 }
943 942
944 943
945 void Assembler::cmovq(Condition cc, Register dst, Register src) { 944 void Assembler::cmovq(Condition cc, Register dst, Register src) {
946 if (cc == always) { 945 if (cc == always) {
947 movq(dst, src); 946 movq(dst, src);
948 } else if (cc == never) { 947 } else if (cc == never) {
(...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after
2885 emit(0xC4); 2884 emit(0xC4);
2886 emit_sse_operand(dst, src); 2885 emit_sse_operand(dst, src);
2887 emit(imm8); 2886 emit(imm8);
2888 } 2887 }
2889 2888
2890 void Assembler::pextrw(Register dst, XMMRegister src, int8_t imm8) { 2889 void Assembler::pextrw(Register dst, XMMRegister src, int8_t imm8) {
2891 DCHECK(IsEnabled(SSE4_1)); 2890 DCHECK(IsEnabled(SSE4_1));
2892 DCHECK(is_uint8(imm8)); 2891 DCHECK(is_uint8(imm8));
2893 EnsureSpace ensure_space(this); 2892 EnsureSpace ensure_space(this);
2894 emit(0x66); 2893 emit(0x66);
2895 emit_optional_rex_32(dst, src); 2894 emit_optional_rex_32(src, dst);
2896 emit(0x0F); 2895 emit(0x0F);
2897 emit(0x3A); 2896 emit(0x3A);
2898 emit(0x15); 2897 emit(0x15);
2899 emit_sse_operand(dst, src); 2898 emit_sse_operand(src, dst);
2900 emit(imm8); 2899 emit(imm8);
2901 } 2900 }
2902 2901
2903 void Assembler::pextrw(const Operand& dst, XMMRegister src, int8_t imm8) { 2902 void Assembler::pextrw(const Operand& dst, XMMRegister src, int8_t imm8) {
2904 DCHECK(IsEnabled(SSE4_1)); 2903 DCHECK(IsEnabled(SSE4_1));
2905 DCHECK(is_uint8(imm8)); 2904 DCHECK(is_uint8(imm8));
2906 EnsureSpace ensure_space(this); 2905 EnsureSpace ensure_space(this);
2907 emit(0x66); 2906 emit(0x66);
2908 emit_optional_rex_32(src, dst); 2907 emit_optional_rex_32(src, dst);
2909 emit(0x0F); 2908 emit(0x0F);
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
4629 void Assembler::psrldq(XMMRegister dst, uint8_t shift) { 4628 void Assembler::psrldq(XMMRegister dst, uint8_t shift) {
4630 EnsureSpace ensure_space(this); 4629 EnsureSpace ensure_space(this);
4631 emit(0x66); 4630 emit(0x66);
4632 emit_optional_rex_32(dst); 4631 emit_optional_rex_32(dst);
4633 emit(0x0F); 4632 emit(0x0F);
4634 emit(0x73); 4633 emit(0x73);
4635 emit_sse_operand(dst); 4634 emit_sse_operand(dst);
4636 emit(shift); 4635 emit(shift);
4637 } 4636 }
4638 4637
4638 void Assembler::pshufhw(XMMRegister dst, XMMRegister src, uint8_t shuffle) {
4639 EnsureSpace ensure_space(this);
4640 emit(0xF3);
4641 emit_optional_rex_32(dst, src);
4642 emit(0x0F);
4643 emit(0x70);
4644 emit_sse_operand(dst, src);
4645 emit(shuffle);
4646 }
4647
4648 void Assembler::pshuflw(XMMRegister dst, XMMRegister src, uint8_t shuffle) {
4649 EnsureSpace ensure_space(this);
4650 emit(0xF2);
4651 emit_optional_rex_32(dst, src);
4652 emit(0x0F);
4653 emit(0x70);
4654 emit_sse_operand(dst, src);
4655 emit(shuffle);
4656 }
4657
4639 void Assembler::pshufd(XMMRegister dst, XMMRegister src, uint8_t shuffle) { 4658 void Assembler::pshufd(XMMRegister dst, XMMRegister src, uint8_t shuffle) {
4640 EnsureSpace ensure_space(this); 4659 EnsureSpace ensure_space(this);
4641 emit(0x66); 4660 emit(0x66);
4642 emit_optional_rex_32(dst, src); 4661 emit_optional_rex_32(dst, src);
4643 emit(0x0F); 4662 emit(0x0F);
4644 emit(0x70); 4663 emit(0x70);
4645 emit_sse_operand(dst, src); 4664 emit_sse_operand(dst, src);
4646 emit(shuffle); 4665 emit(shuffle);
4647 } 4666 }
4648 4667
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
4766 4785
4767 bool RelocInfo::IsInConstantPool() { 4786 bool RelocInfo::IsInConstantPool() {
4768 return false; 4787 return false;
4769 } 4788 }
4770 4789
4771 4790
4772 } // namespace internal 4791 } // namespace internal
4773 } // namespace v8 4792 } // namespace v8
4774 4793
4775 #endif // V8_TARGET_ARCH_X64 4794 #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