From 248fabe6a7a04a22079886b6eebc3e6758c2de1e Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Thu, 6 Jun 2019 09:19:36 +0200 Subject: [PATCH] [ARC] Update tmac tests. 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 * gcc.target/arc/tmac-1.c: Reoreder dg-directives. * gcc.target/arc/tmac-2.c: Likewise. From-SVN: r271986 --- 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(-) 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 + + * gcc.target/arc/tmac-1.c: Reoreder dg-directives. + * gcc.target/arc/tmac-2.c: Likewise. + 2019-06-05 Martin Sebor 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. */ -- 2.30.2