[rtems-tools commit] covoar/Target_arm: Add cbz and cbnz as branch instructions

Joel Sherrill joel at rtems.org
Fri Apr 16 22:28:59 UTC 2021


Module:    rtems-tools
Branch:    master
Commit:    292363de55ca2d8b22500498400efaa68cc42473
Changeset: http://git.rtems.org/rtems-tools/commit/?id=292363de55ca2d8b22500498400efaa68cc42473

Author:    Alex White <alex.white at oarcorp.com>
Date:      Fri Apr 16 09:39:41 2021 -0500

covoar/Target_arm: Add cbz and cbnz as branch instructions

This adds `cbz` and `cbnz` as conditional branch instructions for ARM as
they appear to have been missed.

Closes #4386

---

 tester/covoar/Target_arm.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tester/covoar/Target_arm.cc b/tester/covoar/Target_arm.cc
index 75ec406..94d50bb 100644
--- a/tester/covoar/Target_arm.cc
+++ b/tester/covoar/Target_arm.cc
@@ -70,6 +70,9 @@ namespace Target {
     conditionalBranchInstructions.push_back("bgt.w");
     conditionalBranchInstructions.push_back("ble.w");
 
+    conditionalBranchInstructions.push_back("cbz");
+    conditionalBranchInstructions.push_back("cbnz");
+
     conditionalBranchInstructions.sort();
 
   }



More information about the vc mailing list