Browse Source

* rtl compilation with x86_64 binary writer fixed

git-svn-id: trunk@3042 -
florian 19 years ago
parent
commit
87da67129c

+ 11 - 11
compiler/i386/i386tab.inc

@@ -7214,28 +7214,28 @@
     opcode  : A_CVTSI2SS;
     ops     : 2;
     optypes : (ot_xmmreg,ot_memory,ot_none);
-    code    : #193#219#2#15#42#72;
-    flags   : if_katmai or if_sse or if_sd or if_ar1
+    code    : #209#193#219#2#15#42#72;
+    flags   : if_katmai or if_sse
   ),
   (
     opcode  : A_CVTSI2SS;
     ops     : 2;
-    optypes : (ot_xmmreg,ot_reg32,ot_none);
-    code    : #219#2#15#42#72;
+    optypes : (ot_xmmreg,ot_reg32 or ot_bits64,ot_none);
+    code    : #209#219#2#15#42#72;
     flags   : if_katmai or if_sse
   ),
   (
     opcode  : A_CVTSS2SI;
     ops     : 2;
-    optypes : (ot_reg32,ot_memory,ot_none);
-    code    : #193#219#2#15#45#72;
+    optypes : (ot_reg32 or ot_bits64,ot_memory,ot_none);
+    code    : #209#193#219#2#15#45#72;
     flags   : if_katmai or if_sse
   ),
   (
     opcode  : A_CVTSS2SI;
     ops     : 2;
-    optypes : (ot_reg32,ot_xmmreg,ot_none);
-    code    : #219#2#15#45#72;
+    optypes : (ot_reg32 or ot_bits64,ot_xmmreg,ot_none);
+    code    : #209#219#2#15#45#72;
     flags   : if_katmai or if_sse
   ),
   (
@@ -8928,15 +8928,15 @@
   (
     opcode  : A_CVTSI2SD;
     ops     : 2;
-    optypes : (ot_xmmreg,ot_reg32,ot_none);
-    code    : #3#242#15#42#72;
+    optypes : (ot_xmmreg,ot_reg32 or ot_bits64,ot_none);
+    code    : #209#3#242#15#42#72;
     flags   : if_willamette or if_sse2
   ),
   (
     opcode  : A_CVTSI2SD;
     ops     : 2;
     optypes : (ot_xmmreg,ot_memory,ot_none);
-    code    : #193#3#242#15#42#72;
+    code    : #209#193#3#242#15#42#72;
     flags   : if_willamette or if_sse2
   ),
   (

+ 1 - 1
compiler/i386/r386ari.inc

@@ -31,6 +31,7 @@
 8,
 20,
 12,
+25,
 28,
 18,
 24,
@@ -69,5 +70,4 @@
 69,
 70,
 71,
-25,
 0

+ 1 - 1
compiler/i386/r386att.inc

@@ -24,7 +24,7 @@
 '%ebp',
 '%sp',
 '%esp',
-'EIP',
+'%eip',
 '%cs',
 '%ds',
 '%es',

+ 1 - 1
compiler/i386/r386int.inc

@@ -24,7 +24,7 @@
 'ebp',
 'sp',
 'esp',
-'EIP',
+'eip',
 'cs',
 'ds',
 'es',

+ 1 - 1
compiler/i386/r386iri.inc

@@ -1,5 +1,4 @@
 { don't edit, this file is generated from x86reg.dat }
-25,
 0,
 2,
 1,
@@ -33,6 +32,7 @@
 8,
 20,
 12,
+25,
 28,
 18,
 24,

+ 1 - 1
compiler/i386/r386nasm.inc

@@ -24,7 +24,7 @@
 'ebp',
 'sp',
 'esp',
-'EIP',
+'eip',
 'cs',
 'ds',
 'es',

+ 1 - 1
compiler/i386/r386nri.inc

@@ -1,5 +1,4 @@
 { don't edit, this file is generated from x86reg.dat }
-25,
 0,
 2,
 1,
@@ -33,6 +32,7 @@
 8,
 20,
 12,
+25,
 28,
 18,
 24,

+ 1 - 1
compiler/i386/r386sri.inc

@@ -1,5 +1,4 @@
 { don't edit, this file is generated from x86reg.dat }
-25,
 0,
 2,
 1,
@@ -33,6 +32,7 @@
 8,
 20,
 12,
+25,
 28,
 18,
 24,

+ 1 - 1
compiler/i386/r386std.inc

@@ -24,7 +24,7 @@
 'ebp',
 'sp',
 'esp',
-'EIP',
+'eip',
 'cs',
 'ds',
 'es',

+ 6 - 6
compiler/x86/x86ins.dat

@@ -2302,13 +2302,13 @@ mmxreg,xmmreg         \331\2\x0F\x2D\110              KATMAI,SSE,MMX
 
 [CVTSI2SS]
 (Ch_Wop2, Ch_Rop1, Ch_None)
-xmmreg,mem            \301\333\2\x0F\x2A\110          KATMAI,SSE,SD,AR1
-xmmreg,reg32          \333\2\x0F\x2A\110              KATMAI,SSE
+xmmreg,mem            \321\301\333\2\x0F\x2A\110      KATMAI,SSE
+xmmreg,reg32|64       \321\333\2\x0F\x2A\110          KATMAI,SSE
 
 [CVTSS2SI]
 (Ch_Wop2, Ch_Rop1, Ch_None)
-reg32,mem             \301\333\2\x0F\x2D\110          KATMAI,SSE
-reg32,xmmreg          \333\2\x0F\x2D\110              KATMAI,SSE
+reg32|64,mem          \321\301\333\2\x0F\x2D\110      KATMAI,SSE
+reg32|64,xmmreg       \321\333\2\x0F\x2D\110          KATMAI,SSE
 
 [CVTTPS2PI]
 (Ch_Wop2, Ch_Rop1, Ch_None)
@@ -2924,8 +2924,8 @@ xmmreg,mem              \301\3\xF2\x0F\x5A\110          WILLAMETTE,SSE2
 
 [CVTSI2SD]
 (Ch_Wop2, Ch_Rop1, Ch_None)
-xmmreg,reg32            \3\xF2\x0F\x2A\110              WILLAMETTE,SSE2
-xmmreg,mem              \301\3\xF2\x0F\x2A\110          WILLAMETTE,SSE2
+xmmreg,reg32|64         \321\3\xF2\x0F\x2A\110          WILLAMETTE,SSE2
+xmmreg,mem              \321\301\3\xF2\x0F\x2A\110      WILLAMETTE,SSE2
 
 [CVTSS2SD]
 (Ch_Wop2, Ch_Rop1, Ch_None)

+ 14 - 14
compiler/x86_64/x8664tab.inc

@@ -4449,14 +4449,14 @@
     opcode  : A_POP;
     ops     : 1;
     optypes : (ot_reg16 or ot_bits32 or ot_bits64,ot_none,ot_none);
-    code    : #208#8#88;
+    code    : #208#8#88#221;
     flags   : if_8086
   ),
   (
     opcode  : A_POP;
     ops     : 1;
     optypes : (ot_regmem or ot_bits16 or ot_bits32 or ot_bits64,ot_none,ot_none);
-    code    : #208#192#1#143#128;
+    code    : #208#192#1#143#128#221;
     flags   : if_8086
   ),
   (
@@ -4477,7 +4477,7 @@
     opcode  : A_POP;
     ops     : 1;
     optypes : (ot_reg_fsgs,ot_none,ot_none);
-    code    : #1#15#5;
+    code    : #1#15#5#221;
     flags   : if_386
   ),
   (
@@ -7186,28 +7186,28 @@
     opcode  : A_CVTSI2SS;
     ops     : 2;
     optypes : (ot_xmmreg,ot_memory,ot_none);
-    code    : #193#219#2#15#42#72;
-    flags   : if_katmai or if_sse or if_sd or if_ar1
+    code    : #209#193#219#2#15#42#72;
+    flags   : if_katmai or if_sse
   ),
   (
     opcode  : A_CVTSI2SS;
     ops     : 2;
-    optypes : (ot_xmmreg,ot_reg32,ot_none);
-    code    : #219#2#15#42#72;
+    optypes : (ot_xmmreg,ot_reg32 or ot_bits64,ot_none);
+    code    : #209#219#2#15#42#72;
     flags   : if_katmai or if_sse
   ),
   (
     opcode  : A_CVTSS2SI;
     ops     : 2;
-    optypes : (ot_reg32,ot_memory,ot_none);
-    code    : #193#219#2#15#45#72;
+    optypes : (ot_reg32 or ot_bits64,ot_memory,ot_none);
+    code    : #209#193#219#2#15#45#72;
     flags   : if_katmai or if_sse
   ),
   (
     opcode  : A_CVTSS2SI;
     ops     : 2;
-    optypes : (ot_reg32,ot_xmmreg,ot_none);
-    code    : #219#2#15#45#72;
+    optypes : (ot_reg32 or ot_bits64,ot_xmmreg,ot_none);
+    code    : #209#219#2#15#45#72;
     flags   : if_katmai or if_sse
   ),
   (
@@ -8900,15 +8900,15 @@
   (
     opcode  : A_CVTSI2SD;
     ops     : 2;
-    optypes : (ot_xmmreg,ot_reg32,ot_none);
-    code    : #3#242#15#42#72;
+    optypes : (ot_xmmreg,ot_reg32 or ot_bits64,ot_none);
+    code    : #209#3#242#15#42#72;
     flags   : if_willamette or if_sse2
   ),
   (
     opcode  : A_CVTSI2SD;
     ops     : 2;
     optypes : (ot_xmmreg,ot_memory,ot_none);
-    code    : #193#3#242#15#42#72;
+    code    : #209#193#3#242#15#42#72;
     flags   : if_willamette or if_sse2
   ),
   (