Internal error 200610072 when trying to compile for AVX vector math
Original Reporter info from Mantis: dzjorrit
-
Reporter name: Jorrit
Original Reporter info from Mantis: dzjorrit
- Reporter name: Jorrit
Description:
Using lazarus 1.6 64bit on windows 10 with AMD A10 AVX enabled processor.
I start a new clean lazarus project and have this code:
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs;
type
tVector= array[0..7] of single;
{ TForm1 }
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
v1,v2,v3:tVector;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
var
i:integer;
begin
for i:=0 to 7 do
begin
v1[i]:=i+0.1;
v2[i]:=i+0.2;
end;
v3:=v1+v2;
end;
end.
The following compiler options are specified:
-O4
-CfAVX
-CpCOREAVX
-OpCOREAVX
-Sv
-XX
-CX
The compiler reports this error:
Compile Project, Target: project1.exe: Exit code 1, Errors: 1
unit1.pas(43,9) Error: Internal error 200610072
When the length of the vector is reduced to 4 (an SSE vector) the compiler does not produce any errors.
Steps to reproduce:
Can be reproduced exactly like in the description.
Mantis conversion info:
- Mantis ID: 30186
- OS: Windows
- OS Build: 10
- Build: SVN revision 51630
- Platform: AMD64
- Version: 3.0.0
- Monitored by: » joaoschuler (Joao Paulo Schwarz Schuler), » davidberneda (david berneda)