Browse Source

vector support: check supported type during parsing already

Avoids internalerrors at the code generation stage when using an unsupported
type
Jonas Maebe 2 years ago
parent
commit
cb96acefc9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/nadd.pas

+ 2 - 2
compiler/nadd.pas

@@ -3060,8 +3060,8 @@ implementation
          { vector support, this must be before the zero based array
          { vector support, this must be before the zero based array
            check }
            check }
          else if (cs_support_vectors in current_settings.globalswitches) and
          else if (cs_support_vectors in current_settings.globalswitches) and
-                 is_vector(ld) and
-                 is_vector(rd) and
+                 fits_in_mm_register(ld) and
+                 fits_in_mm_register(rd) and
                  equal_defs(ld,rd) then
                  equal_defs(ld,rd) then
             begin
             begin
               if not(nodetype in [addn,subn,xorn,orn,andn,muln,slashn]) then
               if not(nodetype in [addn,subn,xorn,orn,andn,muln,slashn]) then