pr65105-1.c: Require sse2 effective target.
authorUros Bizjak <uros@gcc.gnu.org>
Thu, 1 Oct 2015 10:06:27 +0000 (12:06 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 1 Oct 2015 10:06:27 +0000 (12:06 +0200)
* gcc.target/i386/pr65105-1.c: Require sse2 effective target.
(main): Rename to sse2_test.  Abort if count != 5.
(dg-options): Add -save-temps.  Use "-msse2 -mtune=slm" instead
of -march=slm.
* gcc.target/i386/pr46865-2.c (dg-options): Remove -save-temps.

From-SVN: r228326

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr46865-2.c
gcc/testsuite/gcc.target/i386/pr65105-1.c

index a8a3481389abfcf55185f26771f165df9a05f527..11ea8b35836211c4493c6721f7f34bbe2d3fe396 100644 (file)
@@ -1,3 +1,11 @@
+2015-10-01  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.target/i386/pr65105-1.c: Require sse2 effective target.
+       (main): Rename to sse2_test.  Abort if count != 5.
+       (dg-options): Add -save-temps.  Use "-msse2 -mtune=slm" instead
+       of -march=slm.
+       * gcc.target/i386/pr46865-2.c (dg-options): Remove -save-temps.
+
 2015-10-01  Richard Biener  <rguenther@suse.de>
 
        * gcc.dg/tree-ssa/ssa-fre-7.c: Adjust.
 
 2015-09-30  Christophe Lyon  <christophe.lyon@linaro.org>
 
-       * g++.dg/cpp0x/stdint.C: Move dg-require-effective-target after
-       dg-do.
+       * g++.dg/cpp0x/stdint.C: Move dg-require-effective-target after dg-do.
        * g++.dg/gomp/tls-wrap4.C: Likewise.
        * gcc.dg/atomic-op-optimize.c: Likewise.
        * gcc.dg/pr54087.c: Likewise.
        * gcc.dg/tls/section-2.c: Likewise.
-       * gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c:
-       Likewise.
+       * gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c: Likewise.
        * gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c: Likewise.
        * gcc.dg/vect/trapv-vect-reduc-4.c: Likewise.
        * gcc.target/arm/divzero.c: Likewise.
@@ -67,8 +73,8 @@
 
 2015-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>
 
-       gfortran.dg/ieee/ieee_4.f90: xfail on i386-*-freebsd*
-       gfortran.dg/round_4.f90: ditto.
+       gfortran.dg/ieee/ieee_4.f90: xfail on i386-*-freebsd*
+       gfortran.dg/round_4.f90: ditto.
 
 2015-09-29  Richard Biener  <rguenther@suse.de>
 
 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
            Sebastian Pop  <s.pop@samsung.com>
 
-       * gcc/testsuite/gcc.dg/graphite/run-id-pr67700-1.c: New test case.
+       * gcc.dg/graphite/run-id-pr67700-1.c: New test case.
        * gcc.dg/graphite/block-1.c: Modified to match the pattern.
        * gcc.dg/graphite/block-3.c: Same.
        * gcc.dg/graphite/block-4.c: Same.
            Sebastian Pop  <s.pop@samsung.com>
 
        PR tree-optimization/67700
-       * testsuite/gcc.dg/graphite/run-id-pr67700.c: New.
+       * gcc.dg/graphite/run-id-pr67700.c: New.
 
 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
 
 
 2015-08-28  Nathan Sidwell  <nathan@acm.org>
 
-       * gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c: Simply
+       * gcc.dg/compat/struct-layout-1_generate.c: Simply
        use exit code for failure.
 
-       * gcc/testsuite/gcc.dg/torture/matrix-1.c: Use plain printf.
-       * gcc/testsuite/gcc.dg/torture/matrix-2.c: Likewise.
-       * gcc/testsuite/gcc.dg/torture/matrix-5.c: Likewise.
-       * gcc/testsuite/gcc.dg/torture/matrix-6.c: Likewise.
-       * gcc/testsuite/gcc.dg/torture/transpose-1.c: Likewise.
-       * gcc/testsuite/gcc.dg/torture/transpose-2.c: Likewise.
-       * gcc/testsuite/gcc.dg/torture/transpose-3.c: Likewise.
-       * gcc/testsuite/gcc.dg/torture/transpose-4.c: Likewise.
-       * gcc/testsuite/gcc.dg/torture/transpose-5.c: Likewise.
-       * gcc/testsuite/gcc.dg/torture/transpose-6.c: Likewise.
+       * gcc.dg/torture/matrix-1.c: Use plain printf.
+       * gcc.dg/torture/matrix-2.c: Likewise.
+       * gcc.dg/torture/matrix-5.c: Likewise.
+       * gcc.dg/torture/matrix-6.c: Likewise.
+       * gcc.dg/torture/transpose-1.c: Likewise.
+       * gcc.dg/torture/transpose-2.c: Likewise.
+       * gcc.dg/torture/transpose-3.c: Likewise.
+       * gcc.dg/torture/transpose-4.c: Likewise.
+       * gcc.dg/torture/transpose-5.c: Likewise.
+       * gcc.dg/torture/transpose-6.c: Likewise.
 
 2015-08-28  Jeff Law  <law@redhat.com>
 
 
 2015-08-24  Nathan Sidwell  <nathan@acm.org>
 
-       * gcc/testsuite/gcc.dg/pr49551.c: Needs -fdata-sections.
+       * gcc.dg/pr49551.c: Needs -fdata-sections.
 
-       * gcc/testsuite/gcc.dg/pr64935-2.c: Needs scheduling.
+       * gcc.dg/pr64935-2.c: Needs scheduling.
 
-       * gcc/testsuite/gcc.dg/torture/pr66101.c: Needs nonlocal goto.
-       * gcc/testsuite/gcc.dg/torture/pr63738.c: Likewise.
-       * gcc/testsuite/gcc.dg/torture/pr64728.c: Likewise.
-       * gcc/testsuite/gcc.dg/pr63748.c: Likewise.
-       * gcc/testsuite/gcc.dg/20020312-2.c: Likewise.
+       * gcc.dg/torture/pr66101.c: Needs nonlocal goto.
+       * gcc.dg/torture/pr63738.c: Likewise.
+       * gcc.dg/torture/pr64728.c: Likewise.
+       * gcc.dg/pr63748.c: Likewise.
+       * gcc.dg/20020312-2.c: Likewise.
 
-       * gcc/testsuite/gcc.dg/torture/pr66123.c: Needs label_values.
+       * gcc.dg/torture/pr66123.c: Needs label_values.
 
-       * gcc/testsuite/gcc.dg/torture/pr41261.c: Needs profiling.
-       * gcc/testsuite/gcc.dg/pr26570.c: Likewise.
-       * gcc/testsuite/gcc.dg/pr61776.c: Likewise.
-       * gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-11.c: Likewise.
-       * gcc/testsuite/gcc.dg/gomp/pr34610.c: Likewise.
-       * gcc/testsuite/gcc.dg/pr54121.c: Likewise.
-       * gcc/testsuite/gcc.dg/20050325-1.c: Likewise.
-       * gcc/testsuite/gcc.dg/pr66899.c: Likewise.
-       * gcc/testsuite/gcc.dg/pr48770.c: Likewise.
-       * gcc/testsuite/gcc.dg/pr24225.c: Likewise.
+       * gcc.dg/torture/pr41261.c: Needs profiling.
+       * gcc.dg/pr26570.c: Likewise.
+       * gcc.dg/pr61776.c: Likewise.
+       * gcc.dg/tree-ssa/ssa-lim-11.c: Likewise.
+       * gcc.dg/gomp/pr34610.c: Likewise.
+       * gcc.dg/pr54121.c: Likewise.
+       * gcc.dg/20050325-1.c: Likewise.
+       * gcc.dg/pr66899.c: Likewise.
+       * gcc.dg/pr48770.c: Likewise.
+       * gcc.dg/pr24225.c: Likewise.
 
-       * gcc/testsuite/gcc.dg/pr27531-1.c: Needs io.
-       * gcc/testsuite/gcc.dg/pr44606.c: Likewise.
+       * gcc.dg/pr27531-1.c: Needs io.
+       * gcc.dg/pr44606.c: Likewise.
 
-       * gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c: Needs weak.
+       * gcc.dg/tree-ssa/nonzero-1.c: Needs weak.
 
-       * gcc/testsuite/gcc.dg/pr51990.c: Needs alloca.
+       * gcc.dg/pr51990.c: Needs alloca.
 
-       * gcc/testsuite/gcc.misc-tests/options.exp: Disable profiling
-       check for nvptx.
+       * gcc.misc-tests/options.exp: Disable profiling check for nvptx.
 
 2015-08-24  Tom de Vries  <tom@codesourcery.com>
 
 
 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
 
-       * g++.dg/abi/mangle-regparm.C (dg-optiond): Add -save-temps.
+       * g++.dg/abi/mangle-regparm.C (dg-options): Add -save-temps.
 
 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
 
 
 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
 
-       * testsuite/gcc.target/i386/noplt-1.c: New test.
-       * testsuite/gcc.target/i386/noplt-2.c: New test.
-       * testsuite/gcc.target/i386/noplt-3.c: New test.
-       * testsuite/gcc.target/i386/noplt-4.c: New test.
+       * gcc.target/i386/noplt-1.c: New test.
+       * gcc.target/i386/noplt-2.c: New test.
+       * gcc.target/i386/noplt-3.c: New test.
+       * gcc.target/i386/noplt-4.c: New test.
 
 2015-06-04  Thomas Koenig  <tkoenig@netcologne.de>
 
 
        PR c/65179
        * c-c++-common/Wshift-negative-value-1.c: New test.
-       * testsuite/c-c++-common/Wshift-negative-value-2.c: New test.
-       * testsuite/c-c++-common/Wshift-negative-value-3.c: New test.
-       * testsuite/c-c++-common/Wshift-negative-value-4.c: New test.
-       * testsuite/c-c++-common/Wshift-negative-value-5.c: New test.
-       * testsuite/c-c++-common/Wshift-negative-value-6.c: New test.
-       * testsuite/gcc.dg/c90-left-shift-1.c: New test.
-       * testsuite/gcc.dg/c99-const-expr-7.c: Add dg-error.
-       * testsuite/gcc.dg/c99-left-shift-1.c: New test.
+       * c-c++-common/Wshift-negative-value-2.c: New test.
+       * c-c++-common/Wshift-negative-value-3.c: New test.
+       * c-c++-common/Wshift-negative-value-4.c: New test.
+       * c-c++-common/Wshift-negative-value-5.c: New test.
+       * c-c++-common/Wshift-negative-value-6.c: New test.
+       * gcc.dg/c90-left-shift-1.c: New test.
+       * gcc.dg/c99-const-expr-7.c: Add dg-error.
+       * gcc.dg/c99-left-shift-1.c: New test.
 
 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
 
 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
 
        PR testsuite/64158
-       * gcc.dg/pr44194-1.c: Add two extra {} pairs to fix up powerpc*-*-linux*
-       and nvptx-*-* blacklisting.
+       * gcc.dg/pr44194-1.c: Add two extra {} pairs to fix up
+       powerpc*-*-linux* and nvptx-*-* blacklisting.
 
        * gcc.dg/sibcall-9.c: New test.
        * gcc.dg/sibcall-10.c: New test.
index 938b6b479f57e2cc1ee6ac940218dc6f62d35ede..220a1c0778bbc8eaca6d2521eb7ea1133159c246 100644 (file)
@@ -1,6 +1,6 @@
 /* PR rtl-optimization/46865 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps" } */
+/* { dg-options "-O2" } */
 
 extern unsigned long f;
 
index bac6c075ab0acc906775fbb13f3c537886ab8a94..de91a20e238ba9f2135952d171e2e35cf4269f2f 100644 (file)
@@ -1,9 +1,12 @@
 /* PR target/pr65105 */
 /* { dg-do run { target { ia32 } } } */
-/* { dg-options "-O2 -march=slm" } */
+/* { dg-options "-O2 -msse2 -mtune=slm -save-temps" } */
+/* { dg-require-effective-target sse2 } */
 /* { dg-final { scan-assembler "por" } } */
 /* { dg-final { scan-assembler "pand" } } */
 
+#include "sse2-check.h"
+
 #include "stdlib.h"
 
 static int count = 0;
@@ -40,11 +43,13 @@ fill_data (long long *arr)
   arr[5] = 0xff000000L;
 }
 
-int
-main (int argc, const char **argv)
+static void
+sse2_test (void)
 {
   long long arr[6];
   fill_data (arr);
   test (arr);
-  return count - 5;
+
+  if (count != 5)
+    __builtin_abort ();
 }