* gas/mips/mips.exp: Call mips_arch_create for Octeon. Invoke
authorAdam Nemet <anemet@caviumnetworks.com>
Mon, 4 Feb 2008 19:19:43 +0000 (19:19 +0000)
committerAdam Nemet <anemet@caviumnetworks.com>
Mon, 4 Feb 2008 19:19:43 +0000 (19:19 +0000)
Octeon tests.
* gas/mips/octeon.s, gas/mips/octeon.d: New test.

gas/testsuite/ChangeLog
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/octeon.d [new file with mode: 0644]
gas/testsuite/gas/mips/octeon.s [new file with mode: 0644]

index 2cd9b343b655e86f341b08178afaf282f8920114..11f894bf9efed7af4fc7029463ab391a6b96e551 100644 (file)
@@ -1,3 +1,9 @@
+2008-02-04  Adam Nemet  <anemet@caviumnetworks.com>
+
+       * gas/mips/mips.exp: Call mips_arch_create for Octeon.  Invoke
+       Octeon tests.
+       * gas/mips/octeon.s, gas/mips/octeon.d: New test.
+
 2008-01-31  Marc Gauthier  <marc@tensilica.com>
 
        * gas/all/gas.exp: Recognize Xtensa processor variants.
index b9d7dd5e0e879959bf747ac71967465f2af3a4c6..435ceae34f6aa5ca057cfec778524f2d45118db4 100644 (file)
@@ -361,6 +361,9 @@ mips_arch_create vr5400     64      mips4   { ror } \
 mips_arch_create sb1   64      mips64  { mips3d } \
                        { -march=sb1 -mtune=sb1 } { -mmips:sb1 } \
                        { mipsisa64sb1-*-* mipsisa64sb1el-*-* }
+mips_arch_create octeon 64     mips64r2 {} \
+                       { -march=octeon -mtune=octeon } { -mmips:octeon } \
+                       { mips64octeon*-*-* }
 
 #
 # And now begin the actual tests!  VxWorks uses RELA rather than REL
@@ -761,6 +764,8 @@ if { [istarget mips*-*-vxworks*] } {
     run_dump_test "loongson-2e"
     run_dump_test "loongson-2f"
 
+    run_dump_test "octeon"
+
     run_dump_test_arches "smartmips"   [mips_arch_list_matching mips32 !gpr64]
     run_dump_test_arches "mips32-dsp"  [mips_arch_list_matching mips32r2]
     run_dump_test_arches "mips32-dspr2"        [mips_arch_list_matching mips32r2]
diff --git a/gas/testsuite/gas/mips/octeon.d b/gas/testsuite/gas/mips/octeon.d
new file mode 100644 (file)
index 0000000..130cff2
--- /dev/null
@@ -0,0 +1,11 @@
+#as: -march=octeon
+#objdump: -M reg-names=numeric -dr
+#name: MIPS octeon instructions
+
+.*:     file format .*
+
+Disassembly of section .text:
+
+[0-9a-f]+ <sync_insns>:
+.*:    0000008f        synciobdma
+#pass
diff --git a/gas/testsuite/gas/mips/octeon.s b/gas/testsuite/gas/mips/octeon.s
new file mode 100644 (file)
index 0000000..20c584a
--- /dev/null
@@ -0,0 +1,6 @@
+       .text
+       .set noreorder
+
+sync_insns:
+       synciobdma
+