[binutils-gdb] Fix powerpc-power8.exp test with new mnemonics

Carl Love carll@sourceware.org
Fri Jun 18 15:14:46 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ff5404f5b37484567a19603769a2c0e56f108272

commit ff5404f5b37484567a19603769a2c0e56f108272
Author: Carl Love <cel@us.ibm.com>
Date:   Wed Jun 16 14:51:46 2021 -0500

    Fix powerpc-power8.exp test with new mnemonics
    
    This patch updates the gdb test to use the new bgetar and bnstarl mnemonics
    introduced in commit 5a4037661bccd156d65093f1f0cf2cd43f31e9d9.  The test
    previously used the bctar and bctarl mnemonics.
    
    gdb/testsuite/ChangeLog
    2021-06-17  Carl Love  <cel@us.ibm.com>
    
            * gdb.arch/powerpc-power8.exp(bctar, bctarl): Update mnemonics
            to bgetar and bgetarl.
            * gdb.arch/powerpc-power8.s((bctar, bctarl): Update comments
            for mnemonics to bgetar and bnstarl.

Diff:
---
 gdb/testsuite/ChangeLog                   | 7 +++++++
 gdb/testsuite/gdb.arch/powerpc-power8.exp | 4 ++--
 gdb/testsuite/gdb.arch/powerpc-power8.s   | 4 ++--
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 16a86b6df9f..e8c797a8b85 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2021-06-17  Carl Love  <cel@us.ibm.com>
+
+	* gdb.arch/powerpc-power8.exp(bctar, bctarl): Update mnemonics
+	to bgetar and bgetarl.
+	* gdb.arch/powerpc-power8.s((bctar, bctarl): Update comments
+	for mnemonics to bgetar and bnstarl.
+
 2021-06-17  Simon Marchi  <simon.marchi@efficios.com>
 
 	* gdb.base/args.exp: Check target, KFAIL if remote.
diff --git a/gdb/testsuite/gdb.arch/powerpc-power8.exp b/gdb/testsuite/gdb.arch/powerpc-power8.exp
index 456531f9dfa..858939f6cf3 100644
--- a/gdb/testsuite/gdb.arch/powerpc-power8.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-power8.exp
@@ -82,8 +82,8 @@ func_check "bgttar  cr5"
 func_check "bnstarl cr1"
 func_check "blttar+ cr3"
 func_check "bnetarl+"
-func_check "bctar   4,4*cr2+lt,1"
-func_check "bctarl  4,4*cr1+so,2"
+func_check "bgetar  cr2,1"
+func_check "bnstarl cr1,2"
 func_check "waitasec"
 func_check "msgsndp r8"
 func_check "mtsle   1"
diff --git a/gdb/testsuite/gdb.arch/powerpc-power8.s b/gdb/testsuite/gdb.arch/powerpc-power8.s
index b69dd6e8315..65b92bda1ff 100644
--- a/gdb/testsuite/gdb.arch/powerpc-power8.s
+++ b/gdb/testsuite/gdb.arch/powerpc-power8.s
@@ -39,8 +39,8 @@ func:
 	.long  0x4c870461    /* bnstarl cr1                */
 	.long  0x4dec0460    /* blttar+ cr3                */
 	.long  0x4ce20461    /* bnetarl+                   */
-	.long  0x4c880c60    /* bctar   4,4*cr2+lt,1       */
-	.long  0x4c871461    /* bctarl  4,4*cr1+so,2       */
+	.long  0x4c880c60    /* bgetar  cr2,1              */
+	.long  0x4c871461    /* bnstarl cr1,2              */
 	.long  0x7c00003c    /* waitasec                   */
 	.long  0x7c00411c    /* msgsndp r8                 */
 	.long  0x7c200126    /* mtsle   1                  */


More information about the Gdb-cvs mailing list