summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-07-06 09:15:48 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-07-06 09:17:18 -0700
commit0416b232cecdef958328f6d3f54c472bae29e936 (patch)
tree7975853d8b4ef060f5eb217274e9627a7575365f /test
parent4cc10643282ac0879e85352c33b87b2db1e526b3 (diff)
downloadnasm-0416b232cecdef958328f6d3f54c472bae29e936.tar.gz
nasm-0416b232cecdef958328f6d3f54c472bae29e936.tar.bz2
nasm-0416b232cecdef958328f6d3f54c472bae29e936.zip
Add RD*SBASE, WR*SBASE, RDRAND from AVX v7
Add the RD*SBASE, WR*SBASE and RDRAND instructions from version 7 of the AVX specification, Intel document 319433-007. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'test')
-rw-r--r--test/newrdwr.asm24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/newrdwr.asm b/test/newrdwr.asm
new file mode 100644
index 0000000..dcfc194
--- /dev/null
+++ b/test/newrdwr.asm
@@ -0,0 +1,24 @@
+;Testname=test; Arguments=-fbin -onewrdwr.bin; Files=stdout stderr newrdwr.bin
+
+ bits 64
+
+ rdfsbase eax
+ rdfsbase rax
+ rdgsbase eax
+ rdgsbase rax
+ rdrand ax
+ rdrand eax
+ rdrand rax
+ wrfsbase eax
+ wrfsbase rax
+ wrgsbase eax
+ wrgsbase rax
+
+ osp rdfsbase eax
+ osp rdfsbase rax
+ osp rdgsbase eax
+ osp rdgsbase rax
+ osp wrfsbase eax
+ osp wrfsbase rax
+ osp wrgsbase eax
+ osp wrgsbase rax