]> granicus.if.org Git - yasm/commitdiff
Fix copy-and-paste error causing xmm9-xmm15 to be unusable.
authorPeter Johnson <peter@tortall.net>
Sat, 18 Oct 2003 01:48:46 +0000 (01:48 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 18 Oct 2003 01:48:46 +0000 (01:48 -0000)
Bugzilla Bug 16
Reported by: Igor Astakhov <asigor@stl.sarov.ru>

svn path=/trunk/yasm/; revision=1068

modules/arch/x86/tests/Makefile.inc
modules/arch/x86/tests/xmm64.asm [new file with mode: 0644]
modules/arch/x86/tests/xmm64.errwarn [new file with mode: 0644]
modules/arch/x86/tests/xmm64.hex [new file with mode: 0644]
modules/arch/x86/x86id.re

index aa5d59db7c91fa68b9cd88e1d70ab792eb49e720..0aae20c5f4f76cdb800550fcf7317d4f1bee73ee 100644 (file)
@@ -104,3 +104,6 @@ EXTRA_DIST += modules/arch/x86/tests/twobytemem.hex
 EXTRA_DIST += modules/arch/x86/tests/x86label.asm
 EXTRA_DIST += modules/arch/x86/tests/x86label.errwarn
 EXTRA_DIST += modules/arch/x86/tests/x86label.hex
+EXTRA_DIST += modules/arch/x86/tests/xmm64.asm
+EXTRA_DIST += modules/arch/x86/tests/xmm64.errwarn
+EXTRA_DIST += modules/arch/x86/tests/xmm64.hex
diff --git a/modules/arch/x86/tests/xmm64.asm b/modules/arch/x86/tests/xmm64.asm
new file mode 100644 (file)
index 0000000..4a963f5
--- /dev/null
@@ -0,0 +1,3 @@
+[bits 64]
+xorps xmm2, xmm2
+xorps xmm10, xmm10
diff --git a/modules/arch/x86/tests/xmm64.errwarn b/modules/arch/x86/tests/xmm64.errwarn
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/modules/arch/x86/tests/xmm64.hex b/modules/arch/x86/tests/xmm64.hex
new file mode 100644 (file)
index 0000000..c387aa2
--- /dev/null
@@ -0,0 +1,7 @@
+0f 
+57 
+d2 
+45 
+0f 
+57 
+d2 
index 1724c5a5bc58767e2a473a1e3ef6a9be582e1c90..7f5cbe64b60a6ee7fc26a9e831592346db42cac4 100644 (file)
@@ -2453,7 +2453,7 @@ yasm_x86__parse_check_id(yasm_arch *arch, unsigned long data[4],
                              N_("`%s' is a register in 64-bit mode"), oid);
                return YASM_ARCH_CHECK_ID_NONE;
            }
-           data[0] = X86_REG64 | (10+oid[4]-'0');
+           data[0] = X86_XMMREG | (10+oid[4]-'0');
            return YASM_ARCH_CHECK_ID_REG;
        }