libgomp testsuite - disable long double for AMDGCN
authorTobias Burnus <tobias@codesourcery.com>
Wed, 18 Mar 2020 11:07:54 +0000 (12:07 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 18 Mar 2020 11:07:54 +0000 (12:07 +0100)
* testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
#define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
* libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.

* g++.dg/goacc/firstprivate-mappings-1.C: Only set DO_LONG_DOUBLE if
not defined; update comments.
* c-c++-common/goacc/firstprivate-mappings-1.c: Likewise.

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/firstprivate-mappings-1.c
gcc/testsuite/g++.dg/goacc/firstprivate-mappings-1.C
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C
libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c

index 2c7f3505cb38eed05e7fa87b214762fc24ecebba..0b2e4b813f204228995ad7f4b7413df5e88b69e3 100644 (file)
@@ -1,3 +1,9 @@
+2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
+
+       * g++.dg/goacc/firstprivate-mappings-1.C: Only set DO_LONG_DOUBLE if
+       not defined; update comments.
+       * c-c++-common/goacc/firstprivate-mappings-1.c: Likewise.
+
 2020-03-18  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/94188
@@ -33,8 +39,8 @@
        DEFAULT_CXXFLAGS has a value, even if unset by a higher level.
 
 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vabavq_s16.c: New test.
        * gcc.target/arm/mve/intrinsics/vabavq_s32.c: Likewise.
@@ -72,8 +78,8 @@
        * gcc.target/arm/mve/intrinsics/vshlcq_u8.c: Likewise.
 
 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vabdq_f16.c: New test.
        * gcc.target/arm/mve/intrinsics/vabdq_f32.c: Likewise.
        * gcc.target/arm/mve/intrinsics/vsubq_f32.c: Likewise.
 
 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vabdq_s16.c: New test.
        * gcc.target/arm/mve/intrinsics/vabdq_s32.c: Likewise.
        * gcc.target/arm/mve/intrinsics/vsubq_u8.c: Likewise.
 
 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vaddlvq_p_s32.c: New test.
        * gcc.target/arm/mve/intrinsics/vaddlvq_p_u32.c: Likewise.
        * gcc.target/arm/mve/intrinsics/vshlq_u8.c: Likewise.
 
 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vcreateq_s16.c: New test.
        * gcc.target/arm/mve/intrinsics/vcreateq_s32.c: Likewise.
        * gcc.target/arm/mve/intrinsics/vshrq_n_u8.c: Likewise.
 
 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vbrsrq_n_f16.c: New test.
        * gcc.target/arm/mve/intrinsics/vbrsrq_n_f32.c: Likewise.
        * gcc.target/arm/mve/intrinsics/vsubq_n_f32.c: Likewise.
 
 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vctp16q.c: New test.
        * gcc.target/arm/mve/intrinsics/vctp32q.c: Likewise.
        * gcc.target/arm/mve/intrinsics/vpnot.c: Likewise.
 
 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vabsq_s16.c: New test.
        * gcc.target/arm/mve/intrinsics/vabsq_s32.c: Likewise.
        * gcc.dg/pr94015.c: New test.
 
 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vcvtq_s16_f16.c: New test.
        * gcc.target/arm/mve/intrinsics/vcvtq_s32_f32.c: Likewise.
        * gcc.target/arm/mve/intrinsics/vrev64q_u8.c: Likewise.
 
 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vabsq_f16.c: New test.
        * gcc.target/arm/mve/intrinsics/vabsq_f32.c: Likewise.
        * gcc.target/arm/mve/intrinsics/vrndxq_f32.c: Likewise.
 
 2020-03-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/vst4q_f16.c: New test.
        * gcc.target/arm/mve/intrinsics/vst4q_f32.c: Likewise.
 
 
 2020-03-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
-            Mihail Ionescu  <mihail.ionescu@arm.com>
-            Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+           Mihail Ionescu  <mihail.ionescu@arm.com>
+           Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
        * gcc.target/arm/mve/intrinsics/mve_vector_float.c: New test.
        * gcc.target/arm/mve/intrinsics/mve_vector_float1.c: Likewise.
 2020-03-04  Martin Sebor  <msebor@redhat.com>
 
        PR tree-optimization/93986
-        * gcc.dg/pr93986.c: New test.
+       * gcc.dg/pr93986.c: New test.
 
 2020-03-04  David Malcolm  <dmalcolm@redhat.com>
 
index 33576c50ecab3fa9872f55715213f82c428cbc4d..7987beaed9a2eee5204e9d3865084996e0f9ab24 100644 (file)
@@ -2,7 +2,9 @@
 
 /* This file is also sourced from
    '../../../../libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c'
-   as an execution test.  */
+   as an execution test.
+
+   'long double' tests are compiled/used unless DO_LONG_DOUBLE is set to 0.  */
 
 /* See also '../../g++.dg/goacc/firstprivate-mappings-1.C'.  */
 
 # define HAVE_INT128 0
 #endif
 
-
-/* The one is only relevant for offloading compilation; will always be enabled
-   when doing tree scanning.  */
-#ifdef ACC_DEVICE_TYPE_nvidia
-/* PR71064.  */
-# define DO_LONG_DOUBLE 0
-#else
+#ifndef DO_LONG_DOUBLE
 # define DO_LONG_DOUBLE 1
 #endif
 
index 639bf3f329919870e17b8ac4f3895e3dcedf6a9e..1b1badb1a9040c419b169b88e48410e2a82e75f9 100644 (file)
@@ -2,7 +2,9 @@
 
 /* This file is also sourced from
    '../../../../libgomp/testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C'
-   as an execution test.  */
+   as an execution test.
+
+   'long double' tests are compiled/used unless DO_LONG_DOUBLE is set to 0.  */
 
 /* See also '../../c-c++-common/goacc/firstprivate-mappings-1.c'.  */
 
 # define HAVE_INT128 0
 #endif
 
-
-/* The one is only relevant for offloading compilation; will always be enabled
-   when doing tree scanning.  */
-#ifdef ACC_DEVICE_TYPE_nvidia
-/* PR71064.  */
-# define DO_LONG_DOUBLE 0
-#else
+#ifndef DO_LONG_DOUBLE
 # define DO_LONG_DOUBLE 1
 #endif
 
index 5882c8a13f3fef5b59f203b8b74a43da1167c50c..3dbe94bc982dcc6eed3729a263a7a6ec8b5d2ae4 100644 (file)
@@ -1,3 +1,9 @@
+2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
+
+       * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
+       #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
+       * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
+
 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/93566
index c8dba9e5d1c7b5f1f5774aff523cd6ba30dea8d4..7b3e670073c9beddb89feb083a1f2a5977b08266 100644 (file)
@@ -1,3 +1,12 @@
 /* Verify OpenACC 'firstprivate' mappings for C++ reference types.  */
 
+/* PR middle-end/48591 */
+/* PR other/71064 */
+/* Set to 0 for offloading targets not supporting long double.  */
+#if defined(ACC_DEVICE_TYPE_nvidia) || defined(ACC_DEVICE_TYPE_gcn)
+# define DO_LONG_DOUBLE 0
+#else
+# define DO_LONG_DOUBLE 1
+#endif
+
 #include "../../../gcc/testsuite/g++.dg/goacc/firstprivate-mappings-1.C"
index 4a8b310414cfe965fc0de3bc76b0e99c9b06fd92..253f8bf0bd0267b39ab69c0da6d784cfb8b8b0f4 100644 (file)
@@ -3,4 +3,13 @@
 /* { dg-additional-options "-Wno-psabi" } as apparently we're doing funny
    things with vector arguments.  */
 
+/* PR middle-end/48591 */
+/* PR other/71064 */
+/* Set to 0 for offloading targets not supporting long double.  */
+#if defined(ACC_DEVICE_TYPE_nvidia) || defined(ACC_DEVICE_TYPE_gcn)
+# define DO_LONG_DOUBLE 0
+#else
+# define DO_LONG_DOUBLE 1
+#endif
+
 #include "../../../gcc/testsuite/c-c++-common/goacc/firstprivate-mappings-1.c"