[patch, testsuite] don't use dg-run in gcc.dg/vect tests

Sandra Loosemore sandra@codesourcery.com
Thu Sep 25 20:05:00 GMT 2014


While doing some arm-none-eabi testing, I noticed that a bunch of 
gcc.dg/vect tests were causing the target to hang from trying to execute 
code compiled with "-mfpu=neon -mfloat-abi=softfp", on a target that 
doesn't support those instructions.  And, this was caused by tests 
specifying "dg-do run" unconditionally instead of allowing the 
dg-require-effective-target mechanism to decide whether the target can 
run code compiled with the vectorization options added by vect.exp.

This patch fixes the bad tests.  OK to check in?

-Sandra


2014-09-25  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/testsuite/
	* gcc.dg/vect/pr56933.c: Don't specify "dg-do run" explicitly; use
	dg-require-effective-target to decide whether the testcase can
	be run.
	* gcc.dg/vect/pr57705.c: Likewise.
	* gcc.dg/vect/pr57741-2.c: Likewise.
	* gcc.dg/vect/pr57741-3.c: Likewise.
	* gcc.dg/vect/pr59591-1.c: Likewise.
	* gcc.dg/vect/pr59591-2.c: Likewise.
	* gcc.dg/vect/pr60196-1.c: Likewise.
	* gcc.dg/vect/pr60196-2.c: Likewise.
	* gcc.dg/vect/pr60276.c: Likewise.
	* gcc.dg/vect/pr61680.c: Likewise.
	* gcc.dg/vect/pr63148.c: Likewise.
	* gcc.dg/vect/pr63189.c: Likewise.
	* gcc.dg/vect/vect-mask-load-1.c: Likewise.
	* gcc.dg/vect/vect-mask-loadstore-1.c: Likewise.
	* gcc.dg/vect/vect-nop-move.c: Likewise.
	* gcc.dg/vect/vect-simd-clone-10.c: Likewise.
	* gcc.dg/vect/vect-simd-clone-12.c: Likewise.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-vect.patch
Type: text/x-patch
Size: 6831 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140925/064aba65/attachment.bin>


More information about the Gcc-patches mailing list