aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/csky/constpool-2.c
diff options
context:
space:
mode:
authorXianmiao Qu <cooper.qu@linux.alibaba.com>2022-11-01 15:49:03 +0800
committerXianmiao Qu <cooper.qu@linux.alibaba.com>2023-01-10 19:52:24 +0800
commitb86703a050c61d0dc81410de707b078a27ce4732 (patch)
treefaa604df3fa9943d98789a45963c98c991c3d0b6 /gcc/testsuite/gcc.target/csky/constpool-2.c
parent288b18bf0739a83609e720e8d263181c4ec4d86c (diff)
downloadgcc-b86703a050c61d0dc81410de707b078a27ce4732.zip
gcc-b86703a050c61d0dc81410de707b078a27ce4732.tar.gz
gcc-b86703a050c61d0dc81410de707b078a27ce4732.tar.bz2
C-SKY: Skip other CPUs if the testcases are only for ck801.
Refine some testcases for ck801, if the testcase is only for ck801, add the filename prefix "ck801-", and add dg-skip-if to skip other CPUs. gcc/testsuite/ * gcc.target/csky/and3a.c: Rename to ... * gcc.target/csky/ck801-and.c: ... this. * gcc.target/csky/constpool-3.c: Rename to ... * gcc.target/csky/constpool-2.c: ... this, Rename to ... * gcc.target/csky/constpool-1.c: ... this, Rename to ... * gcc.target/csky/ck801-constpool.c: ... this, and skip if the CPU is not ck801. * gcc.target/csky/ck801-branch.c: Skip if the CPU is not ck801.
Diffstat (limited to 'gcc/testsuite/gcc.target/csky/constpool-2.c')
-rw-r--r--gcc/testsuite/gcc.target/csky/constpool-2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.target/csky/constpool-2.c b/gcc/testsuite/gcc.target/csky/constpool-2.c
index d654420..e3a6e09 100644
--- a/gcc/testsuite/gcc.target/csky/constpool-2.c
+++ b/gcc/testsuite/gcc.target/csky/constpool-2.c
@@ -1,8 +1,8 @@
/* { dg-do compile } */
-/* { dg-csky-options "-mcpu=ck810f -O1 -mconstpool" } */
+/* { dg-csky-options "-mcpu=ck810f -O1 -mno-constpool" } */
-/* Make sure that constant pools are emitted by the compiler when
- -mconstpool is provided. */
+/* Make sure that constant pools are not emitted by the compiler when
+ -mno-constpool is provided. */
void f (unsigned int *u, long long int *l, float *f, double *d)
{
@@ -12,4 +12,4 @@ void f (unsigned int *u, long long int *l, float *f, double *d)
*d = 2.718281828459;
}
-/* { dg-final { scan-assembler-times "\\.long" 6 } } */
+/* { dg-final { scan-assembler-not "\\.long" } } */