Skip to content

Commit

Permalink
Merge pull request #1907 from FinnWilkinson/AArch64-Armv9.2-update
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeor committed Oct 6, 2022
2 parents afb5575 + f5a633d commit 662bb3f
Show file tree
Hide file tree
Showing 451 changed files with 284,282 additions and 77,212 deletions.
1 change: 1 addition & 0 deletions CREDITS.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ Do Minh Tuan: Regression testing tool (cstest)
david942j: BPF (both classic and extended) architecture.
fanfuqiang & citypw & porto703 : RISCV architecture.
Josh "blacktop" Maine: Arm64 architecture improvements.
Finn Wilkinson: AArch64 update to Armv9.2-a (SME + SVE2 support)
5 changes: 5 additions & 0 deletions MCRegisterInfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ const MCRegisterClass* MCRegisterInfo_getRegClass(const MCRegisterInfo *RI, unsi

bool MCRegisterClass_contains(const MCRegisterClass *c, unsigned Reg)
{
// Make sure that MCRegisterInfo_getRegClass didn't return 0
// (for calls to GETREGCLASS_CONTAIN0)
if(!c)
return false;

unsigned InByte = Reg % 8;
unsigned Byte = Reg / 8;

Expand Down
Loading

0 comments on commit 662bb3f

Please sign in to comment.