[ARC,committed] Update tmac tests.

Message ID 20190606071913.6477-1-claziss@gmail.com
State New
Headers show
Series
  • [ARC,committed] Update tmac tests.
Related show

Commit Message

Claudiu Zissulescu June 6, 2019, 7:19 a.m.
Fix order of dg-directives such that tests are executed only when
there is no command line cpu option given.

gcc/testsuite/
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

	* gcc.target/arc/tmac-1.c: Reoreder dg-directives.
	* gcc.target/arc/tmac-2.c: Likewise.
---
 gcc/testsuite/ChangeLog               | 5 +++++
 gcc/testsuite/gcc.target/arc/tmac-1.c | 3 +--
 gcc/testsuite/gcc.target/arc/tmac-2.c | 2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

-- 
2.21.0

Patch

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 18a480fcdab..62262461834 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@ 
+2019-06-06  Claudiu Zissulescu  <claziss@synopsys.com>
+
+	* gcc.target/arc/tmac-1.c: Reoreder dg-directives.
+	* gcc.target/arc/tmac-2.c: Likewise.
+
 2019-06-05  Martin Sebor  <msebor@redhat.com>
 
 	PR c/90737
diff --git a/gcc/testsuite/gcc.target/arc/tmac-1.c b/gcc/testsuite/gcc.target/arc/tmac-1.c
index e59df5f6b59..3fcabf5fff2 100644
--- a/gcc/testsuite/gcc.target/arc/tmac-1.c
+++ b/gcc/testsuite/gcc.target/arc/tmac-1.c
@@ -1,5 +1,5 @@ 
-/* { dg-skip-if "" { ! { clmcpu } } } */
 /* { dg-do compile } */
+/* { dg-skip-if "" { ! { clmcpu } } } */
 /* { dg-options "-O2 -mcpu=archs -mmpy-option=8" } */
 
 /* Test MAC operation for MPY_OPTION = 8.  */
@@ -9,4 +9,3 @@ 
 /* { dg-final { scan-assembler "macdu" } } */
 /* { dg-final { scan-assembler "mpyd " } } */
 /* { dg-final { scan-assembler "mpydu" } } */
-
diff --git a/gcc/testsuite/gcc.target/arc/tmac-2.c b/gcc/testsuite/gcc.target/arc/tmac-2.c
index f0136bac3e6..ee1339a2f23 100644
--- a/gcc/testsuite/gcc.target/arc/tmac-2.c
+++ b/gcc/testsuite/gcc.target/arc/tmac-2.c
@@ -1,5 +1,5 @@ 
-/* { dg-skip-if "" { ! { clmcpu } } } */
 /* { dg-do compile } */
+/* { dg-skip-if "" { ! { clmcpu } } } */
 /* { dg-options "-O2 -mcpu=archs -mmpy-option=7" } */
 
 /* Test MAC operation for MPY_OPTION = 7.  */