[PATCH] covoar/Target_arm: Add cbz and cbnz as branch instructions

Alex White alex.white at oarcorp.com
Fri Apr 16 14:42:47 UTC 2021


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();
 
   }
-- 
2.27.0



More information about the devel mailing list