================ @@ -14,7 +14,7 @@ // From winnt.h #define ARM64_SYSREG(op0, op1, crn, crm, op2) \ - ( ((op0 & 1) << 14) | \ + ( ((op0 & 3) << 14) | \ ---------------- Lukacma wrote: Ah I didn't think about that I will adjust the patch https://github.com/llvm/llvm-project/pull/187290