coff: Use predefined macro in common section flags
[nasm.git] / test / movimm.asm
blobc34c1669f807f39418472c3e1fc2fffecb5bb925
1 ;Testname=unoptimized; Arguments=-fbin -omovimm.bin -O0; Files=stdout stderr movimm.bin
2 ;Testname=optimized; Arguments=-fbin -omovimm.bin -Ox; Files=stdout stderr movimm.bin
3 bits 64
5 mov rax,1234567890abcdefh
6 mov eax,1234567890abcdefh
7 mov rax,dword 1234567890abcdefh
8 mov rax,qword 1234567890abcdefh
9 mov dword [rsi],1234567890abcdefh
10 mov qword [rsi],1234567890abcdefh
11 mov dword [rsi],dword 1234567890abcdefh
12 mov qword [rsi],dword 1234567890abcdefh
13 ; mov qword [rsi],qword 1234567890abcdefh ; Error
14 ; mov [rsi],qword 1234567890abcdefh ; Error
15 mov [rsi],dword 1234567890abcdefh
17 ; The optimizer probably should compact these forms, doesn't yet?
18 mov rax,12345678h
19 mov eax,12345678h
20 mov rax,dword 12345678h
21 mov rax,qword 12345678h
22 mov dword [rsi],12345678h
23 mov qword [rsi],12345678h
24 mov dword [rsi],dword 12345678h
25 mov qword [rsi],dword 12345678h
26 ; mov qword [rsi],qword 12345678h ; Error
27 ; mov [rsi],qword 12345678h ; Error
28 mov [rsi],dword 12345678h