[Jit] add subfic

This commit is contained in:
Ced2911 2013-12-03 13:34:39 +01:00 committed by Unknown W. Brackets
parent cd283089aa
commit 93f08b4035
2 changed files with 4 additions and 0 deletions

View File

@ -479,6 +479,9 @@ namespace PpcGen {
void PPCXEmitter::SUBFC (PPCReg Rd, PPCReg Ra, PPCReg Rb) {
XO_FORM(31, Rd, Ra, Rb, 0, 8, 0);
}
void PPCXEmitter::SUBFIC(PPCReg Rt, PPCReg Ra, short imm) {
D_FORM(8, Rt, Ra, imm);
}
void PPCXEmitter::SUBFE(PPCReg Rd, PPCReg Ra, PPCReg Rb) {

View File

@ -249,6 +249,7 @@ namespace PpcGen
}
// if RCFlags update CR0
void SUBF (PPCReg Rd, PPCReg Ra, PPCReg Rb, int RCFlags = 0);
void SUBFIC (PPCReg Rt, PPCReg Ra, short imm);
void SUBFC (PPCReg Rd, PPCReg Ra, PPCReg Rb);
void SUBFE (PPCReg Rd, PPCReg Ra, PPCReg Rb);