Skip to content

Commit

Permalink
Fix counting of branches
Browse files Browse the repository at this point in the history
  • Loading branch information
romainguy committed Aug 12, 2024
1 parent c476703 commit 3f5511f
Showing 1 changed file with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,34 @@ enum class ISA(val branchInstructions: ScatterSet<String>, val returnInstruction
),
scatterSetOf("ret")
),
Arm64(scatterSetOf("b", "bl", "cbz", "cbnz", "tbz", "tbnz"), scatterSetOf("ret"))
Arm64(
scatterSetOf(
"b",
"b.eq",
"b.ne",
"b.cs",
"b.hs",
"b.cc",
"b.lo",
"b.mi",
"b.pl",
"b.vs",
"b.vc",
"b.hi",
"b.ls",
"b.ge",
"b.lt",
"b.gt",
"b.le",
"b.al",
"bl",
"cbz",
"cbnz",
"tbz",
"tbnz"
),
scatterSetOf("ret")
)
}

data class Class(val header: String, val methods: List<Method>)
Expand Down

0 comments on commit 3f5511f

Please sign in to comment.