Commit 83844a7d by Sandra Loosemore Committed by Sandra Loosemore

advsimd-intrinsics.exp: Set dg-do-what-default to compile only on ARM targets…

advsimd-intrinsics.exp: Set dg-do-what-default to compile only on ARM targets without arm_neon_hw...

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
parent 92d0b058
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> 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/65491 PR target/65491
......
...@@ -32,9 +32,20 @@ load_lib torture-options.exp ...@@ -32,9 +32,20 @@ load_lib torture-options.exp
dg-init dg-init
if {[istarget arm*-*-*] # The default action for a test is 'run'. Save current default.
&& ![check_effective_target_arm_neon_ok]} then { global dg-do-what-default
return 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 torture-init
...@@ -55,11 +66,11 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c]] { ...@@ -55,11 +66,11 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
# performed if the above runtest_file_p decided this runtest # performed if the above runtest_file_p decided this runtest
# instance should execute the test # instance should execute the test
gcc_parallel_test_enable 0 gcc_parallel_test_enable 0
c-torture-execute $src $additional_flags
gcc-dg-runtest $src "" $additional_flags gcc-dg-runtest $src "" $additional_flags
gcc_parallel_test_enable 1 gcc_parallel_test_enable 1
} }
# All done. # All done.
set dg-do-what-default ${save-dg-do-what-default}
torture-finish torture-finish
dg-finish dg-finish
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment