Hi, These two testcases fail on big-endian aarch64 Linux targets as they include arm_neon.h or arm_sve.h which in turns includes stdint.h; this fails as stdint.h includes stubs.h but the stubs for little-endian does not exist for big-endian.
This fixes the problem by restricting these tests to little-endian only. Committed as obvious after a test on aarch64_be-linux-gnu. Thanks, Andrew Pinski testsuite/ChangeLog: PR testsuite/92998 * gcc.target/aarch64/sve/acle/general/dupq_1.c: Restrict to aarch64_little_endian only. * gcc.target/aarch64/torture/simd-abi-8.c: Likewise.
Index: ChangeLog =================================================================== --- ChangeLog (revision 279708) +++ ChangeLog (working copy) @@ -1,3 +1,11 @@ +2019-12-21 Andrew Pinski <apin...@marvell.com> + + PR testsuite/92998 + * gcc.target/aarch64/sve/acle/general/dupq_1.c: + Restrict to aarch64_little_endian only. + * gcc.target/aarch64/torture/simd-abi-8.c: + Likewise. + 2019-12-22 Maciej W. Rozycki <ma...@wdc.com> * lib/gcc-defs.exp (gcc-set-multilib-library-path): Use Index: gcc.target/aarch64/sve/acle/general/dupq_1.c =================================================================== --- gcc.target/aarch64/sve/acle/general/dupq_1.c (revision 279708) +++ gcc.target/aarch64/sve/acle/general/dupq_1.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mlittle-endian" } */ +/* { dg-options "-O2" } */ +/* { dg-require-effective-target aarch64_little_endian } */ #include <arm_sve.h> Index: gcc.target/aarch64/torture/simd-abi-8.c =================================================================== --- gcc.target/aarch64/torture/simd-abi-8.c (revision 279708) +++ gcc.target/aarch64/torture/simd-abi-8.c (working copy) @@ -1,6 +1,7 @@ /* { dg-do compile } */ -/* { dg-options "-std=gnu99 -mlittle-endian" } */ +/* { dg-options "-std=gnu99" } */ /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-require-effective-target aarch64_little_endian } */ #include <arm_neon.h>