aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-03-10 12:52:30 +0000
committerAlan Modra <amodra@gmail.com>2005-03-10 12:52:30 +0000
commitda99ee721ed0685decddd26ce0f8b6634b4ffee4 (patch)
tree116e7e7a6c84019e2bbfae409d8cf19eadc1c9ff /gas/testsuite
parent953130a55dc68149abbe630f836f97634e44baf7 (diff)
downloadgdb-da99ee721ed0685decddd26ce0f8b6634b4ffee4.zip
gdb-da99ee721ed0685decddd26ce0f8b6634b4ffee4.tar.gz
gdb-da99ee721ed0685decddd26ce0f8b6634b4ffee4.tar.bz2
opcodes/
* ppc-opc.c (insert_sprg, extract_sprg): New Functions. (powerpc_operands <SPRG>): Call the above. Bit field is 5 bits. (SPRG_MASK): Delete. (XSPRG_MASK): Mask off extra bits now part of sprg field. (powerpc_opcodes): Asjust mfsprg and mtsprg to suit new mask. Move mfsprg4..7 after msprg and consolidate. gas/testsuite * gas/ppc/booke.s: Add new m[t,f]sprg testcases. * gas/ppc/booke.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog21
-rw-r--r--gas/testsuite/gas/ppc/booke.d8
-rw-r--r--gas/testsuite/gas/ppc/booke.s9
3 files changed, 30 insertions, 8 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 733d5d7..e35eba6 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-10 Jeff Baker <jbaker@qnx.com>
+ Alan Modra <amodra@bigpond.net.au>
+
+ * gas/ppc/booke.s: Add new m[t,f]sprg testcases.
+ * gas/ppc/booke.d: Likewise.
+
2005-03-09 Richard Sandiford <rsandifo@redhat.com>
* gas/mips/vr4130.[sd]: New test.
@@ -93,12 +99,11 @@
2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
- * gas/arc/extensions.s: Add tests for extcoreregister
- * gas/arc/extensions.d: Likewise.
- * gas/arc/warn.s: Warnings for readonly core registers
- accessed .
- * gas/arc/warn.d:Likewise.
- * testsuite/gas/arc/arc.exp:Run extensions testcase.
+ * gas/arc/extensions.s: Add tests for extcoreregister.
+ * gas/arc/extensions.d: Likewise.
+ * gas/arc/warn.s: Warnings for readonly core registers accessed.
+ * gas/arc/warn.d: Likewise.
+ * testsuite/gas/arc/arc.exp: Run extensions testcase.
2005-03-03 Richard Sandiford <rsandifo@redhat.com>
@@ -106,8 +111,8 @@
2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
- * gas/arc/ld.s:Add checks for short immediates with ld
- * gas/arc/ld.d:Likewise.
+ * gas/arc/ld.s: Add checks for short immediates with ld.
+ * gas/arc/ld.d: Likewise.
2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
diff --git a/gas/testsuite/gas/ppc/booke.d b/gas/testsuite/gas/ppc/booke.d
index b132749..0f92aec 100644
--- a/gas/testsuite/gas/ppc/booke.d
+++ b/gas/testsuite/gas/ppc/booke.d
@@ -142,3 +142,11 @@ Disassembly of section \.text:
1c0: 7c 00 06 ac mbar
1c4: 7c 00 06 ac mbar
1c8: 7c 20 06 ac mbar 1
+ 1cc: 7c 12 42 a6 mfsprg r0,2
+ 1d0: 7c 12 42 a6 mfsprg r0,2
+ 1d4: 7c 12 43 a6 mtsprg 2,r0
+ 1d8: 7c 12 43 a6 mtsprg 2,r0
+ 1dc: 7c 07 42 a6 mfsprg r0,7
+ 1e0: 7c 07 42 a6 mfsprg r0,7
+ 1e4: 7c 17 43 a6 mtsprg 7,r0
+ 1e8: 7c 17 43 a6 mtsprg 7,r0
diff --git a/gas/testsuite/gas/ppc/booke.s b/gas/testsuite/gas/ppc/booke.s
index 4c40b49..0c6cf88 100644
--- a/gas/testsuite/gas/ppc/booke.s
+++ b/gas/testsuite/gas/ppc/booke.s
@@ -134,3 +134,12 @@ branch_target_8:
mbar
mbar 0
mbar 1
+
+ mfsprg 0, 2
+ mfsprg2 0
+ mtsprg 2, 0
+ mtsprg2 0
+ mfsprg 0, 7
+ mfsprg7 0
+ mtsprg 7, 0
+ mtsprg7 0