This is the mail archive of the gcc@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: RFC: Add target_isa_flags


On Fri, Apr 13, 2007 at 12:04:04PM -0700, Andrew Pinski wrote:
> On 4/13/07, H. J. Lu <hjl@lucon.org> wrote:
> 
> You don't need to do all this, You can just use variable with MASK
> which was added by JSM when PPC64-linux-gnu's target bits overflowed.

For i386, we are adding new target mask bits for new instruction sets.
The new bits are used togther with existing ISA bits to selectively
enable builtins. I don't know how to make the new variable to work
when a new variable will have a set of bits overlapping with the exist
ones. For example, SSE2 has

#define MASK_SSE2 (1 << 21)

But the new SSE4.1 will have something like

#define OPTION_MASK_SSE4_1 (1 << 2)

I can't use MASK_SSE2 | OPTION_MASK_SSE4_1 since 2 sets are
different.


H.J.


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