summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2008-04-21 07:56:26 +0000
committerPeter Johnson <peter@tortall.net>2008-04-21 07:56:26 +0000
commite563cbb2d92abb58a525bf998bd5fd8408698440 (patch)
treeb4cf2cf8efaa1d7f42c9acb920d4766e2ab9a9f1 /modules
parent2d36cf72ae9da8b3f205308b79e982dc74fbfcb3 (diff)
downloadyasm-e563cbb2d92abb58a525bf998bd5fd8408698440.tar.gz
Fix AVX instruction misnaming of new vptest variants:
- vptestps should be vtestps - vptestpd should be vtestpd svn path=/trunk/yasm/; revision=2069
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/arch/x86/gen_x86_insn.py4
-rw-r--r--modules/arch/x86/tests/avx.asm26
2 files changed, 15 insertions, 15 deletions
diff --git a/modules/arch/x86/gen_x86_insn.py b/modules/arch/x86/gen_x86_insn.py
index 113d64a2..1f250d10 100755
--- a/modules/arch/x86/gen_x86_insn.py
+++ b/modules/arch/x86/gen_x86_insn.py
@@ -6040,8 +6040,8 @@ add_insn("vcvttpd2dqy", "avx_cvt_xmm128_y", modifiers=[0x66, 0xE6], parser="gas"
add_insn("vcvttpd2dq", "avx_cvt_xmm128", modifiers=[0x66, 0xE6])
# Instructions new to AVX
-add_insn("vptestps", "sse4", modifiers=[0x0E, VEXL0], avx=True)
-add_insn("vptestpd", "sse4", modifiers=[0x0F, VEXL0], avx=True)
+add_insn("vtestps", "sse4", modifiers=[0x0E, VEXL0], avx=True)
+add_insn("vtestpd", "sse4", modifiers=[0x0F, VEXL0], avx=True)
add_group("vbroadcastss",
cpu=["AVX"],
diff --git a/modules/arch/x86/tests/avx.asm b/modules/arch/x86/tests/avx.asm
index 45495033..2a2ad594 100644
--- a/modules/arch/x86/tests/avx.asm
+++ b/modules/arch/x86/tests/avx.asm
@@ -2154,19 +2154,19 @@ vptest ymm1, ymm2
vptest ymm1, [rax]
vptest ymm1, yword [rax]
-vptestps xmm1, xmm2
-vptestps xmm1, [rax]
-vptestps xmm1, dqword [rax]
-vptestps ymm1, ymm2
-vptestps ymm1, [rax]
-vptestps ymm1, yword [rax]
-
-vptestpd xmm1, xmm2
-vptestpd xmm1, [rax]
-vptestpd xmm1, dqword [rax]
-vptestpd ymm1, ymm2
-vptestpd ymm1, [rax]
-vptestpd ymm1, yword [rax]
+vtestps xmm1, xmm2
+vtestps xmm1, [rax]
+vtestps xmm1, dqword [rax]
+vtestps ymm1, ymm2
+vtestps ymm1, [rax]
+vtestps ymm1, yword [rax]
+
+vtestpd xmm1, xmm2
+vtestpd xmm1, [rax]
+vtestpd xmm1, dqword [rax]
+vtestpd ymm1, ymm2
+vtestpd ymm1, [rax]
+vtestpd ymm1, yword [rax]
psubb xmm1, xmm2
psubb xmm1, [rax]