gas/
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Sep 2009 18:41:24 +0000 (18:41 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Sep 2009 18:41:24 +0000 (18:41 +0000)
2009-09-15  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386-intel.c (i386_intel_operand): Initialize
intel_state.has_offset to 0.

gas/testsuite/

2009-09-15  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/disp.s: Add an offset test.
* gas/i386/x86-64-disp.s: Likewise.

* gas/i386/intelbad.s: Comment out "byte ptr [1]" test.

* gas/i386/disp.d: Updated.
* gas/i386/disp-intel.d: Likewise.
* gas/i386/intelbad.l: Likewise.
* gas/i386/x86-64-disp.d: Likewise.
* gas/i386/x86-64-disp-intel.d: Likewise.

gas/ChangeLog
gas/config/tc-i386-intel.c
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/disp-intel.d
gas/testsuite/gas/i386/disp.d
gas/testsuite/gas/i386/disp.s
gas/testsuite/gas/i386/intelbad.l
gas/testsuite/gas/i386/intelbad.s
gas/testsuite/gas/i386/x86-64-disp-intel.d
gas/testsuite/gas/i386/x86-64-disp.d
gas/testsuite/gas/i386/x86-64-disp.s

index 9a9026e12823063790a28aefc5f8de5ad72f1a4c..83f867c21c8ee1ecfe31fe88e051a752729641a9 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/tc-i386-intel.c (i386_intel_operand): Initialize
+       intel_state.has_offset to 0.
+
 2009-09-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/tc-i386.c (offset_in_range): Sign extend offset only
index 0c37e4503e853a93271a45f8041e96f15b0ee2be..5d5e0c1176978ca709ce6798d23865b8e8cae808 100644 (file)
@@ -466,6 +466,7 @@ i386_intel_operand (char *operand_string, int got_a_float)
   /* Initialize state structure.  */
   intel_state.op_modifier = O_absent;
   intel_state.is_mem = 0;
+  intel_state.has_offset = 0;
   intel_state.base = NULL;
   intel_state.index = NULL;
   intel_state.seg = NULL;
index ceff29a12fc112a6fa244623bb1845426d82409b..9d2fff2ce2f30ce2674ed4bfe40b1adeae45467d 100644 (file)
@@ -1,3 +1,16 @@
+2009-09-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gas/i386/disp.s: Add an offset test.
+       * gas/i386/x86-64-disp.s: Likewise.
+
+       * gas/i386/intelbad.s: Comment out "byte ptr [1]" test.
+
+       * gas/i386/disp.d: Updated.
+       * gas/i386/disp-intel.d: Likewise.
+       * gas/i386/intelbad.l: Likewise.
+       * gas/i386/x86-64-disp.d: Likewise.
+       * gas/i386/x86-64-disp-intel.d: Likewise.
+
 2009-09-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR gas/10637
index 2ab09dcd3d2769a43ffd2e9606ebb8cd9dc7cd79..9428ac815734e2494399c82ad01433017ca13065 100644 (file)
@@ -16,6 +16,7 @@ Disassembly of section .text:
 [      ]*[a-f0-9]+:    a1 ff ff ff 7f          mov    eax,ds:0x7fffffff
 [      ]*[a-f0-9]+:    a1 00 00 00 80          mov    eax,ds:0x80000000
 [      ]*[a-f0-9]+:    a1 00 00 00 80          mov    eax,ds:0x80000000
+[      ]*[a-f0-9]+:    b8 f0 00 e0 0e          mov    eax,0xee000f0
 [      ]*[a-f0-9]+:    89 98 f0 00 e0 0e       mov    DWORD PTR \[eax\+0xee000f0\],ebx
 [      ]*[a-f0-9]+:    89 98 f0 00 e0 0e       mov    DWORD PTR \[eax\+0xee000f0\],ebx
 [      ]*[a-f0-9]+:    65 89 98 f0 00 e0 0e    mov    DWORD PTR gs:\[eax\+0xee000f0\],ebx
index 349ce2cde309c73455b9776491e23dae0203ec02..91d6941bf88eaa49bd50c507f1fa717696570ebb 100644 (file)
@@ -16,6 +16,7 @@ Disassembly of section .text:
 [      ]*[a-f0-9]+:    a1 ff ff ff 7f          mov    0x7fffffff,%eax
 [      ]*[a-f0-9]+:    a1 00 00 00 80          mov    0x80000000,%eax
 [      ]*[a-f0-9]+:    a1 00 00 00 80          mov    0x80000000,%eax
+[      ]*[a-f0-9]+:    b8 f0 00 e0 0e          mov    \$0xee000f0,%eax
 [      ]*[a-f0-9]+:    89 98 f0 00 e0 0e       mov    %ebx,0xee000f0\(%eax\)
 [      ]*[a-f0-9]+:    89 98 f0 00 e0 0e       mov    %ebx,0xee000f0\(%eax\)
 [      ]*[a-f0-9]+:    65 89 98 f0 00 e0 0e    mov    %ebx,%gs:0xee000f0\(%eax\)
index 993ea67b3b6a380aa4944ecd1495d25419728d7a..97246fae8b256cbb41d255456d4c673a79b4cfd0 100644 (file)
@@ -10,6 +10,8 @@
        mov -0x80000000,%eax
 
        .intel_syntax noprefix
+       mov eax, offset 0xEE000F0
+
        mov DWORD PTR [eax+0xEE000F0], ebx
        mov [eax+0xEE000F0], ebx
        mov DWORD PTR gs:[eax+0xEE000F0], ebx
index bdc2645c85a72cdc05e3eb53ac3cf6f66a725479..6321cc8f867034d01c7a894932a9fcecd2ef3394 100644 (file)
 .*:167: Error: .*
 .*:168: Error: .*
 .*:169: Error: .*
-.*:170: Error: .*
 .*:172: Error: .*
index 9df2aa24cb398ab1455102b84ae14306a8f9b039..b3d1f76f81b1fb7f6a31ace66925740461b4ded1 100644 (file)
@@ -167,6 +167,6 @@ start:
        movzx   eax, byte ptr [gs:eax]
        movzx   eax, byte gs:ptr [eax]
        movzx   eax, byte ptr 1
-       movzx   eax, byte ptr [1]
+#XXX?  movzx   eax, byte ptr [1]
 
        mov     eax, 3:5
index 8f952552b0058b9e696d3d1ff1b7f3fdbf9539e9..03ab1cbe540721d0ec81c27b6679fd8716067541 100644 (file)
@@ -17,6 +17,7 @@ Disassembly of section .text:
 [      ]*[a-f0-9]+:    8b 04 25 00 00 00 80    mov    eax,DWORD PTR ds:0xffffffff80000000
 [      ]*[a-f0-9]+:    8b 04 25 ff ff ff 7f    mov    eax,DWORD PTR ds:0x7fffffff
 [      ]*[a-f0-9]+:    a1 00 00 00 80 00 00 00 00      mov    eax,ds:0x80000000
+[      ]*[a-f0-9]+:    b8 f0 00 e0 0e          mov    eax,0xee000f0
 [      ]*[a-f0-9]+:    89 98 f0 00 e0 0e       mov    DWORD PTR \[rax\+0xee000f0\],ebx
 [      ]*[a-f0-9]+:    89 98 f0 00 e0 0e       mov    DWORD PTR \[rax\+0xee000f0\],ebx
 [      ]*[a-f0-9]+:    65 89 98 f0 00 e0 0e    mov    DWORD PTR gs:\[rax\+0xee000f0\],ebx
index b7d63d3286bd83fda141fdd8594823d9cafc9cb7..19e720e9bf4e58dee9b49cf799dfe535f12e76b1 100644 (file)
@@ -16,6 +16,7 @@ Disassembly of section .text:
 [      ]*[a-f0-9]+:    8b 04 25 00 00 00 80    mov    0xffffffff80000000,%eax
 [      ]*[a-f0-9]+:    8b 04 25 ff ff ff 7f    mov    0x7fffffff,%eax
 [      ]*[a-f0-9]+:    a1 00 00 00 80 00 00 00 00      mov    0x80000000,%eax
+[      ]*[a-f0-9]+:    b8 f0 00 e0 0e          mov    \$0xee000f0,%eax
 [      ]*[a-f0-9]+:    89 98 f0 00 e0 0e       mov    %ebx,0xee000f0\(%rax\)
 [      ]*[a-f0-9]+:    89 98 f0 00 e0 0e       mov    %ebx,0xee000f0\(%rax\)
 [      ]*[a-f0-9]+:    65 89 98 f0 00 e0 0e    mov    %ebx,%gs:0xee000f0\(%rax\)
index b3f10283abe672dd1c561d4ac458513ea04306a2..28691628a7baa26fb6ae6b5905a3c9ae8dc2a1af 100644 (file)
@@ -10,6 +10,8 @@
        mov 0x80000000,%eax
 
        .intel_syntax noprefix
+       mov eax, offset 0xEE000F0
+
        mov DWORD PTR [rax+0xEE000F0], ebx
        mov [rax+0xEE000F0], ebx
        mov DWORD PTR gs:[rax+0xEE000F0], ebx
This page took 0.034471 seconds and 4 git commands to generate.