|
Line
Link Here
|
| 0 |
-- a/xbyak/xbyak.h |
0 |
++ b/xbyak/xbyak.h |
|
Lines 2088-2094
private:
Link Here
|
| 2088 |
} |
2088 |
} |
| 2089 |
void opRR(const Reg& r1, const Reg& r2, uint64_t type, int code) |
2089 |
void opRR(const Reg& r1, const Reg& r2, uint64_t type, int code) |
| 2090 |
{ |
2090 |
{ |
|
|
2091 |
#if XBYAK_STRICT_CHECK_MEM_REG_SIZE == 1 |
| 2091 |
if (!(type & T_ALLOW_DIFF_SIZE) && r1.isREG() && r2.isREG() && r1.getBit() != r2.getBit()) XBYAK_THROW(ERR_BAD_SIZE_OF_REGISTER) |
2092 |
if (!(type & T_ALLOW_DIFF_SIZE) && r1.isREG() && r2.isREG() && r1.getBit() != r2.getBit()) XBYAK_THROW(ERR_BAD_SIZE_OF_REGISTER) |
|
|
2093 |
#endif |
| 2092 |
if (!(type & T_ALLOW_ABCDH) && (isBadCombination(r1, r2) || isBadCombination(r2, r1))) XBYAK_THROW(ERR_CANT_USE_ABCDH) |
2094 |
if (!(type & T_ALLOW_ABCDH) && (isBadCombination(r1, r2) || isBadCombination(r2, r1))) XBYAK_THROW(ERR_CANT_USE_ABCDH) |
| 2093 |
bool rex2 = rex(r2, r1, type); |
2095 |
bool rex2 = rex(r2, r1, type); |
| 2094 |
writeCode(type, r1, code, rex2); |
2096 |
writeCode(type, r1, code, rex2); |