Browse Source

* tcgsizep2size now supports all tcgsize values

florian 3 years ago
parent
commit
716e8c8e89
1 changed files with 6 additions and 2 deletions
  1. 6 2
      compiler/aarch64/cpubase.pas

+ 6 - 2
compiler/aarch64/cpubase.pas

@@ -148,13 +148,17 @@ unit cpubase;
       TOpPostfixes = set of TOpPostfix;
       TOpPostfixes = set of TOpPostfix;
 
 
     const
     const
-      tcgsizep2size: array[OS_NO..OS_F128] of byte =
+      tcgsizep2size: array[tcgsize] of byte =
         {OS_NO }
         {OS_NO }
         (0,
         (0,
         {OS_8,OS_16,OS_32,OS_64,OS_128,OS_S8,OS_S16,OS_S32,OS_S64,OS_S128}
         {OS_8,OS_16,OS_32,OS_64,OS_128,OS_S8,OS_S16,OS_S32,OS_S64,OS_S128}
             0,    1,    2,    3,     4,    0,     1,     2,     3,      4,
             0,    1,    2,    3,     4,    0,     1,     2,     3,      4,
         {OS_F32,OS_F64,OS_F80,OS_C64,OS_F128,}
         {OS_F32,OS_F64,OS_F80,OS_C64,OS_F128,}
-             2,      3,     0,     3,      4);
+             2,      3,     0,     3,      4,
+
+         {OS_M8,   OS_M16,  OS_M32,  OS_M64,  OS_M128, OS_M256, OS_M512}
+              0,        1,       2,       3,        4,       5,       6);
+
       oppostfix2str: array[TOpPostfix] of string[2] = ('',
       oppostfix2str: array[TOpPostfix] of string[2] = ('',
         's',
         's',
         'b','sb','h','sh','w','sw');
         'b','sb','h','sh','w','sw');