<commit_before>#BEGIN_LEGAL
#
#Copyright (c) 2019 Intel Corporation
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#  
#END_LEGAL
############################################################################
# file: xed-regs.txt
############################################################################

# h is for the "h" byte regs

#name class width max-enclosing-reg-64b/32b-mode regid [h]
INVALID INVALID 0
ERROR   INVALID 0 # used to denote errors in lookup functions 

RAX gpr  64  RAX     0
EAX gpr  32  RAX/EAX 0
AX  gpr  16  RAX/EAX 0
AH  gpr  8   RAX/EAX 4  h
AL  gpr  8   RAX/EAX 0

RCX gpr  64  RCX     1
ECX gpr  32  RCX/ECX 1
CX  gpr  16  RCX/ECX 1
CH  gpr  8   RCX/ECX 5 h
CL  gpr  8   RCX/ECX 1

RDX gpr  64  RDX       2
EDX gpr  32  RDX/EDX   2
DX  gpr  16  RDX/EDX   2
DH  gpr  8   RDX/EDX   6 h
DL  gpr  8   RDX/EDX   2

RBX gpr  64  RBX       3
EBX gpr  32  RBX/EBX   3
BX  gpr  16  RBX/EBX   3
BH  gpr  8   RBX/EBX   7 h
BL  gpr  8   RBX/EBX   3

RSP gpr  64  RSP       4
ESP gpr  32  RSP/ESP   4
SP  gpr  16  RSP/ESP   4
SPL gpr  8   RSP/ESP   4

RBP gpr  64  RBP       5
EBP gpr  32  RBP/EBP   5
BP  gpr  16  RBP/EBP   5 
BPL gpr  8   RBP/EBP   5

RSI gpr  64  RSI       6 
ESI gpr  32  RSI/ESI   6
SI  gpr  16  RSI/ESI   6
SIL gpr  8   RSI/ESI   6

RDI gpr  64  RDI       7
EDI gpr  32  RDI/EDI   7
DI  gpr  16  RDI/EDI   7
DIL gpr  8   RDI/EDI   7


R8  gpr  64  R8        8
R8D gpr  32  R8/R8D    8
R8W gpr  16  R8/R8D    8
R8B gpr  8   R8/R8D    8

R9  gpr  64  R9        9
R9D gpr  32  R9/R9D    9
R9W gpr  16  R9/R9D    9
R9B gpr  8   R9/R9D    9

R10  gpr 64  R10       10
R10D gpr 32  R10/R10D  10
R10W gpr 16  R10/R10D  10
R10B gpr 8   R10/R10D  10

R11  gpr 64  R11       11
R11D gpr 32  R11/R11D  11
R11W gpr 16  R11/R11D  11
R11B gpr 8   R11/R11D  11

R12  gpr 64  R12       12
R12D gpr 32  R12/R12D  12
R12W gpr 16  R12/R12D  12
R12B gpr 8   R12/R12D  12

R13  gpr 64  R13       13
R13D gpr 32  R13/R13D  13
R13W gpr 16  R13/R13D  13
R13B gpr 8   R13/R13D  13

R14  gpr 64  R14       14
R14D gpr 32  R14/R14D  14
R14W gpr 16  R14/R14D  14
R14B gpr 8   R14/R14D  14

R15  gpr 64  R15       15
R15D gpr 32  R15/R15D  15
R15W gpr 16  R15/R15D  15
R15B gpr 8   R15/R15D  15


RIP  ip    64  RIP
EIP  ip    32  RIP/EIP 
IP   ip    16  RIP/EIP 

FLAGS   flags 16 RFLAGS/EFLAGS
EFLAGS  flags 32 RFLAGS/EFLAGS
RFLAGS  flags 64 RFLAGS

CS   sr    16 CS
DS   sr    16 DS
ES   sr    16 ES
SS   sr    16 SS
FS   sr    16 FS
GS   sr    16 GS




MMX0  mmx 64  MMX0  0 - mm0
MMX1  mmx 64  MMX1  1 - mm1
MMX2  mmx 64  MMX2  2 - mm2
MMX3  mmx 64  MMX3  3 - mm3

MMX4  mmx 64  MMX4  4 - mm4
MMX5  mmx 64  MMX5  5 - mm5
MMX6  mmx 64  MMX6  6 - mm6
MMX7  mmx 64  MMX7  7 - mm7


ST0   x87 80  ST0  0 - st(0)
ST1   x87 80  ST1  1 - st(1)
ST2   x87 80  ST2  2 - st(2)
ST3   x87 80  ST3  3 - st(3)
ST4   x87 80  ST4  4 - st(4)
ST5   x87 80  ST5  5 - st(5)<commit_msg>reorder seg regs for natural encoding<commit_after>#BEGIN_LEGAL
#
#Copyright (c) 2019 Intel Corporation
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#  
#END_LEGAL
############################################################################
# file: xed-regs.txt
############################################################################

# h is for the "h" byte regs

#name class width max-enclosing-reg-64b/32b-mode regid [h]
INVALID INVALID 0
ERROR   INVALID 0 # used to denote errors in lookup functions 

RAX gpr  64  RAX     0
EAX gpr  32  RAX/EAX 0
AX  gpr  16  RAX/EAX 0
AH  gpr  8   RAX/EAX 4  h
AL  gpr  8   RAX/EAX 0

RCX gpr  64  RCX     1
ECX gpr  32  RCX/ECX 1
CX  gpr  16  RCX/ECX 1
CH  gpr  8   RCX/ECX 5 h
CL  gpr  8   RCX/ECX 1

RDX gpr  64  RDX       2
EDX gpr  32  RDX/EDX   2
DX  gpr  16  RDX/EDX   2
DH  gpr  8   RDX/EDX   6 h
DL  gpr  8   RDX/EDX   2

RBX gpr  64  RBX       3
EBX gpr  32  RBX/EBX   3
BX  gpr  16  RBX/EBX   3
BH  gpr  8   RBX/EBX   7 h
BL  gpr  8   RBX/EBX   3

RSP gpr  64  RSP       4
ESP gpr  32  RSP/ESP   4
SP  gpr  16  RSP/ESP   4
SPL gpr  8   RSP/ESP   4

RBP gpr  64  RBP       5
EBP gpr  32  RBP/EBP   5
BP  gpr  16  RBP/EBP   5 
BPL gpr  8   RBP/EBP   5

RSI gpr  64  RSI       6 
ESI gpr  32  RSI/ESI   6
SI  gpr  16  RSI/ESI   6
SIL gpr  8   RSI/ESI   6

RDI gpr  64  RDI       7
EDI gpr  32  RDI/EDI   7
DI  gpr  16  RDI/EDI   7
DIL gpr  8   RDI/EDI   7


R8  gpr  64  R8        8
R8D gpr  32  R8/R8D    8
R8W gpr  16  R8/R8D    8
R8B gpr  8   R8/R8D    8

R9  gpr  64  R9        9
R9D gpr  32  R9/R9D    9
R9W gpr  16  R9/R9D    9
R9B gpr  8   R9/R9D    9

R10  gpr 64  R10       10
R10D gpr 32  R10/R10D  10
R10W gpr 16  R10/R10D  10
R10B gpr 8   R10/R10D  10

R11  gpr 64  R11       11
R11D gpr 32  R11/R11D  11
R11W gpr 16  R11/R11D  11
R11B gpr 8   R11/R11D  11

R12  gpr 64  R12       12
R12D gpr 32  R12/R12D  12
R12W gpr 16  R12/R12D  12
R12B gpr 8   R12/R12D  12

R13  gpr 64  R13       13
R13D gpr 32  R13/R13D  13
R13W gpr 16  R13/R13D  13
R13B gpr 8   R13/R13D  13

R14  gpr 64  R14       14
R14D gpr 32  R14/R14D  14
R14W gpr 16  R14/R14D  14
R14B gpr 8   R14/R14D  14

R15  gpr 64  R15       15
R15D gpr 32  R15/R15D  15
R15W gpr 16  R15/R15D  15
R15B gpr 8   R15/R15D  15


RIP  ip    64  RIP
EIP  ip    32  RIP/EIP 
IP   ip    16  RIP/EIP 

FLAGS   flags 16 RFLAGS/EFLAGS
EFLAGS  flags 32 RFLAGS/EFLAGS
RFLAGS  flags 64 RFLAGS

# natural order for the seg regs. See SEG() nonterminal
ES   sr    16 ES
CS   sr    16 CS
SS   sr    16 SS
DS   sr    16 DS
FS   sr    16 FS
GS   sr    16 GS


MMX0  mmx 64  MMX0  0 - mm0
MMX1  mmx 64  MMX1  1 - mm1
MMX2  mmx 64  MMX2  2 - mm2
MMX3  mmx 64  MMX3  3 - mm3

MMX4  mmx 64  MMX4  4 - mm4
MMX5  mmx 64  MMX5  5 - mm5
MMX6  mmx 64  MMX6  6 - mm6
MMX7  mmx 64  MMX7  7 - mm7


ST0   x87 80  ST0  0 - st(0)
ST1   x87 80  ST1  1 - st(1)
ST2   x87 80  ST2  2 - st(2)
ST3   x87 80  ST3  3 - st(3)
ST4   x87 80  ST4  4 - st(4)
ST5   x87 80  ST5  5 - st(5)
{'fraction_non_alphanumeric': 0.08688046647230321, 'fraction_numerical': 0.1446064139941691, 'mean_word_length': 1.8719129342821264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3181353', 'n_tokens_mistral': 3793, 'n_tokens_neox': 3248, 'n_words': 1191}