[23/23] arm: fix missing extern "C" in MVE tests

Message ID 20230120163948.752531-24-andrea.corallo@arm.com
State Accepted
Headers
Series arm: rework MVE testsuite and rework backend where necessary (3rd chunck) |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Andrea Corallo Jan. 20, 2023, 4:39 p.m. UTC
  gcc/testsuite/ChangeLog:

	* gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c: Add missing extern
	"C".
	* gcc.target/arm/mve/intrinsics/vhaddq_n_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_n_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_n_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_n_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_n_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhaddq_x_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_n_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_n_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_n_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_n_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_n_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_n_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vhsubq_x_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vmladavaxq_p_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vmladavaxq_p_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vmladavaxq_p_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vmladavaxq_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vmladavaxq_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vmladavaxq_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_n_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_n_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_n_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_n_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_n_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_n_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqaddq_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqdmlahq_n_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqdmlahq_n_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqdmlahq_n_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqdmlashq_n_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqdmlashq_n_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vqdmlashq_n_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vsetq_lane_f16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vsetq_lane_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vsetq_lane_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vsetq_lane_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vsetq_lane_s64.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vsetq_lane_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vsetq_lane_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vsetq_lane_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vsetq_lane_u64.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vsetq_lane_u8.c: Likewise.
---
 .../gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c          | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_n_s32.c          | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s8.c | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_n_u16.c          | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_n_u32.c          | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u8.c | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s16.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s32.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s8.c   | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u16.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u32.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u8.c   | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_s16.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_s32.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_s8.c         | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_u16.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_u32.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_u8.c         | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_x_s16.c          | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_x_s32.c          | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s8.c | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_x_u16.c          | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhaddq_x_u32.c          | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u8.c | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_n_s16.c          | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_n_s32.c          | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s8.c | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_n_u16.c          | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_n_u32.c          | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u8.c | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s16.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s32.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s8.c   | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u16.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u32.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u8.c   | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_s16.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_s32.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_s8.c         | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_u16.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_u32.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_u8.c         | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_x_s16.c          | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_x_s32.c          | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s8.c | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_x_u16.c          | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vhsubq_x_u32.c          | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u8.c | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vmladavaxq_p_s16.c      | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vmladavaxq_p_s32.c      | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vmladavaxq_p_s8.c       | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vmladavaxq_s16.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vmladavaxq_s32.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vmladavaxq_s8.c         | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqaddq_n_s16.c          | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqaddq_n_s32.c          | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s8.c | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqaddq_n_u16.c          | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqaddq_n_u32.c          | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u8.c | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s16.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s32.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s8.c   | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u16.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u32.c  | 8 ++++++++
 gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u8.c   | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqdmlahq_n_s16.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqdmlahq_n_s32.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqdmlahq_n_s8.c         | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s16.c     | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s32.c     | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s8.c      | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqdmlashq_n_s16.c       | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqdmlashq_n_s32.c       | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vqdmlashq_n_s8.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vsetq_lane_f16.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vsetq_lane_f32.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vsetq_lane_s16.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vsetq_lane_s32.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vsetq_lane_s64.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vsetq_lane_s8.c         | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vsetq_lane_u16.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vsetq_lane_u32.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vsetq_lane_u64.c        | 8 ++++++++
 .../gcc.target/arm/mve/intrinsics/vsetq_lane_u8.c         | 8 ++++++++
 85 files changed, 680 insertions(+)
  

Comments

Kyrylo Tkachov Jan. 20, 2023, 6:10 p.m. UTC | #1
> -----Original Message-----
> From: Andrea Corallo <andrea.corallo@arm.com>
> Sent: Friday, January 20, 2023 4:40 PM
> To: gcc-patches@gcc.gnu.org
> Cc: Kyrylo Tkachov <Kyrylo.Tkachov@arm.com>; Richard Earnshaw
> <Richard.Earnshaw@arm.com>; Andrea Corallo <Andrea.Corallo@arm.com>
> Subject: [PATCH 23/23] arm: fix missing extern "C" in MVE tests
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c: Add missing extern
> 	"C".
> 	* gcc.target/arm/mve/intrinsics/vhaddq_n_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_n_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_n_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_n_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_n_u8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_u8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_n_u8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhaddq_x_u8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_n_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_n_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_n_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_n_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_n_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_n_u8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_u8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_n_u8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vhsubq_x_u8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vmladavaxq_p_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vmladavaxq_p_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vmladavaxq_p_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vmladavaxq_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vmladavaxq_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vmladavaxq_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_n_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_n_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_n_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_n_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_n_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_n_u8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqaddq_u8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqdmlahq_n_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqdmlahq_n_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqdmlahq_n_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqdmlashq_n_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqdmlashq_n_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vqdmlashq_n_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vsetq_lane_f16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vsetq_lane_f32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vsetq_lane_s16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vsetq_lane_s32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vsetq_lane_s64.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vsetq_lane_s8.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vsetq_lane_u16.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vsetq_lane_u32.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vsetq_lane_u64.c: Likewise.
> 	* gcc.target/arm/mve/intrinsics/vsetq_lane_u8.c: Likewise.

Ok.
Thanks,
Kyrill

