<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 12, 2016 at 2:38 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On 12 March 2016 at 11:51, Rail Shafigulin via llvm-dev<br>
<span class=""><<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
> I tried every possible combination of --target I could think of but nothing<br>
> worked. Would you mind helping me out?<br>
<br>
</span>First, 64-bit x86 is "x86_64", and 32-bit is "i386" in the triple. For<br>
ARM you'd probably want "thumbv8" or "aarch64". Also, "eabi" is only a<br>
thing on ARM targets, try "gnu" for x86.<br>
<br>
Cheers.<br>
<span class=""><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><div class="gmail_extra"><br></div>Hi Tim.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for the response. I tried the x86 suggestion but it didn't work. Clearly I'm doing something wrong, but I don't know what exactly. I would really appreciate your help in this. Here is the command line I'm using</div><div class="gmail_extra"><br></div><div class="gmail_extra">clang -S test.c -o test.sse2.x86_64.s --target=x86_64-pc-linux-gnu -mfloat-abi=hard -mcpu=k8 -mfpu=SSE2 -fslp-vectorize-aggressive -fslp-vectorize-aggressive -fslp-vectorize -fvectorize -fno-lax-vector-conversions -O3</div><div class="gmail_extra"><br></div><div class="gmail_extra">Here is the response that I get:</div><div class="gmail_extra"><br><div class="gmail_extra">clang-3.5: warning: argument unused during compilation: '-mfloat-abi=hard'</div><div class="gmail_extra">clang-3.5: warning: argument unused during compilation: '-mcpu=k8'</div><div class="gmail_extra">clang-3.5: warning: argument unused during compilation: '-mfpu=SSE2'</div><div class="gmail_extra">error: unable to create target: 'No available targets are compatible with this triple, see -version for the available targets.'</div><div class="gmail_extra"><br></div><div class="gmail_extra">clang --version command produces the following result:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">clang version 3.5.0 </div><div class="gmail_extra">Target: x86_64-unknown-linux-gnu</div><div class="gmail_extra">Thread model: posix</div></div><div><br></div><div>test.c is attached to this email. </div><div><br></div><div>So what am I doing wrong?</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Rail Shafigulin<br></div>Software Engineer <br>Esencia Technologies<br></div></div></div></div>
</div></div>