| 1 |
/* { dg-do compile { target powerpc*-*-* } } */ |
| 2 |
/* { dg-options "-maltivec" } */ |
| 3 |
/* { dg-require-effective-target powerpc_altivec } */ |
| 4 |
|
| 5 |
#include <stdbool.h> |
| 6 |
#include <altivec.h> |
| 7 |
|
| 8 |
#define f0(type) void x0##type (vector bool type x) { } |
| 9 |
f0 (int) |
| 10 |
|
| 11 |
#define f1(v, type) void x1##type (v bool type x) { } |
| 12 |
f1 (vector, int) |
| 13 |
|
| 14 |
#define f2(b, type) void x2##type (vector b type x) { } |
| 15 |
f2 (bool, int) |
| 16 |
|
| 17 |
#define f3(v, b, type) void x3##type (v b type x) { } |
| 18 |
f3 (vector, bool, int) |
| 19 |
|
| 20 |
#define f4(v, b, type) void x4##type (v type b x) { } |
| 21 |
f4 (vector, bool, int) |
| 22 |
|
| 23 |
#define B bool |
| 24 |
#define I int |
| 25 |
#define BI bool int |
| 26 |
#define VBI vector bool int |
| 27 |
|
| 28 |
vector bool int a; |
| 29 |
vector B int b; |
| 30 |
vector B I c; |
| 31 |
vector BI d; |
| 32 |
VBI e; |