summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-11-28 12:11:24 -0800
committerH. Peter Anvin <hpa@zytor.com>2013-11-28 12:21:11 -0800
commit621a69ac5c2c2e3339c0bc0cb3e9cbf2c136bebf (patch)
tree4b2ac40d8cf58e619db984114583f80cf78a9adc /test
parent2e15eca688ac1550ab26be0a071df1e868776449 (diff)
downloadnasm-621a69ac5c2c2e3339c0bc0cb3e9cbf2c136bebf.tar.gz
nasm-621a69ac5c2c2e3339c0bc0cb3e9cbf2c136bebf.tar.bz2
nasm-621a69ac5c2c2e3339c0bc0cb3e9cbf2c136bebf.zip
Add {vex3} and {vex2} prefixes by analogy with {evex}
Allow specifying {vex3} or {vex2} (the latter is currently always redundant, unless we end up with instructions at some point can be specified with legacy prefixes or VEX) to select a specific encoding of VEX-encoded instructions. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/vex.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/vex.asm b/test/vex.asm
new file mode 100644
index 0000000..6772c7c
--- /dev/null
+++ b/test/vex.asm
@@ -0,0 +1,9 @@
+ bits 64
+ vcomisd xmm0,xmm31
+ vcomisd xmm0,xmm1
+ {vex2} vcomisd xmm0,xmm1
+ {vex3} vcomisd xmm0,xmm1
+ {evex} vcomisd xmm0,xmm1
+%ifdef ERROR
+ {vex3} add eax,edx
+%endif