[cfe-dev] gcc 4.2.1 xmmintrin.h vs clang's xxmintrin.h

Amit Kulkarni amitkulz at gmail.com
Wed Feb 16 13:44:43 PST 2011


Hi Ted,

Thanks, that helped a lot! Now checking if that compiles with system gcc

--amit

On Wed, Feb 16, 2011 at 3:31 PM, Ted Kremenek <kremenek at apple.com> wrote:
> Hi Amit,
>
> I think the information you are looking for is here:
>
>  http://clang.llvm.org/compatibility.html#vector_builtins
>
> The upshot is that the GCC builtins are not provided, and users should use the portable high-level operations that lower to the appropriate operations for the given compiler.
>
> On Feb 16, 2011, at 1:25 PM, Amit Kulkarni wrote:
>
>> Hi,
>>
>> I am compiling a program which uses '__builtin_ia32_cmpgtps' and
>> '__builtin_ia32_cmpeqps'. I find that they are SSE extensions.
>> Now the header file for OpenBSD's gcc 4.2.1 /usr/include/xmmintrin.h
>> has a mention of those two instructions. But the header file for clang
>> in
>> /usr/local/lib/clang/2.9/include/xmmintrin.h doesn't have any mention
>> of this? Compiling C++ programs is picking up clang's header vs gcc
>> header.
>>
>> looking at http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080929/007949.html,
>> it used to be present in clang, now where is it disappeared to?
>>
>> Thanks
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>




More information about the cfe-dev mailing list