Replace CpuSSE3 with CpuCX16 for cmpxchg16b
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / intelok.s
index 590d793844b443922562a17020d1119807127f91..eae9c2d50923e1067bb1436a917d0556ca9fd7bd 100644 (file)
@@ -1,5 +1,4 @@
        .intel_syntax noprefix
-       .equiv dword, 4
        .text
 start:
 
@@ -22,6 +21,8 @@ start:
        addsd   xmm0, qword ptr [eax]
        addss   xmm0, [eax]
        addss   xmm0, dword ptr [eax]
+       bound   ax, dword ptr [ecx]
+       bound   eax, qword ptr [ecx]
        call    word ptr [eax]
        call    dword ptr [eax]
        call    fword ptr [eax]
@@ -104,10 +105,52 @@ start:
        mov     eax, qword[eax+dword]
        mov     eax, [tbyte+eax+dword*2]
        mov     eax, tbyte[eax+dword*2]
-#      mov     eax, [word+eax*dword]
-#      mov     eax, word[eax*dword]
-#      mov     eax, [xmmword+(eax+1)*dword]
-#      mov     eax, xmmword[(eax+1)*dword]
+       mov     eax, [word+eax*dword]
+       mov     eax, word[eax*dword]
+       movzx   eax, word ptr byte ptr [eax]
+       movzx   eax, byte ptr [word ptr [eax]]
+       movzx   eax, word ptr es:[eax]
+       movzx   eax, byte ptr [fs:[eax]]
+       movzx   eax, gs:word ptr [eax]
+
+       mov     eax, FLAT:1
+       mov     eax, FLAT:[1]
+       mov     eax, gs:1
+       mov     eax, gs:[1]
+       mov     eax, x
+       mov     eax, FLAT:x
+       mov     eax, gs:x
+       mov     eax, [x]
+
+       mov     eax, [eax*1]
+       mov     eax, [eax*+1]
+       mov     eax, [+1*eax]
+       mov     eax, [eax*+2]
+       mov     eax, [+2*eax]
+       mov     eax, [ecx*dword]
+       mov     eax, [dword*ecx]
+       mov     eax, 1[eax]
+       mov     eax, [eax]+1
+       mov     eax, [eax - 5 + ecx]
+       mov     eax, [eax + 5 and 3 + ecx]
+       mov     eax, [eax + 5 * 3 + ecx]
+       mov     eax, [oword][eax]
+       mov     eax, [eax][oword]
+       mov     eax, xmmword[eax][ecx]
+       mov     eax, [eax]+[ecx]
+       mov     eax, [eax]+1[ecx]
+       mov     eax, [eax+2[ecx]]
+       mov     eax, [eax][ecx]+3
+       mov     eax, [4][eax][ecx]
+       mov     eax, [eax][5][ecx]
+       mov     eax, [eax][ecx][6]
+       mov     eax, [eax+ecx*(2+2)+7]
+       mov     eax, [eax+(ecx+2)*4]
+       mov     eax, [[eax]]
+       mov     eax, [eax[ecx]]
+       mov     eax, [[eax][ecx]]
+       mov     eax, es:[eax]
+       mov     eax, fs:gs:[eax]
 
        # expressions
 
@@ -125,5 +168,52 @@ start:
        push    7 xor 4
        push    8 or 5
 
-       # Force a good alignment.
-       .p2align        4,0
+       push    +dword
+       push    -dword
+       push    not dword
+       push    not +dword
+       push    not -dword
+       push    not not dword
+
+       # offset expressions
+
+       mov     eax, 1
+       mov     eax, [1]
+       mov     eax, dword ptr 1
+       mov     eax, dword ptr [1]
+       mov     eax, offset x
+       mov     eax, offset flat:x
+       mov     eax, offset gs:x
+       mov     eax, offset [x]
+       mov     eax, offset flat:[x]
+       mov     eax, offset gs:[x]
+       mov     eax, [offset x]
+       mov     eax, [offset [x]]
+       mov     eax, dword ptr [offset [x]]
+       mov     eax, FLAT:[offset [x]]
+       mov     eax, gs:[offset [x]]
+       mov     eax, offset [dword ptr [x]]
+       mov     eax, offset [gs:[x]]
+       mov     eax, [eax + offset x]
+       mov     eax, [eax + offset 1]
+       mov     eax, [offset x + eax]
+       mov     eax, [offset 1 + eax]
+       mov     eax, offset x + 1[eax]
+       mov     eax, [eax] + offset x
+       mov     eax, [eax] + offset 1
+       mov     eax, offset x + [1]
+       mov     eax, [offset x] - [1]
+       mov     eax, offset x + es:[2]
+       mov     eax, offset x + offset es:[3]
+       mov     eax, [4] + offset x
+       mov     eax, [5] + [offset x]
+       mov     eax, ss:[6] + offset x
+       mov     eax, ss:[7] + [offset x]
+
+       # other operands
+       call    3:5
+       jmp     5:[3]
+       call    dword ptr xtrn
+       jmp     word ptr xtrn
+       call    [xtrn]
+       jmp     [xtrn]
This page took 0.026558 seconds and 4 git commands to generate.