diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/octeon.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/octeon.s | 6 |
4 files changed, 28 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 2cd9b34..11f894b 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -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. diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index b9d7dd5..435ceae 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -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 index 0000000..130cff2 --- /dev/null +++ b/gas/testsuite/gas/mips/octeon.d @@ -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 index 0000000..20c584a --- /dev/null +++ b/gas/testsuite/gas/mips/octeon.s @@ -0,0 +1,6 @@ + .text + .set noreorder + +sync_insns: + synciobdma + |