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: permit unary plus to be used with vector types


"Jan Beulich" <JBeulich@novell.com> writes:

> Having put together these I'd like to understand three things:
>
> a) Since there doesn't seem to be a mechanism to generate source files
> from templates in the test suite, and since completely testing all
> possible combinations would require adding 460 files, what is the proper
> way to go? Add this large a set of files, or invent a mechanism to
> create source files on the fly from a template (or is there one and I
> failed to identify it)?

Uh.  Why do you need 460 files?  At least all the unary plus tests can
be put in one file, and most of the repetition can be handled with
macros -

#define T(type) type type##v; +type##v

T(vector_type_A);
T(vector_type_B);
...

or something like that.

zw


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