aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-08-19 21:01:02 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-08-19 21:01:02 +0000
commit5578ad9c7cc2737b7c8f580c96f58d2080378ed6 (patch)
treeb83b16528980077dd579214eba1c5475d290daca
parent23976049756d0dc6d9df8dd19c6403a036e25f2d (diff)
downloadfsf-binutils-gdb-5578ad9c7cc2737b7c8f580c96f58d2080378ed6.zip
fsf-binutils-gdb-5578ad9c7cc2737b7c8f580c96f58d2080378ed6.tar.gz
fsf-binutils-gdb-5578ad9c7cc2737b7c8f580c96f58d2080378ed6.tar.bz2
2002-08-19 Elena Zannoni <ezannoni@redhat.com>
From matthew green <mrg@redhat.com> * e500.s: New tests for e500 instructions. * e500.d: Results for new test. * ppc.exp: Test e500.s.
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/ppc/e500.d22
-rw-r--r--gas/testsuite/gas/ppc/e500.s15
-rw-r--r--gas/testsuite/gas/ppc/ppc.exp4
4 files changed, 49 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index fbe46fd..bce7c4a 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2002-08-19 Elena Zannoni <ezannoni@redhat.com>
+
+ From matthew green <mrg@redhat.com>
+
+ * e500.s: New tests for e500 instructions.
+ * e500.d: Results for new test.
+ * ppc.exp: Test e500.s.
+
2002-08-16 Stephen Clarke <stephen.clarke@superh.com>
* gas/sh/sh64/datal32-3.d: Formatting change to match the current
diff --git a/gas/testsuite/gas/ppc/e500.d b/gas/testsuite/gas/ppc/e500.d
new file mode 100644
index 0000000..2d4d540
--- /dev/null
+++ b/gas/testsuite/gas/ppc/e500.d
@@ -0,0 +1,22 @@
+#as: -mppc -me500
+#objdump: -Dr -Me500
+#name: e500 tests
+
+.*: +file format elf(32)?(64)?-powerpc
+
+Disassembly of section \.text:
+
+0+0000000 <start>:
+ 0: 7c 43 25 de isel r2,r3,r4,23
+ 4: 7c 85 33 0c dcblc 4,r5,r6
+ 8: 7c e8 49 4c dcbtls 7,r8,r9
+ c: 7d 4b 61 0c dcbtstls 10,r11,r12
+ 10: 7d ae 7b cc icbtls 13,r14,r15
+ 14: 7e 11 91 cc icblc 16,r17,r18
+ 18: 7c 89 43 9c mtpmr r41,r4
+ 1c: 7c ab 52 9c mfpmr r5,r43
+ 20: 7c 00 04 0c bblels
+ 24: 7c 00 04 4c bbelr
+ 28: 7d 00 83 a6 mtspefscr r8
+ 2c: 7d 20 82 a6 mfspefscr r9
+Disassembly of section \.data:
diff --git a/gas/testsuite/gas/ppc/e500.s b/gas/testsuite/gas/ppc/e500.s
new file mode 100644
index 0000000..85e53d4
--- /dev/null
+++ b/gas/testsuite/gas/ppc/e500.s
@@ -0,0 +1,15 @@
+# Motorola PowerPC e500 tests
+ .section ".text"
+start:
+ isel 2, 3, 4, 23
+ dcblc 4, 5, 6
+ dcbtls 7, 8, 9
+ dcbtstls 10, 11, 12
+ icbtls 13, 14, 15
+ icblc 16, 17, 18
+ mtpmr 201, 4
+ mfpmr 5, 203
+ bblels
+ bbelr
+ mtspefscr 8
+ mfspefscr 9
diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp
index 5bf4b50..d2c7292 100644
--- a/gas/testsuite/gas/ppc/ppc.exp
+++ b/gas/testsuite/gas/ppc/ppc.exp
@@ -37,3 +37,7 @@ if { [istarget powerpc*-*-*] } then {
run_dump_test "booke"
}
}
+
+if { [istarget powerpc*-*-*] } then {
+ run_dump_test "e500"
+}