view gcc/testsuite/g++.target/aarch64/sve/acle/general-c++/mangle_3.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
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:" } } */