From cb96acefc93200a2e035edb877edd8cd5721c5d9 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Thu, 8 Sep 2022 11:01:00 +0200 Subject: [PATCH] vector support: check supported type during parsing already Avoids internalerrors at the code generation stage when using an unsupported type --- compiler/nadd.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/nadd.pas b/compiler/nadd.pas index af4349ce2b..d48f731b02 100644 --- a/compiler/nadd.pas +++ b/compiler/nadd.pas @@ -3060,8 +3060,8 @@ implementation { vector support, this must be before the zero based array check } 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 begin if not(nodetype in [addn,subn,xorn,orn,andn,muln,slashn]) then