> ---
>  .../gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c          | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_n_s32.c          | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s8.c | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_n_u16.c          | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_n_u32.c          | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u8.c | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s16.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s32.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s8.c   | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u16.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u32.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u8.c   | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_s16.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_s32.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_s8.c         | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_u16.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_u32.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_x_n_u8.c         | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_x_s16.c          | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_x_s32.c          | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s8.c | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_x_u16.c          | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhaddq_x_u32.c          | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u8.c | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_n_s16.c          | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_n_s32.c          | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s8.c | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_n_u16.c          | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_n_u32.c          | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u8.c | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s16.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s32.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s8.c   | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u16.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u32.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u8.c   | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_s16.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_s32.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_s8.c         | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_u16.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_u32.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_x_n_u8.c         | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_x_s16.c          | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_x_s32.c          | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s8.c | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_x_u16.c          | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vhsubq_x_u32.c          | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u8.c | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vmladavaxq_p_s16.c      | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vmladavaxq_p_s32.c      | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vmladavaxq_p_s8.c       | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vmladavaxq_s16.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vmladavaxq_s32.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vmladavaxq_s8.c         | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqaddq_n_s16.c          | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqaddq_n_s32.c          | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s8.c | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqaddq_n_u16.c          | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqaddq_n_u32.c          | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u8.c | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s16.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s32.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s8.c   | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u16.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u32.c  | 8 ++++++++
>  gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u8.c   | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqdmlahq_n_s16.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqdmlahq_n_s32.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqdmlahq_n_s8.c         | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s16.c     | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s32.c     | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s8.c      | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqdmlashq_n_s16.c       | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqdmlashq_n_s32.c       | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vqdmlashq_n_s8.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vsetq_lane_f16.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vsetq_lane_f32.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vsetq_lane_s16.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vsetq_lane_s32.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vsetq_lane_s64.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vsetq_lane_s8.c         | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vsetq_lane_u16.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vsetq_lane_u32.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vsetq_lane_u64.c        | 8 ++++++++
>  .../gcc.target/arm/mve/intrinsics/vsetq_lane_u8.c         | 8 ++++++++
>  85 files changed, 680 insertions(+)
> 
> diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c
> index 20a999da1d2..31f78b30ed8 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int16x8_t a, int16_t b)
>    return vhaddq (a, b);
>  }
> 
> +#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/vhaddq_n_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s32.c
> index 986cb8d3ba5..77c0521161c 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32x4_t a, int32_t b)
>    return vhaddq (a, b);
>  }
> 
> +#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/vhaddq_n_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s8.c
> index 57a4b36f5fe..1cf93d50379 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int8x16_t a, int8_t b)
>    return vhaddq (a, b);
>  }
> 
> +#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/vhaddq_n_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u16.c
> index abed33b0e37..98d80e42da9 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint16x8_t a)
>    return vhaddq (a, 1);
>  }
> 
> +#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/vhaddq_n_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u32.c
> index 5e5204fb3a7..9b7e611c0e5 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint32x4_t a)
>    return vhaddq (a, 1);
>  }
> 
> +#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/vhaddq_n_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u8.c
> index b35221ef81b..4d82970e7ec 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint8x16_t a)
>    return vhaddq (a, 1);
>  }
> 
> +#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/vhaddq_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s16.c
> index 310964f3440..2788eb2f8ff 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int16x8_t a, int16x8_t b)
>    return vhaddq (a, b);
>  }
> 
> +#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/vhaddq_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s32.c
> index d8222645c21..67872a77076 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32x4_t a, int32x4_t b)
>    return vhaddq (a, b);
>  }
> 
> +#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/vhaddq_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s8.c
> index 85b2feee346..1ec890591ad 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int8x16_t a, int8x16_t b)
>    return vhaddq (a, b);
>  }
> 
> +#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/vhaddq_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u16.c
> index 2da0aa053e5..bc84618b036 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (uint16x8_t a, uint16x8_t b)
>    return vhaddq (a, b);
>  }
> 
> +#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/vhaddq_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u32.c
> index 49b865a123b..6abdfce981f 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (uint32x4_t a, uint32x4_t b)
>    return vhaddq (a, b);
>  }
> 
> +#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/vhaddq_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u8.c
> index 5ecd3cbf6ec..0c68c68206b 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (uint8x16_t a, uint8x16_t b)
>    return vhaddq (a, b);
>  }
> 
> +#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/vhaddq_x_n_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s16.c
> index a4e277d4e1f..d5bff94a46e 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int16x8_t a, int16_t b, mve_pred16_t p)
>    return vhaddq_x (a, b, p);
>  }
> 
> +#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/vhaddq_x_n_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s32.c
> index c79b88d6ced..af3e219b3f2 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int32x4_t a, int32_t b, mve_pred16_t p)
>    return vhaddq_x (a, b, p);
>  }
> 
> +#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/vhaddq_x_n_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s8.c
> index 61893536231..a4551e207c2 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int8x16_t a, int8_t b, mve_pred16_t p)
>    return vhaddq_x (a, b, p);
>  }
> 
> +#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/vhaddq_x_n_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u16.c
> index 146d226f36f..71facc46ad9 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -54,4 +58,8 @@ foo2 (uint16x8_t a, mve_pred16_t p)
>    return vhaddq_x (a, 1, p);
>  }
> 
> +#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/vhaddq_x_n_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u32.c
> index b70014fb6a5..d45421c76d7 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -54,4 +58,8 @@ foo2 (uint32x4_t a, mve_pred16_t p)
>    return vhaddq_x (a, 1, p);
>  }
> 
> +#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/vhaddq_x_n_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u8.c
> index 03978dfa28a..5f16fbd9121 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -54,4 +58,8 @@ foo2 (uint8x16_t a, mve_pred16_t p)
>    return vhaddq_x (a, 1, p);
>  }
> 
> +#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/vhaddq_x_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s16.c
> index c3c787583dd..4e332733459 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int16x8_t a, int16x8_t b, mve_pred16_t p)
>    return vhaddq_x (a, b, p);
>  }
> 
> +#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/vhaddq_x_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s32.c
> index a1ab196d3d2..5cdfd3921a5 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int32x4_t a, int32x4_t b, mve_pred16_t p)
>    return vhaddq_x (a, b, p);
>  }
> 
> +#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/vhaddq_x_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s8.c
> index 061ae89315e..7a2ed232f29 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int8x16_t a, int8x16_t b, mve_pred16_t p)
>    return vhaddq_x (a, b, p);
>  }
> 
> +#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/vhaddq_x_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u16.c
> index 0ee88520f8f..e24ff1668db 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (uint16x8_t a, uint16x8_t b, mve_pred16_t p)
>    return vhaddq_x (a, b, p);
>  }
> 
> +#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/vhaddq_x_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u32.c
> index 0a0e512c5fc..e9f13956b96 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (uint32x4_t a, uint32x4_t b, mve_pred16_t p)
>    return vhaddq_x (a, b, p);
>  }
> 
> +#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/vhaddq_x_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u8.c
> index c495641c532..cba0a302e2a 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (uint8x16_t a, uint8x16_t b, mve_pred16_t p)
>    return vhaddq_x (a, b, p);
>  }
> 
> +#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/vhsubq_n_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s16.c
> index af4f534d7ff..4d1bab9641e 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int16x8_t a, int16_t b)
>    return vhsubq (a, b);
>  }
> 
> +#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/vhsubq_n_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s32.c
> index 941d38074a4..8effffaf377 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32x4_t a, int32_t b)
>    return vhsubq (a, b);
>  }
> 
> +#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/vhsubq_n_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s8.c
> index 9ceb4ef3c6f..f55cd8f5528 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int8x16_t a, int8_t b)
>    return vhsubq (a, b);
>  }
> 
> +#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/vhsubq_n_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u16.c
> index 037ed2c637d..73575a401c5 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint16x8_t a)
>    return vhsubq (a, 1);
>  }
> 
> +#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/vhsubq_n_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u32.c
> index f51eb10ecbf..f152ef10a9d 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint32x4_t a)
>    return vhsubq (a, 1);
>  }
> 
> +#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/vhsubq_n_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u8.c
> index 24dd45db152..0a58b1ed355 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint8x16_t a)
>    return vhsubq (a, 1);
>  }
> 
> +#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/vhsubq_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s16.c
> index 0f275d48753..ec8d9aaed0d 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int16x8_t a, int16x8_t b)
>    return vhsubq (a, b);
>  }
> 
> +#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/vhsubq_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s32.c
> index 21aeb9d2a59..e98635a8c11 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32x4_t a, int32x4_t b)
>    return vhsubq (a, b);
>  }
> 
> +#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/vhsubq_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s8.c
> index b3ee94341b5..3107bb55844 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int8x16_t a, int8x16_t b)
>    return vhsubq (a, b);
>  }
> 
> +#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/vhsubq_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u16.c
> index 690ef2de5ba..783309fdbed 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (uint16x8_t a, uint16x8_t b)
>    return vhsubq (a, b);
>  }
> 
> +#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/vhsubq_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u32.c
> index cfe12573fa0..99bc278d16f 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (uint32x4_t a, uint32x4_t b)
>    return vhsubq (a, b);
>  }
> 
> +#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/vhsubq_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u8.c
> index 1926bc34219..ae186512b78 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (uint8x16_t a, uint8x16_t b)
>    return vhsubq (a, b);
>  }
> 
> +#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/vhsubq_x_n_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s16.c
> index fcda4c541a6..260ba9ee509 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int16x8_t a, int16_t b, mve_pred16_t p)
>    return vhsubq_x (a, b, p);
>  }
> 
> +#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/vhsubq_x_n_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s32.c
> index 55637221f21..be5cc04c2b4 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int32x4_t a, int32_t b, mve_pred16_t p)
>    return vhsubq_x (a, b, p);
>  }
> 
> +#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/vhsubq_x_n_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s8.c
> index ecfe188f3fa..b0c28be7872 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int8x16_t a, int8_t b, mve_pred16_t p)
>    return vhsubq_x (a, b, p);
>  }
> 
> +#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/vhsubq_x_n_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u16.c
> index bf3d6c38b85..f31bb3fa632 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -54,4 +58,8 @@ foo2 (uint16x8_t a, mve_pred16_t p)
>    return vhsubq_x (a, 1, p);
>  }
> 
> +#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/vhsubq_x_n_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u32.c
> index 4ae75b09950..a35346d9b2e 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -54,4 +58,8 @@ foo2 (uint32x4_t a, mve_pred16_t p)
>    return vhsubq_x (a, 1, p);
>  }
> 
> +#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/vhsubq_x_n_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u8.c
> index edfa4216a31..25c85449081 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -54,4 +58,8 @@ foo2 (uint8x16_t a, mve_pred16_t p)
>    return vhsubq_x (a, 1, p);
>  }
> 
> +#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/vhsubq_x_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s16.c
> index bd2771b0978..dc3433cb81a 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int16x8_t a, int16x8_t b, mve_pred16_t p)
>    return vhsubq_x (a, b, p);
>  }
> 
> +#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/vhsubq_x_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s32.c
> index 0ea40df3d9e..a1e1faeacb5 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int32x4_t a, int32x4_t b, mve_pred16_t p)
>    return vhsubq_x (a, b, p);
>  }
> 
> +#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/vhsubq_x_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s8.c
> index 90ee94defb0..bbfce818be4 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int8x16_t a, int8x16_t b, mve_pred16_t p)
>    return vhsubq_x (a, b, p);
>  }
> 
> +#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/vhsubq_x_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u16.c
> index d700741169a..86fc9d7cf33 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (uint16x8_t a, uint16x8_t b, mve_pred16_t p)
>    return vhsubq_x (a, b, p);
>  }
> 
> +#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/vhsubq_x_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u32.c
> index f43c9626829..53274267515 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (uint32x4_t a, uint32x4_t b, mve_pred16_t p)
>    return vhsubq_x (a, b, p);
>  }
> 
> +#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/vhsubq_x_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u8.c
> index a0908ba786b..04d89c6c6bd 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (uint8x16_t a, uint8x16_t b, mve_pred16_t p)
>    return vhsubq_x (a, b, p);
>  }
> 
> +#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/vmladavaxq_p_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s16.c
> index f201d5fa047..5925d9e968e 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int32_t add, int16x8_t m1, int16x8_t m2,
> mve_pred16_t p)
>    return vmladavaxq_p (add, m1, m2, p);
>  }
> 
> +#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/vmladavaxq_p_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s32.c
> index c90647a5064..87d66e654f7 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int32_t add, int32x4_t m1, int32x4_t m2,
> mve_pred16_t p)
>    return vmladavaxq_p (add, m1, m2, p);
>  }
> 
> +#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/vmladavaxq_p_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s8.c
> index 57af7bc1c78..803a5becc86 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int32_t add, int8x16_t m1, int8x16_t m2,
> mve_pred16_t p)
>    return vmladavaxq_p (add, m1, m2, p);
>  }
> 
> +#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/vmladavaxq_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s16.c
> index 684580d1c36..6a81b4acfcb 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32_t add, int16x8_t m1, int16x8_t m2)
>    return vmladavaxq (add, m1, m2);
>  }
> 
> +#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/vmladavaxq_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s32.c
> index 5d152647b55..b63ca43abba 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32_t add, int32x4_t m1, int32x4_t m2)
>    return vmladavaxq (add, m1, m2);
>  }
> 
> +#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/vmladavaxq_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s8.c
> index 71bcdc9b55e..2430858aa51 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32_t add, int8x16_t m1, int8x16_t m2)
>    return vmladavaxq (add, m1, m2);
>  }
> 
> +#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/vqaddq_n_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s16.c
> index 0fac7abeac0..17b28cfd956 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int16x8_t a, int16_t b)
>    return vqaddq (a, b);
>  }
> 
> +#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/vqaddq_n_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s32.c
> index d750b1f2c14..e6bb4e0b51d 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32x4_t a, int32_t b)
>    return vqaddq (a, b);
>  }
> 
> +#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/vqaddq_n_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s8.c
> index 5fc796edf75..f39451f6bc0 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int8x16_t a, int8_t b)
>    return vqaddq (a, b);
>  }
> 
> +#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/vqaddq_n_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u16.c
> index decad65c188..a87163c0446 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint16x8_t a)
>    return vqaddq (a, 1);
>  }
> 
> +#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/vqaddq_n_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u32.c
> index b0a6d79093e..a6aa9b5dddc 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint32x4_t a)
>    return vqaddq (a, 1);
>  }
> 
> +#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/vqaddq_n_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u8.c
> index f9ca9a1f042..4bd47319f5e 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint8x16_t a)
>    return vqaddq (a, 1);
>  }
> 
> +#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/vqaddq_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s16.c
> index ffa31463372..97e2a6039eb 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int16x8_t a, int16x8_t b)
>    return vqaddq (a, b);
>  }
> 
> +#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/vqaddq_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s32.c
> index c5937a967ff..db9355d56dd 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32x4_t a, int32x4_t b)
>    return vqaddq (a, b);
>  }
> 
> +#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/vqaddq_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s8.c
> index 9f937512811..2804d668da8 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int8x16_t a, int8x16_t b)
>    return vqaddq (a, b);
>  }
> 
> +#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/vqaddq_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u16.c
> index aa4be43f244..17e59961c87 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (uint16x8_t a, uint16x8_t b)
>    return vqaddq (a, b);
>  }
> 
> +#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/vqaddq_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u32.c
> index daef60eb5ca..ce3a397acd6 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (uint32x4_t a, uint32x4_t b)
>    return vqaddq (a, b);
>  }
> 
> +#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/vqaddq_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u8.c
> index e28807ec708..faa881f67f6 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (uint8x16_t a, uint8x16_t b)
>    return vqaddq (a, b);
>  }
> 
> +#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/vqdmlahq_n_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s16.c
> index 210bacec2fb..909631c549d 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int16x8_t add, int16x8_t m1, int16_t m2)
>    return vqdmlahq (add, m1, m2);
>  }
> 
> +#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/vqdmlahq_n_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s32.c
> index dbb2494b216..fb670befeff 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32x4_t add, int32x4_t m1, int32_t m2)
>    return vqdmlahq (add, m1, m2);
>  }
> 
> +#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/vqdmlahq_n_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s8.c
> index a7962f82d38..f66740bee0b 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int8x16_t add, int8x16_t m1, int8_t m2)
>    return vqdmlahq (add, m1, m2);
>  }
> 
> +#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/vqdmlashq_m_n_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s16.c
> index 34d407f0142..918de9572e8 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int16x8_t m1, int16x8_t m2, int16_t add,
> mve_pred16_t p)
>    return vqdmlashq_m (m1, m2, add, p);
>  }
> 
> +#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/vqdmlashq_m_n_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s32.c
> index 50a665ea7e5..b25b66057bd 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int32x4_t m1, int32x4_t m2, int32_t add,
> mve_pred16_t p)
>    return vqdmlashq_m (m1, m2, add, p);
>  }
> 
> +#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/vqdmlashq_m_n_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s8.c
> index 45f34b60382..b796f205e5d 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -38,4 +42,8 @@ foo1 (int8x16_t m1, int8x16_t m2, int8_t add,
> mve_pred16_t p)
>    return vqdmlashq_m (m1, m2, add, p);
>  }
> 
> +#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/vqdmlashq_n_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s16.c
> index a3f1ae8d6b8..9a2549464c5 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int16x8_t m1, int16x8_t m2, int16_t add)
>    return vqdmlashq (m1, m2, add);
>  }
> 
> +#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/vqdmlashq_n_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s32.c
> index cf867e56874..36fc7b066a1 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32x4_t m1, int32x4_t m2, int32_t add)
>    return vqdmlashq (m1, m2, add);
>  }
> 
> +#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/vqdmlashq_n_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s8.c
> index 7e9362cab60..1e7cd44d4f5 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int8x16_t m1, int8x16_t m2, int8_t add)
>    return vqdmlashq (m1, m2, add);
>  }
> 
> +#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/vsetq_lane_f16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f16.c
> index 6b148a4b03d..5b1731f7332 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (float16x8_t b)
>    return vsetq_lane (1.1, b, 1);
>  }
> 
> +#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/vsetq_lane_f32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f32.c
> index e4e7f892e97..34b403d0601 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (float32x4_t b)
>    return vsetq_lane (1.1, b, 1);
>  }
> 
> +#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/vsetq_lane_s16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s16.c
> index 950cd016b76..458fd5e6f26 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int16_t a, int16x8_t b)
>    return vsetq_lane (a, b, 1);
>  }
> 
> +#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/vsetq_lane_s32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s32.c
> index 6b49ccd91e4..44672f6c264 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int32_t a, int32x4_t b)
>    return vsetq_lane (a, b, 1);
>  }
> 
> +#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/vsetq_lane_s64.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s64.c
> index 95ba4da1f51..62e8ee50929 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s64.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s64.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int64_t a, int64x2_t b)
>    return vsetq_lane (a, b, 1);
>  }
> 
> +#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/vsetq_lane_s8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s8.c
> index 91a5baee55f..3a79ab1759b 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -30,4 +34,8 @@ foo1 (int8_t a, int8x16_t b)
>    return vsetq_lane (a, b, 1);
>  }
> 
> +#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/vsetq_lane_u16.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u16.c
> index 53986a5c1b1..8a42773e01f 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u16.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u16.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint16x8_t b)
>    return vsetq_lane (1, b, 1);
>  }
> 
> +#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/vsetq_lane_u32.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u32.c
> index 3f17db9623a..43778e6103d 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u32.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u32.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint32x4_t b)
>    return vsetq_lane (1, b, 1);
>  }
> 
> +#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/vsetq_lane_u64.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u64.c
> index 5ce4c544c25..c75bfa448f0 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u64.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u64.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint64x2_t b)
>    return vsetq_lane (1, b, 1);
>  }
> 
> +#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/vsetq_lane_u8.c
> b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u8.c
> index 58e932b85e8..5fb20161259 100644
> --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u8.c
> +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u8.c
> @@ -5,6 +5,10 @@
> 
>  #include "arm_mve.h"
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  /*
>  **foo:
>  **	...
> @@ -42,4 +46,8 @@ foo2 (uint8x16_t b)
>    return vsetq_lane (1, b, 1);
>  }
> 
> +#ifdef __cplusplus
> +}
> +#endif
> +
>  /* { dg-final { scan-assembler-not "__ARM_undef" } } */
> \ No newline at end of file
> --
> 2.25.1
  
