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

Side by Side Diff: src/IceInstX8632.def

Issue 1260163003: Subzero. Removes references to %ah. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: git pull Created 5 years, 4 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/IceInstX8664.def » ('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 26 matching lines...) Expand all
37 X(Reg_xmm5, 5, "xmm5", "" , "" , 1, 0, 0, 0, 0, 0, 1) \ 37 X(Reg_xmm5, 5, "xmm5", "" , "" , 1, 0, 0, 0, 0, 0, 1) \
38 X(Reg_xmm6, 6, "xmm6", "" , "" , 1, 0, 0, 0, 0, 0, 1) \ 38 X(Reg_xmm6, 6, "xmm6", "" , "" , 1, 0, 0, 0, 0, 0, 1) \
39 X(Reg_xmm7, 7, "xmm7", "" , "" , 1, 0, 0, 0, 0, 0, 1) \ 39 X(Reg_xmm7, 7, "xmm7", "" , "" , 1, 0, 0, 0, 0, 0, 1) \
40 //#define X(val, encode, name, name16, name8, scratch, preserved, stackptr, 40 //#define X(val, encode, name, name16, name8, scratch, preserved, stackptr,
41 // frameptr, isI8, isInt, isFP) 41 // frameptr, isI8, isInt, isFP)
42 42
43 // We also provide a combined table, so that there is a namespace where 43 // We also provide a combined table, so that there is a namespace where
44 // all of the registers are considered and have distinct numberings. 44 // all of the registers are considered and have distinct numberings.
45 // This is in contrast to the above, where the "encode" is based on how 45 // This is in contrast to the above, where the "encode" is based on how
46 // the register numbers will be encoded in binaries and values can overlap. 46 // the register numbers will be encoded in binaries and values can overlap.
47 // Note that the isI8 attributed of Reg_ah is not set. In general we
48 // don't want the register allocator choosing Reg_ah, in particular
49 // for lowering insertelement to pinsrb where internally we use an
50 // 8-bit operand but externally pinsrb uses a 32-bit register, in
51 // which Reg_ah doesn't map to eax.
52 #define REGX8632_TABLE \ 47 #define REGX8632_TABLE \
53 /* val, encode, name, name16, name8, scratch, preserved, stackptr, \ 48 /* val, encode, name, name16, name8, scratch, preserved, stackptr, \
54 frameptr, isI8, isInt, isFP */ \ 49 frameptr, isI8, isInt, isFP */ \
55 REGX8632_GPR_TABLE \ 50 REGX8632_GPR_TABLE \
56 X(Reg_ah, 4, "???", "" , "ah", 0, 0, 0, 0, 0, 0, 0) \
57 REGX8632_XMM_TABLE 51 REGX8632_XMM_TABLE
58 //#define X(val, encode, name, name16, name8, scratch, preserved, stackptr, 52 //#define X(val, encode, name, name16, name8, scratch, preserved, stackptr,
59 // frameptr, isI8, isInt, isFP) 53 // frameptr, isI8, isInt, isFP)
60 54
61 #define REGX8632_TABLE_BOUNDS \ 55 #define REGX8632_TABLE_BOUNDS \
62 /* val, init */ \ 56 /* val, init */ \
63 X(Reg_GPR_First, = Reg_eax) \ 57 X(Reg_GPR_First, = Reg_eax) \
64 X(Reg_GPR_Last, = Reg_edi) \ 58 X(Reg_GPR_Last, = Reg_edi) \
65 X(Reg_XMM_First, = Reg_xmm0) \ 59 X(Reg_XMM_First, = Reg_xmm0) \
66 X(Reg_XMM_Last, = Reg_xmm7) \ 60 X(Reg_XMM_Last, = Reg_xmm7) \
67 //define X(val, init) 61 //define X(val, init)
68 62
69 // We also need the encodings for the Byte registers (other info overlaps 63 // We also need the encodings for the Byte registers (other info overlaps
70 // what is in the REGX8632_GPR_TABLE). 64 // what is in the REGX8632_GPR_TABLE).
71 #define REGX8632_BYTEREG_TABLE \ 65 #define REGX8632_BYTEREG_TABLE \
72 /* val, encode */ \ 66 /* val, encode */ \
73 X(Reg_al, = 0) \ 67 X(Reg_al, = 0) \
74 X(Reg_cl, = 1) \ 68 X(Reg_cl, = 1) \
75 X(Reg_dl, = 2) \ 69 X(Reg_dl, = 2) \
76 X(Reg_bl, = 3) \ 70 X(Reg_bl, = 3)
77 X(Reg_ah, = 4)
78 //#define X(val, encode) 71 //#define X(val, encode)
79 72
80 // X86 segment registers. 73 // X86 segment registers.
81 #define SEG_REGX8632_TABLE \ 74 #define SEG_REGX8632_TABLE \
82 /* enum value, name, prefix */ \ 75 /* enum value, name, prefix */ \
83 X(SegReg_CS, "cs", 0x2E) \ 76 X(SegReg_CS, "cs", 0x2E) \
84 X(SegReg_DS, "ds", 0x3E) \ 77 X(SegReg_DS, "ds", 0x3E) \
85 X(SegReg_ES, "es", 0x26) \ 78 X(SegReg_ES, "es", 0x26) \
86 X(SegReg_SS, "ss", 0x36) \ 79 X(SegReg_SS, "ss", 0x36) \
87 X(SegReg_FS, "fs", 0x64) \ 80 X(SegReg_FS, "fs", 0x64) \
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 X(IceType_v4i1, IceType_i32 , "?" , "" , "d", "", "") \ 141 X(IceType_v4i1, IceType_i32 , "?" , "" , "d", "", "") \
149 X(IceType_v8i1, IceType_i16 , "?" , "" , "w", "", "") \ 142 X(IceType_v8i1, IceType_i16 , "?" , "" , "w", "", "") \
150 X(IceType_v16i1, IceType_i8 , "?" , "" , "b", "", "") \ 143 X(IceType_v16i1, IceType_i8 , "?" , "" , "b", "", "") \
151 X(IceType_v16i8, IceType_i8 , "?" , "" , "b", "", "") \ 144 X(IceType_v16i8, IceType_i8 , "?" , "" , "b", "", "") \
152 X(IceType_v8i16, IceType_i16 , "?" , "" , "w", "", "") \ 145 X(IceType_v8i16, IceType_i16 , "?" , "" , "w", "", "") \
153 X(IceType_v4i32, IceType_i32 , "dq", "" , "d", "", "") \ 146 X(IceType_v4i32, IceType_i32 , "dq", "" , "d", "", "") \
154 X(IceType_v4f32, IceType_f32 , "ps", "" , "d", "", "") \ 147 X(IceType_v4f32, IceType_f32 , "ps", "" , "d", "", "") \
155 //#define X(tag, elementty, cvt, sdss, pack, width, fld) 148 //#define X(tag, elementty, cvt, sdss, pack, width, fld)
156 149
157 #endif // SUBZERO_SRC_ICEINSTX8632_DEF 150 #endif // SUBZERO_SRC_ICEINSTX8632_DEF
OLDNEW
« no previous file with comments | « no previous file | src/IceInstX8664.def » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698