Forráskód Böngészése

new tests for avx512 instructions

git-svn-id: branches/tg74/avx512@39640 -
tg74 7 éve
szülő
commit
f14edb4d2e

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 688 - 140
tests/utils/avx/asmtestgenerator.pas


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 2279 - 756
tests/utils/avx/avxopcodes.pas


+ 7 - 3
tests/utils/avx/avxtestgenerator.pp

@@ -45,14 +45,18 @@ begin
         writeln('-f  [fpc,nasm,fasm] outputformat');
         writeln('-f  [fpc,nasm,fasm] outputformat');
         writeln('-p  [x8664] codegenerator for x86_64 platform');
         writeln('-p  [x8664] codegenerator for x86_64 platform');
         writeln('-o  destination path');
         writeln('-o  destination path');
+        writeln('-z  avx512');
         writeln('');
         writeln('');
       end
       end
       else
       else
       begin
       begin
+        //TAsmTestGenerator.CalcTestInstFile;
+        //exit;
+
         case OutputFormat of
         case OutputFormat of
-          'f': MakeTestFiles(tfFPC, x64, Path);
-          'F': MakeTestFiles(tfFasm, x64, Path);
-          'n': MakeTestFiles(tfNasm, x64, Path);
+          'f': MakeTestFiles(tfFPC, x64, AVX512, false, Path);
+          'F': MakeTestFiles(tfFasm, x64, AVX512, false, Path);
+          'n': MakeTestFiles(tfNasm, x64, AVX512, false, Path);
         end;
         end;
       end;
       end;
     finally
     finally

+ 6 - 0
tests/utils/avx/options.pas

@@ -26,8 +26,11 @@ interface
 
 
 type
 type
 
 
+  { TOptions }
+
   TOptions = class(TObject)
   TOptions = class(TObject)
   private
   private
+    FAVX512: boolean;
     FHelp: boolean;
     FHelp: boolean;
     FX64: boolean;
     FX64: boolean;
     FOutputFormat: Char;
     FOutputFormat: Char;
@@ -40,6 +43,7 @@ type
     property Help: boolean read FHelp write FHelp;
     property Help: boolean read FHelp write FHelp;
     property OutputFormat: Char read FOutputFormat write FOutputFormat;
     property OutputFormat: Char read FOutputFormat write FOutputFormat;
     property X64: boolean read FX64 write FX64;
     property X64: boolean read FX64 write FX64;
+    property AVX512: boolean read FAVX512 write FAVX512;
     property Path: string read FPath write FPath;
     property Path: string read FPath write FPath;
   end;
   end;
 
 
@@ -53,6 +57,7 @@ constructor TOptions.Create;
 begin
 begin
   FHelp          := false;
   FHelp          := false;
   FX64           := false;
   FX64           := false;
+  FAVX512        := false;
   FOutputFormat  := '?';
   FOutputFormat  := '?';
   FPath          := '';
   FPath          := '';
 end;
 end;
@@ -90,6 +95,7 @@ begin
                 Fx64 := true;
                 Fx64 := true;
               end
               end
               else IsInvalidParam := true;
               else IsInvalidParam := true;
+         'z': FAVX512 := true;
          'o': if sValue <> '' then
          'o': if sValue <> '' then
               begin
               begin
                 FPath :=  IncludeTrailingBackslash(sValue);
                 FPath :=  IncludeTrailingBackslash(sValue);

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott