X86: Implement a locking version of OR.
This commit is contained in:
parent
a7f79c9049
commit
2f607b882c
|
@ -76,6 +76,23 @@ def macroop OR_P_I
|
||||||
st t1, seg, riprel, disp
|
st t1, seg, riprel, disp
|
||||||
};
|
};
|
||||||
|
|
||||||
|
def macroop OR_LOCKED_M_I
|
||||||
|
{
|
||||||
|
limm t2, imm
|
||||||
|
ldstl t1, seg, sib, disp
|
||||||
|
or t1, t1, t2, flags=(OF,SF,ZF,PF,CF)
|
||||||
|
stul t1, seg, sib, disp
|
||||||
|
};
|
||||||
|
|
||||||
|
def macroop OR_LOCKED_P_I
|
||||||
|
{
|
||||||
|
limm t2, imm
|
||||||
|
rdip t7
|
||||||
|
ldstl t1, seg, riprel, disp
|
||||||
|
or t1, t1, t2, flags=(OF,SF,ZF,PF,CF)
|
||||||
|
stul t1, seg, riprel, disp
|
||||||
|
};
|
||||||
|
|
||||||
def macroop OR_M_R
|
def macroop OR_M_R
|
||||||
{
|
{
|
||||||
ldst t1, seg, sib, disp
|
ldst t1, seg, sib, disp
|
||||||
|
@ -91,6 +108,21 @@ def macroop OR_P_R
|
||||||
st t1, seg, riprel, disp
|
st t1, seg, riprel, disp
|
||||||
};
|
};
|
||||||
|
|
||||||
|
def macroop OR_LOCKED_M_R
|
||||||
|
{
|
||||||
|
ldstl t1, seg, sib, disp
|
||||||
|
or t1, t1, reg, flags=(OF,SF,ZF,PF,CF)
|
||||||
|
stul t1, seg, sib, disp
|
||||||
|
};
|
||||||
|
|
||||||
|
def macroop OR_LOCKED_P_R
|
||||||
|
{
|
||||||
|
rdip t7
|
||||||
|
ldstl t1, seg, riprel, disp
|
||||||
|
or t1, t1, reg, flags=(OF,SF,ZF,PF,CF)
|
||||||
|
stul t1, seg, riprel, disp
|
||||||
|
};
|
||||||
|
|
||||||
def macroop OR_R_M
|
def macroop OR_R_M
|
||||||
{
|
{
|
||||||
ld t1, seg, sib, disp
|
ld t1, seg, sib, disp
|
||||||
|
|
Loading…
Reference in a new issue