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

Side by Side Diff: src/IceInstX8632.def

Issue 476323004: Start adding an integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: make fixups part of address Created 6 years, 3 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/IceInstX8632.cpp ('k') | src/IceMemoryRegion.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceInstX8632.def - X-macros for x86-32 insts -*- C++ -*-===// 1 //===- subzero/src/IceInstX8632.def - X-macros for x86-32 insts -*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file defines properties of lowered x86-32 instructions in the 10 // This file defines properties of lowered x86-32 instructions in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #define SEG_REGX8632_TABLE \ 43 #define SEG_REGX8632_TABLE \
44 /* enum value, name */ \ 44 /* enum value, name */ \
45 X(SegReg_CS, "cs") \ 45 X(SegReg_CS, "cs") \
46 X(SegReg_DS, "ds") \ 46 X(SegReg_DS, "ds") \
47 X(SegReg_ES, "es") \ 47 X(SegReg_ES, "es") \
48 X(SegReg_SS, "ss") \ 48 X(SegReg_SS, "ss") \
49 X(SegReg_FS, "fs") \ 49 X(SegReg_FS, "fs") \
50 X(SegReg_GS, "gs") \ 50 X(SegReg_GS, "gs") \
51 //#define X(val, name) 51 //#define X(val, name)
52 52
53 #define ICEINSTX8632BR_TABLE \ 53 // X86 condition codes. Note: the enum value follows instruction encoding
54 /* enum value, dump, emit */ \ 54 // (the "Instruction Subcode" in B.1 of the Intel Manuals).
55 X(Br_a, "a", "ja") \ 55 #define ICEINSTX8632BR_TABLE \
56 X(Br_ae, "ae", "jae") \ 56 /* enum value, dump, emit */ \
57 X(Br_b, "b", "jb") \ 57 X(Br_o, "o", "jo") \
58 X(Br_be, "be", "jbe") \ 58 X(Br_no, "no", "jno") \
59 X(Br_e, "e", "je") \ 59 X(Br_b, "b", "jb") \
60 X(Br_g, "g", "jg") \ 60 X(Br_ae, "ae", "jae") \
61 X(Br_ge, "ge", "jge") \ 61 X(Br_e, "e", "je") \
62 X(Br_l, "l", "jl") \ 62 X(Br_ne, "ne", "jne") \
63 X(Br_le, "le", "jle") \ 63 X(Br_be, "be", "jbe") \
64 X(Br_ne, "ne", "jne") \ 64 X(Br_a, "a", "ja") \
65 X(Br_np, "np", "jnp") \ 65 X(Br_s, "s", "js") \
66 X(Br_p, "p", "jp") \ 66 X(Br_ns, "ns", "jns") \
67 //#define X(tag, dump, emit) 67 X(Br_p, "p", "jp") \
68 X(Br_np, "np", "jnp") \
69 X(Br_l, "l", "jl") \
70 X(Br_ge, "ge", "jge") \
71 X(Br_le, "le", "jle") \
72 X(Br_g, "g", "jg") \
73 //#define X(tag, dump, emit)
68 74
69 #define ICEINSTX8632CMPPS_TABLE \ 75 #define ICEINSTX8632CMPPS_TABLE \
70 /* enum value, emit */ \ 76 /* enum value, emit */ \
71 X(Cmpps_eq, "eq") \ 77 X(Cmpps_eq, "eq") \
72 X(Cmpps_lt, "lt") \ 78 X(Cmpps_lt, "lt") \
73 X(Cmpps_le, "le") \ 79 X(Cmpps_le, "le") \
74 X(Cmpps_unord, "unord") \ 80 X(Cmpps_unord, "unord") \
75 X(Cmpps_neq, "neq") \ 81 X(Cmpps_neq, "neq") \
76 X(Cmpps_nlt, "nlt") \ 82 X(Cmpps_nlt, "nlt") \
77 X(Cmpps_nle, "nle") \ 83 X(Cmpps_nle, "nle") \
(...skipping 13 matching lines...) Expand all
91 X(IceType_v4i1, IceType_i32 , "?" , "" , "d", "xmmword ptr") \ 97 X(IceType_v4i1, IceType_i32 , "?" , "" , "d", "xmmword ptr") \
92 X(IceType_v8i1, IceType_i16 , "?" , "" , "w", "xmmword ptr") \ 98 X(IceType_v8i1, IceType_i16 , "?" , "" , "w", "xmmword ptr") \
93 X(IceType_v16i1, IceType_i8 , "?" , "" , "b", "xmmword ptr") \ 99 X(IceType_v16i1, IceType_i8 , "?" , "" , "b", "xmmword ptr") \
94 X(IceType_v16i8, IceType_i8 , "?" , "" , "b", "xmmword ptr") \ 100 X(IceType_v16i8, IceType_i8 , "?" , "" , "b", "xmmword ptr") \
95 X(IceType_v8i16, IceType_i16 , "?" , "" , "w", "xmmword ptr") \ 101 X(IceType_v8i16, IceType_i16 , "?" , "" , "w", "xmmword ptr") \
96 X(IceType_v4i32, IceType_i32 , "dq", "" , "d", "xmmword ptr") \ 102 X(IceType_v4i32, IceType_i32 , "dq", "" , "d", "xmmword ptr") \
97 X(IceType_v4f32, IceType_f32 , "ps", "" , "" , "xmmword ptr") \ 103 X(IceType_v4f32, IceType_f32 , "ps", "" , "" , "xmmword ptr") \
98 //#define X(tag, elementty, cvt, sdss, width) 104 //#define X(tag, elementty, cvt, sdss, width)
99 105
100 #endif // SUBZERO_SRC_ICEINSTX8632_DEF 106 #endif // SUBZERO_SRC_ICEINSTX8632_DEF
OLDNEW
« no previous file with comments | « src/IceInstX8632.cpp ('k') | src/IceMemoryRegion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698