Coverage Report

Created: 2023-12-08 06:05

/src/capstonenext/arch/AArch64/AArch64DisassemblerExtension.c
Line
Count
Source (jump to first uncovered line)
1
/* Capstone Disassembly Engine */
2
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2019 */
3
/*    Rot127 <unisono@quyllur.org>, 2022-2023 */
4
5
#include "AArch64DisassemblerExtension.h"
6
#include "AArch64BaseInfo.h"
7
8
bool AArch64_getFeatureBits(unsigned int mode, unsigned int feature)
9
160k
{
10
  // we support everything
11
160k
  return true;
12
160k
}
13
14
/// Tests a NULL terminated array of features if they are enabled.
15
bool AArch64_testFeatureList(unsigned int mode, const unsigned int *features)
16
4.49k
{
17
4.49k
  int i = 0;
18
5.61k
  while (features[i]) {
19
1.12k
    if (!AArch64_getFeatureBits(mode, features[i]))
20
0
      return false;
21
1.12k
    ++i;
22
1.12k
  }
23
4.49k
  return true;
24
4.49k
}