Andrea Corallo Jan. 25, 2023, 1:53 p.m. UTC | #2
Kyrylo Tkachov <Kyrylo.Tkachov@arm.com> writes:

[...]

>
> Ok.
> Thanks,
> Kyrill

Hi Kyrill,

thanks for reviewing.  These and all the previous ones are in with the
requested ChangeLogs changes.

Regards

  Andrea
  

Patch

diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c
index 20a999da1d2..31f78b30ed8 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int16x8_t a, int16_t b)
   return vhaddq (a, b);
 }
 
+#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/vhaddq_n_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s32.c
index 986cb8d3ba5..77c0521161c 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32x4_t a, int32_t b)
   return vhaddq (a, b);
 }
 
+#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/vhaddq_n_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s8.c
index 57a4b36f5fe..1cf93d50379 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int8x16_t a, int8_t b)
   return vhaddq (a, b);
 }
 
+#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/vhaddq_n_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u16.c
index abed33b0e37..98d80e42da9 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint16x8_t a)
   return vhaddq (a, 1);
 }
 
+#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/vhaddq_n_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u32.c
index 5e5204fb3a7..9b7e611c0e5 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint32x4_t a)
   return vhaddq (a, 1);
 }
 
+#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/vhaddq_n_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u8.c
index b35221ef81b..4d82970e7ec 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_n_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint8x16_t a)
   return vhaddq (a, 1);
 }
 
