diff options
author | Thiemo Seufer <ths@networkno.de> | 2001-08-16 19:24:33 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2001-08-16 19:24:33 +0000 |
commit | 99c14723f3f437e55488c8819241d359414ec9d6 (patch) | |
tree | a2d0bdc6122e67dcf915754adb1f2bf637292921 /gas | |
parent | 2cd8959083e24196760ddf35310c6c8d88ba00df (diff) | |
download | gdb-99c14723f3f437e55488c8819241d359414ec9d6.zip gdb-99c14723f3f437e55488c8819241d359414ec9d6.tar.gz gdb-99c14723f3f437e55488c8819241d359414ec9d6.tar.bz2 |
Add support for MIPS R1[02]000 performance counter opcodes.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/perfcount.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/perfcount.s | 7 |
4 files changed, 25 insertions, 0 deletions
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 <seufer@csv.ica.uni-stuttgart.de> + + * 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 <nickc@cambridge.redhat.com> * 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 |