Added OptSignExtened for testing signness right after sign extention.

This commit is contained in:
acqn
2020-09-18 20:22:58 +08:00
committed by Oliver Schmidt
parent 9c776a24e5
commit 0354322413
3 changed files with 120 additions and 0 deletions

View File

@@ -178,6 +178,7 @@ static OptFunc DOptShift3 = { OptShift3, "OptShift3", 17, 0,
static OptFunc DOptShift4 = { OptShift4, "OptShift4", 100, 0, 0, 0, 0, 0 };
static OptFunc DOptShift5 = { OptShift5, "OptShift5", 110, 0, 0, 0, 0, 0 };
static OptFunc DOptShift6 = { OptShift6, "OptShift6", 200, 0, 0, 0, 0, 0 };
static OptFunc DOptSignExtended = { OptSignExtended, "OptSignExtended", 0, 0, 0, 0, 0, 0 };
static OptFunc DOptSize1 = { OptSize1, "OptSize1", 100, 0, 0, 0, 0, 0 };
static OptFunc DOptSize2 = { OptSize2, "OptSize2", 100, 0, 0, 0, 0, 0 };
static OptFunc DOptStackOps = { OptStackOps, "OptStackOps", 100, 0, 0, 0, 0, 0 };
@@ -280,6 +281,7 @@ static OptFunc* OptFuncs[] = {
&DOptShift4,
&DOptShift5,
&DOptShift6,
&DOptSignExtended,
&DOptSize1,
&DOptSize2,
&DOptStackOps,
@@ -713,6 +715,7 @@ static unsigned RunOptGroup3 (CodeSeg* S)
C += RunOptFunc (S, &DOptPushPop1, 1);
C += RunOptFunc (S, &DOptPushPop2, 1);
C += RunOptFunc (S, &DOptPrecalc, 1);
C += RunOptFunc (S, &DOptSignExtended, 1);
Changes += C;