-CfAVX2 is scared of frac(single)

Original Reporter info from Mantis: runewalsh
  • Reporter name:

Description:

If compiled for x86-64 with -CfAVX2, code below prints 1.25 instead of 0.25.

Steps to reproduce:

var
	t: single;
begin
	t := 1.25;
	writeln(frac(t):0:2);
end.

Mantis conversion info:

  • Mantis ID: 38248
  • Build: 47807
  • Platform: x86_64-win64
  • Fixed in version: 3.3.1
  • Fixed in revision: 47839 (#b28aa5c6)