浏览代码

* set all 16/32-bit specific stabs/dwarf register numbers of x86_64-only
registers to -1 in x86reg.dat. The values that used to be there weren't used
at all (most were just copies of the 32-bit version of the register). This can
be easily demonstrated by the fact that running 'make regdat' in the compiler
directory doesn't change any of the generated files for i8086/i386/x86_64.

git-svn-id: trunk@39098 -

nickysn 7 年之前
父节点
当前提交
e5de7d0eac
共有 1 个文件被更改,包括 13 次插入13 次删除
  1. 13 13
      compiler/x86/x86reg.dat

+ 13 - 13
compiler/x86/x86reg.dat

@@ -19,38 +19,38 @@ NR_AL,$01010000,al,%al,al,al,0,19,0,0,OT_REG_AL,0
 NR_AH,$01020000,ah,%ah,ah,ah,0,20,0,0,OT_REG8,4
 NR_AH,$01020000,ah,%ah,ah,ah,0,20,0,0,OT_REG8,4
 NR_AX,$01030000,ax,%ax,ax,ax,0,27,0,0,OT_REG_AX,0
 NR_AX,$01030000,ax,%ax,ax,ax,0,27,0,0,OT_REG_AX,0
 NR_EAX,$01040000,eax,%eax,eax,eax,0,0,0,0,OT_REG_EAX,0
 NR_EAX,$01040000,eax,%eax,eax,eax,0,0,0,0,OT_REG_EAX,0
-NR_RAX,$01050000,rax,%rax,rax,rax,0,0,0,0,OT_REG_RAX,0,64
+NR_RAX,$01050000,rax,%rax,rax,rax,-1,-1,-1,0,OT_REG_RAX,0,64
 NR_CL,$01010001,cl,%cl,cl,cl,1,23,1,2,OT_REG_CL,1
 NR_CL,$01010001,cl,%cl,cl,cl,1,23,1,2,OT_REG_CL,1
 NR_CH,$01020001,ch,%ch,ch,ch,1,24,1,2,OT_REG8,5
 NR_CH,$01020001,ch,%ch,ch,ch,1,24,1,2,OT_REG8,5
 NR_CX,$01030001,cx,%cx,cx,cx,1,29,1,2,OT_REG_CX,1
 NR_CX,$01030001,cx,%cx,cx,cx,1,29,1,2,OT_REG_CX,1
 NR_ECX,$01040001,ecx,%ecx,ecx,ecx,1,1,1,2,OT_REG_ECX,1
 NR_ECX,$01040001,ecx,%ecx,ecx,ecx,1,1,1,2,OT_REG_ECX,1
-NR_RCX,$01050001,rcx,%rcx,rcx,rcx,1,1,1,2,OT_REG_RCX,1,64
+NR_RCX,$01050001,rcx,%rcx,rcx,rcx,-1,-1,-1,2,OT_REG_RCX,1,64
 NR_DL,$01010002,dl,%dl,dl,dl,2,25,2,1,OT_REG8,2
 NR_DL,$01010002,dl,%dl,dl,dl,2,25,2,1,OT_REG8,2
 NR_DH,$01020002,dh,%dh,dh,dh,2,26,2,1,OT_REG8,6
 NR_DH,$01020002,dh,%dh,dh,dh,2,26,2,1,OT_REG8,6
 NR_DX,$01030002,dx,%dx,dx,dx,2,30,2,1,OT_REG_DX,2
 NR_DX,$01030002,dx,%dx,dx,dx,2,30,2,1,OT_REG_DX,2
 NR_EDX,$01040002,edx,%edx,edx,edx,2,2,2,1,OT_REG32,2
 NR_EDX,$01040002,edx,%edx,edx,edx,2,2,2,1,OT_REG32,2
-NR_RDX,$01050002,rdx,%rdx,rdx,rdx,2,2,2,1,OT_REG64,2,64
+NR_RDX,$01050002,rdx,%rdx,rdx,rdx,-1,-1,-1,1,OT_REG64,2,64
 NR_BL,$01010003,bl,%bl,bl,bl,3,21,3,3,OT_REG8,3
 NR_BL,$01010003,bl,%bl,bl,bl,3,21,3,3,OT_REG8,3
 NR_BH,$01020003,bh,%bh,bh,bh,3,22,3,3,OT_REG8,7
 NR_BH,$01020003,bh,%bh,bh,bh,3,22,3,3,OT_REG8,7
 NR_BX,$01030003,bx,%bx,bx,bx,3,28,3,3,OT_REG16,3
 NR_BX,$01030003,bx,%bx,bx,bx,3,28,3,3,OT_REG16,3
 NR_EBX,$01040003,ebx,%ebx,ebx,ebx,3,3,3,3,OT_REG32,3
 NR_EBX,$01040003,ebx,%ebx,ebx,ebx,3,3,3,3,OT_REG32,3
-NR_RBX,$01050003,rbx,%rbx,rbx,rbx,3,3,3,3,OT_REG64,3,64
-NR_SIL,$01010004,sil,%sil,sil,sil,6,6,6,4,OT_REG8,6,64
+NR_RBX,$01050003,rbx,%rbx,rbx,rbx,-1,-1,-1,3,OT_REG64,3,64
+NR_SIL,$01010004,sil,%sil,sil,sil,-1,-1,-1,4,OT_REG8,6,64
 NR_SI,$01030004,si,%si,si,si,6,31,6,4,OT_REG16,6
 NR_SI,$01030004,si,%si,si,si,6,31,6,4,OT_REG16,6
 NR_ESI,$01040004,esi,%esi,esi,esi,6,6,6,4,OT_REG32,6
 NR_ESI,$01040004,esi,%esi,esi,esi,6,6,6,4,OT_REG32,6
