X86: Implement a locking version of SBB.

This commit is contained in:
Gabe Black 2009-04-19 04:56:11 -07:00
parent 193265c6e5
commit e742cad6f4

View file

@ -327,6 +327,23 @@ def macroop SBB_P_I
st t1, seg, riprel, disp st t1, seg, riprel, disp
}; };
def macroop SBB_LOCKED_M_I
{
limm t2, imm
ldstl t1, seg, sib, disp
sbb t1, t1, t2, flags=(OF,SF,ZF,AF,PF,CF)
stul t1, seg, sib, disp
};
def macroop SBB_LOCKED_P_I
{
rdip t7
limm t2, imm
ldstl t1, seg, riprel, disp
sbb t1, t1, t2, flags=(OF,SF,ZF,AF,PF,CF)
stul t1, seg, riprel, disp
};
def macroop SBB_M_R def macroop SBB_M_R
{ {
ldst t1, seg, sib, disp ldst t1, seg, sib, disp
@ -342,6 +359,21 @@ def macroop SBB_P_R
st t1, seg, riprel, disp st t1, seg, riprel, disp
}; };
def macroop SBB_LOCKED_M_R
{
ldstl t1, seg, sib, disp
sbb t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
stul t1, seg, sib, disp
};
def macroop SBB_LOCKED_P_R
{
rdip t7
ldstl t1, seg, riprel, disp
sbb t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
stul t1, seg, riprel, disp
};
def macroop NEG_R def macroop NEG_R
{ {
sub reg, t0, reg, flags=(CF,OF,SF,ZF,AF,PF) sub reg, t0, reg, flags=(CF,OF,SF,ZF,AF,PF)