avxtestgenerator: working on new tests for compressed disp8*N

git-svn-id: branches/tg74/avx512-0037785@48807 -
This commit is contained in:
tg74 2021-02-25 05:30:42 +00:00 committed by Michaël Van Canneyt
parent 1893babd06
commit a4b9fcffeb

View File

@ -3766,7 +3766,7 @@ var
case aComparemode of
cmKORTESTNC: begin
Add(format('%20s%6s, %s', ['kortestb', 'K1', 'K2']));
Add(format('%20s%6s, %s', ['ktestb', 'K2', 'K1']));
Add(format('%20s %6s', [' jnc', '@@CHECKRESULT']));
end;
cmXORTestNZ: begin
@ -4978,15 +4978,44 @@ begin
if trim(sIndexReg) <> '' then
result.Add(format('%20s%6s, %s', [' xor', sIndexReg, sIndexReg]));
end;
if OpMode in [omMXI, omMYI, omMZI] then
begin
result.Add(format('%-20s %6s', ['push', '']));
result.Add(format('%-20s %6s', ['pop', '']));
case Fx64 of
true: begin
result.Add(format('%20s %6s', ['push', 'RDI']));
result.Add(format('%20s %6s', ['push', 'RCX']));
result.Add(format('%20s %6s', ['push', 'RAX']));
result.Add(format('%20s %6s', ['push', sBaseReg]));
result.Add(format('%20s %6s', ['pop', 'RDI']));
result.Add(format('%20s %6s', ['mov', 'RCX, sizeof(DataBlock)']));
result.Add(format('%20s %6s, %s', ['xor', 'RAX', 'RAX']));
result.Add(format('%20s ', ['rep stosb']));
result.Add(format('%20s %6s', ['pop', 'RAX']));
result.Add(format('%20s %6s', ['pop', 'RCX']));
result.Add(format('%20s %6s', ['pop', 'RDI']));
end;
else begin
result.Add(format('%20s %6s', ['push', 'EDI']));
result.Add(format('%20s %6s', ['push', 'ECX']));
result.Add(format('%20s %6s', ['push', 'EAX']));
result.Add(format('%20s %6s', ['push', sBaseReg]));
result.Add(format('%20s %6s', ['pop', 'EDI']));
result.Add(format('%20s %6s', ['mov', 'ECX, sizeof(DataBlock)']));
result.Add(format('%20s %6s, %s', ['xor', 'EAX', 'EAX']));
result.Add(format('%20s ', ['rep stosb']));
result.Add(format('%20s %6s', ['pop', 'EAX']));
result.Add(format('%20s %6s', ['pop', 'ECX']));
result.Add(format('%20s %6s', ['pop', 'EDI']));
end;
end;
end;
end;
//result.Add(format('%-20s%s', [aInst, sl_RegCombi]));
result.Add(format('%-20s %6s', [sInstruction, sRegCombi]));
@ -5034,7 +5063,7 @@ begin
omMXI: begin
result.Add(format('%20s %6s + $2000, %6s, %s', [aInst, OItem1.Values[il_Op1], OItem2.Values[il_Op2], OItem3.Values[il_Op3] ]));
result.Add(format('%20s %6s, %s', ['vmovdqu', 'xmm0', OItem1.Values[il_Op1]]));
result.Add(format('%20s%6s, $s + $2000', ['vmovdqu', 'xmm1', OItem1.Values[il_Op1]]));
result.Add(format('%20s %6s, %s + $2000', ['vmovdqu', 'xmm1', OItem1.Values[il_Op1]]));
result.Add(format('%20s %6s, %6s, %s', ['vpcmpeqw', 'K2', 'XMM0', 'XMM1']));