summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2011-02-14 22:14:51 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2011-02-14 22:14:51 +0300
commit2059aa980654b3d5fc25a7f4a08fc58fa4167dc5 (patch)
tree4b1a2e3df56fe7461463875fa5d159b33e7c1583
parent9344270f5bce0dfb44c603e375af2499a3a41bd9 (diff)
downloadnasm-2059aa980654b3d5fc25a7f4a08fc58fa4167dc5.tar.gz
nasm-2059aa980654b3d5fc25a7f4a08fc58fa4167dc5.tar.bz2
nasm-2059aa980654b3d5fc25a7f4a08fc58fa4167dc5.zip
test: Add test for BR3174983
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--test/br3174983.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/br3174983.asm b/test/br3174983.asm
new file mode 100644
index 0000000..5b34995
--- /dev/null
+++ b/test/br3174983.asm
@@ -0,0 +1,9 @@
+;Testname=unoptimized; Arguments=-O0 -fbin -obr3174983.bin; Files=stdout stderr br3174983.bin
+;Testname=optimized; Arguments=-Ox -fbin -obr3174983.bin; Files=stdout stderr br3174983.bin
+
+ bits 32
+ vpextrw ecx,xmm0,8 ; c5 f9 c5 c8 08
+ vpextrw ecx,xmm2,3 ; c5 f9 c5 ca 03
+
+ bits 64
+ vpextrw rcx,xmm0,8 ; c5 f9 c5 c8 08