From ff5404f5b37484567a19603769a2c0e56f108272 Mon Sep 17 00:00:00 2001 From: Carl Love Date: Wed, 16 Jun 2021 14:51:46 -0500 Subject: [PATCH] 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 * 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. --- 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 + + * 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 * 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 */ -- 2.39.2