From 99c14723f3f437e55488c8819241d359414ec9d6 Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Thu, 16 Aug 2001 19:24:33 +0000 Subject: Add support for MIPS R1[02]000 performance counter opcodes. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/mips/mips.exp | 1 + gas/testsuite/gas/mips/perfcount.d | 11 +++++++++++ gas/testsuite/gas/mips/perfcount.s | 7 +++++++ 4 files changed, 25 insertions(+) create mode 100644 gas/testsuite/gas/mips/perfcount.d create mode 100644 gas/testsuite/gas/mips/perfcount.s (limited to 'gas/testsuite') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 2e3c63f..13c3b4e 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2001-08-16 Thiemo Seufer + + * gas/mips/mips.exp: Added performance counter test. + * gas/mips/perfcount.s: New File. Test of performance counter opcodes. + * gas/mips/perfcount.d: Likewise. + 2001-08-12 Nick Clifton * gas/sparc/unalign.s: Extend test to check .uaword with multiple diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 678b470..0263008 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -111,6 +111,7 @@ if { [istarget mips*-*-*] } then { run_dump_test "mips4010" run_dump_test "mips4650" run_dump_test "mips4100" + run_dump_test "perfcount" # Linux uses ELF stabs, which doesn't support line number. setup_xfail "mips*-*-*linux*" run_dump_test "lineno" diff --git a/gas/testsuite/gas/mips/perfcount.d b/gas/testsuite/gas/mips/perfcount.d new file mode 100644 index 0000000..1f0203a --- /dev/null +++ b/gas/testsuite/gas/mips/perfcount.d @@ -0,0 +1,11 @@ +#objdump: -dr --prefix-addresses -mmips:10000 +#name: MIPS R1[20]000 performance counters +#as: -mips4 -march=r10000 + +.*: +file format .*mips.* + +Disassembly of section .text: +0+0000 <[^>]*> mtps a0,0 +0+0004 <[^>]*> mfps a0,1 +0+0008 <[^>]*> mtpc a0,1 +0+000c <[^>]*> mfpc a0,0 diff --git a/gas/testsuite/gas/mips/perfcount.s b/gas/testsuite/gas/mips/perfcount.s new file mode 100644 index 0000000..9e0f7b2 --- /dev/null +++ b/gas/testsuite/gas/mips/perfcount.s @@ -0,0 +1,7 @@ +# source file to test assembly of R1[20]000 performance counter instructions. + +foo: + mtps $4, 0 + mfps $4, 1 + mtpc $4, 1 + mfpc $4, 0 -- cgit v1.1