bfd/
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / intelbad.s
index c4b03f3dbd836977a9b3ede006cf13272a2f8026..f3bb96dcfb334cf014d453d58017e6dcf2d925b4 100644 (file)
@@ -89,3 +89,77 @@ start:
        push    1 1
        push    1 +
        push    1 * * 1
+
+       # memory references
+       mov     eax, [ecx*3]
+       mov     eax, [3*ecx]
+       mov     eax, [-1*ecx + 1]
+       mov     eax, [esp + esp]
+       mov     eax, [eax - 1*ecx + 1]
+       mov     eax, [(eax-1) * (eax-1)]
+       mov     eax, [eax-1 xor eax-1]
+       mov     eax, [(eax-1) xor (eax-1)]
+       mov     eax, [not eax + 1]
+       mov     eax, [ecx*2 + edx*4]
+       mov     eax, [2*ecx + 4*edx]
+       mov     eax, [eax]1[ecx]                # ugly diag
+       mov     eax, [eax][ecx]1                # ugly diag
+       mov     eax, eax[ecx]                   # ugly diag
+       mov     eax, es[ecx]
+       mov     eax, cr0[ecx]
+       mov     eax, [eax]ecx
+       mov     eax, [eax]+ecx
+       mov     eax, [eax]+ecx*2
+       mov     eax, [eax]+2*ecx
+       mov     eax, [[eax]ecx]
+       mov     eax, eax:[ecx]
+
+       mov     eax, [ss]
+       mov     eax, [st]
+       mov     eax, [mm0]
+       mov     eax, [xmm0]
+       mov     eax, [cr0]
+       mov     eax, [dr7]
+
+       mov     eax, [ss+edx]
+       mov     eax, [st+edx]
+       mov     eax, [mm0+edx]
+       mov     eax, [xmm0+edx]
+       mov     eax, [cr0+edx]
+       mov     eax, [dr7+edx]
+
+       mov     eax, [edx+ss]
+       mov     eax, [edx+st]
+       mov     eax, [edx+cr0]
+       mov     eax, [edx+dr7]
+       mov     eax, [edx+mm0]
+       mov     eax, [edx+xmm0]
+
+       lea     eax, [bx+si*1]
+       lea     eax, [bp+si*2]
+       lea     eax, [bx+di*4]
+       lea     eax, [bp+di*8]
+       lea     eax, [bx+1*si]
+       lea     eax, [bp+2*si]
+       lea     eax, [bx+4*di]
+       lea     eax, [bp+8*di]
+
+       mov     eax, [ah]
+       mov     eax, [ax]
+       mov     eax, [eax+bx]
+       mov     eax, offset [1*eax]
+       mov     eax, offset 1*eax
+       mov     eax, offset x[eax]              # ugly diag
+       mov     eax, offset [x][eax]            # ugly diag
+       mov     eax, flat x
+       mov     eax, flat [x]
+       mov     eax, es:eax
+
+       mov     eax, offset [eax]
+       mov     eax, offset eax
+       mov     eax, offset offset eax
+       mov     eax, es:ss:[eax]
+       mov     eax, es:[eax]+ss:[eax]
+
+       mov     eax, 3:5
+       call    3:[5]
This page took 0.024329 seconds and 4 git commands to generate.