re PR target/57264 (cld not emitted when string instructions used, and '-mcld' on...
authorUros Bizjak <uros@gcc.gnu.org>
Mon, 13 May 2013 17:37:48 +0000 (19:37 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 13 May 2013 17:37:48 +0000 (19:37 +0200)
PR target/57264
* gcc.target/i386/pr57264.c: New test.

From-SVN: r198839

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr57264.c [new file with mode: 0644]

index cc2d06b..6c8691f 100644 (file)
@@ -1,11 +1,15 @@
+2013-05-13  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/57264
+       * gcc.target/i386/pr57264.c: New test.
+
 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.dg/vector-shift-2.c: Add -O to dg-options.
 
 2013-05-13  Greta Yorsh  <Greta.Yorsh@arm.com>
 
-       * gcc.dg/tree-ssa/forwprop-26.c: Add -fno-short-enums
-       to dg-options.
+       * gcc.dg/tree-ssa/forwprop-26.c: Add -fno-short-enums to dg-options.
 
 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/57157
        * c-c++-common/rotate-1.c: Add 32 tests with +.
        * c-c++-common/rotate-1a.c: Adjust.
-       * c-c++-common/rotate-2.c: Add 32 tests with +, expect
-       only 48 rotates.
+       * c-c++-common/rotate-2.c: Add 32 tests with +, expect only 48 rotates.
        * c-c++-common/rotate-2b.c: New test.
        * c-c++-common/rotate-3.c: Add 32 tests with +.
-       * c-c++-common/rotate-4.c: Add 32 tests with +, expect
-       only 48 rotates.
+       * c-c++-common/rotate-4.c: Add 32 tests with +, expect only 48 rotates.
        * c-c++-common/rotate-4b.c: New test.
        * c-c++-common/rotate-5.c: New test.
 
diff --git a/gcc/testsuite/gcc.target/i386/pr57264.c b/gcc/testsuite/gcc.target/i386/pr57264.c
new file mode 100644 (file)
index 0000000..46fce7f
--- /dev/null
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-O1 -mcld" } */
+
+void test (int x, int **pp)
+{
+  while (x)
+    {
+      int *ip = *pp;
+      int *op = *pp;
+      while (*ip)
+       {
+         int v = *ip++;
+         *op++ = v + 1;
+       }
+    }
+}
+
+/* { dg-final { scan-assembler-not "stosl" } } */