| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-msve-vector-bits=256" } */ |
| 3 |
|
| 4 |
#include <arm_sve.h> |
| 5 |
|
| 6 |
typedef __SVInt8_t t1; |
| 7 |
typedef svint8_t t2; |
| 8 |
/* Distinct from svint8_t, but compatible with it. */ |
| 9 |
typedef int8_t t3 __attribute__((vector_size(32))); |
| 10 |
|
| 11 |
void f1(t1) {} |
| 12 |
void f2(t2) {} |
| 13 |
void f3(t3) {} |
| 14 |
void f4(t1 &a, t2 &b, t3 &c) { a = b = c; } |
| 15 |
|
| 16 |
/* { dg-final { scan-assembler "_Z2f1u10__SVInt8_t:" } } */ |
| 17 |
/* { dg-final { scan-assembler "_Z2f2u10__SVInt8_t:" } } */ |
| 18 |
/* { dg-final { scan-assembler "_Z2f3Dv32_a:" } } */ |