Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asmjit/asmjit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobalicek <kobalicek.petr@gmail.com>2021-03-04 03:37:22 +0300
committerkobalicek <kobalicek.petr@gmail.com>2021-03-04 03:37:22 +0300
commit19f1768dbe20cdae00888f330067f0b2b26bac0b (patch)
tree5e872e966badbc752c495fc2df6e0cbceea16071
parenta305905d320a177c22636bee4842efb60d5e1994 (diff)
[Bug] Don't allocate k0 register (x86::Compiler)
-rw-r--r--src/asmjit/x86/x86rapass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asmjit/x86/x86rapass.cpp b/src/asmjit/x86/x86rapass.cpp
index faf05dc..eac546f 100644
--- a/src/asmjit/x86/x86rapass.cpp
+++ b/src/asmjit/x86/x86rapass.cpp
@@ -1121,7 +1121,7 @@ void X86RAPass::onInit() noexcept {
_availableRegs[Reg::kGroupGp ] = Support::lsbMask<uint32_t>(_physRegCount.get(Reg::kGroupGp ));
_availableRegs[Reg::kGroupVec ] = Support::lsbMask<uint32_t>(_physRegCount.get(Reg::kGroupVec ));
_availableRegs[Reg::kGroupMm ] = Support::lsbMask<uint32_t>(_physRegCount.get(Reg::kGroupMm ));
- _availableRegs[Reg::kGroupKReg] = Support::lsbMask<uint32_t>(_physRegCount.get(Reg::kGroupKReg));
+ _availableRegs[Reg::kGroupKReg] = Support::lsbMask<uint32_t>(_physRegCount.get(Reg::kGroupKReg)) ^ 1u;
_scratchRegIndexes[0] = uint8_t(Gp::kIdCx);
_scratchRegIndexes[1] = uint8_t(baseRegCount - 1);