<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - clang+llvm from svn crashes when generating opencl code for 64 bit types"
href="https://bugs.freedesktop.org/show_bug.cgi?id=70199#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - clang+llvm from svn crashes when generating opencl code for 64 bit types"
href="https://bugs.freedesktop.org/show_bug.cgi?id=70199">bug 70199</a>
from <span class="vcard"><a class="email" href="mailto:klondike@klondike.es" title="klondike <klondike@klondike.es>"> <span class="fn">klondike</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=87543" name="attach_87543" title="Expand most of the 64 bit operations into 32 bit ones">attachment 87543</a> <a href="attachment.cgi?id=87543&action=edit" title="Expand most of the 64 bit operations into 32 bit ones">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=70199&attachment=87543'>[review]</a>
Expand most of the 64 bit operations into 32 bit ones
Well I have been messing a little bit with the TargetLowering. I have managed
to get some operations to work (ANDs, ORs, XORs, UMULs, ADDS and SUBS amongst
others) by forcing llvm to expand them.
DIVs are a completely different world since they require more advanced
algorithms which I'm not familiar with or support for calls (plus porting gcc's
functions). The first one I don't have time to do (for now) the second one is
waaaaay out of my league.
The attached patch expands some of the 64 bit integer operations (but is still
a WIP since likely most if not all (exceptions being loads and stores) need to
be expanded and I haven't covered them all.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>