fix directives order in a test case

Message ID
State New
Headers show

Commit Message

Eric Fisher July 1, 2010, 6:36 a.m.

I found this problem when run test suite. A 'FAIL' occurs though the
test is not supported on the target. According to the gccint,
dg-require-effective-target,  this directive must appear after any
dg-do directive in the test and before any dg-additional-sources
directive. This patch moves dg-require-effective-target after dg-do.

Is it OK?

    *gcc.dg/vect/fast-math-vect-reduc-8.c: move
dg-require-effective-target after dg-do.


Eric Fisher


Index: gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c
--- gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c	(revision 161653)
+++ gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c	(working copy)
@@ -1,5 +1,5 @@ 
-/* { dg-require-effective-target vect_float } */
 /* { dg-do compile } */
+/* { dg-require-effective-target vect_float } */
 #include "tree-vect.h"