]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-08-19 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 19 Aug 2002 21:01:02 +0000 (21:01 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 19 Aug 2002 21:01:02 +0000 (21:01 +0000)
        From  matthew green  <mrg@redhat.com>

        * e500.s: New tests for e500 instructions.
        * e500.d: Results for new test.
        * ppc.exp: Test e500.s.

gas/testsuite/ChangeLog
gas/testsuite/gas/ppc/e500.d [new file with mode: 0644]
gas/testsuite/gas/ppc/e500.s [new file with mode: 0644]
gas/testsuite/gas/ppc/ppc.exp

index fbe46fd48d10278fbeb73ddcda9f4cd9579c24a7..bce7c4ac78dda50dc337622e72462631fe666748 100644 (file)
@@ -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 (file)
index 0000000..2d4d540
--- /dev/null
@@ -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 (file)
index 0000000..85e53d4
--- /dev/null
@@ -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
index 5bf4b50cd5ff3820af0d873464de200116d4cf9a..d2c72924fac0b80041ade229ef9df8ab557da403 100644 (file)
@@ -37,3 +37,7 @@ if { [istarget powerpc*-*-*] } then {
        run_dump_test "booke"
     }
 }
+
+if { [istarget powerpc*-*-*] } then {
+   run_dump_test "e500"
+}