advsimd-intrinsics.exp: Set dg-do-what-default to compile only on ARM targets without...
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 22 May 2015 16:34:35 +0000 (12:34 -0400)
committerSandra Loosemore <sandra@gcc.gnu.org>
Fri, 22 May 2015 16:34:35 +0000 (12:34 -0400)
2015-05-22  Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
* gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp:
Set dg-do-what-default to compile only on ARM targets without
arm_neon_hw execution support.  Remove redundant c-torture-execute
in loop over test cases.

From-SVN: r223580

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

index 6faffebb1cd8102f37bfcf49552e9d99d93e2f01..b5b7b9f9a074781fc55ea03b7cf7bb2b0f1698c1 100644 (file)
@@ -1,3 +1,10 @@
+2015-05-22  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp:
+       Set dg-do-what-default to compile only on ARM targets without
+       arm_neon_hw execution support.  Remove redundant c-torture-execute
+       in loop over test cases.
+
 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        PR target/65491
index 551299ef5634b7fea68d2e2f813ab61270b59e35..583832a07cfb71568adc1d2e9afdcb45705b4b2a 100644 (file)
@@ -32,9 +32,20 @@ load_lib torture-options.exp
 
 dg-init
 
-if {[istarget arm*-*-*]
-    && ![check_effective_target_arm_neon_ok]} then {
-  return
+# 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.
+if {[istarget arm*-*-*]} then {
+    if {![check_effective_target_arm_neon_ok]} then {
+      return
+    }
+    if {![is-effective-target arm_neon_hw]} then {
+        set dg-do-what-default compile
+    }
 }
 
 torture-init
@@ -55,11 +66,11 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
     # performed if the above runtest_file_p decided this runtest
     # instance should execute the test
     gcc_parallel_test_enable 0
-    c-torture-execute $src $additional_flags
     gcc-dg-runtest $src "" $additional_flags
     gcc_parallel_test_enable 1
 }
 
 # All done.
+set dg-do-what-default ${save-dg-do-what-default}
 torture-finish
 dg-finish