BR 2029472: Wrong operand size for VMREAD/VMWRITE in 64-bit mode
[nasm.git] / test / vmread.asm
blob1b6ac708051c6f2b7dba44f43c3e56fc7ea24678
1 ;Testname=test; Arguments=-fbin -ovmread.bin; Files=.stdout .stderr vmread.bin
3 bits 32
4 vmread dword [0], eax
5 vmwrite eax, dword [0]
7 bits 64
8 vmread qword [0], rax
9 vmwrite rax, qword [0]
11 %ifdef ERROR
12 bits 32
13 vmread qword [0], eax
14 vmwrite eax, qword [0]
16 bits 64
17 vmread dword [0], eax
18 vmwrite eax, dword [0]
20 vmread qword [0], eax
21 vmwrite eax, qword [0]
22 %endif