소스 검색

new tests for avx512 instructions

git-svn-id: branches/tg74/avx512@39640 -
tg74 7 년 전
부모
커밋
f14edb4d2e
4개의 변경된 파일2980개의 추가작업 그리고 899개의 파일을 삭제
  1. 688 140
      tests/utils/avx/asmtestgenerator.pas
  2. 2279 756
      tests/utils/avx/avxopcodes.pas
  3. 7 3
      tests/utils/avx/avxtestgenerator.pp
  4. 6 0
      tests/utils/avx/options.pas

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 688 - 140
tests/utils/avx/asmtestgenerator.pas


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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('-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, 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;
     finally

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

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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.