> -----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 05/23] arm: improve tests for vmullbq* > > gcc/testsuite/ChangeLog: > > * gcc.target/arm/mve/intrinsics/vmullbq_int_m_s16.c: Improve test.
Ok as before. For further patches in the series that do a similar thing please assume that I'd like a more descriptive entry here 😊 Thanks, Kyrill > * gcc.target/arm/mve/intrinsics/vmullbq_int_m_s32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_m_s8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_m_u16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_m_u32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_m_u8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_s16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_s32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_s8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_u16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_u32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_u8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_x_s16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_x_s32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_x_s8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_x_u16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_x_u32.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_int_x_u8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_poly_m_p16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_poly_m_p8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_poly_p16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_poly_p8.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_poly_x_p16.c: Likewise. > * gcc.target/arm/mve/intrinsics/vmullbq_poly_x_p8.c: Likewise. > --- > .../arm/mve/intrinsics/vmullbq_int_m_s16.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmullbq_int_m_s32.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmullbq_int_m_s8.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmullbq_int_m_u16.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmullbq_int_m_u32.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmullbq_int_m_u8.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmullbq_int_s16.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_s32.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_s8.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_u16.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_u32.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_u8.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_x_s16.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_x_s32.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_x_s8.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_x_u16.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_x_u32.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmullbq_int_x_u8.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmullbq_poly_m_p16.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmullbq_poly_m_p8.c | 34 ++++++++++++++++--- > .../arm/mve/intrinsics/vmullbq_poly_p16.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmullbq_poly_p8.c | 24 +++++++++++-- > .../arm/mve/intrinsics/vmullbq_poly_x_p16.c | 33 ++++++++++++++++-- > .../arm/mve/intrinsics/vmullbq_poly_x_p8.c | 33 ++++++++++++++++-- > 24 files changed, 656 insertions(+), 72 deletions(-) > > diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_s16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_s16.c > index be933274d77..a4cc5e52773 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_s16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m_s16 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.s16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.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/vmullbq_int_m_s32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_s32.c > index 3dfc26761be..a195884567b 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_s32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m_s32 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.s32" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.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/vmullbq_int_m_s8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_s8.c > index f8c449b28a0..3a5d7705d45 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_s8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m_s8 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.s8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.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/vmullbq_int_m_u16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_u16.c > index dd6ed6b71a6..5e327d25a9b 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_u16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m_u16 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.u16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.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/vmullbq_int_m_u32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_u32.c > index 85ce75e7dd8..fb2de994dd8 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_u32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m_u32 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.u32" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.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/vmullbq_int_m_u8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_u8.c > index d131a5d9fd7..4cc06c4ef28 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_m_u8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m_u8 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.u8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_int_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.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/vmullbq_int_s16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_s16.c > index 22f4d27f6cc..16c0982386b 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_s16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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: > +** ... > +** vmullb.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int32x4_t > foo (int16x8_t a, int16x8_t b) > { > return vmullbq_int_s16 (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.s16" } } */ > > +/* > +**foo1: > +** ... > +** vmullb.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int32x4_t > foo1 (int16x8_t a, int16x8_t b) > { > return vmullbq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.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/vmullbq_int_s32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_s32.c > index 6e677f26b84..e0a82d6e640 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_s32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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: > +** ... > +** vmullb.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int64x2_t > foo (int32x4_t a, int32x4_t b) > { > return vmullbq_int_s32 (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.s32" } } */ > > +/* > +**foo1: > +** ... > +** vmullb.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int64x2_t > foo1 (int32x4_t a, int32x4_t b) > { > return vmullbq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.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/vmullbq_int_s8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_s8.c > index f40b8a6c4dd..031a433c2bb 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_s8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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: > +** ... > +** vmullb.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int16x8_t > foo (int8x16_t a, int8x16_t b) > { > return vmullbq_int_s8 (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.s8" } } */ > > +/* > +**foo1: > +** ... > +** vmullb.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int16x8_t > foo1 (int8x16_t a, int8x16_t b) > { > return vmullbq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.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/vmullbq_int_u16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_u16.c > index 3529ab2772d..4bb19bf5cff 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_u16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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: > +** ... > +** vmullb.u16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo (uint16x8_t a, uint16x8_t b) > { > return vmullbq_int_u16 (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.u16" } } */ > > +/* > +**foo1: > +** ... > +** vmullb.u16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo1 (uint16x8_t a, uint16x8_t b) > { > return vmullbq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.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/vmullbq_int_u32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_u32.c > index d843d2bf5fe..d461ed9f9c7 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_u32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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: > +** ... > +** vmullb.u32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint64x2_t > foo (uint32x4_t a, uint32x4_t b) > { > return vmullbq_int_u32 (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.u32" } } */ > > +/* > +**foo1: > +** ... > +** vmullb.u32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint64x2_t > foo1 (uint32x4_t a, uint32x4_t b) > { > return vmullbq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.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/vmullbq_int_u8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_u8.c > index 6268c463ead..c0790778b2d 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_u8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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: > +** ... > +** vmullb.u8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo (uint8x16_t a, uint8x16_t b) > { > return vmullbq_int_u8 (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.u8" } } */ > > +/* > +**foo1: > +** ... > +** vmullb.u8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo1 (uint8x16_t a, uint8x16_t b) > { > return vmullbq_int (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.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/vmullbq_int_x_s16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_s16.c > index 87f8e21a7d0..ee83ca61158 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_s16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int32x4_t > foo (int16x8_t a, int16x8_t b, mve_pred16_t p) > { > return vmullbq_int_x_s16 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.s16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int32x4_t > foo1 (int16x8_t a, int16x8_t b, mve_pred16_t p) > { > return vmullbq_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/vmullbq_int_x_s32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_s32.c > index 5e563728a4a..42ae3324cd9 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_s32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int64x2_t > foo (int32x4_t a, int32x4_t b, mve_pred16_t p) > { > return vmullbq_int_x_s32 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.s32" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int64x2_t > foo1 (int32x4_t a, int32x4_t b, mve_pred16_t p) > { > return vmullbq_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/vmullbq_int_x_s8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_s8.c > index b2ca4134ee5..8dcf9b726b0 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_s8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int16x8_t > foo (int8x16_t a, int8x16_t b, mve_pred16_t p) > { > return vmullbq_int_x_s8 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.s8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > int16x8_t > foo1 (int8x16_t a, int8x16_t b, mve_pred16_t p) > { > return vmullbq_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/vmullbq_int_x_u16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_u16.c > index 15269101fe5..31330da9a93 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_u16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.u16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo (uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmullbq_int_x_u16 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.u16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.u16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo1 (uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmullbq_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/vmullbq_int_x_u32.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_u32.c > index 7a7836303ec..b882d644347 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_u32.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.u32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint64x2_t > foo (uint32x4_t a, uint32x4_t b, mve_pred16_t p) > { > return vmullbq_int_x_u32 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.u32" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.u32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint64x2_t > foo1 (uint32x4_t a, uint32x4_t b, mve_pred16_t p) > { > return vmullbq_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/vmullbq_int_x_u8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_u8.c > index f422a3c66f0..4b402374eb7 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_int_x_u8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.u8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo (uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmullbq_int_x_u8 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.u8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.u8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo1 (uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmullbq_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/vmullbq_poly_m_p16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_m_p16.c > index 527acb74e09..2efb87dff01 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_m_p16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_poly_m_p16 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.p16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_poly_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.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/vmullbq_poly_m_p8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_m_p8.c > index 5403394e870..b435f44cb32 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_m_p8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_poly_m_p8 (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.p8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.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 vmullbq_poly_m (inactive, a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.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/vmullbq_poly_p16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_p16.c > index d01d5997ff4..bfd052222fe 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_p16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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: > +** ... > +** vmullb.p16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo (uint16x8_t a, uint16x8_t b) > { > return vmullbq_poly_p16 (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.p16" } } */ > > +/* > +**foo1: > +** ... > +** vmullb.p16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo1 (uint16x8_t a, uint16x8_t b) > { > return vmullbq_poly (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.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/vmullbq_poly_p8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_p8.c > index de97134add7..a2a53e8a3dc 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_p8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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: > +** ... > +** vmullb.p8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo (uint8x16_t a, uint8x16_t b) > { > return vmullbq_poly_p8 (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.p8" } } */ > > +/* > +**foo1: > +** ... > +** vmullb.p8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo1 (uint8x16_t a, uint8x16_t b) > { > return vmullbq_poly (a, b); > } > > -/* { dg-final { scan-assembler "vmullb.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/vmullbq_poly_x_p16.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_x_p16.c > index f94d9052433..bee45f95939 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_x_p16.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.p16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo (uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmullbq_poly_x_p16 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.p16" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.p16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint32x4_t > foo1 (uint16x8_t a, uint16x8_t b, mve_pred16_t p) > { > return vmullbq_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/vmullbq_poly_x_p8.c > b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_x_p8.c > index 6fdc94496bc..7cd15f3a7f1 100644 > --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_poly_x_p8.c > +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmullbq_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(?: @.*|) > +** ... > +** vmullbt.p8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo (uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmullbq_poly_x_p8 (a, b, p); > } > > -/* { dg-final { scan-assembler "vpst" } } */ > -/* { dg-final { scan-assembler "vmullbt.p8" } } */ > > +/* > +**foo1: > +** ... > +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) > +** ... > +** vpst(?: @.*|) > +** ... > +** vmullbt.p8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) > +** ... > +*/ > uint16x8_t > foo1 (uint8x16_t a, uint8x16_t b, mve_pred16_t p) > { > return vmullbq_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