The test includes <arm_neon.h> which is only available on AArch64.
Add a target selector to prevent spurious compile failures on non-AArch64
configurations.

gcc/testsuite/ChangeLog:
        * gcc.dg/pr123286.c: Restrict dg-do compile to aarch64*-*-* targets.

Signed-off-by: Naveen <[email protected]>
---
 gcc/testsuite/gcc.dg/pr123286.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/pr123286.c b/gcc/testsuite/gcc.dg/pr123286.c
index d6689aa91d4..17d3e0175b3 100644
--- a/gcc/testsuite/gcc.dg/pr123286.c
+++ b/gcc/testsuite/gcc.dg/pr123286.c
@@ -1,5 +1,5 @@
 /* PR middle-end/123286 */
-/* { dg-do compile } */
+/* { dg-do compile { target aarch64*-*-* } } */
 /* { dg-additional-options "-O2 -fdump-tree-optimized" } */
 
 #include <arm_neon.h>
-- 
2.34.1

Reply via email to