+#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/vhaddq_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s16.c
index 310964f3440..2788eb2f8ff 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int16x8_t a, int16x8_t b)
   return vhaddq (a, b);
 }
 
+#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/vhaddq_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s32.c
index d8222645c21..67872a77076 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32x4_t a, int32x4_t b)
   return vhaddq (a, b);
 }
 
+#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/vhaddq_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s8.c
index 85b2feee346..1ec890591ad 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int8x16_t a, int8x16_t b)
   return vhaddq (a, b);
 }
 
+#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/vhaddq_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u16.c
index 2da0aa053e5..bc84618b036 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (uint16x8_t a, uint16x8_t b)
   return vhaddq (a, b);
 }
 
+#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/vhaddq_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u32.c
index 49b865a123b..6abdfce981f 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (uint32x4_t a, uint32x4_t b)
   return vhaddq (a, b);
 }
 
+#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/vhaddq_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u8.c
index 5ecd3cbf6ec..0c68c68206b 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (uint8x16_t a, uint8x16_t b)
   return vhaddq (a, b);
 }
 
+#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/vhaddq_x_n_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s16.c
index a4e277d4e1f..d5bff94a46e 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int16x8_t a, int16_t b, mve_pred16_t p)
   return vhaddq_x (a, b, p);
 }
 
