aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-12-22 14:06:31 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-12-22 14:06:31 +0000
commit9d1416696615c74b8316739150d03ed7f95f2e11 (patch)
tree599c41642ef1cece74c1f25d7beec5ec1c526dce /gas
parent0ce17860b08954feeebb8450f8f3f7f454de57d5 (diff)
downloadfsf-binutils-gdb-9d1416696615c74b8316739150d03ed7f95f2e11.zip
fsf-binutils-gdb-9d1416696615c74b8316739150d03ed7f95f2e11.tar.gz
fsf-binutils-gdb-9d1416696615c74b8316739150d03ed7f95f2e11.tar.bz2
binutils/
2007-12-22 H.J. Lu <hongjiu.lu@intel.com> * doc/binutils.texi: Document the new intel-mnemonic and intel-mnemonic options for i386 disassembler. gas/testsuite/ 2007-12-22 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/compat-intel.d: New file. * gas/i386/compat.d: Likewise. * gas/i386/compat.s: Likewise. * gas/i386/i386.exp: Run compat. opcodes/ 2007-12-22 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (intel_mnemonic): New. (print_i386_disassembler_options): Display att-mnemonic and intel-mnemonic options. (print_insn): Handle att-mnemonic and intel-mnemonic. (float_reg): Replace SYSV386_COMPAT with "!M" and "M". (putop): Handle "!M" and "M".
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog14
-rw-r--r--gas/testsuite/gas/i386/compat-intel.d26
-rw-r--r--gas/testsuite/gas/i386/compat.d25
-rw-r--r--gas/testsuite/gas/i386/compat.s18
-rw-r--r--gas/testsuite/gas/i386/i386.exp2
5 files changed, 82 insertions, 3 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index c95d172..d85a112 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2007-12-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/i386/compat-intel.d: New file.
+ * gas/i386/compat.d: Likewise.
+ * gas/i386/compat.s: Likewise.
+
+ * gas/i386/i386.exp: Run compat.
+
2007-12-13 Bob Wilson <bob.wilson@acm.org>
* gas/xtensa/all.exp: Run new weak-call test.
@@ -6,9 +14,9 @@
2007-12-11 Catherine Moore <clm@codesourcery.com>
- gas/elf/symtab.s: New test.
- gas/elf/symtab.d: New expected output.
- gas/elf/elf.exp: Run the new symbtab test.
+ * gas/elf/symtab.s: New test.
+ * gas/elf/symtab.d: New expected output.
+ * gas/elf/elf.exp: Run the new symbtab test.
2007-12-10 Richard Sandiford <rsandifo@nildram.co.uk>
diff --git a/gas/testsuite/gas/i386/compat-intel.d b/gas/testsuite/gas/i386/compat-intel.d
new file mode 100644
index 0000000..f252a9b
--- /dev/null
+++ b/gas/testsuite/gas/i386/compat-intel.d
@@ -0,0 +1,26 @@
+#objdump: -d -Mintel-mnemonic
+#name: i386 float Intel mnemonic
+#source: compat.s
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+0+ <.text>:
+[ ]*[a-f0-9]+: dc e3 fsubr st\(3\),st
+[ ]*[a-f0-9]+: de e1 fsubrp st\(1\),st
+[ ]*[a-f0-9]+: de e3 fsubrp st\(3\),st
+[ ]*[a-f0-9]+: de e3 fsubrp st\(3\),st
+[ ]*[a-f0-9]+: dc eb fsub st\(3\),st
+[ ]*[a-f0-9]+: de e9 fsubp st\(1\),st
+[ ]*[a-f0-9]+: de eb fsubp st\(3\),st
+[ ]*[a-f0-9]+: de eb fsubp st\(3\),st
+[ ]*[a-f0-9]+: dc f3 fdivr st\(3\),st
+[ ]*[a-f0-9]+: de f1 fdivrp st\(1\),st
+[ ]*[a-f0-9]+: de f3 fdivrp st\(3\),st
+[ ]*[a-f0-9]+: de f3 fdivrp st\(3\),st
+[ ]*[a-f0-9]+: dc fb fdiv st\(3\),st
+[ ]*[a-f0-9]+: de f9 fdivp st\(1\),st
+[ ]*[a-f0-9]+: de fb fdivp st\(3\),st
+[ ]*[a-f0-9]+: de fb fdivp st\(3\),st
+#pass
diff --git a/gas/testsuite/gas/i386/compat.d b/gas/testsuite/gas/i386/compat.d
new file mode 100644
index 0000000..9629971
--- /dev/null
+++ b/gas/testsuite/gas/i386/compat.d
@@ -0,0 +1,25 @@
+#objdump: -d -Matt-mnemonic
+#name: i386 float AT&T mnemonic
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+0+ <.text>:
+[ ]*[a-f0-9]+: dc e3 fsub %st,%st\(3\)
+[ ]*[a-f0-9]+: de e1 fsubp %st,%st\(1\)
+[ ]*[a-f0-9]+: de e3 fsubp %st,%st\(3\)
+[ ]*[a-f0-9]+: de e3 fsubp %st,%st\(3\)
+[ ]*[a-f0-9]+: dc eb fsubr %st,%st\(3\)
+[ ]*[a-f0-9]+: de e9 fsubrp %st,%st\(1\)
+[ ]*[a-f0-9]+: de eb fsubrp %st,%st\(3\)
+[ ]*[a-f0-9]+: de eb fsubrp %st,%st\(3\)
+[ ]*[a-f0-9]+: dc f3 fdiv %st,%st\(3\)
+[ ]*[a-f0-9]+: de f1 fdivp %st,%st\(1\)
+[ ]*[a-f0-9]+: de f3 fdivp %st,%st\(3\)
+[ ]*[a-f0-9]+: de f3 fdivp %st,%st\(3\)
+[ ]*[a-f0-9]+: dc fb fdivr %st,%st\(3\)
+[ ]*[a-f0-9]+: de f9 fdivrp %st,%st\(1\)
+[ ]*[a-f0-9]+: de fb fdivrp %st,%st\(3\)
+[ ]*[a-f0-9]+: de fb fdivrp %st,%st\(3\)
+#pass
diff --git a/gas/testsuite/gas/i386/compat.s b/gas/testsuite/gas/i386/compat.s
new file mode 100644
index 0000000..1716311
--- /dev/null
+++ b/gas/testsuite/gas/i386/compat.s
@@ -0,0 +1,18 @@
+# Check SYSV mnemonic instructions.
+ .text
+ fsub %st,%st(3)
+ fsubp
+ fsubp %st(3)
+ fsubp %st,%st(3)
+ fsubr %st,%st(3)
+ fsubrp
+ fsubrp %st(3)
+ fsubrp %st,%st(3)
+ fdiv %st,%st(3)
+ fdivp
+ fdivp %st(3)
+ fdivp %st,%st(3)
+ fdivr %st,%st(3)
+ fdivrp
+ fdivrp %st(3)
+ fdivrp %st,%st(3)
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index bdb68ce..70e80bf 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -96,6 +96,8 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "reg"
run_dump_test "reg-intel"
run_dump_test "i386"
+ run_dump_test "compat"
+ run_dump_test "compat-intel"
# These tests require support for 8 and 16 bit relocs,
# so we only run them for ELF and COFF targets.