summaryrefslogtreecommitdiff
path: root/test/invlpga.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-22 22:33:56 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-22 22:35:28 -0700
commitfc565dd3627660c8d6184bc2dcb9a33aaa52e74b (patch)
tree6b899206b86d53a65c5d84ebdcdabf9352bf3691 /test/invlpga.asm
parent438ed48c49520be295ec9d3cae69d426d840dbda (diff)
downloadnasm-fc565dd3627660c8d6184bc2dcb9a33aaa52e74b.tar.gz
Implement INVLPGA according to the documentation
INVLPGA is defined as taking rax,ecx but "the portion of rax used to form the address is determined by the effective address size", so it is really ax/eax/rax.
Diffstat (limited to 'test/invlpga.asm')
-rw-r--r--test/invlpga.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/invlpga.asm b/test/invlpga.asm
new file mode 100644
index 00000000..ae683102
--- /dev/null
+++ b/test/invlpga.asm
@@ -0,0 +1,8 @@
+ bits 32
+ invlpga
+ invlpga ax,ecx
+ invlpga eax,ecx
+ bits 64
+ invlpga
+ invlpga eax,ecx
+ invlpga rax,ecx