+#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/vhaddq_x_n_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s32.c
index c79b88d6ced..af3e219b3f2 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int32x4_t a, int32_t b, mve_pred16_t p)
   return vhaddq_x (a, b, p);
 }
 
+#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/vhaddq_x_n_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s8.c
index 61893536231..a4551e207c2 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int8x16_t a, int8_t b, mve_pred16_t p)
   return vhaddq_x (a, b, p);
 }
 
+#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/vhaddq_x_n_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u16.c
index 146d226f36f..71facc46ad9 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -54,4 +58,8 @@  foo2 (uint16x8_t a, mve_pred16_t p)
   return vhaddq_x (a, 1, p);
 }
 
+#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/vhaddq_x_n_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u32.c
index b70014fb6a5..d45421c76d7 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -54,4 +58,8 @@  foo2 (uint32x4_t a, mve_pred16_t p)
   return vhaddq_x (a, 1, p);
 }
 
+#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/vhaddq_x_n_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u8.c
index 03978dfa28a..5f16fbd9121 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_n_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -54,4 +58,8 @@  foo2 (uint8x16_t a, mve_pred16_t p)
   return vhaddq_x (a, 1, p);
 }
 
+#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/vhaddq_x_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s16.c
index c3c787583dd..4e332733459 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int16x8_t a, int16x8_t b, mve_pred16_t p)
   return vhaddq_x (a, b, p);
 }
 
+#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/vhaddq_x_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s32.c
index a1ab196d3d2..5cdfd3921a5 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int32x4_t a, int32x4_t b, mve_pred16_t p)
   return vhaddq_x (a, b, p);
 }
 
+#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/vhaddq_x_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s8.c
index 061ae89315e..7a2ed232f29 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int8x16_t a, int8x16_t b, mve_pred16_t p)
   return vhaddq_x (a, b, p);
 }
 
+#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/vhaddq_x_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u16.c
index 0ee88520f8f..e24ff1668db 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (uint16x8_t a, uint16x8_t b, mve_pred16_t p)
   return vhaddq_x (a, b, p);
 }
 
+#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/vhaddq_x_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u32.c
index 0a0e512c5fc..e9f13956b96 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (uint32x4_t a, uint32x4_t b, mve_pred16_t p)
   return vhaddq_x (a, b, p);
 }
 
+#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/vhaddq_x_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u8.c
index c495641c532..cba0a302e2a 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhaddq_x_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (uint8x16_t a, uint8x16_t b, mve_pred16_t p)
   return vhaddq_x (a, b, p);
 }
 
+#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/vhsubq_n_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s16.c
index af4f534d7ff..4d1bab9641e 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int16x8_t a, int16_t b)
   return vhsubq (a, b);
 }
 
+#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/vhsubq_n_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s32.c
index 941d38074a4..8effffaf377 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32x4_t a, int32_t b)
   return vhsubq (a, b);
 }
 
+#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/vhsubq_n_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s8.c
index 9ceb4ef3c6f..f55cd8f5528 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int8x16_t a, int8_t b)
   return vhsubq (a, b);
 }
 
+#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/vhsubq_n_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u16.c
index 037ed2c637d..73575a401c5 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint16x8_t a)
   return vhsubq (a, 1);
 }
 
+#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/vhsubq_n_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u32.c
index f51eb10ecbf..f152ef10a9d 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint32x4_t a)
   return vhsubq (a, 1);
 }
 
+#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/vhsubq_n_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u8.c
index 24dd45db152..0a58b1ed355 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_n_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint8x16_t a)
   return vhsubq (a, 1);
 }
 
+#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/vhsubq_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s16.c
index 0f275d48753..ec8d9aaed0d 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int16x8_t a, int16x8_t b)
   return vhsubq (a, b);
 }
 
+#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/vhsubq_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s32.c
index 21aeb9d2a59..e98635a8c11 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32x4_t a, int32x4_t b)
   return vhsubq (a, b);
 }
 
+#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/vhsubq_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s8.c
index b3ee94341b5..3107bb55844 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int8x16_t a, int8x16_t b)
   return vhsubq (a, b);
 }
 
+#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/vhsubq_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u16.c
index 690ef2de5ba..783309fdbed 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (uint16x8_t a, uint16x8_t b)
   return vhsubq (a, b);
 }
 
+#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/vhsubq_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u32.c
index cfe12573fa0..99bc278d16f 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (uint32x4_t a, uint32x4_t b)
   return vhsubq (a, b);
 }
 
