nasm.h: move "regs.h" to top; make is_register() a bool
[nasm/sigaren-mirror.git] / test / zero_displacement.asm
blob5aa47438ffbd10fd34f5f7e9fe5323a5f6f00ee4
1 ;Testname=O0; Arguments=-O0 -fbin -ozero_displacement.bin; Files=stdout stderr zero_displacement.bin
2 ;Testname=OL; Arguments=-OL -fbin -ozero_displacement.bin; Files=stdout stderr zero_displacement.bin
3 ;Testname=O1; Arguments=-O1 -fbin -ozero_displacement.bin; Files=stdout stderr zero_displacement.bin
4 ;Testname=Ox; Arguments=-Ox -fbin -ozero_displacement.bin; Files=stdout stderr zero_displacement.bin
6 bits 16
8 mov ax, [bx]
9 mov ax, [bx+0]
11 mov ax, [bx+di]
12 mov ax, [bx+di+0]
14 mov ax, [bp]
15 mov ax, [bp+0]
17 bits 32
19 mov eax, [eax]
20 mov eax, [eax+0]
22 mov eax, [eax+ebx]
23 mov eax, [eax+ebx+0]
25 mov eax, [ebp]
26 mov eax, [ebp+0]
28 bits 64
30 mov eax, [rax]
31 mov eax, [rax+0]
33 mov eax, [rax+rbx]
34 mov eax, [rax+rbx+0]
36 mov eax, [rbp]
37 mov eax, [rbp+0]