view gcc/testsuite/g++.target/aarch64/sve/acle/general-c++/mangle_3.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-additional-options "-msve-vector-bits=256" } */

#include <arm_sve.h>

typedef __SVInt8_t t1;
typedef svint8_t t2;
/* Distinct from svint8_t, but compatible with it.  */
typedef int8_t t3 __attribute__((vector_size(32)));

void f1(t1) {}
void f2(t2) {}
void f3(t3) {}
void f4(t1 &a, t2 &b, t3 &c) { a = b = c; }

/* { dg-final { scan-assembler "_Z2f110__SVInt8_t:" } } */
/* { dg-final { scan-assembler "_Z2f210__SVInt8_t:" } } */
/* { dg-final { scan-assembler "_Z2f3Dv32_a:" } } */