gas/
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / x86-64-opcode.s
index 839a2c3b63272cd06d556fd782c717edccc04958..dd373427dde1f409e019c4ce37f5bd0809903954 100644 (file)
        # CMP
 
        # MOV
-       MOVw %cs,(%r8)                # 66  --  -- 41   8C 08                            ; REX to access upper reg. O16 for 16-bit operand size
-       MOVw %cs,(%rax)               # 66  --  -- --   8C 08                            ; O16 for 16-bit operand size
-       MOVw %ss,(%r8)                # 66  --  -- 41   8C 10                            ; REX to access upper reg. O16 for 16-bit operand size
-       MOVw %ss,(%rax)               # 66  --  -- --   8C 10                            ; O16 for 16-bit operand size
-       MOVw %fs,(%r8)                # 66  --  -- 41   8C 20                            ; REX to access upper reg. O16 for 16-bit operand size
-       MOVw %fs,(%rax)               # 66  --  -- --   8C 20                            ; O16 for 16-bit operand size
-       MOVl %cs,(%r8)                # --  --  -- 41   8C 08                            ; REX to access upper reg.
-       MOVl %cs,(%rax)               # --  --  -- --   8C 08
-       MOVl %ss,(%r8)                # --  --  -- 41   8C 10                            ; REX to access upper reg.
-       MOVl %ss,(%rax)               # --  --  -- --   8C 10
-       MOVl %fs,(%r8)                # --  --  -- 41   8C 20                            ; REX to access upper reg.
-       MOVl %fs,(%rax)               # --  --  -- --   8C 20
-       MOVl (%r8),%ss                # --  --  -- 41   8E 10                            ; REX to access upper reg.
-       MOVl (%rax),%ss               # --  --  -- --   8E 10
-       MOVl (%r8),%fs                # --  --  -- 41   8E 20                            ; REX to access upper reg.
-       MOVl (%rax),%fs               # --  --  -- --   8E 20
+       MOVw %cs,(%r8)                # --  --  -- 41   8C 08                            ; REX to access upper reg.
+       MOVw %cs,(%rax)               # --  --  -- --   8C 08
+       MOVw %ss,(%r8)                # --  --  -- 41   8C 10                            ; REX to access upper reg.
+       MOVw %ss,(%rax)               # --  --  -- --   8C 10
+       MOVw %fs,(%r8)                # --  --  -- 41   8C 20                            ; REX to access upper reg.
+       MOVw %fs,(%rax)               # --  --  -- --   8C 20
+       MOVw (%r8),%ss                # --  --  -- 41   8E 10                            ; REX to access upper reg.
+       MOVw (%rax),%ss               # --  --  -- --   8E 10
+       MOVw (%r8),%fs                # --  --  -- 41   8E 20                            ; REX to access upper reg.
+       MOVw (%rax),%fs               # --  --  -- --   8E 20
        MOVb $0,(%r8)                 # --  --  -- 41   C6 00 00                         ; REX to access upper reg.
        MOVb $0,(%rax)                # --  --  -- --   C6 00 00
        MOVw $0x7000,(%r8)            # 66  --  -- 41   C7 00 00 70                      ; REX to access upper reg. O16 for 16-bit operand size
        # 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
 
 
        # IN
 
+
+
+       xchg %ax,%ax                  # 66  --   -- --   90
+       xchg %eax,%eax                # --  --   -- --   87 C0
+       xchg %rax,%rax                # --  --   -- --   90
+       rex64 xchg %rax,%rax          # --  --   -- 48   90
+       xchg %rax,%r8                 # --  --   -- 49   90
+       xchg %eax,%r8d                # --  --   -- 41   90
+       xchg %r8d,%eax                # --  --   -- 41   90
+       xchg %eax,%r9d                # --  --   -- 41   91
+       xchg %r9d,%eax                # --  --   -- 41   91
+       xchg %ebx,%eax                # --  --   -- 93
+       xchg %eax,%ebx                # --  --   -- 93
+       xchg %ax,%r8w                 # --  --   -- 66 41 90
+       xchg %r8w,%ax                 # --  --   -- 66 41 90
+       xchg %ax,%r9w                 # --  --   -- 66 41 91
+       xchg %r9w,%ax                 # --  --   -- 66 41 91
+
+        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
This page took 0.024707 seconds and 4 git commands to generate.