| 1666 | // Pointer math. |
| 1667 | |
| 1668 | void JitCompiler::EmitADDA_RR() |
| 1669 | { |
| 1670 | auto tmp = newTempIntPtr(); |
| 1671 | auto label = cc.newLabel(); |
| 1672 | |
| 1673 | cc.mov(tmp, regA[B]); |
| 1674 | |
| 1675 | // Check if zero, the first operand is zero, if it is, don't add. |
| 1676 | cc.cmp(tmp, 0); |
| 1677 | cc.je(label); |
| 1678 | |
| 1679 | auto tmpptr = newTempIntPtr(); |
| 1680 | cc.mov(tmpptr, regD[C]); |
| 1681 | cc.add(tmp, tmpptr); |
| 1682 | |
| 1683 | cc.bind(label); |
| 1684 | cc.mov(regA[A], tmp); |
| 1685 | } |
| 1686 | |
| 1687 | void JitCompiler::EmitADDA_RK() |
| 1688 | { |