test: Add test for BR 3187743
[nasm/nasm.git] / test / test67.asm
blob7cf300d8f19fbedcf6d5c485ab452149318c8e7c
1 ;Testname=unoptimized; Arguments=-fbin -otest67.bin -O0; Files=stdout stderr test67.bin
2 ;Testname=optimized; Arguments=-fbin -otest67.bin -Ox; Files=stdout stderr test67.bin
4 bits 16
6 mov ax,[bx]
7 mov ax,[foo]
8 mov ax,[word foo]
9 mov ax,[dword foo]
10 mov ax,[ebx]
11 rep movsb
12 a16 rep movsb
13 a32 rep movsb
14 a32 mov ax,bx
16 bits 32
18 mov ax,[bx]
19 mov ax,[foo]
20 mov ax,[word foo]
21 mov ax,[dword foo]
22 mov ax,[ebx]
23 rep movsb
24 a16 rep movsb
25 a32 rep movsb
27 bits 64
29 mov ax,[rbx]
30 mov ax,[foo]
31 mov ax,[qword foo]
32 mov ax,[dword foo]
33 mov ax,[ebx]
34 rep movsb
35 a32 rep movsb
36 a64 rep movsb
38 foo: