aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-06-23 20:15:34 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-06-23 20:15:34 +0000
commitca164297eba83e474d4da26c737721df1cf94e93 (patch)
tree0f7a451c5b8550f397e9a7626fc260b1de74f48c /gas/testsuite
parentb2a02dda88806553934ab9bc63c1633ae0f83bdf (diff)
downloadgdb-ca164297eba83e474d4da26c737721df1cf94e93.zip
gdb-ca164297eba83e474d4da26c737721df1cf94e93.tar.gz
gdb-ca164297eba83e474d4da26c737721df1cf94e93.tar.bz2
gas/
2003-06-23 H.J. Lu <hongjiu.lu@intel.com> * gas/config/tc-i386.c (md_assemble): Support Intel Precott New Instructions. * gas/config/tc-i386.h (CpuPNI): New. (CpuUnknownFlags): Add CpuPNI. gas/testsuite/ 2003-06-23 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Add prescott. * gas/i386/prescott.d: New file. * gas/i386/prescott.s: Likewise. include/opcode/ 2003-06-23 H.J. Lu <hongjiu.lu@intel.com> * i386.h (i386_optab): Support Intel Precott New Instructions. opcodes/ 2003-06-23 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (PNI_Fixup): New. Fix up "mwait" and "monitor" in Intel Precott New Instructions. (PREGRP27): New. Added for "addsubpd" and "addsubps". (PREGRP28): New. Added for "haddpd" and "haddps". (PREGRP29): New. Added for "hsubpd" and "hsubps". (PREGRP30): New. Added for "movsldup" and "movddup". (PREGRP31): New. Added for "movshdup" and "movhpd". (PREGRP32): New. Added for "lddqu". (dis386_twobyte): Use PREGRP30 to replace the "movlpX" entry. Use PREGRP31 to replace the "movhpX" entry. Use PREGRP28 for entry 0x7c. Use PREGRP29 for entry 0x7d. Use PREGRP27 for entry 0xd0. Use PREGRP32 for entry 0xf0. (twobyte_has_modrm): Updated. (twobyte_uses_SSE_prefix): Likewise. (grps): Use PNI_Fixup in the "sidtQ" entry. (prefix_user_table): Add PREGRP27, PREGRP28, PREGRP29, PREGRP30, PREGRP31 and PREGRP32. (float_mem): Use "fisttp{l||l|}" in entry 1 in opcode 0xdb. Use "fisttpll" in entry 1 in opcode 0xdd. Use "fisttp" in entry 1 in opcode 0xdf.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/i386/i386.exp1
-rw-r--r--gas/testsuite/gas/i386/prescott.d37
-rw-r--r--gas/testsuite/gas/i386/prescott.s34
4 files changed, 79 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index adbdc8f..967c85a 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/i386/i386.exp: Add prescott.
+
+ * gas/i386/prescott.d: New file.
+ * gas/i386/prescott.s: Likewise.
+
2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* gas/mips/elf-rel-got-n32.d: Remove special handling for n32 ABI.
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index cf87c5e..04bf95e 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -56,6 +56,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "absrel"
run_dump_test "pcrel"
run_dump_test "sub"
+ run_dump_test "prescott"
# PIC is only supported on ELF targets.
if { ([istarget "*-*-elf*"] || [istarget "*-*-linux*"] )
diff --git a/gas/testsuite/gas/i386/prescott.d b/gas/testsuite/gas/i386/prescott.d
new file mode 100644
index 0000000..9c5ba92
--- /dev/null
+++ b/gas/testsuite/gas/i386/prescott.d
@@ -0,0 +1,37 @@
+#objdump: -dw
+#name: i386 prescott
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+0+000 <foo>:
+ 0: 66 0f d0 01 [ ]*addsubpd \(%ecx\),%xmm0
+ 4: 66 0f d0 ca [ ]*addsubpd %xmm2,%xmm1
+ 8: f2 0f d0 13 [ ]*addsubps \(%ebx\),%xmm2
+ c: f2 0f d0 dc [ ]*addsubps %xmm4,%xmm3
+ 10: df 88 90 90 90 90 [ ]*fisttp 0x90909090\(%eax\)
+ 16: db 88 90 90 90 90 [ ]*fisttpl 0x90909090\(%eax\)
+ 1c: dd 88 90 90 90 90 [ ]*fisttpll 0x90909090\(%eax\)
+ 22: dd 88 90 90 90 90 [ ]*fisttpll 0x90909090\(%eax\)
+ 28: dd 88 90 90 90 90 [ ]*fisttpll 0x90909090\(%eax\)
+ 2e: 66 0f 7c 65 00 [ ]*haddpd 0x0\(%ebp\),%xmm4
+ 33: 66 0f 7c ee [ ]*haddpd %xmm6,%xmm5
+ 37: f2 0f 7c 37 [ ]*haddps \(%edi\),%xmm6
+ 3b: f2 0f 7c f8 [ ]*haddps %xmm0,%xmm7
+ 3f: 66 0f 7d c1 [ ]*hsubpd %xmm1,%xmm0
+ 43: 66 0f 7d 0a [ ]*hsubpd \(%edx\),%xmm1
+ 47: f2 0f 7d d2 [ ]*hsubps %xmm2,%xmm2
+ 4b: f2 0f 7d 1c 24 [ ]*hsubps \(%esp,1\),%xmm3
+ 50: f2 0f f0 2e [ ]*lddqu \(%esi\),%xmm5
+ 54: 0f 01 c8 [ ]*monitor %eax,%ecx,%edx
+ 57: 0f 01 c8 [ ]*monitor %eax,%ecx,%edx
+ 5a: f2 0f 12 f7 [ ]*movddup %xmm7,%xmm6
+ 5e: f2 0f 12 38 [ ]*movddup \(%eax\),%xmm7
+ 62: f3 0f 16 01 [ ]*movshdup \(%ecx\),%xmm0
+ 66: f3 0f 16 ca [ ]*movshdup %xmm2,%xmm1
+ 6a: f3 0f 12 13 [ ]*movsldup \(%ebx\),%xmm2
+ 6e: f3 0f 12 dc [ ]*movsldup %xmm4,%xmm3
+ 72: 0f 01 c9 [ ]*mwait %eax,%ecx
+ 75: 0f 01 c9 [ ]*mwait %eax,%ecx
+ ...
diff --git a/gas/testsuite/gas/i386/prescott.s b/gas/testsuite/gas/i386/prescott.s
new file mode 100644
index 0000000..8a3651d
--- /dev/null
+++ b/gas/testsuite/gas/i386/prescott.s
@@ -0,0 +1,34 @@
+#Prescott New Instructions
+
+ .text
+foo:
+ addsubpd (%ecx),%xmm0
+ addsubpd %xmm2,%xmm1
+ addsubps (%ebx),%xmm2
+ addsubps %xmm4,%xmm3
+ fisttp 0x90909090(%eax)
+ fisttpl 0x90909090(%eax)
+ fisttpd 0x90909090(%eax)
+ fisttpq 0x90909090(%eax)
+ fisttpll 0x90909090(%eax)
+ haddpd 0x0(%ebp),%xmm4
+ haddpd %xmm6,%xmm5
+ haddps (%edi),%xmm6
+ haddps %xmm0,%xmm7
+ hsubpd %xmm1,%xmm0
+ hsubpd (%edx),%xmm1
+ hsubps %xmm2,%xmm2
+ hsubps (%esp,1),%xmm3
+ lddqu (%esi),%xmm5
+ monitor
+ monitor %eax,%ecx,%edx
+ movddup %xmm7,%xmm6
+ movddup (%eax),%xmm7
+ movshdup (%ecx),%xmm0
+ movshdup %xmm2,%xmm1
+ movsldup (%ebx),%xmm2
+ movsldup %xmm4,%xmm3
+ mwait
+ mwait %eax,%ecx
+
+ .p2align 4,0