aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-12-16 11:54:21 +0000
committerJeff Law <law@redhat.com>1997-12-16 11:54:21 +0000
commit0f63020ed86d843eccbf1bf9db7eab34bf704a37 (patch)
tree50a56660b827fe9052a9a2a68757269e50d982b0 /gas
parent2f1d67ecf064cf926cca1f63acb0b9c58021ae12 (diff)
downloadgdb-0f63020ed86d843eccbf1bf9db7eab34bf704a37.zip
gdb-0f63020ed86d843eccbf1bf9db7eab34bf704a37.tar.gz
gdb-0f63020ed86d843eccbf1bf9db7eab34bf704a37.tar.bz2
* gas/mips/r5900.s: New testcase for r5900 insns.
* gas/mips/r5900.d: Support file for r5900 tests. * gas/mips/mips.exp: Run r5900 tests too.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/.Sanitize28
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/mips/.Sanitize52
-rw-r--r--gas/testsuite/gas/mips/mips.exp3
-rw-r--r--gas/testsuite/gas/mips/r5900.d28
-rw-r--r--gas/testsuite/gas/mips/r5900.s30
6 files changed, 149 insertions, 0 deletions
diff --git a/gas/testsuite/.Sanitize b/gas/testsuite/.Sanitize
index 6362072..68a74f4 100644
--- a/gas/testsuite/.Sanitize
+++ b/gas/testsuite/.Sanitize
@@ -128,6 +128,34 @@ else
done
fi
+r5900_files="ChangeLog"
+if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
+ for i in $r5900_files ; do
+ if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping r5900 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $r5900_files ; do
+ if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"r5900\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
tx19_files="ChangeLog"
if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
for i in $tx19_files ; do
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 5f2d6ec..6d77c79 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+start-sanitize-r5900
+Tue Dec 16 12:54:30 1997 Jeffrey A Law (law@cygnus.com)
+
+ * gas/mips/r5900.s: New testcase for r5900 insns.
+ * gas/mips/r5900.d: Support file for r5900 tests.
+ * gas/mips/mips.exp: Run r5900 tests too.
+
+end-sanitize-r5900
start-sanitize-vr5400
Mon Dec 15 10:34:15 1997 Jeffrey A Law (law@cygnus.com)
diff --git a/gas/testsuite/gas/mips/.Sanitize b/gas/testsuite/gas/mips/.Sanitize
index 904e7f5..87f1b63 100644
--- a/gas/testsuite/gas/mips/.Sanitize
+++ b/gas/testsuite/gas/mips/.Sanitize
@@ -39,6 +39,30 @@ else
done
fi
+r5900_losers="r5900.s r5900.d"
+if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
+ keep_these_too="$keep_these_too $r5900_losers"
+ if [ -n "${verbose}" ] ; then
+ for i in $r5900_losers ; do
+ echo Keeping $i
+ done
+ fi
+else
+ for i in $r5900_losers ; do
+ if [ -n "${verbose}" ] ; then
+ echo Removing $i...
+ fi
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
+ mv $i .Recover
+ else
+ rm $i
+ fi
+ done
+fi
+
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
@@ -224,4 +248,32 @@ else
done
fi
+r5900_files="mips.exp"
+if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
+ for i in $r5900_files ; do
+ if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping r5900 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $r5900_files ; do
+ if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"r5900\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
# End of file.
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 054e523..4edbab6 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -79,4 +79,7 @@ if [istarget mips*-*-*] then {
# start-sanitize-vr5400
run_dump_test "vr5400"
# end-sanitize-vr5400
+# start-sanitize-r5900
+ run_dump_test "r5900"
+# end-sanitize-r5900
}
diff --git a/gas/testsuite/gas/mips/r5900.d b/gas/testsuite/gas/mips/r5900.d
new file mode 100644
index 0000000..1fe66fa
--- /dev/null
+++ b/gas/testsuite/gas/mips/r5900.d
@@ -0,0 +1,28 @@
+#objdump: -dr --prefix-addresses
+#name: MIPS R5900
+#as: -mcpu=r5900
+
+
+.*: +file format .*mips.*
+
+Disassembly of section \.text:
+0+0000 <stuff> di
+0+0004 <stuff\+4> ei
+0+0008 <stuff\+8> mfbpc \$t2
+0+000c <stuff\+c> mfdab \$t3
+0+0010 <stuff\+10> mfdabm \$t4
+0+0014 <stuff\+14> mfdvb \$t5
+0+0018 <stuff\+18> mfdvbm \$t6
+0+001c <stuff\+1c> mfiab \$t7
+0+0020 <stuff\+20> mfiabm \$s0
+0+0024 <stuff\+24> mfpc \$a0,\$1
+0+0028 <stuff\+28> mfps \$a0,\$1
+0+002c <stuff\+2c> mtbpc \$t2
+0+0030 <stuff\+30> mtdab \$t3
+0+0034 <stuff\+34> mtdabm \$t4
+0+0038 <stuff\+38> mtdvb \$t5
+0+003c <stuff\+3c> mtdvbm \$t6
+0+0040 <stuff\+40> mtiab \$t7
+0+0044 <stuff\+44> mtiabm \$s0
+0+0048 <stuff\+48> mtpc \$a0,\$1
+0+004c <stuff\+4c> mtps \$a0,\$1
diff --git a/gas/testsuite/gas/mips/r5900.s b/gas/testsuite/gas/mips/r5900.s
new file mode 100644
index 0000000..af1e1dd
--- /dev/null
+++ b/gas/testsuite/gas/mips/r5900.s
@@ -0,0 +1,30 @@
+ .text
+
+stuff:
+ .ent stuff
+ /* Integer instructions. */
+
+ /* Coprocessor 0 instructions, minus standard ISA 3 ones.
+ That leaves just the performance monitoring registers. */
+
+ di
+ ei
+ mfbpc $10
+ mfdab $11
+ mfdabm $12
+ mfdvb $13
+ mfdvbm $14
+ mfiab $15
+ mfiabm $16
+ mfpc $4,$1
+ mfps $4,$1
+ mtbpc $10
+ mtdab $11
+ mtdabm $12
+ mtdvb $13
+ mtdvbm $14
+ mtiab $15
+ mtiabm $16
+ mtpc $4,$1
+ mtps $4,$1
+