This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] A new meta intrinsic header file for current and future x86 instrinsics.
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Chris Lattner" <clattner at apple dot com>
- Cc: "rajagopal, dwarak" <dwarak dot rajagopal at amd dot com>, "Uros Bizjak" <ubizjak at gmail dot com>, "Richard Guenther" <richard dot guenther at gmail dot com>, "Guo, Xuepeng" <xuepeng dot guo at intel dot com>, gcc-patches at gcc dot gnu dot org, jakub at redhat dot com, "Ye, Joey" <joey dot ye at intel dot com>, "Lin, Weiliang" <weiliang dot lin at intel dot com>, "Harle, Christophe" <christophe dot harle at amd dot com>, "Sebastian Pop" <sebpop at gmail dot com>
- Date: Fri, 21 Nov 2008 23:51:47 -0800
- Subject: Re: [PATCH] A new meta intrinsic header file for current and future x86 instrinsics.
- References: <820531547ADB6847AF89CC220F6128F1737F@pdsmsx001.ccr.corp.intel.com> <4613DBA9-BF19-429F-9B8F-57F8F967940B@apple.com> <6dc9ffc80811211359p24443b80j3278fc8a635b5c7b@mail.gmail.com> <CA9EADC1-DA94-4025-8CB3-796FF65FD0E5@apple.com> <6dc9ffc80811211620u2a578467t2e93311b636a3fc4@mail.gmail.com> <07F78718-6245-4951-8479-3AB811BBEC80@apple.com> <6dc9ffc80811211736j58cfa602m6f2189cc79b0e491@mail.gmail.com> <CB19A7AB-D9F7-4CDE-ACA3-9DAE86CA2F28@apple.com> <6dc9ffc80811211754t7c983d3q7628937519c80666@mail.gmail.com> <2A0B48A2-F0E5-4BAC-8D3B-6170F813EFE6@apple.com>
On Fri, Nov 21, 2008 at 9:34 PM, Chris Lattner <clattner@apple.com> wrote:
> On Nov 21, 2008, at 5:54 PM, H.J. Lu wrote:
>>>>
>>>> Let me clarify a few things:
>>>>
>>>> 1. We didn't add a new file. We just renamed gmmintrin.h to
>>>> immintrin.h.
>>>> 2. Including <immintrin.h> itself doesn't enable any ISA extensions.
>>>> 3. You need to use -mXXX to get the XXX extension from
>>>> <immintrin.h>. It applies to -mmmx, -msse, ... -mavx.
>>>
>>> Sounds good.
>>>
>>>> 4. We will add future new ISA intrinics to a new header file
>>>> and include it from <immintrin.h>.
>>>
>>> Sounds bad. Why not just add everything to mmxintrin.h? How is this
>>> morally different?
>>>
>>
>> Please follow
>>
>> http://gcc.gnu.org/ml/gcc/2008-11/msg00031.html
>
> Followed. What is the point? Can you please answer my question? Thank
> you,
>
There is no mmxintrin.h. Did you mean "add everything to immintrin.h diirectly"?
The consensus is put AVX intrinsics into a separate file and include it in
immintrin.h. The same applies to future extensions.
--
H.J.