Simplified division in interpreted mode

Fixed incorrect condition code in JitCompilerX86
Refactoring
This commit is contained in:
tevador
2019-02-15 10:41:02 +01:00
parent 1df975e583
commit 447e8a1d4f
5 changed files with 35 additions and 47 deletions
+5 -10
View File
@@ -38,23 +38,18 @@ namespace RandomX {
typedef void(InterpretedVirtualMachine::*InstructionHandler)(Instruction&);
struct alignas(16) InstructionByteCode {
struct alignas(8) InstructionByteCode {
int_reg_t* idst;
int_reg_t* isrc;
int_reg_t imm;
union {
uint64_t imm;
int64_t simm;
};
__m128d* fdst;
__m128d* fsrc;
uint32_t condition;
uint32_t memMask;
uint32_t type;
union {
uint64_t unsignedMultiplier;
int64_t signedMultiplier;
};
unsigned shift;
unsigned preShift;
unsigned postShift;
bool increment;
};
constexpr int asedwfagdewsa = sizeof(InstructionByteCode);