This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR target/66746: Failure to compile #include <x86intrin.h> with -miamcu


On Wed, Jul 8, 2015 at 6:43 PM, H.J. Lu <hjl.tools@gmail.com> wrote:

>>> x86intrin.h has useful intrinsics for instructions for IA MCU.  This
>>> patch adds __iamcu__ check to x86intrin.h and ia32intrin.h.
>>>
>>> OK for trunk?
>>>
>>> H.J.
>>> ---
>>> gcc/
>>>
>>>         PR target/66746
>>>         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
>>>         is defined.
>>>         (__crc32w): Likewise.
>>>         (__crc32d): Likewise.
>>>         (__rdpmc): Likewise.
>>>         (__rdtscp): Likewise.
>>>         (_rdpmc): Likewise.
>>>         (_rdtscp): Likewise.
>>>         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
>>>         is defined.
>>>
>>> gcc/testsuite/
>>>
>>>         PR target/66746
>>>         * gcc.target/i386/pr66746.c: New file.
>>
>> OK.
>>
>
> It is OK to include <adxintrin.h> for IA MCU since GCC can generate ADX
> intrinsics with alternative instuctions if ADX isn't enabled.
>
> OK for trunk?
>
> H.J.
> ---
> PR target/66746
> * config/i386/x86intrin.h: Include <adxintrin.h> if
> __iamcu__ is defined.

Ok if tested properly.

Thanks,
Uros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]