diff mbox series

[v4,02/10] libmvec: Add extra-test-objs to test-extras

Message ID 7bd28c328f72f26418a19efd151660381a8b597f.1610986541.git.szabolcs.nagy@arm.com
State Superseded
Headers show
Series fix ifunc with static pie [BZ #27072] | expand

Commit Message

Szabolcs Nagy Jan. 18, 2021, 4:23 p.m. UTC
From: "H.J. Lu" <hjl.tools@gmail.com>

Add extra-test-objs to test-extras so that they are compiled with
-DMODULE_NAME=testsuite instead of -DMODULE_NAME=libc.
---
 sysdeps/x86_64/fpu/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Adhemerval Zanella Jan. 18, 2021, 8:04 p.m. UTC | #1
On 18/01/2021 13:23, Szabolcs Nagy via Libc-alpha wrote:
> From: "H.J. Lu" <hjl.tools@gmail.com>
> 
> Add extra-test-objs to test-extras so that they are compiled with
> -DMODULE_NAME=testsuite instead of -DMODULE_NAME=libc.

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> ---
>  sysdeps/x86_64/fpu/Makefile | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/sysdeps/x86_64/fpu/Makefile b/sysdeps/x86_64/fpu/Makefile
> index a4ff2723a8..9a4bdd075c 100644
> --- a/sysdeps/x86_64/fpu/Makefile
> +++ b/sysdeps/x86_64/fpu/Makefile
> @@ -31,6 +31,12 @@ libmvec-tests += double-vlen2 double-vlen4 double-vlen4-avx2 \
>  tests += test-double-libmvec-sincos test-double-libmvec-sincos-avx \
>  	 test-double-libmvec-sincos-avx2 test-float-libmvec-sincosf \
>  	 test-float-libmvec-sincosf-avx test-float-libmvec-sincosf-avx2
> +test-extras += test-double-libmvec-sincos-avx-main \
> +		   test-double-libmvec-sincos-avx2-main \
> +		   test-double-libmvec-sincos-main \
> +		   test-float-libmvec-sincosf-avx-main \
> +		   test-float-libmvec-sincosf-avx2-main \
> +		   test-float-libmvec-sincosf-main
>  extra-test-objs += test-double-libmvec-sincos-avx-main.o \
>  		   test-double-libmvec-sincos-avx2-main.o \
>  		   test-double-libmvec-sincos-main.o \
> @@ -66,6 +72,8 @@ ifeq (yes,$(config-cflags-avx512))
>  libmvec-tests += double-vlen8 float-vlen16
>  tests += test-double-libmvec-sincos-avx512 \
>  	 test-float-libmvec-sincosf-avx512
> +test-extras += test-double-libmvec-sincos-avx512-main \
> +	       test-float-libmvec-sincosf-avx512-main
>  extra-test-objs += test-double-libmvec-sincos-avx512-main.o \
>  		   test-float-libmvec-sincosf-avx512-main.o
>  
>
diff mbox series

Patch

diff --git a/sysdeps/x86_64/fpu/Makefile b/sysdeps/x86_64/fpu/Makefile
index a4ff2723a8..9a4bdd075c 100644
--- a/sysdeps/x86_64/fpu/Makefile
+++ b/sysdeps/x86_64/fpu/Makefile
@@ -31,6 +31,12 @@  libmvec-tests += double-vlen2 double-vlen4 double-vlen4-avx2 \
 tests += test-double-libmvec-sincos test-double-libmvec-sincos-avx \
 	 test-double-libmvec-sincos-avx2 test-float-libmvec-sincosf \
 	 test-float-libmvec-sincosf-avx test-float-libmvec-sincosf-avx2
+test-extras += test-double-libmvec-sincos-avx-main \
+		   test-double-libmvec-sincos-avx2-main \
+		   test-double-libmvec-sincos-main \
+		   test-float-libmvec-sincosf-avx-main \
+		   test-float-libmvec-sincosf-avx2-main \
+		   test-float-libmvec-sincosf-main
 extra-test-objs += test-double-libmvec-sincos-avx-main.o \
 		   test-double-libmvec-sincos-avx2-main.o \
 		   test-double-libmvec-sincos-main.o \
@@ -66,6 +72,8 @@  ifeq (yes,$(config-cflags-avx512))
 libmvec-tests += double-vlen8 float-vlen16
 tests += test-double-libmvec-sincos-avx512 \
 	 test-float-libmvec-sincosf-avx512
+test-extras += test-double-libmvec-sincos-avx512-main \
+	       test-float-libmvec-sincosf-avx512-main
 extra-test-objs += test-double-libmvec-sincos-avx512-main.o \
 		   test-float-libmvec-sincosf-avx512-main.o