[patch, testsuite, ARM] don't clobber dg-do-what-default in advsimd-intrinsics.exp
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 4 Jun 2015 10:02:12 +0000 (06:02 -0400)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Thu, 4 Jun 2015 10:02:12 +0000 (10:02 +0000)
gcc/testsuite/

* gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp:
Move set of dg-do-what-default after early return.

From-SVN: r224119

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp

index 3092acf1fa6da71f51f773f280746b2a734b08fe..c867eeca38539d2eccef0b7c5fd3abd08f25d56b 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-04  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp:
+       Move set of dg-do-what-default after early return.
+
 2015-06-04  Marek Polacek  <polacek@redhat.com>
 
        PR c/66341
index 4679a73cd9e770a0a7349f46eccfcaeb47d933c5..f57da396affba93f3eaa916810e777631cc7b8b6 100644 (file)
@@ -33,7 +33,6 @@ dg-init
 # The default action for a test is 'run'.  Save current default.
 global dg-do-what-default
 set save-dg-do-what-default ${dg-do-what-default}
-set dg-do-what-default run
 
 # For ARM, make sure that we have a target compatible with NEON, and do
 # not attempt to run execution tests if the hardware doesn't support it.
@@ -43,7 +42,11 @@ if {[istarget arm*-*-*]} then {
     }
     if {![is-effective-target arm_neon_hw]} then {
         set dg-do-what-default compile
+    } else {
+        set dg-do-what-default run
     }
+} else {
+    set dg-do-what-default run
 }
 
 set-torture-options $C_TORTURE_OPTIONS {{}} $LTO_TORTURE_OPTIONS