Is this on a Mac that is using gcc4.2?  The older GCC assembler stuff doesn't understand simd. <span></span><br><br>On Wednesday, May 21, 2014, Geoffrey Mainland <<a href="mailto:mainland@apeiron.net">mainland@apeiron.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Perhaps your installed version of binutils does not support the sarxq<br>
instruction?<br>
<br>
You can ask GHC to pass flags to llc and friends:<br>
<br>
<a href="http://www.haskell.org/ghc/docs/7.8.2/html/users_guide/options-phases.html#forcing-options-through" target="_blank">http://www.haskell.org/ghc/docs/7.8.2/html/users_guide/options-phases.html#forcing-options-through</a><br>

<br>
Best,<br>
Geoff<br>
<br>
On 05/21/2014 06:50 PM, Mike Izbicki wrote:<br>
> I have some code* that is causing llvm to throw a fit.  In particular,<br>
> I get (compiling with GHC 7.8 and llvm 3.4):<br>
><br>
>     /tmp/ghc1685_0/ghc1685_5.bc:150324:0:<br>
>          Error: no such instruction: `sarxq %rax,%rbx,%r14'<br>
><br>
> Similar errors get repeated several thousand times, and it's always a<br>
> sarxq instruction.  Now, my code doesn't use any of the simd primops,<br>
> so the sarxq must be coming from llvm's autovectorization.  Is it<br>
> possible that somehow GHC's output bytecode could be responsible, or<br>
> is the problem more likely with llvm proper?  Is there any way I can<br>
> force GHC to pass flags to llvm so I can experiment with different<br>
> settings?<br>
><br>
> Another clue that the cause might be in llvm's autovectorization is<br>
> that when I compile with llvm 3.0 (which does not support<br>
> autovectorization), there are no error messages.<br>
><br>
> * I suspect my code is far too complicated for it to shed any light on<br>
> this question, but it's available at:<br>
> <a href="https://github.com/mikeizbicki/HLearn/tree/dev-7.8/src/examples/hlearn-allknn" target="_blank">https://github.com/mikeizbicki/HLearn/tree/dev-7.8/src/examples/hlearn-allknn</a><br>
> If need be, I can create a minimal sample of code that causes the<br>
> error, but I don't want to go through the trouble if it's not needed.<br>
><br>
><br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'Haskell-Cafe@haskell.org')">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote>