gas/testsuite/
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 18 Jul 2006 20:25:41 +0000 (20:25 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 18 Jul 2006 20:25:41 +0000 (20:25 +0000)
2006-07-18  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/opcode.s: Add sldt, smsw and str.
* gas/i386/x86-64-opcode.s: Likewise.

* gas/i386/opcode.d: Updated.
* gas/i386/x86-64-opcode.d: Likewise.

opcodes/

2006-07-18  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (grps): Change "sldtQ", "strQ" and "smswQ" to
"sldt", "str" and "smsw".

gas/testsuite/ChangeLog
gas/testsuite/gas/i386/opcode.d
gas/testsuite/gas/i386/opcode.s
gas/testsuite/gas/i386/x86-64-opcode.d
gas/testsuite/gas/i386/x86-64-opcode.s
opcodes/ChangeLog
opcodes/i386-dis.c

index 16b48ac8a802b27cd4d68f6ec5617eab51e7610a..b3b6d3e31e288bbd883a139b7a0bf110d059e05f 100644 (file)
@@ -1,3 +1,11 @@
+2006-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gas/i386/opcode.s: Add sldt, smsw and str.
+       * gas/i386/x86-64-opcode.s: Likewise.
+
+       * gas/i386/opcode.d: Updated.
+       * gas/i386/x86-64-opcode.d: Likewise.
+
 2006-07-18  Paul Brook  <paul@codesourcery.com>
 
        * gas/arm/thumb2_add.d: New test.
index fa58807c5ef9f3c71615237a902f9befeeeae489..9bcba0955020ae68e0b1fa935d02b750cfa18f10 100644 (file)
@@ -573,4 +573,13 @@ Disassembly of section .text:
  9bf:  66 0f be 90 90 90 90 90 [       ]*movsbw 0x90909090\(%eax\),%dx
  9c7:  66 0f c1 90 90 90 90 90 [       ]*xadd   %dx,0x90909090\(%eax\)
  9cf:  66 90 [         ]*xchg   %ax,%ax
+ 9d1:  0f 00 c0 [      ]*sldt   %eax
+ 9d4:  66 0f 00 c0 [   ]*sldt   %ax
+ 9d8:  0f 00 00 [      ]*sldt   \(%eax\)
+ 9db:  0f 01 e0 [      ]*smsw   %eax
+ 9de:  66 0f 01 e0 [   ]*smsw   %ax
+ 9e2:  0f 01 20 [      ]*smsw   \(%eax\)
+ 9e5:  0f 00 c8 [      ]*str    %eax
+ 9e8:  66 0f 00 c8 [   ]*str    %ax
+ 9ec:  0f 00 08 [      ]*str    \(%eax\)
        \.\.\.
index a03ce13099fa0b6c2f8389e0f3d75fcb22183031..f289042be46a3f388680a0e08a9a9768884b120a 100644 (file)
@@ -568,5 +568,15 @@ foo:
 
  xchg   %ax,%ax
 
+ sldt  %eax
+ sldt  %ax
+ sldt  (%eax)
+ smsw  %eax
+ smsw  %ax
+ smsw  (%eax)
+ str   %eax
+ str   %ax
+ str   (%eax)
+
 # Force a good alignment.
  .p2align 4,0
index f6427d4e00d26df5869f6582666cad3d1bc9cfa7..669782ac40a95e8238b5e0741e322dd5eddc0fad 100644 (file)
@@ -263,6 +263,9 @@ Disassembly of section .text:
 [       ]*[0-9a-f]+:[   ]+41 0f 01 38[  ]+invlpg[       ]+\(%r8\)[      ]*(#.*)*
 [       ]*[0-9a-f]+:[   ]+0f 01 38[     ]+invlpg[       ]+\(%rax\)[     ]*(#.*)*
 [       ]*[0-9a-f]+:[   ]+0f 00 c0[     ]+sldt[         ]+%eax[         ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+48 0f 00 c0[  ]+sldt[         ]+%rax[         ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+66 0f 00 c0[  ]+sldt[         ]+%ax[  ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+0f 00 00[     ]+sldt[         ]+\(%rax\)[     ]*(#.*)*
 [       ]*[0-9a-f]+:[   ]+e6 00[        ]+out[  ]+%al,\$0[x0]*[         ]*(#.*)*
 [       ]*[0-9a-f]+:[   ]+66 e7 00[     ]+out[  ]+%ax,\$0[x0]*[         ]*(#.*)*
 [       ]*[0-9a-f]+:[   ]+e7 00[        ]+out[  ]+%eax,\$0[x0]*[        ]*(#.*)*
@@ -271,4 +274,12 @@ Disassembly of section .text:
 [       ]*[0-9a-f]+:[   ]+90[   ]+nop[  ]*(#.*)*
 [       ]*[0-9a-f]+:[   ]+48 90[        ]+rex64 nop[    ]*(#.*)*
 [       ]*[0-9a-f]+:[   ]+49 90[        ]+xchg[         ]+%rax,%r8[     ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+48 0f 01 e0[  ]+smsw[         ]+%rax[         ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+0f 01 e0[     ]+smsw[         ]+%eax[         ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+66 0f 01 e0[  ]+smsw[         ]+%ax[  ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+0f 01 20[     ]+smsw[         ]+\(%rax\)[     ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+48 0f 00 c8[  ]+str[  ]+%rax[         ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+0f 00 c8[     ]+str[  ]+%eax[         ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+66 0f 00 c8[  ]+str[  ]+%ax[  ]*(#.*)*
+[       ]*[0-9a-f]+:[   ]+0f 00 08[     ]+str[  ]+\(%rax\)[     ]*(#.*)*
 #pass
index 8d3de00a8e68881b96f95db651aa77df1f7f815a..e40dc29c82cd6c31079b6acc62051fe493163d85 100644 (file)
        # SLDT
 #        SLDT (%eax)                 #  --  67  -- --   0F 00 00                        ; A32 override: (Addr64) = ZEXT(Addr32 )
         SLDT %eax                    #  --  --  -- --   0F 00 C0
+        SLDT %rax                    #  --  --  -- 48   0F 00 C0
+        SLDT %ax                     #  66  --  -- --   0F 00 C0
+        SLDT (%rax)                  #  --  --  -- --   0F 00 00
 
        # SWAPGS
 
        xchg %ax,%ax                  # 66  --   -- --   90
        xchg %eax,%eax                # --  --   -- --   87 C0
        xchg %rax,%rax                # --  --   -- --   90
-       rex64 xchg %rax,%rax          # 48  --   -- --   90
+       rex64 xchg %rax,%rax          # --  --   -- 48   90
        xchg %rax,%r8                 # --  --   -- 49   90
 
+        smsw %rax                    #  --  --  -- 48   0F 01 e0
+        smsw %eax                    #  --  --  -- --   0F 01 e0
+        smsw %ax                     #  66  --  -- --   0F 01 e0
+        smsw (%rax)                  #  --  --  -- --   0F 01 20
+
+        str %rax                     #  --  --  -- 48   0F 00 c8
+        str %eax                     #  --  --  -- --   0F 00 c8
+        str %ax                              #  66  --  -- --   0F 00 c8
+        str (%rax)                   #  --  --  -- --   0F 00 08
+
  .p2align 4,0
index 4ee22210bc9900ef22466f4f4a840051bbe0340e..eefd66275215c8ec7fda7f41e5a34af64ba42680 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * i386-dis.c (grps): Change "sldtQ", "strQ" and "smswQ" to
+       "sldt", "str" and "smsw".
+
 2006-07-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR binutils/2829
index 66b2d9542942ab1142998469e416ddacd2476380..80898c9352730d7b5e03627ee36a37466b5007fb 100644 (file)
@@ -1398,8 +1398,8 @@ static const struct dis386 grps[][8] = {
   },
   /* GRP6 */
   {
-    { "sldtQ", Ev, XX, XX, XX },
-    { "strQ",  Ev, XX, XX, XX },
+    { "sldt",  Ev, XX, XX, XX },
+    { "str",   Ev, XX, XX, XX },
     { "lldt",  Ew, XX, XX, XX },
     { "ltr",   Ew, XX, XX, XX },
     { "verr",  Ew, XX, XX, XX },
@@ -1413,7 +1413,7 @@ static const struct dis386 grps[][8] = {
     { "sidt{Q|IQ||}", PNI_Fixup, 0, XX, XX, XX },
     { "lgdt{Q|Q||}",    M, XX, XX, XX },
     { "lidt{Q|Q||}",    SVME_Fixup, 0, XX, XX, XX },
-    { "smswQ", Ev, XX, XX, XX },
+    { "smsw",  Ev, XX, XX, XX },
     { "(bad)", XX, XX, XX, XX },
     { "lmsw",  Ew, XX, XX, XX },
     { "invlpg",        INVLPG_Fixup, w_mode, XX, XX, XX },