+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
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
# 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