+#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/vhsubq_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u8.c
index 1926bc34219..ae186512b78 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (uint8x16_t a, uint8x16_t b)
   return vhsubq (a, b);
 }
 
+#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/vhsubq_x_n_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s16.c
index fcda4c541a6..260ba9ee509 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int16x8_t a, int16_t b, mve_pred16_t p)
   return vhsubq_x (a, b, p);
 }
 
+#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/vhsubq_x_n_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s32.c
index 55637221f21..be5cc04c2b4 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int32x4_t a, int32_t b, mve_pred16_t p)
   return vhsubq_x (a, b, p);
 }
 
+#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/vhsubq_x_n_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s8.c
index ecfe188f3fa..b0c28be7872 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int8x16_t a, int8_t b, mve_pred16_t p)
   return vhsubq_x (a, b, p);
 }
 
+#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/vhsubq_x_n_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u16.c
index bf3d6c38b85..f31bb3fa632 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -54,4 +58,8 @@  foo2 (uint16x8_t a, mve_pred16_t p)
   return vhsubq_x (a, 1, p);
 }
 
+#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/vhsubq_x_n_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u32.c
index 4ae75b09950..a35346d9b2e 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -54,4 +58,8 @@  foo2 (uint32x4_t a, mve_pred16_t p)
   return vhsubq_x (a, 1, p);
 }
 
+#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/vhsubq_x_n_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u8.c
index edfa4216a31..25c85449081 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_n_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -54,4 +58,8 @@  foo2 (uint8x16_t a, mve_pred16_t p)
   return vhsubq_x (a, 1, p);
 }
 
+#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/vhsubq_x_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s16.c
index bd2771b0978..dc3433cb81a 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int16x8_t a, int16x8_t b, mve_pred16_t p)
   return vhsubq_x (a, b, p);
 }
 
+#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/vhsubq_x_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s32.c
index 0ea40df3d9e..a1e1faeacb5 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int32x4_t a, int32x4_t b, mve_pred16_t p)
   return vhsubq_x (a, b, p);
 }
 
+#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/vhsubq_x_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s8.c
index 90ee94defb0..bbfce818be4 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int8x16_t a, int8x16_t b, mve_pred16_t p)
   return vhsubq_x (a, b, p);
 }
 
+#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/vhsubq_x_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u16.c
index d700741169a..86fc9d7cf33 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (uint16x8_t a, uint16x8_t b, mve_pred16_t p)
   return vhsubq_x (a, b, p);
 }
 
+#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/vhsubq_x_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u32.c
index f43c9626829..53274267515 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (uint32x4_t a, uint32x4_t b, mve_pred16_t p)
   return vhsubq_x (a, b, p);
 }
 
+#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/vhsubq_x_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u8.c
index a0908ba786b..04d89c6c6bd 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vhsubq_x_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (uint8x16_t a, uint8x16_t b, mve_pred16_t p)
   return vhsubq_x (a, b, p);
 }
 
+#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/vmladavaxq_p_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s16.c
index f201d5fa047..5925d9e968e 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int32_t add, int16x8_t m1, int16x8_t m2, mve_pred16_t p)
   return vmladavaxq_p (add, m1, m2, p);
 }
 
+#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/vmladavaxq_p_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s32.c
index c90647a5064..87d66e654f7 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int32_t add, int32x4_t m1, int32x4_t m2, mve_pred16_t p)
   return vmladavaxq_p (add, m1, m2, p);
 }
 
+#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/vmladavaxq_p_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s8.c
index 57af7bc1c78..803a5becc86 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_p_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int32_t add, int8x16_t m1, int8x16_t m2, mve_pred16_t p)
   return vmladavaxq_p (add, m1, m2, p);
 }
 
+#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/vmladavaxq_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s16.c
index 684580d1c36..6a81b4acfcb 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32_t add, int16x8_t m1, int16x8_t m2)
   return vmladavaxq (add, m1, m2);
 }
 
+#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/vmladavaxq_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s32.c
index 5d152647b55..b63ca43abba 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32_t add, int32x4_t m1, int32x4_t m2)
   return vmladavaxq (add, m1, m2);
 }
 
+#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/vmladavaxq_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s8.c
index 71bcdc9b55e..2430858aa51 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmladavaxq_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32_t add, int8x16_t m1, int8x16_t m2)
   return vmladavaxq (add, m1, m2);
 }
 
+#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/vqaddq_n_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s16.c
index 0fac7abeac0..17b28cfd956 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int16x8_t a, int16_t b)
   return vqaddq (a, b);
 }
 
+#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/vqaddq_n_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s32.c
index d750b1f2c14..e6bb4e0b51d 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32x4_t a, int32_t b)
   return vqaddq (a, b);
 }
 
+#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/vqaddq_n_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s8.c
index 5fc796edf75..f39451f6bc0 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int8x16_t a, int8_t b)
   return vqaddq (a, b);
 }
 
+#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/vqaddq_n_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u16.c
index decad65c188..a87163c0446 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint16x8_t a)
   return vqaddq (a, 1);
 }
 
+#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/vqaddq_n_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u32.c
index b0a6d79093e..a6aa9b5dddc 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint32x4_t a)
   return vqaddq (a, 1);
 }
 
+#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/vqaddq_n_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u8.c
index f9ca9a1f042..4bd47319f5e 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_n_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint8x16_t a)
   return vqaddq (a, 1);
 }
 
+#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/vqaddq_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s16.c
index ffa31463372..97e2a6039eb 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int16x8_t a, int16x8_t b)
   return vqaddq (a, b);
 }
 
