Commit a422e1ca by Kyrylo Tkachov Committed by Kyrylo Tkachov

[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present

	PR testsuite/85326
	* gcc.target/arm/pr54300.C: Move to...
	* g++.dg/other/pr54300.C: ... Here.  Add target directives.
	* gcc.target/arm/pr55073.C: Move to...
	* g++.dg/other/pr55073.C: ... Here.  Add target directives.
	* gcc.target/arm/pr56184.C: Move to...
	* g++.dg/other/pr56184.C: ... Here.  Add target directives.
	* gcc.target/arm/pr59985.C: Move to...
	* g++.dg/other/pr59985.C: ... Here.  Add target directives.
	* gcc.target/aarch64/pr60675.C: Move to...
	* g++.dg/other/pr60675.C: ... Here.  Add target directives.
	* gcc.target/aarch64/pr81422.C: Move to...
	* g++.dg/other/pr81422.C: ... Here.  Add target directives.
	* gcc.target/aarch64/sve/const_pred_1.C: Move to...
	* g++.dg/other/sve_const_pred_1.C: ... Here.  Add target directives.
	* gcc.target/aarch64/sve/const_pred_2.C: Move to...
	* g++.dg/other/sve_const_pred_2.C: ... Here.  Add target directives.
	* gcc.target/aarch64/sve/const_pred_3.C: Move to...
	* g++.dg/other/sve_const_pred_3.C: ... Here.  Add target directives.
	* gcc.target/aarch64/sve/const_pred_4.C: Move to...
	* g++.dg/other/sve_const_pred_4.C: ... Here.  Add target directives.
	* gcc.target/aarch64/sve/tls_2.C: Move to...
	* g++.dg/other/sve_tls_2.C: ... Here.  Add target directives.
	* gcc.target/aarch64/pr81414.C: Rename to...
	* gcc.target/aarch64/pr81414.c: ... This.
	* gcc.target/aarch64/simd/pr67896.C: Rename to...
	* gcc.target/aarch64/simd/pr67896.c: ... This.  Update error expected
	messages.
	* gcc.target/aarch64/sve/vcond_1.C: Rename to...
	* gcc.target/aarch64/sve/vcond_1.c: ... This.  Avoid use of stdint.h.
	* gcc.target/aarch64/sve/vcond_1_run.C: Rename to...
	* gcc.target/aarch64/sve/vcond_1_run.c: ... This.  Update include
	file name.

From-SVN: r259435
parent 83a658ca
2018-04-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR testsuite/85326
* gcc.target/arm/pr54300.C: Move to...
* g++.dg/other/pr54300.C: ... Here. Add target directives.
* gcc.target/arm/pr55073.C: Move to...
* g++.dg/other/pr55073.C: ... Here. Add target directives.
* gcc.target/arm/pr56184.C: Move to...
* g++.dg/other/pr56184.C: ... Here. Add target directives.
* gcc.target/arm/pr59985.C: Move to...
* g++.dg/other/pr59985.C: ... Here. Add target directives.
* gcc.target/aarch64/pr60675.C: Move to...
* g++.dg/other/pr60675.C: ... Here. Add target directives.
* gcc.target/aarch64/pr81422.C: Move to...
* g++.dg/other/pr81422.C: ... Here. Add target directives.
* gcc.target/aarch64/sve/const_pred_1.C: Move to...
* g++.dg/other/sve_const_pred_1.C: ... Here. Add target directives.
* gcc.target/aarch64/sve/const_pred_2.C: Move to...
* g++.dg/other/sve_const_pred_2.C: ... Here. Add target directives.
* gcc.target/aarch64/sve/const_pred_3.C: Move to...
* g++.dg/other/sve_const_pred_3.C: ... Here. Add target directives.
* gcc.target/aarch64/sve/const_pred_4.C: Move to...
* g++.dg/other/sve_const_pred_4.C: ... Here. Add target directives.
* gcc.target/aarch64/sve/tls_2.C: Move to...
* g++.dg/other/sve_tls_2.C: ... Here. Add target directives.
* gcc.target/aarch64/pr81414.C: Rename to...
* gcc.target/aarch64/pr81414.c: ... This.
* gcc.target/aarch64/simd/pr67896.C: Rename to...
* gcc.target/aarch64/simd/pr67896.c: ... This. Update error expected
messages.
* gcc.target/aarch64/sve/vcond_1.C: Rename to...
* gcc.target/aarch64/sve/vcond_1.c: ... This. Avoid use of stdint.h.
* gcc.target/aarch64/sve/vcond_1_run.C: Rename to...
* gcc.target/aarch64/sve/vcond_1_run.c: ... This. Update include
file name.
2018-04-17 Jakub Jelinek <jakub@redhat.com>
PR middle-end/85414
......
/* { dg-do run } */
/* { dg-do run { target arm*-*-* } } */
/* { dg-require-effective-target arm_neon } */
/* { dg-options "-O2" } */
/* { dg-add-options arm_neon } */
......
/* { dg-do run } */
/* { dg-do run { target arm*-*-* } } */
/* { dg-require-effective-target arm_neon } */
/* { dg-options "-O2" } */
/* { dg-add-options arm_neon } */
......
/* { dg-do compile } */
/* { dg-do compile { target arm*-*-* } } */
/* { dg-skip-if "incompatible options" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
/* { dg-options "-fno-short-enums -O2 -mthumb -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mtune=cortex-a9 -fno-section-anchors -Wno-return-type" } */
......
/* { dg-do compile } */
/* { dg-do compile { target arm*-*-* } } */
/* { dg-skip-if "incompatible options" { arm_thumb1 } } */
/* { dg-options "-g -fcompare-debug -O2 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard" } */
/* { dg-skip-if "need hardfp abi" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
......
/* { dg-do compile } */
/* { dg-do compile { target fpic } } */
/* { dg-options "-std=c++11 -w -O2 -fPIC" } */
namespace CLHEP {
static const double meter = 1000.*10;
......
/* { dg-do compile } */
/* { dg-options "-O2 -msve-vector-bits=256" } */
/* { dg-do compile { target aarch64*-*-* } } */
/* { dg-options "-O2 -march=armv8.2-a+sve -msve-vector-bits=256" } */
#include <stdint.h>
......
/* { dg-do compile } */
/* { dg-options "-O2 -msve-vector-bits=256" } */
/* { dg-do compile { target aarch64*-*-* } } */
/* { dg-options "-O2 -march=armv8.2-a+sve -msve-vector-bits=256" } */
#include <stdint.h>
......
/* { dg-do compile } */
/* { dg-options "-O2 -msve-vector-bits=256" } */
/* { dg-do compile { target aarch64*-*-* } } */
/* { dg-options "-O2 -march=armv8.2-a+sve -msve-vector-bits=256" } */
#include <stdint.h>
......
/* { dg-do compile } */
/* { dg-options "-O2 -msve-vector-bits=256" } */
/* { dg-do compile { target aarch64*-*-* } } */
/* { dg-options "-O2 -march=armv8.2-a+sve -msve-vector-bits=256" } */
#include <stdint.h>
......
/* { dg-do compile } */
/* { dg-options "-O2 -fPIC -msve-vector-bits=256" } */
/* { dg-do compile { target aarch64*-*-* } } */
/* { dg-options "-O2 -march=armv8.2-a+sve -fPIC -msve-vector-bits=256" } */
#include <stdint.h>
......
typedef __Poly8_t A;
typedef __Poly16_t A; /* { dg-error "conflicting declaration" } */
typedef __Poly64_t A; /* { dg-error "conflicting declaration" } */
typedef __Poly128_t A; /* { dg-error "conflicting declaration" } */
typedef __Poly8x8_t B;
typedef __Poly16x8_t B; /* { dg-error "conflicting declaration" } */
typedef __Poly8_t A;
typedef __Poly16_t A; /* { dg-error "conflicting types" } */
typedef __Poly64_t A; /* { dg-error "conflicting types" } */
typedef __Poly128_t A; /* { dg-error "conflicting types" } */
typedef __Poly8x8_t B;
typedef __Poly16x8_t B; /* { dg-error "conflicting types" } */
/* { dg-do assemble { target aarch64_asm_sve_ok } } */
/* { dg-options "-O -msve-vector-bits=256 --save-temps" } */
#include <stdint.h>
typedef int8_t vnx16qi __attribute__((vector_size(32)));
typedef int16_t vnx8hi __attribute__((vector_size(32)));
typedef int32_t vnx4si __attribute__((vector_size(32)));
typedef int64_t vnx2di __attribute__((vector_size(32)));
typedef uint8_t v32qu __attribute__((vector_size(32)));
typedef uint16_t v16hu __attribute__((vector_size(32)));
typedef uint32_t v8su __attribute__((vector_size(32)));
typedef uint64_t v4du __attribute__((vector_size(32)));
typedef __INT8_TYPE__ vnx16qi __attribute__((vector_size(32)));
typedef __INT16_TYPE__ vnx8hi __attribute__((vector_size(32)));
typedef __INT32_TYPE__ vnx4si __attribute__((vector_size(32)));
typedef __INT64_TYPE__ vnx2di __attribute__((vector_size(32)));
typedef __UINT8_TYPE__ v32qu __attribute__((vector_size(32)));
typedef __UINT16_TYPE__ v16hu __attribute__((vector_size(32)));
typedef __UINT32_TYPE__ v8su __attribute__((vector_size(32)));
typedef __UINT64_TYPE__ v4du __attribute__((vector_size(32)));
#define DEF_VCOND_VAR(TYPE, COND, SUFFIX) \
TYPE vcond_##TYPE##_##SUFFIX (TYPE x, TYPE y, TYPE a, TYPE b) \
......
......@@ -2,7 +2,7 @@
/* { dg-options "-O" } */
/* { dg-options "-O -msve-vector-bits=256" { target aarch64_sve256_hw } } */
#include "vcond_1.C"
#include "vcond_1.c"
#define NUM_ELEMS(X) (sizeof (X) / sizeof (X[0]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment