From accf94ea24b9c135f298e88bf5682da6639ba49c Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 19 Mar 2008 14:52:27 -0700 Subject: [PATCH] Better handling of 32-bit imms in 64-bit moves A much better way to handle the 32-bit immediates in 64-bit moves. Add a test file. --- test/imm64.asm | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/imm64.asm diff --git a/test/imm64.asm b/test/imm64.asm new file mode 100644 index 00000000..ac50c624 --- /dev/null +++ b/test/imm64.asm @@ -0,0 +1,7 @@ + bits 64 + mov rax,11223344h + mov rax,dword 11223344h + mov eax,11223344h + mov [rax],dword 11223344h ; 32-bit operation + mov qword [rax],11223344h + mov qword [rax],dword 11223344h