+#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/vqaddq_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s32.c
index c5937a967ff..db9355d56dd 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32x4_t a, int32x4_t b)
   return vqaddq (a, b);
 }
 
+#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/vqaddq_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s8.c
index 9f937512811..2804d668da8 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int8x16_t a, int8x16_t b)
   return vqaddq (a, b);
 }
 
+#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/vqaddq_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u16.c
index aa4be43f244..17e59961c87 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (uint16x8_t a, uint16x8_t b)
   return vqaddq (a, b);
 }
 
+#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/vqaddq_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u32.c
index daef60eb5ca..ce3a397acd6 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (uint32x4_t a, uint32x4_t b)
   return vqaddq (a, b);
 }
 
+#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/vqaddq_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u8.c
index e28807ec708..faa881f67f6 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqaddq_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (uint8x16_t a, uint8x16_t b)
   return vqaddq (a, b);
 }
 
+#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/vqdmlahq_n_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s16.c
index 210bacec2fb..909631c549d 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int16x8_t add, int16x8_t m1, int16_t m2)
   return vqdmlahq (add, m1, m2);
 }
 
+#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/vqdmlahq_n_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s32.c
index dbb2494b216..fb670befeff 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32x4_t add, int32x4_t m1, int32_t m2)
   return vqdmlahq (add, m1, m2);
 }
 
+#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/vqdmlahq_n_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s8.c
index a7962f82d38..f66740bee0b 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlahq_n_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int8x16_t add, int8x16_t m1, int8_t m2)
   return vqdmlahq (add, m1, m2);
 }
 
+#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/vqdmlashq_m_n_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s16.c
index 34d407f0142..918de9572e8 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int16x8_t m1, int16x8_t m2, int16_t add, mve_pred16_t p)
   return vqdmlashq_m (m1, m2, add, p);
 }
 
+#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/vqdmlashq_m_n_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s32.c
index 50a665ea7e5..b25b66057bd 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int32x4_t m1, int32x4_t m2, int32_t add, mve_pred16_t p)
   return vqdmlashq_m (m1, m2, add, p);
 }
 
+#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/vqdmlashq_m_n_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s8.c
index 45f34b60382..b796f205e5d 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_m_n_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -38,4 +42,8 @@  foo1 (int8x16_t m1, int8x16_t m2, int8_t add, mve_pred16_t p)
   return vqdmlashq_m (m1, m2, add, p);
 }
 
+#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/vqdmlashq_n_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s16.c
index a3f1ae8d6b8..9a2549464c5 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int16x8_t m1, int16x8_t m2, int16_t add)
   return vqdmlashq (m1, m2, add);
 }
 
+#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/vqdmlashq_n_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s32.c
index cf867e56874..36fc7b066a1 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32x4_t m1, int32x4_t m2, int32_t add)
   return vqdmlashq (m1, m2, add);
 }
 
+#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/vqdmlashq_n_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s8.c
index 7e9362cab60..1e7cd44d4f5 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmlashq_n_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int8x16_t m1, int8x16_t m2, int8_t add)
   return vqdmlashq (m1, m2, add);
 }
 
+#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/vsetq_lane_f16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f16.c
index 6b148a4b03d..5b1731f7332 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (float16x8_t b)
   return vsetq_lane (1.1, b, 1);
 }
 
+#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/vsetq_lane_f32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f32.c
index e4e7f892e97..34b403d0601 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_f32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (float32x4_t b)
   return vsetq_lane (1.1, b, 1);
 }
 
+#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/vsetq_lane_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s16.c
index 950cd016b76..458fd5e6f26 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int16_t a, int16x8_t b)
   return vsetq_lane (a, b, 1);
 }
 
+#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/vsetq_lane_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s32.c
index 6b49ccd91e4..44672f6c264 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int32_t a, int32x4_t b)
   return vsetq_lane (a, b, 1);
 }
 
+#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/vsetq_lane_s64.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s64.c
index 95ba4da1f51..62e8ee50929 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s64.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s64.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int64_t a, int64x2_t b)
   return vsetq_lane (a, b, 1);
 }
 
+#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/vsetq_lane_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s8.c
index 91a5baee55f..3a79ab1759b 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_s8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -30,4 +34,8 @@  foo1 (int8_t a, int8x16_t b)
   return vsetq_lane (a, b, 1);
 }
 
+#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/vsetq_lane_u16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u16.c
index 53986a5c1b1..8a42773e01f 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u16.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u16.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint16x8_t b)
   return vsetq_lane (1, b, 1);
 }
 
+#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/vsetq_lane_u32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u32.c
index 3f17db9623a..43778e6103d 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u32.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u32.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint32x4_t b)
   return vsetq_lane (1, b, 1);
 }
 
+#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/vsetq_lane_u64.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u64.c
index 5ce4c544c25..c75bfa448f0 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u64.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u64.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint64x2_t b)
   return vsetq_lane (1, b, 1);
 }
 
+#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/vsetq_lane_u8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u8.c
index 58e932b85e8..5fb20161259 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u8.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vsetq_lane_u8.c
@@ -5,6 +5,10 @@ 
 
 #include "arm_mve.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 **foo:
 **	...
@@ -42,4 +46,8 @@  foo2 (uint8x16_t b)
   return vsetq_lane (1, b, 1);
 }
 
+#ifdef __cplusplus
+}
+#endif
+
 /* { dg-final { scan-assembler-not "__ARM_undef" } } */
\ No newline at end of file