> -----Original Message----- > From: Andrea Corallo <andrea.cora...@arm.com> > Sent: Friday, January 20, 2023 4:40 PM > To: gcc-patches@gcc.gnu.org > Cc: Kyrylo Tkachov <kyrylo.tkac...@arm.com>; Richard Earnshaw > <richard.earns...@arm.com>; Andrea Corallo <andrea.cora...@arm.com> > Subject: [PATCH 06/23] arm: improve tests for vmulltq* > > gcc/testsuite/ChangeLog: > > * gcc.target/arm/mve/intrinsics/vmulltq_int_m_s16.c: Improve test. > * gcc.target/arm/mve/intrinsics/vmulltq_int_m_s32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_m_s8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_m_u16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_m_u32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_m_u8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_s16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_s32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_s8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_u16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_u32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_u8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_x_s16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_x_s32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_x_s8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_x_u16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_x_u32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_int_x_u8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_poly_m_p16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_poly_m_p8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_poly_p16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_poly_p8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_poly_x_p16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmulltq_poly_x_p8.c: Likewise. Ok. Thanks, Kyrill > --- > .../arm/mve/intrinsics/vmulltq_int_m_s16.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmulltq_int_m_s32.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmulltq_int_m_s8.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmulltq_int_m_u16.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmulltq_int_m_u32.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmulltq_int_m_u8.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmulltq_int_s16.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_s32.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_s8.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_u16.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_u32.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_u8.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_x_s16.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_x_s32.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_x_s8.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_x_u16.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_x_u32.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmulltq_int_x_u8.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmulltq_poly_m_p16.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmulltq_poly_m_p8.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmulltq_poly_p16.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmulltq_poly_p8.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmulltq_poly_x_p16.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmulltq_poly_x_p8.c | 33 ++++++++++++++++-- > 24 files changed, 656 insertions(+), 72 deletions(-) > > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s16.c > index 25ecf7a2c51..7f573e9109e 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s16.c > @@ -1,23 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int32x4_t > foo (int32x4_t inactive, int16x8_t a, int16x8_t b, mve_pred16_t p) > { > return vmulltq_int_m_s16 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.s16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int32x4_t > foo1 (int32x4_t inactive, int16x8_t a, int16x8_t b, mve_pred16_t p) > { > return vmulltq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.s16" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s32.c > index f8d02880ea0..da440dd1365 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s32.c > @@ -1,23 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int64x2_t > foo (int64x2_t inactive, int32x4_t a, int32x4_t b, mve_pred16_t p) > { > return vmulltq_int_m_s32 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.s32" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int64x2_t > foo1 (int64x2_t inactive, int32x4_t a, int32x4_t b, mve_pred16_t p) > { > return vmulltq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.s32" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s8.c > index 3f2fc333a65..ceb8e1d5a94 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_s8.c > @@ -1,23 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int16x8_t > foo (int16x8_t inactive, int8x16_t a, int8x16_t b, mve_pred16_t p) > { > return vmulltq_int_m_s8 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.s8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int16x8_t > foo1 (int16x8_t inactive, int8x16_t a, int8x16_t b, mve_pred16_t p) > { > return vmulltq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.s8" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u16.c > index b7ab408d53c..a751546ae13 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u16.c > @@ -1,23 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo (uint32x4_t inactive, uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmulltq_int_m_u16 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.u16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo1 (uint32x4_t inactive, uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmulltq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.u16" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u32.c > index e43ad98d933..a6c4d272968 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u32.c > @@ -1,23 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint64x2_t > foo (uint64x2_t inactive, uint32x4_t a, uint32x4_t b, mve_pred16_t p) > { > return vmulltq_int_m_u32 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.u32" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint64x2_t > foo1 (uint64x2_t inactive, uint32x4_t a, uint32x4_t b, mve_pred16_t p) > { > return vmulltq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.u32" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u8.c > index 7f4b90b08dd..1a7466bb5b8 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_m_u8.c > @@ -1,23 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo (uint16x8_t inactive, uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmulltq_int_m_u8 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.u8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo1 (uint16x8_t inactive, uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmulltq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.u8" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s16.c > index 34b75d4abc8..cd907f6224c 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s16.c > @@ -1,21 +1,41 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmullt.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int32x4_t > foo (int16x8_t a, int16x8_t b) > { > return vmulltq_int_s16 (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.s16" } } */ > > +/* > +**foo1: > +** ... > +** vmullt.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int32x4_t > foo1 (int16x8_t a, int16x8_t b) > { > return vmulltq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.s16" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s32.c > index 7e09bf93e0e..dbc4c80b440 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s32.c > @@ -1,21 +1,41 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmullt.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int64x2_t > foo (int32x4_t a, int32x4_t b) > { > return vmulltq_int_s32 (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.s32" } } */ > > +/* > +**foo1: > +** ... > +** vmullt.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int64x2_t > foo1 (int32x4_t a, int32x4_t b) > { > return vmulltq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.s32" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s8.c > index b6eb1f5e7f2..0fef6a21207 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_s8.c > @@ -1,21 +1,41 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmullt.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int16x8_t > foo (int8x16_t a, int8x16_t b) > { > return vmulltq_int_s8 (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.s8" } } */ > > +/* > +**foo1: > +** ... > +** vmullt.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int16x8_t > foo1 (int8x16_t a, int8x16_t b) > { > return vmulltq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.s8" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u16.c > index f4fc9c0c634..91b6fb4595d 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u16.c > @@ -1,21 +1,41 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmullt.u16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo (uint16x8_t a, uint16x8_t b) > { > return vmulltq_int_u16 (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.u16" } } */ > > +/* > +**foo1: > +** ... > +** vmullt.u16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo1 (uint16x8_t a, uint16x8_t b) > { > return vmulltq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.u16" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u32.c > index d1bc3a8f990..71c62a12afb 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u32.c > @@ -1,21 +1,41 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmullt.u32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint64x2_t > foo (uint32x4_t a, uint32x4_t b) > { > return vmulltq_int_u32 (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.u32" } } */ > > +/* > +**foo1: > +** ... > +** vmullt.u32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint64x2_t > foo1 (uint32x4_t a, uint32x4_t b) > { > return vmulltq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.u32" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u8.c > index 87f3c4e386a..7506adce33e 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_u8.c > @@ -1,21 +1,41 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmullt.u8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo (uint8x16_t a, uint8x16_t b) > { > return vmulltq_int_u8 (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.u8" } } */ > > +/* > +**foo1: > +** ... > +** vmullt.u8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo1 (uint8x16_t a, uint8x16_t b) > { > return vmulltq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.u8" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s16.c > index c13ef50147e..c2376abe268 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s16.c > @@ -1,22 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int32x4_t > foo (int16x8_t a, int16x8_t b, mve_pred16_t p) > { > return vmulltq_int_x_s16 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.s16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int32x4_t > foo1 (int16x8_t a, int16x8_t b, mve_pred16_t p) > { > return vmulltq_int_x (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s32.c > index e82321ecb79..788789db120 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s32.c > @@ -1,22 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int64x2_t > foo (int32x4_t a, int32x4_t b, mve_pred16_t p) > { > return vmulltq_int_x_s32 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.s32" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int64x2_t > foo1 (int32x4_t a, int32x4_t b, mve_pred16_t p) > { > return vmulltq_int_x (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s8.c > index 7f093c26080..3935741d041 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_s8.c > @@ -1,22 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int16x8_t > foo (int8x16_t a, int8x16_t b, mve_pred16_t p) > { > return vmulltq_int_x_s8 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.s8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int16x8_t > foo1 (int8x16_t a, int8x16_t b, mve_pred16_t p) > { > return vmulltq_int_x (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u16.c > index d0f6461448b..32ee5b2e4e8 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u16.c > @@ -1,22 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo (uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmulltq_int_x_u16 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.u16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo1 (uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmulltq_int_x (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u32.c > index 55e19cb204a..cc3105650a1 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u32.c > @@ -1,22 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint64x2_t > foo (uint32x4_t a, uint32x4_t b, mve_pred16_t p) > { > return vmulltq_int_x_u32 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.u32" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint64x2_t > foo1 (uint32x4_t a, uint32x4_t b, mve_pred16_t p) > { > return vmulltq_int_x (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u8.c > index 650c9471c7e..01713fba245 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_int_x_u8.c > @@ -1,22 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo (uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmulltq_int_x_u8 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.u8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.u8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo1 (uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmulltq_int_x (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git > a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_m_p16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_m_p16.c > index 944db4c2fab..6d368e2ba68 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_m_p16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_m_p16.c > @@ -1,23 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.p16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo (uint32x4_t inactive, uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmulltq_poly_m_p16 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.p16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.p16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo1 (uint32x4_t inactive, uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmulltq_poly_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.p16" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_m_p8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_m_p8.c > index d07311943c2..75b8811fdd9 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_m_p8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_m_p8.c > @@ -1,23 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.p8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo (uint16x8_t inactive, uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmulltq_poly_m_p8 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.p8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.p8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo1 (uint16x8_t inactive, uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmulltq_poly_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.p8" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_p16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_p16.c > index 121de8e9c0e..9f08d57eef9 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_p16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_p16.c > @@ -1,21 +1,41 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmullt.p16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo (uint16x8_t a, uint16x8_t b) > { > return vmulltq_poly_p16 (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.p16" } } */ > > +/* > +**foo1: > +** ... > +** vmullt.p16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo1 (uint16x8_t a, uint16x8_t b) > { > return vmulltq_poly (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.p16" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_p8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_p8.c > index c7d9548a8ab..59e6e1bb6e0 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_p8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_p8.c > @@ -1,21 +1,41 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmullt.p8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo (uint8x16_t a, uint8x16_t b) > { > return vmulltq_poly_p8 (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.p8" } } */ > > +/* > +**foo1: > +** ... > +** vmullt.p8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo1 (uint8x16_t a, uint8x16_t b) > { > return vmulltq_poly (a, b); > } > > -/* { dg-final { scan-assembler "vmullt.p8" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_x_p16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_x_p16.c > index fb4b849b8b0..f3d3de2d1d6 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_x_p16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_x_p16.c > @@ -1,22 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.p16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo (uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmulltq_poly_x_p16 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.p16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.p16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo1 (uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmulltq_poly_x (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_x_p8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_x_p8.c > index 1e79b2987c9..2c7a6294540 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_x_p8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmulltq_poly_x_p8.c > @@ -1,22 +1,49 @@ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > /* { dg-add-options arm_v8_1m_mve } */ > /* { dg-additional-options "-O2" } */ > +/* { dg-final { check-function-bodies "**" "" } } */ > > #include "arm_mve.h" > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +/* > +**foo: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.p8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo (uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmulltq_poly_x_p8 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmulltt.p8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmulltt.p8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo1 (uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmulltq_poly_x (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > +#ifdef __cplusplus > +} > +#endif > + > +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ > \ No newline at end of file > -- > 2.25.1
RE: [PATCH 06/23] arm: improve tests for vmulltq*
Kyrylo Tkachov via Gcc-patches Fri, 20 Jan 2023 09:52:46 -0800
- [PATCH 00/23] arm: rework MVE testsuite and... Andrea Corallo via Gcc-patches
- [PATCH 15/23] arm: improve tests for v... Andrea Corallo via Gcc-patches
- RE: [PATCH 15/23] arm: improve tes... Kyrylo Tkachov via Gcc-patches
- [PATCH 17/23] arm: improve tests for v... Andrea Corallo via Gcc-patches
- RE: [PATCH 17/23] arm: improve tes... Kyrylo Tkachov via Gcc-patches
- [PATCH 01/23] arm: improve tests and f... Andrea Corallo via Gcc-patches
- RE: [PATCH 01/23] arm: improve tes... Kyrylo Tkachov via Gcc-patches
- [PATCH 16/23] arm: improve tests for v... Andrea Corallo via Gcc-patches
- RE: [PATCH 16/23] arm: improve tes... Kyrylo Tkachov via Gcc-patches
- [PATCH 06/23] arm: improve tests for v... Andrea Corallo via Gcc-patches
- RE: [PATCH 06/23] arm: improve tes... Kyrylo Tkachov via Gcc-patches
- [PATCH 04/23] arm: improve tests for v... Andrea Corallo via Gcc-patches
- RE: [PATCH 04/23] arm: improve tes... Kyrylo Tkachov via Gcc-patches
- [PATCH 18/23] arm: improve tests for v... Andrea Corallo via Gcc-patches
- RE: [PATCH 18/23] arm: improve tes... Kyrylo Tkachov via Gcc-patches
- [PATCH 05/23] arm: improve tests for v... Andrea Corallo via Gcc-patches
- RE: [PATCH 05/23] arm: improve tes... Kyrylo Tkachov via Gcc-patches
- [PATCH 03/23] arm: improve tests and f... Andrea Corallo via Gcc-patches
- RE: [PATCH 03/23] arm: improve tes... Kyrylo Tkachov via Gcc-patches
- [PATCH 21/23] arm: improve tests and f... Andrea Corallo via Gcc-patches
- RE: [PATCH 21/23] arm: improve tes... Kyrylo Tkachov via Gcc-patches