aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-12-28 16:04:41 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-12-28 16:04:41 +0000
commit8d79a8c8d5e86821aa00d711171f835a192edee8 (patch)
tree2b56efb8ac2aec199545d9dbc4577d42dc6602f5 /gas/testsuite
parent4750aaa46469b761f8888012f9d5314d5afc2636 (diff)
downloadgdb-8d79a8c8d5e86821aa00d711171f835a192edee8.zip
gdb-8d79a8c8d5e86821aa00d711171f835a192edee8.tar.gz
gdb-8d79a8c8d5e86821aa00d711171f835a192edee8.tar.bz2
gas/testsuite/
2007-12-28 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/arch-1.d: New file. * gas/i386/arch-1.s: Likewise. * gas/i386/arch-2.d: Likewise. * gas/i386/arch-2.s: Likewise. * gas/i386/arch-3.d: Likewise. * gas/i386/arch-3.s: Likewise. * gas/i386/arch-4.d: Likewise. * gas/i386/arch-4.s: Likewise. * gas/i386/i386.exp: Run arch-1, arch-2, arch-3 and arch-4. opcodes/ 2007-12-28 H.J. Lu <hongjiu.lu@intel.com> * i386-gen.c (cpu_flag_init): Add CpuSSE4_1_Or_5 to CPU_SSE4_1_FLAGS, CPU_SSE4_2_FLAGS and CPU_SSE5_FLAGS. (cpu_flags): Add CpuSSE4_1_Or_5. * i386-init.h: Regenerated. * i386-tbl.h: Likewise. * i386-opc.h (CpuSSE4_1_Or_5): New. (CpuLM): Updated. (i386_cpu_flags): Add cpusse4_1_or_5. * i386-opc.tbl: Use CpuSSE4_1_Or_5 instead of CpuSSE4_1|CpuSSE5 on ptest roundpd, roundps, roundsd and roundss.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog13
-rw-r--r--gas/testsuite/gas/i386/arch-1.d15
-rw-r--r--gas/testsuite/gas/i386/arch-1.s9
-rw-r--r--gas/testsuite/gas/i386/arch-2.d15
-rw-r--r--gas/testsuite/gas/i386/arch-2.s9
-rw-r--r--gas/testsuite/gas/i386/arch-3.d15
-rw-r--r--gas/testsuite/gas/i386/arch-3.s9
-rw-r--r--gas/testsuite/gas/i386/arch-4.d15
-rw-r--r--gas/testsuite/gas/i386/arch-4.s9
-rw-r--r--gas/testsuite/gas/i386/i386.exp4
10 files changed, 113 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 245646d..47d8869 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,16 @@
+2007-12-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/i386/arch-1.d: New file.
+ * gas/i386/arch-1.s: Likewise.
+ * gas/i386/arch-2.d: Likewise.
+ * gas/i386/arch-2.s: Likewise.
+ * gas/i386/arch-3.d: Likewise.
+ * gas/i386/arch-3.s: Likewise.
+ * gas/i386/arch-4.d: Likewise.
+ * gas/i386/arch-4.s: Likewise.
+
+ * gas/i386/i386.exp: Run arch-1, arch-2, arch-3 and arch-4.
+
2007-12-23 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/compat-intel.d: Pass -mmnemonic=att to assembler.
diff --git a/gas/testsuite/gas/i386/arch-1.d b/gas/testsuite/gas/i386/arch-1.d
new file mode 100644
index 0000000..aad416d
--- /dev/null
+++ b/gas/testsuite/gas/i386/arch-1.d
@@ -0,0 +1,15 @@
+#objdump: -dw
+#name: i386 arch 1
+
+.*: file format .*
+
+Disassembly of section .text:
+
+0+ <.text>:
+[ ]*[a-f0-9]+: 66 0f 38 17 c1 ptest %xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 09 c1 00 roundpd \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 08 c1 00 roundps \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 0b c1 00 roundsd \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 0a c1 00 roundss \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 38 41 d9 phminposuw %xmm1,%xmm3
+#pass
diff --git a/gas/testsuite/gas/i386/arch-1.s b/gas/testsuite/gas/i386/arch-1.s
new file mode 100644
index 0000000..96e7cef
--- /dev/null
+++ b/gas/testsuite/gas/i386/arch-1.s
@@ -0,0 +1,9 @@
+# Test .arch .sse4.1
+.arch generic32
+.arch .sse4.1
+ptest %xmm1,%xmm0
+roundpd $0,%xmm1,%xmm0
+roundps $0,%xmm1,%xmm0
+roundsd $0,%xmm1,%xmm0
+roundss $0,%xmm1,%xmm0
+phminposuw %xmm1,%xmm3
diff --git a/gas/testsuite/gas/i386/arch-2.d b/gas/testsuite/gas/i386/arch-2.d
new file mode 100644
index 0000000..fa4e67c
--- /dev/null
+++ b/gas/testsuite/gas/i386/arch-2.d
@@ -0,0 +1,15 @@
+#objdump: -dw
+#name: i386 arch 2
+
+.*: file format .*
+
+Disassembly of section .text:
+
+0+ <.text>:
+[ ]*[a-f0-9]+: 66 0f 38 17 c1 ptest %xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 09 c1 00 roundpd \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 08 c1 00 roundps \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 0b c1 00 roundsd \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 0a c1 00 roundss \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: f2 0f 38 f1 d9 crc32l %ecx,%ebx
+#pass
diff --git a/gas/testsuite/gas/i386/arch-2.s b/gas/testsuite/gas/i386/arch-2.s
new file mode 100644
index 0000000..87ecac9
--- /dev/null
+++ b/gas/testsuite/gas/i386/arch-2.s
@@ -0,0 +1,9 @@
+# Test .arch .sse4.2
+.arch generic32
+.arch .sse4.2
+ptest %xmm1,%xmm0
+roundpd $0,%xmm1,%xmm0
+roundps $0,%xmm1,%xmm0
+roundsd $0,%xmm1,%xmm0
+roundss $0,%xmm1,%xmm0
+crc32 %ecx,%ebx
diff --git a/gas/testsuite/gas/i386/arch-3.d b/gas/testsuite/gas/i386/arch-3.d
new file mode 100644
index 0000000..e60e0d1
--- /dev/null
+++ b/gas/testsuite/gas/i386/arch-3.d
@@ -0,0 +1,15 @@
+#objdump: -dw
+#name: i386 arch 3
+
+.*: file format .*
+
+Disassembly of section .text:
+
+0+ <.text>:
+[ ]*[a-f0-9]+: 66 0f 38 17 c1 ptest %xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 09 c1 00 roundpd \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 08 c1 00 roundps \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 0b c1 00 roundsd \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 0a c1 00 roundss \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: f2 0f 38 f1 d9 crc32l %ecx,%ebx
+#pass
diff --git a/gas/testsuite/gas/i386/arch-3.s b/gas/testsuite/gas/i386/arch-3.s
new file mode 100644
index 0000000..8886d17
--- /dev/null
+++ b/gas/testsuite/gas/i386/arch-3.s
@@ -0,0 +1,9 @@
+# Test .arch .sse4
+.arch generic32
+.arch .sse4
+ptest %xmm1,%xmm0
+roundpd $0,%xmm1,%xmm0
+roundps $0,%xmm1,%xmm0
+roundsd $0,%xmm1,%xmm0
+roundss $0,%xmm1,%xmm0
+crc32 %ecx,%ebx
diff --git a/gas/testsuite/gas/i386/arch-4.d b/gas/testsuite/gas/i386/arch-4.d
new file mode 100644
index 0000000..43530f3
--- /dev/null
+++ b/gas/testsuite/gas/i386/arch-4.d
@@ -0,0 +1,15 @@
+#objdump: -dw
+#name: i386 arch 4
+
+.*: file format .*
+
+Disassembly of section .text:
+
+0+ <.text>:
+[ ]*[a-f0-9]+: 66 0f 38 17 c1 ptest %xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 09 c1 00 roundpd \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 08 c1 00 roundps \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 0b c1 00 roundsd \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 66 0f 3a 0a c1 00 roundss \$0x0,%xmm1,%xmm0
+[ ]*[a-f0-9]+: 0f 7a 12 ca frczss %xmm2,%xmm1
+#pass
diff --git a/gas/testsuite/gas/i386/arch-4.s b/gas/testsuite/gas/i386/arch-4.s
new file mode 100644
index 0000000..364d2ed
--- /dev/null
+++ b/gas/testsuite/gas/i386/arch-4.s
@@ -0,0 +1,9 @@
+# Test .arch .sse5
+.arch generic32
+.arch .sse5
+ptest %xmm1,%xmm0
+roundpd $0,%xmm1,%xmm0
+roundps $0,%xmm1,%xmm0
+roundsd $0,%xmm1,%xmm0
+roundss $0,%xmm1,%xmm0
+frczss %xmm2, %xmm1
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 22812b8..24d0120 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -98,6 +98,10 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "i386"
run_dump_test "compat"
run_dump_test "compat-intel"
+ run_dump_test "arch-1"
+ run_dump_test "arch-2"
+ run_dump_test "arch-3"
+ run_dump_test "arch-4"
# These tests require support for 8 and 16 bit relocs,
# so we only run them for ELF and COFF targets.