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

Side by Side Diff: src/x87/disasm-x87.cc

Issue 1806833002: X87: [wasm] Int64Lowering of Int64Add on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/x87/instruction-selector-x87.cc ('k') | test/cctest/test-disasm-x87.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 <assert.h> 5 #include <assert.h>
6 #include <stdarg.h> 6 #include <stdarg.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #if V8_TARGET_ARCH_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 11 matching lines...) Expand all
22 //------------------------------------------------------------------ 22 //------------------------------------------------------------------
23 // Tables 23 // Tables
24 //------------------------------------------------------------------ 24 //------------------------------------------------------------------
25 struct ByteMnemonic { 25 struct ByteMnemonic {
26 int b; // -1 terminates, otherwise must be in range (0..255) 26 int b; // -1 terminates, otherwise must be in range (0..255)
27 const char* mnem; 27 const char* mnem;
28 OperandOrder op_order_; 28 OperandOrder op_order_;
29 }; 29 };
30 30
31 static const ByteMnemonic two_operands_instr[] = { 31 static const ByteMnemonic two_operands_instr[] = {
32 {0x01, "add", OPER_REG_OP_ORDER}, 32 {0x01, "add", OPER_REG_OP_ORDER}, {0x03, "add", REG_OPER_OP_ORDER},
33 {0x03, "add", REG_OPER_OP_ORDER}, 33 {0x09, "or", OPER_REG_OP_ORDER}, {0x0B, "or", REG_OPER_OP_ORDER},
34 {0x09, "or", OPER_REG_OP_ORDER}, 34 {0x13, "adc", REG_OPER_OP_ORDER}, {0x1B, "sbb", REG_OPER_OP_ORDER},
35 {0x0B, "or", REG_OPER_OP_ORDER}, 35 {0x21, "and", OPER_REG_OP_ORDER}, {0x23, "and", REG_OPER_OP_ORDER},
36 {0x1B, "sbb", REG_OPER_OP_ORDER}, 36 {0x29, "sub", OPER_REG_OP_ORDER}, {0x2A, "subb", REG_OPER_OP_ORDER},
37 {0x21, "and", OPER_REG_OP_ORDER}, 37 {0x2B, "sub", REG_OPER_OP_ORDER}, {0x31, "xor", OPER_REG_OP_ORDER},
38 {0x23, "and", REG_OPER_OP_ORDER}, 38 {0x33, "xor", REG_OPER_OP_ORDER}, {0x38, "cmpb", OPER_REG_OP_ORDER},
39 {0x29, "sub", OPER_REG_OP_ORDER}, 39 {0x39, "cmp", OPER_REG_OP_ORDER}, {0x3A, "cmpb", REG_OPER_OP_ORDER},
40 {0x2A, "subb", REG_OPER_OP_ORDER}, 40 {0x3B, "cmp", REG_OPER_OP_ORDER}, {0x84, "test_b", REG_OPER_OP_ORDER},
41 {0x2B, "sub", REG_OPER_OP_ORDER}, 41 {0x85, "test", REG_OPER_OP_ORDER}, {0x87, "xchg", REG_OPER_OP_ORDER},
42 {0x31, "xor", OPER_REG_OP_ORDER}, 42 {0x8A, "mov_b", REG_OPER_OP_ORDER}, {0x8B, "mov", REG_OPER_OP_ORDER},
43 {0x33, "xor", REG_OPER_OP_ORDER}, 43 {0x8D, "lea", REG_OPER_OP_ORDER}, {-1, "", UNSET_OP_ORDER}};
44 {0x38, "cmpb", OPER_REG_OP_ORDER},
45 {0x39, "cmp", OPER_REG_OP_ORDER},
46 {0x3A, "cmpb", REG_OPER_OP_ORDER},
47 {0x3B, "cmp", REG_OPER_OP_ORDER},
48 {0x84, "test_b", REG_OPER_OP_ORDER},
49 {0x85, "test", REG_OPER_OP_ORDER},
50 {0x87, "xchg", REG_OPER_OP_ORDER},
51 {0x8A, "mov_b", REG_OPER_OP_ORDER},
52 {0x8B, "mov", REG_OPER_OP_ORDER},
53 {0x8D, "lea", REG_OPER_OP_ORDER},
54 {-1, "", UNSET_OP_ORDER}};
55 44
56 static const ByteMnemonic zero_operands_instr[] = { 45 static const ByteMnemonic zero_operands_instr[] = {
57 {0xC3, "ret", UNSET_OP_ORDER}, 46 {0xC3, "ret", UNSET_OP_ORDER},
58 {0xC9, "leave", UNSET_OP_ORDER}, 47 {0xC9, "leave", UNSET_OP_ORDER},
59 {0x90, "nop", UNSET_OP_ORDER}, 48 {0x90, "nop", UNSET_OP_ORDER},
60 {0xF4, "hlt", UNSET_OP_ORDER}, 49 {0xF4, "hlt", UNSET_OP_ORDER},
61 {0xCC, "int3", UNSET_OP_ORDER}, 50 {0xCC, "int3", UNSET_OP_ORDER},
62 {0x60, "pushad", UNSET_OP_ORDER}, 51 {0x60, "pushad", UNSET_OP_ORDER},
63 {0x61, "popad", UNSET_OP_ORDER}, 52 {0x61, "popad", UNSET_OP_ORDER},
64 {0x9C, "pushfd", UNSET_OP_ORDER}, 53 {0x9C, "pushfd", UNSET_OP_ORDER},
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 fprintf(f, " "); 1810 fprintf(f, " ");
1822 } 1811 }
1823 fprintf(f, " %s\n", buffer.start()); 1812 fprintf(f, " %s\n", buffer.start());
1824 } 1813 }
1825 } 1814 }
1826 1815
1827 1816
1828 } // namespace disasm 1817 } // namespace disasm
1829 1818
1830 #endif // V8_TARGET_ARCH_X87 1819 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/compiler/x87/instruction-selector-x87.cc ('k') | test/cctest/test-disasm-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698