aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
-rw-r--r--gas/testsuite/gas/mips/perfcount.d11
-rw-r--r--gas/testsuite/gas/mips/perfcount.s7
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