From: Sandra Loosemore Date: Fri, 22 May 2015 16:34:35 +0000 (-0400) Subject: advsimd-intrinsics.exp: Set dg-do-what-default to compile only on ARM targets without... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83844a7d2a66a0c3b98687890419003980e4bf96;p=gcc.git advsimd-intrinsics.exp: Set dg-do-what-default to compile only on ARM targets without arm_neon_hw... 2015-05-22 Sandra Loosemore 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6faffebb1cd..b5b7b9f9a07 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-05-22 Sandra Loosemore + + * 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 PR target/65491 diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp index 551299ef563..583832a07cf 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp @@ -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