gcc, Arm: Fix testisms for MVE testsuite
This patch fixes some testism where -mfpu=auto was missing or where we could end up with -mfloat-abi=hard and soft on the same command-line. gcc/testsuite/ChangeLog: 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com> * gcc.target/arm/mve/intrinsics/mve_fp_fpu1.c: Fix testisms. * gcc.target/arm/mve/intrinsics/mve_fp_fpu2.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_fpu1.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_fpu2.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_fpu3.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_libcall1.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_libcall2.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_vector_float.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_vector_float1.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_vector_float2.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_vector_int.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_vector_int1.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_vector_int2.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_vector_uint.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_vector_uint1.c: Likewise. * gcc.target/arm/mve/intrinsics/mve_vector_uint2.c: Likewise. * gcc.target/arm/mve/intrinsics/vshrntq_m_n_u32.c: Likewise.
This commit is contained in:
parent
0efe7d8796
commit
005f6fc59e
@ -1,3 +1,23 @@
|
||||
2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
|
||||
|
||||
* gcc.target/arm/mve/intrinsics/mve_fp_fpu1.c: Fix testisms.
|
||||
* gcc.target/arm/mve/intrinsics/mve_fp_fpu2.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_fpu1.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_fpu2.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_fpu3.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_libcall1.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_libcall2.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_vector_float.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_vector_float1.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_vector_float2.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_vector_int.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_vector_int1.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_vector_int2.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_vector_uint.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_vector_uint1.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/mve_vector_uint2.c: Likewise.
|
||||
* gcc.target/arm/mve/intrinsics/vshrntq_m_n_u32.c: Likewise.
|
||||
|
||||
2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
|
||||
|
||||
* gcc.target/arm/mve/intrinsics/mve_move_gpr_to_gpr.c: New test.
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=hard -mthumb" } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=hard -mthumb -mfpu=auto" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=softfp -mthumb" } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=softfp -mthumb -mfpu=auto" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb" } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb -mfpu=auto" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=softfp -mthumb" } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=softfp -mthumb -mfpu=auto" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=soft -mthumb" } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=hard" } { "" } } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=soft -mthumb -mfpu=auto" } */
|
||||
|
||||
int
|
||||
foo1 (int value)
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb -mfpu=auto" } */
|
||||
|
||||
float
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb -mfpu=auto" } */
|
||||
|
||||
double
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
|
||||
/* { dg-add-options arm_v8_1m_mve_fp } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=hard -mthumb" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
|
||||
/* { dg-add-options arm_v8_1m_mve_fp } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=hard -mthumb" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
|
||||
/* { dg-add-options arm_v8_1m_mve_fp } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=hard -mthumb" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-add-options arm_v8_1m_mve } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-add-options arm_v8_1m_mve } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
@ -10,7 +11,7 @@ int32x4_t value3;
|
||||
int64x2_t value4;
|
||||
|
||||
int8x16_t
|
||||
foo8 ()
|
||||
foo8 (void)
|
||||
{
|
||||
int8x16_t b = value1;
|
||||
return b;
|
||||
@ -21,7 +22,7 @@ foo8 ()
|
||||
/* { dg-final { scan-assembler "vldrb.8*" } } */
|
||||
|
||||
int16x8_t
|
||||
foo16 ()
|
||||
foo16 (void)
|
||||
{
|
||||
int16x8_t b = value2;
|
||||
return b;
|
||||
@ -32,7 +33,7 @@ foo16 ()
|
||||
/* { dg-final { scan-assembler "vldrb.8*" } } */
|
||||
|
||||
int32x4_t
|
||||
foo32 ()
|
||||
foo32 (void)
|
||||
{
|
||||
int32x4_t b = value3;
|
||||
return b;
|
||||
@ -43,7 +44,7 @@ foo32 ()
|
||||
/* { dg-final { scan-assembler "vldrb.8" } } */
|
||||
|
||||
int64x2_t
|
||||
foo64 ()
|
||||
foo64 (void)
|
||||
{
|
||||
int64x2_t b = value4;
|
||||
return b;
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-add-options arm_v8_1m_mve } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-add-options arm_v8_1m_mve } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-add-options arm_v8_1m_mve } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-add-options arm_v8_1m_mve } */
|
||||
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -O2" } */
|
||||
/* { dg-skip-if "Skip if not auto" {*-*-*} {"-mfpu=*"} {"-mfpu=auto"} } */
|
||||
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
|
||||
/* { dg-add-options arm_v8_1m_mve } */
|
||||
/* { dg-additional-options "-O2" } */
|
||||
|
||||
#include "arm_mve.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user