View Issue Details

IDProjectCategoryView StatusLast Update
0038295FPCCompilerpublic2021-01-03 18:21
Reporterrunewalsh Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Platformi386-win32 
Fixed in Version3.3.1 
Summary0038295: -CpCOREAVX2 is scared of -OoFASTMATH
DescriptionThe given code writes 3.100 instead of correct 1.300 when all of these conditions are met:
— i386[-win32] target
— -CfAVX -CpCOREAVX2 -OoFASTMATH

In particular, results are correct given any of the following:
— x86_64 target
— -CpCOREAVX instead of -CpCOREAVX2
— -O4 -OoNOFASTMATH
Steps To Reproducevar
    a, b: uint32; // or (u)int64; int32 works
    r: single; // or double, or even extended
begin
    a := 1;
    b := 3;
    r := a + b / 10;
    writeln(r:0:3);
end.
TagsNo tags attached.
Fixed in Revision48017
FPCOldBugId
FPCTarget-
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-01-03 01:28 runewalsh New Issue
2021-01-03 18:21 Florian Assigned To => Florian
2021-01-03 18:21 Florian Status new => resolved
2021-01-03 18:21 Florian Resolution open => fixed
2021-01-03 18:21 Florian Fixed in Version => 3.3.1
2021-01-03 18:21 Florian Fixed in Revision => 48017
2021-01-03 18:21 Florian FPCTarget => -