fpc/tests/utils/avx/avxtestgenerator.pp
florian 537c63bd83 * fixed a few merging issues
+ extended readme to explain avx tests can be run using GNU Parallel

git-svn-id: branches/tg74/avx512@42647 -
2019-08-11 16:05:19 +00:00

70 lines
2.0 KiB
ObjectPascal

{
Copyright (C) <avx-testfile-generator> <Torsten Grundke>
This source is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
This code is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
A copy of the GNU General Public License is available on the World Wide Web
at <http://www.gnu.org/copyleft/gpl.html>. You can also obtain it by writing
to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
}
{$mode objfpc}
program AVXTestGenerator;
uses
sysutils,
AVXOpCodes in 'AVXOpCodes.pas',
AsmTestGenerator in 'AsmTestGenerator.pas',
Options in 'Options.pas';
begin
with TAVXTestGenerator.Create do
try
with TOptions.Create do
try
LoadParams;
if Help then
begin
writeln('avx-testfile-generator 0.1');
writeln('author: torsten grundke');
writeln('');
writeln('make avx assembler-testfiles');
writeln('');
writeln('-h help');
writeln('-f [fpc,nasm,fasm,fpcinc] outputformat');
writeln('-p [x8664] codegenerator for x86_64 platform');
writeln('-o destination path');
writeln('-z avx512');
writeln('');
end
else
begin
//TAsmTestGenerator.CalcTestInstFile;
//exit;
case OutputFormat of
'f': MakeTestFiles(tfFPC, x64, AVX512, false, Path);
'F': MakeTestFiles(tfFasm, x64, AVX512, false, Path);
'n': MakeTestFiles(tfNasm, x64, AVX512, false, Path);
'I': MakeTestFiles(tfFPCInc, x64, AVX512, false, Path);
end;
end;
finally
Free;
end;
finally
Free;
end;
end.