Browse Source

Prepare for long GFNI instructions.

Margers 3 months ago
parent
commit
4faba3dd5d
2 changed files with 5 additions and 2 deletions
  1. 4 1
      compiler/x86/aasmcpu.pas
  2. 1 1
      compiler/x86/cpubase.pas

+ 4 - 1
compiler/x86/aasmcpu.pas

@@ -297,7 +297,7 @@ interface
 {$elseif defined(i8086)}
 {$elseif defined(i8086)}
       instabentries = {$i i8086nop.inc}
       instabentries = {$i i8086nop.inc}
 {$endif}
 {$endif}
-      maxinfolen    = 10;
+      maxinfolen    = 11;
 
 
     type
     type
       { What an instruction can change. Needed for optimizer and spilling code.
       { What an instruction can change. Needed for optimizer and spilling code.
@@ -470,6 +470,9 @@ interface
         IF_XSAVE,
         IF_XSAVE,
         IF_PREFETCHWT1,
         IF_PREFETCHWT1,
         IF_SHA,
         IF_SHA,
+        IF_SHA512,
+        IF_SM3_hash, { instruction set SM3:  ShangMi 3 hash function }
+        IF_GFNI,
 
 
         { mask for processor level }
         { mask for processor level }
         { please keep these in order and in sync with IF_PLEVEL }
         { please keep these in order and in sync with IF_PLEVEL }

+ 1 - 1
compiler/x86/cpubase.pas

@@ -53,7 +53,7 @@ uses
 {$endif}
 {$endif}
 
 
       { This should define the array of instructions as string }
       { This should define the array of instructions as string }
-        op2strtable=array[tasmop] of string[16];
+        op2strtable=array[tasmop] of string[17];
 
 
 {$ifdef i8086}
 {$ifdef i8086}
       ImmInt = SmallInt;
       ImmInt = SmallInt;