From 61d4e56d1ba59b80d30efceb4b303bb27aa4510a Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Mon, 4 Feb 2008 19:19:43 +0000 Subject: [PATCH] * gas/mips/mips.exp: Call mips_arch_create for Octeon. Invoke Octeon tests. * gas/mips/octeon.s, gas/mips/octeon.d: New test. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/mips/mips.exp | 5 +++++ gas/testsuite/gas/mips/octeon.d | 11 +++++++++++ gas/testsuite/gas/mips/octeon.s | 6 ++++++ 4 files changed, 28 insertions(+) create mode 100644 gas/testsuite/gas/mips/octeon.d create mode 100644 gas/testsuite/gas/mips/octeon.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 2cd9b343b65..11f894bf9ef 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-02-04 Adam Nemet + + * 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 * 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 b9d7dd5e0e8..435ceae34f6 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 00000000000..130cff2d8ff --- /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]+ : +.*: 0000008f synciobdma +#pass diff --git a/gas/testsuite/gas/mips/octeon.s b/gas/testsuite/gas/mips/octeon.s new file mode 100644 index 00000000000..20c584adcf4 --- /dev/null +++ b/gas/testsuite/gas/mips/octeon.s @@ -0,0 +1,6 @@ + .text + .set noreorder + +sync_insns: + synciobdma + -- 2.30.2