Tests gcc.target/arm/pr48252.c and gcc.target/arm/neon-vset_lanes8.c
expect little-endian code and fail when compiled with -mbig-endian.
This patch skips the test if the current multilib does not generate
little-endian code.

I'm not able to run execution tests for -mbig-endian for GCC mainline
but have tested this patch with CodeSourcery's GCC 4.6.  OK for trunk?
2011-10-12  Janis Johnson  <jani...@codesourcery.com>

        * gcc.target/arm/pr48252.c: Require arm_little_endian.
        * gcc.target/arm/neon-vset_lanes8.c: Likewise.

Index: gcc/testsuite/gcc.target/arm/pr48252.c
===================================================================
--- gcc/testsuite/gcc.target/arm/pr48252.c      (revision 344214)
+++ gcc/testsuite/gcc.target/arm/pr48252.c      (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target arm_neon_hw } */
+/* { dg-require-effective-target arm_little_endian } */
 /* { dg-options "-O2" } */
 /* { dg-add-options arm_neon } */
 
Index: gcc/testsuite/gcc.target/arm/neon-vset_lanes8.c
===================================================================
--- gcc/testsuite/gcc.target/arm/neon-vset_lanes8.c     (revision 344214)
+++ gcc/testsuite/gcc.target/arm/neon-vset_lanes8.c     (working copy)
@@ -2,6 +2,7 @@
 
 /* { dg-do run } */
 /* { dg-require-effective-target arm_neon_hw } */
+/* { dg-require-effective-target arm_little_endian } */
 /* { dg-options "-O0" } */
 /* { dg-add-options arm_neon } */
 

Reply via email to