[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
This commit is contained in:
Sandra Loosemore 2015-06-04 06:02:12 -04:00 committed by James Greenhalgh
parent e93ca5cade
commit 676d13847e
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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>
PR c/66341

View File

@ -33,7 +33,6 @@ dg-init
# 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.
@ -43,7 +42,11 @@ if {[istarget arm*-*-*]} then {
}
if {![is-effective-target arm_neon_hw]} then {
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