From: Martin Liska Date: Tue, 21 May 2019 06:55:07 +0000 (+0200) Subject: Move a test-case (PR testsuite/90551). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=601071c8bdca8274474efd83494e1fc1f54412a0;p=gcc.git Move a test-case (PR testsuite/90551). 2019-05-21 Martin Liska PR testsuite/90551 * pr90263.c: Move from gcc.c-torture/compile into gcc.dg. From-SVN: r271454 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f5174b049e1..bf9b4865502 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-05-21 Martin Liska + + PR testsuite/90551 + * pr90263.c: Move from gcc.c-torture/compile + into gcc.dg. + 2019-05-20 Uroš Bizjak PR testsuite/90503 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr90263.c b/gcc/testsuite/gcc.c-torture/compile/pr90263.c deleted file mode 100644 index df3ab0fc1cd..00000000000 --- a/gcc/testsuite/gcc.c-torture/compile/pr90263.c +++ /dev/null @@ -1,10 +0,0 @@ -/* PR middle-end/90263 */ -/* { dg-require-effective-target glibc } */ - -int *f (int *p, int *q, long n) -{ - return __builtin_mempcpy (p, q, n); -} - -/* { dg-final { scan-assembler "mempcpy" { target { i?86-*-* x86_64-*-* } } } } */ -/* { dg-final { scan-assembler "memcpy" { target { ! { i?86-*-* x86_64-*-* } } } } } */ diff --git a/gcc/testsuite/gcc.dg/pr90263.c b/gcc/testsuite/gcc.dg/pr90263.c new file mode 100644 index 00000000000..acf3db16640 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr90263.c @@ -0,0 +1,11 @@ +/* PR middle-end/90263 */ +/* { dg-do compile } */ +/* { dg-require-effective-target glibc } */ + +int *f (int *p, int *q, long n) +{ + return __builtin_mempcpy (p, q, n); +} + +/* { dg-final { scan-assembler "mempcpy" { target { i?86-*-* x86_64-*-* } } } } */ +/* { dg-final { scan-assembler "memcpy" { target { ! { i?86-*-* x86_64-*-* } } } } } */