[Issue 15619] [REG 2.068] Floating-point x86_64 codegen regression
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jan 28 08:53:46 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15619
--- Comment #1 from ponce <aliloko at gmail.com> ---
Reduced to:
--------------------------------
import std.stdio;
void fillWithOnes(float* outputs, int frames)
{
float[] A = new float[frames];
float[] B = new float[frames];
A[] = 0;
B[] = 0;
float one = returnOne();
A[0..frames] += B[0..frames];
for (int i = 0; i < frames; ++i)
{
outputs[i] = one;
}
}
float returnOne()
{
return 1;
}
void main()
{
float[] buf = new float[16];
fillWithOnes(buf.ptr, 16);
writeln(buf);
}
--------------------------------
--
More information about the Digitalmars-d-bugs
mailing list