LDC 0.11.0 Beta 3
bearophile
bearophileHUGS at lycos.com
Sat Jun 29 18:52:42 PDT 2013
int main() {
import core.simd;
float[16] a = 1.0;
float4 t = 0, k = 2;
auto b = cast(float4[])a;
for (size_t i = 0; i < b.length; i++)
t += b[i] * k;
return cast(int)t.array[2];
}
Compiling it with "ldmd2 -O":
Error: Instruction does not dominate all uses!
%tmp33.Elt = fmul float %tmp33.Elt.lhs, 2.000000e+00
%1 = fadd float %0, %tmp33.Elt
Instruction does not dominate all uses!
%tmp31 = load <4 x float>* %tmp30, align 16
%tmp33.Elt.lhs = extractelement <4 x float> %tmp31, i32 2
Broken module found, compilation terminated.
Broken module found, compilation terminated.
Broken module found, compilation terminated.
Bye,
bearophile
More information about the digitalmars-d-ldc
mailing list