<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>(To be more clear: don't use builtins for SSE/AVX, they are both non-portable and fragile; include <immintrin.h> and use the intrinsics.)</div><br><div><div>On Jan 14, 2013, at 4:37 PM, Stephen Canon <<a href="mailto:scanon@apple.com">scanon@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>This is a builtin, not an intrinsic.  The intrinsic is _mm_cmpgt_pd.</div><div><br></div><div>- Steve</div><br><div><div>On Jan 14, 2013, at 4:32 PM, Richard Hadsell <<a href="mailto:hadsell@blueskystudios.com">hadsell@blueskystudios.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  
  <div bgcolor="#FFFFFF" text="#000000">
    It seems that Clang doesn't recognize all of the sse2 intrinsics:<br>
    <pre>./bssSIMD.h:39:9: error: use of undeclared identifier '__builtin_ia32_cmpgtpd'; did you mean '__builtin_ia32_pcmpgtd'?
        r.v_ = __builtin_ia32_cmpgtpd (x, xmax.v_);
               ^~~~~~~~~~~~~~~~~~~~~~
...
./bssSIMD.h:51:9: error: use of undeclared identifier '__builtin_ia32_cmpltpd'; did you mean '__builtin_ia32_pcmpgtd'?
        r.v_ = __builtin_ia32_cmpltpd (x, xmin.v_);
               ^~~~~~~~~~~~~~~~~~~~~~
</pre>
    However, it does not complain about __builtin_ia32_blendvpd,
    __builtin_ia32_maxpd, or __builtin_ia32_minpd.<br>
    <br>
    I built Clang 3.3 from the SVN version about a month ago.  I compile
    with these options:<br>
    <pre>-march=core2 -msse2 -m64 -std=c++0x -fPIC -pthread -gcc-toolchain /opt/gcc-4.7.1
</pre>
    I expected '-march=core2' to be sufficient to enable the sse2
    instructions, and then I added '-msse2' just in case that was the
    problem.  It didn't help.<br>
    <br>
    <div class="moz-signature">-- <br>
      <pre class="moz-signature" cols="256">Dick Hadsell                      203-992-6320  Fax: 203-992-6001
Reply-to:                       <a class="moz-txt-link-abbreviated" href="mailto:hadsell@blueskystudios.com">hadsell@blueskystudios.com</a>
Blue Sky Studios                <a class="moz-txt-link-freetext" href="http://www.blueskystudios.com/">http://www.blueskystudios.com</a>
1 American Lane, Greenwich, CT 06831-2560
</pre>
      <span id="95ea1897-a643-4e1e-a52f-120f139974ac"><font size="2">Follow
          Blue Sky Studios on <a href="http://www.facebook.com/BlueSkyStudios">Facebook</a>
          and <a href="http://twitter.com/#%21/blueskystudios">Twitter</a>
        </font></span></div>
  </div>

_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></blockquote></div><br></div></blockquote></div><br></body></html>