Commit 676d1384 by Sandra Loosemore Committed by James Greenhalgh

[patch, testsuite, ARM] don't clobber dg-do-what-default in advsimd-intrinsics.exp

gcc/testsuite/

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

From-SVN: r224119
parent e93ca5ca
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> 2015-06-04 Marek Polacek <polacek@redhat.com>
PR c/66341 PR c/66341
......
...@@ -33,7 +33,6 @@ dg-init ...@@ -33,7 +33,6 @@ dg-init
# The default action for a test is 'run'. Save current default. # The default action for a test is 'run'. Save current default.
global dg-do-what-default global dg-do-what-default
set save-dg-do-what-default ${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 # 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. # not attempt to run execution tests if the hardware doesn't support it.
...@@ -43,7 +42,11 @@ if {[istarget arm*-*-*]} then { ...@@ -43,7 +42,11 @@ if {[istarget arm*-*-*]} then {
} }
if {![is-effective-target arm_neon_hw]} then { if {![is-effective-target arm_neon_hw]} then {
set dg-do-what-default compile 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 set-torture-options $C_TORTURE_OPTIONS {{}} $LTO_TORTURE_OPTIONS
......
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