NASM 2.04rc6
[nasm/avx512.git] / test / movimm.asm
blobd6450a61946b39ecfc0442031efaa6a5f515a3ea
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