-NR_RSI,$01050004,rsi,%rsi,rsi,rsi,6,6,6,4,OT_REG64,6,64
-NR_DIL,$01010005,dil,%dil,dil,dil,7,7,7,5,OT_REG8,7,64
+NR_RSI,$01050004,rsi,%rsi,rsi,rsi,-1,-1,-1,4,OT_REG64,6,64
+NR_DIL,$01010005,dil,%dil,dil,dil,-1,-1,-1,5,OT_REG8,7,64
 NR_DI,$01030005,di,%di,di,di,7,32,7,5,OT_REG16,7
 NR_DI,$01030005,di,%di,di,di,7,32,7,5,OT_REG16,7
 NR_EDI,$01040005,edi,%edi,edi,edi,7,7,7,5,OT_REG32,7
 NR_EDI,$01040005,edi,%edi,edi,edi,7,7,7,5,OT_REG32,7
-NR_RDI,$01050005,rdi,%rdi,rdi,rdi,7,7,7,5,OT_REG64,7,64
-NR_BPL,$01010006,bpl,%bpl,bpl,bpl,5,5,5,6,OT_REG8,5,64
+NR_RDI,$01050005,rdi,%rdi,rdi,rdi,-1,-1,-1,5,OT_REG64,7,64
+NR_BPL,$01010006,bpl,%bpl,bpl,bpl,-1,-1,-1,6,OT_REG8,5,64
 NR_BP,$01030006,bp,%bp,bp,bp,5,33,5,6,OT_REG16,5
 NR_BP,$01030006,bp,%bp,bp,bp,5,33,5,6,OT_REG16,5
 NR_EBP,$01040006,ebp,%ebp,ebp,ebp,5,5,5,6,OT_REG32,5
 NR_EBP,$01040006,ebp,%ebp,ebp,ebp,5,5,5,6,OT_REG32,5
-NR_RBP,$01050006,rbp,%rbp,rbp,rbp,5,5,5,6,OT_REG64,5,64
-NR_SPL,$01010007,spl,%spl,spl,spl,4,4,4,7,OT_REG8,4,64
+NR_RBP,$01050006,rbp,%rbp,rbp,rbp,-1,-1,-1,6,OT_REG64,5,64
+NR_SPL,$01010007,spl,%spl,spl,spl,-1,-1,-1,7,OT_REG8,4,64
 NR_SP,$01030007,sp,%sp,sp,sp,4,34,4,7,OT_REG16,4
 NR_SP,$01030007,sp,%sp,sp,sp,4,34,4,7,OT_REG16,4
 NR_ESP,$01040007,esp,%esp,esp,esp,4,4,4,7,OT_REG32,4
 NR_ESP,$01040007,esp,%esp,esp,esp,4,4,4,7,OT_REG32,4
-NR_RSP,$01050007,rsp,%rsp,rsp,rsp,4,4,4,7,OT_REG64,4,64
+NR_RSP,$01050007,rsp,%rsp,rsp,rsp,-1,-1,-1,7,OT_REG64,4,64
 NR_R8,$01050008,r8,%r8,r8,r8,-1,-1,-1,8,OT_REG64,0,64
 NR_R8,$01050008,r8,%r8,r8,r8,-1,-1,-1,8,OT_REG64,0,64
 NR_R8L,$01010008,r8b,%r8b,r8b,r8b,-1,-1,-1,8,OT_REG8,0,64
 NR_R8L,$01010008,r8b,%r8b,r8b,r8b,-1,-1,-1,8,OT_REG8,0,64
 NR_R8W,$01030008,r8w,%r8w,r8w,r8w,-1,-1,-1,8,OT_REG16,0,64
 NR_R8W,$01030008,r8w,%r8w,r8w,r8w,-1,-1,-1,8,OT_REG16,0,64
@@ -104,7 +104,7 @@ NR_INTERRUPTFLAG,$05150006,interruptflag,%interruptflag,interruptflag,interruptf
 NR_DIRECTIONFLAG,$05160006,directionflag,%directionflag,directionflag,directionflag,-1,-1,-1,-1,OT_NONE,0
 NR_DIRECTIONFLAG,$05160006,directionflag,%directionflag,directionflag,directionflag,-1,-1,-1,-1,OT_NONE,0
 
 
 ; EIP is needed for DWARF call frame info return address (RA)
 ; EIP is needed for DWARF call frame info return address (RA)
-NR_RIP,$05050007,rip,%rip,rip,rip,-1,-1,8,16,OT_NONE,0,64
+NR_RIP,$05050007,rip,%rip,rip,rip,-1,-1,-1,16,OT_NONE,0,64
 NR_EIP,$05040007,eip,%eip,eip,eip,-1,8,8,16,OT_NONE,0
 NR_EIP,$05040007,eip,%eip,eip,eip,-1,8,8,16,OT_NONE,0
 
 
 NR_DR0,$05000008,dr0,%dr0,dr0,dr0,-1,-1,-1,-1,OT_REG_DREG,0
 NR_DR0,$05000008,dr0,%dr0,dr0,dr0,-1,-1,-1,-1,OT_REG_DREG,0