This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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 2/14] [x86_64] Vector math functions (added vector cos tests)


On Wed, 27 May 2015, Andrew Senkevich wrote:

> > appropriate use of GNU make text-manipulation functions, it should be
> > possible to write
> >
> > $(something): $(objpfx)libm-test.stmp
> > $(something): $(libmvec)
> >
> > where each $(something) is computed from $(libmvec-tests), and so the
> > dependencies are automatically present for all the objects, including the
> > architecture-specific ones such as vlen4-avx2.
> 
> Is it possible to fold the following rules (now in math/Makefile)
> based on $(libm-vec-tests) or some other way? Else I need to move avx2
> related rules to sysdeps Makefile.
> 
> $(objpfx)test-double-vlen2: $(libmvec) $(objpfx)init-arch.o \
>    $(objpfx)test-double-vlen2-wrappers.o
> 
> $(objpfx)test-double-vlen4: $(libmvec) $(objpfx)init-arch.o \
>    $(objpfx)test-double-vlen4-wrappers.o
> 
> $(objpfx)test-double-vlen4-avx2: $(libmvec) $(objpfx)init-arch.o \
> $(objpfx)test-double-vlen4-avx2-wrappers.o
> 
> $(objpfx)test-double-vlen8: $(libmvec) $(objpfx)init-arch.o \
>    $(objpfx)test-double-vlen8-wrappers.o

I'd expect something like:

$(addprefix $(objpfx),$(libm-vec-tests)): $(objpfx)%: $(libmvec) $(objpfx)init-arch.o $(objpfx)%-wrappers.o

(untested) to work.

-- 
Joseph S. Myers
joseph@codesourcery.com


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