This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR target/66746: Failure to compile #include <x86intrin.h> with -miamcu
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 8 Jul 2015 19:56:38 +0200
- Subject: Re: [PATCH] PR target/66746: Failure to compile #include <x86intrin.h> with -miamcu
- Authentication-results: sourceware.org; auth=none
- References: <20150703035321 dot GA7420 at gmail dot com> <CAFULd4ZZE_O7FtMKp+JrSv_Sj8D99jMbQqWSSm3S42qzyEi-5g at mail dot gmail dot com> <CAMe9rOrSRz=EMwfUgSQhA8HJmReTOYaU_biOTtEtboDgMQ6wMQ at mail dot gmail dot com>
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.