From f6d7098d76149d245c11bcd591c4346047b94377 Mon Sep 17 00:00:00 2001 From: Andre Simoes Dias Vieira Date: Tue, 7 Apr 2020 15:36:21 +0100 Subject: [PATCH] arm: MVE: Fix -Wall testisms This patch fixes some testisms I found when testing using -Wall/-Werror. gcc/testsuite/ChangeLog: 2020-04-07 Andre Vieira * gcc.target/arm/mve/intrinsics/vuninitializedq_float.c: Fix testism. * gcc.target/arm/mve/intrinsics/vuninitializedq_float1.c: Likewise. * gcc.target/arm/mve/intrinsics/vuninitializedq_int.c: Likewise. * gcc.target/arm/mve/intrinsics/vuninitializedq_int1.c: Likewise. --- gcc/testsuite/ChangeLog | 7 +++++++ .../arm/mve/intrinsics/vuninitializedq_float.c | 5 +++-- .../arm/mve/intrinsics/vuninitializedq_float1.c | 7 ++++--- .../arm/mve/intrinsics/vuninitializedq_int.c | 16 ++++++++-------- .../arm/mve/intrinsics/vuninitializedq_int1.c | 17 +++++++++-------- 5 files changed, 31 insertions(+), 21 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fe79c5c34f5..75a2d3dc69d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2020-04-07 Andre Vieira + + * gcc.target/arm/mve/intrinsics/vuninitializedq_float.c: Fix testism. + * gcc.target/arm/mve/intrinsics/vuninitializedq_float1.c: Likewise. + * gcc.target/arm/mve/intrinsics/vuninitializedq_int.c: Likewise. + * gcc.target/arm/mve/intrinsics/vuninitializedq_int1.c: Likewise. + 2020-04-07 Andre Vieira * gcc.target/arm/mve/intrinsics/mve_vec_extracts_from_memory.c: New diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_float.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_float.c index 3b9c0a74097..52bad05b621 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_float.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_float.c @@ -4,11 +4,12 @@ #include "arm_mve.h" +float16x8_t fa; +float32x4_t fb; + void foo () { - float16x8_t fa; - float32x4_t fb; fa = vuninitializedq_f16 (); fb = vuninitializedq_f32 (); } diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_float1.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_float1.c index 0c94608af41..c6724a52074 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_float1.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_float1.c @@ -4,13 +4,14 @@ #include "arm_mve.h" +float16x8_t fa, faa; +float32x4_t fb, fbb; + void foo () { - float16x8_t fa, faa; - float32x4_t fb, fbb; fa = vuninitializedq (faa); fb = vuninitializedq (fbb); } -/* { dg-final { scan-assembler-times "vstrb.8" 4444} */ +/* { dg-final { scan-assembler-times "vstrb.8" 6 } } */ diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_int.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_int.c index 9ae17e24008..13a0109a9b5 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_int.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_int.c @@ -3,18 +3,18 @@ /* { dg-additional-options "-O0" } */ #include "arm_mve.h" +int8x16_t a; +int16x8_t b; +int32x4_t c; +int64x2_t d; +uint8x16_t ua; +uint16x8_t ub; +uint32x4_t uc; +uint64x2_t ud; void foo () { - int8x16_t a; - int16x8_t b; - int32x4_t c; - int64x2_t d; - uint8x16_t ua; - uint16x8_t ub; - uint32x4_t uc; - uint64x2_t ud; a = vuninitializedq_s8 (); b = vuninitializedq_s16 (); c = vuninitializedq_s32 (); diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_int1.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_int1.c index e8c1f1019c9..a321398709e 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_int1.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vuninitializedq_int1.c @@ -4,17 +4,18 @@ #include "arm_mve.h" +int8x16_t a, aa; +int16x8_t b, bb; +int32x4_t c, cc; +int64x2_t d, dd; +uint8x16_t ua, uaa; +uint16x8_t ub, ubb; +uint32x4_t uc, ucc; +uint64x2_t ud, udd; + void foo () { - int8x16_t a, aa; - int16x8_t b, bb; - int32x4_t c, cc; - int64x2_t d, dd; - uint8x16_t ua, uaa; - uint16x8_t ub, ubb; - uint32x4_t uc, ucc; - uint64x2_t ud, udd; a = vuninitializedq (aa); b = vuninitializedq (bb); c = vuninitializedq (cc); -- 2.30.2