diff --git a/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py b/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py index 557811eb7..10c06efb6 100644 --- a/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py +++ b/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py @@ -327,6 +327,23 @@ def macroop SBB_P_I 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 { ldst t1, seg, sib, disp @@ -342,6 +359,21 @@ def macroop SBB_P_R 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 { sub reg, t0, reg, flags=(CF,OF,SF,ZF,AF,PF)