<html>
<head>
<base href="http://bugzilla.gdcproject.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Program using core.simd does not compile"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=117#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Program using core.simd does not compile"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=117">bug 117</a>
from <span class="vcard"><a class="email" href="mailto:ibuclaw@gdcproject.org" title="Iain Buclaw <ibuclaw@gdcproject.org>"> <span class="fn">Iain Buclaw</span></a>
</span></b>
<pre>__simd requires the compiler to expose D_SIMD. Which is not implemented in
GDC. And given the nature of the intrinsic, I can't see it ever being
introduced.
To access SIMD instructions, instead use the gcc.builtins module.
---
import gcc.builtins;
float4 a = 1, b = 2;
float4 c = __builtin_ia32_addps(a, b);
---
You can get a list of all builtins gdc exposes using:
echo "module gcc.builtins;" > builtins.d && gdc -fsyntax-only -fintfc
builtins.d
Then open the file 'builtins.di' for viewing. There is currently no maintained
list of this because what is generated for gcc.builtins may change depending on
target or optimisation flags passed to gdc.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>