* gas/ppc/regnames.d: New.
authorAlan Modra <amodra@gmail.com>
Mon, 12 Nov 2007 00:29:12 +0000 (00:29 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 12 Nov 2007 00:29:12 +0000 (00:29 +0000)
* gas/ppc/regnames.s: Likewise.
* gas/ppc/ppc.exp: Run it.

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

index cab5e4b..1859b5c 100644 (file)
@@ -1,3 +1,9 @@
+2007-11-12  Tristan Gingold  <gingold@adacore.com>
+
+       * gas/ppc/regnames.d: New.
+       * gas/ppc/regnames.s: Likewise.
+       * gas/ppc/ppc.exp: Run it.
+
 2007-11-07  Tristan Gingold  <gingold@adacore.com>
 
        * ia64-dis.c (print_insn_ia64): Generate symbolic names for cr
index 69d1f4a..817f505 100644 (file)
@@ -30,6 +30,7 @@ if { [istarget powerpc64*-*-*] || [istarget *-*-elf64*]} then {
 if { [istarget powerpc*-*-*] } then {
     run_dump_test "simpshft"
     run_dump_test "machine"
+    run_dump_test "regnames"
 
     if { [istarget powerpc-*-*aix*] } then {
        run_dump_test "altivec_xcoff"
diff --git a/gas/testsuite/gas/ppc/regnames.d b/gas/testsuite/gas/ppc/regnames.d
new file mode 100644 (file)
index 0000000..ebc6b42
--- /dev/null
@@ -0,0 +1,8 @@
+#as: -mregnames
+#objdump: -s -j .text
+#name: PowerPC symbolic regnames
+
+.*
+
+Contents of section \.text:
+ 0000 4fbdcb82 88850004 .*
diff --git a/gas/testsuite/gas/ppc/regnames.s b/gas/testsuite/gas/ppc/regnames.s
new file mode 100644 (file)
index 0000000..dc15513
--- /dev/null
@@ -0,0 +1,3 @@
+       .text
+       cror 4*%cr7+gt,%cr7*4+gt,4*%cr6+gt
+       lbz r4,4(r5)